Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Run automatically on Claude Code events. Claude doesn't decide.
1 caution to review before installing
A hook runs when Claude uses the Bash tool
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Hook plugin that blocks messy code execution patterns and nudges toward clean alternatives.
Add # clean-code-guard: disable comment to bypass all checks:
# clean-code-guard: disable
CONTENT=$(cat file.md); gemini "$CONTENT" # Allowed with escape hatch
Use when you have a legitimate use case that the patterns incorrectly flag.
python -c Scripts# BLOCKED - Multi-line inline scripts
uv run python -c "
from mymodule import MyClass
obj = MyClass()
print(obj)
"
# ALLOWED - Simple one-liners
python -c "print('hello')"
Why? Inline scripts are:
Instead: Write proper tests in tests/ and run with pytest.
# BLOCKED - Heredoc pattern
gemini --sandbox "$(cat <<'EOF'
Review this:
$CONTENT
EOF
)"
# BLOCKED - Variable assignment pattern
CONTENT=$(cat file.md)
gemini --sandbox "$CONTENT"
# ALLOWED - Clean stdin piping
cat file.md | gemini --sandbox -o text "Review this"
git diff | gemini --sandbox -o text "Review this diff"
Why? Heredoc patterns are:
Instead: Use stdin piping or the wrapper script:
scripts/gemini-review.sh --plan file.md
scripts/gemini-review.sh --diff
Add to your project's .claude/settings.json:
{
"plugins": [
"/path/to/rbw-claude-code/plugins/clean-code-guard"
]
}
Variable assignment pattern is intentionally broad:
Regex patterns have edge cases:
When in doubt, use the escape hatch and document why.
templates/rules/clean-execution.md - Rule template for CLAUDE.mdplugins/python-backend/skills/gemini-cli/SKILL.md - Gemini CLI usage guidescripts/gemini-review.sh - Wrapper script for clean gemini invocationsBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub rbozydar/rbw-claude-code --plugin clean-code-guardPlugins from other owners that cover similar ground