From rp1-dev
Removes unnecessary comments from git-scoped code files: branch changes since main, unstaged files, or commit ranges like HEAD~5..HEAD.
How this skill is triggered — by the user, by Claude, or both
Slash command
/rp1-dev:code-clean-commentsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Spawns the comment-cleaner agent for surgical comment cleanup.
Spawns the comment-cleaner agent for surgical comment cleanup.
Extract these parameters from the user's input:
| Parameter | Required | Default | Description |
|---|---|---|---|
SCOPE | No | branch | Scope of files to clean. Options: branch (files changed since diverging from base branch), unstaged (only unstaged files), or a git commit range (e.g., HEAD~5..HEAD, abc123..def456) |
BASE_BRANCH | No | main | Base branch for branch scope comparison |
Scope Options:
branch (default): Files changed since diverging from base branchunstaged: Only unstaged files (pre-commit use case)<commit-range>: Any valid git commit range (e.g., HEAD~5..HEAD, abc123..def456){% dispatch_agent "rp1-dev:comment-cleaner", "SCOPE: {SCOPE}, BASE_BRANCH: {BASE_BRANCH}" %}
npx claudepluginhub rp1-run/rp1Removes AI-generated code slop from current branch by checking git diff against main, targeting extra comments, abnormal defensive checks, try/catch blocks, and style inconsistencies. Summarizes changes.
Removes AI-generated code slop, unnecessary comments, and over-engineering from the current branch diff. Use before committing or when code feels over-engineered.
Extracts comment locations with line numbers and context from git-changed files across Python, JavaScript/TypeScript, Go, Rust, Java, C/C++, Ruby, PHP, Shell. Use for cleanup, auditing documentation, analyzing patterns.