zieka

Clean Comments — Git skill for Claude Code

Git community

Clean up code comments in PR or staged changes.

How to install Clean Comments

Installs to ~/.claude/commands/zieka-cpm-public-registry-clean-comments.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/zieka/cpm-public-registry/HEAD/.claude/commands/clean-comments.md -o ~/.claude/commands/zieka-cpm-public-registry-clean-comments.md

Restart Claude Code, or start a new session, for it to be picked up.

What Clean Comments does


name: clean-comments description: Clean up code comments in PR or staged changes args: none

Clean Comments

Clean up all comments made in this PR. If there is no PR look at the staged changes and potentially the last commit. Ask for clarification if not obvious.

Comment Guidelines

  • We like docblocks on components stating the initial intention and assumptions made. We dont care for @param and @return annotations
  • We like inline comments that are very short giving vital reasoning

Alternatives in Git

  • Clean Worktrees (Automatic) — Automatically remove all worktrees for branches merged into master 25.5k ★
  • Gen Commit Msg — Generate intelligent commit messages based on staged changes 5.7k ★
  • Merge Command — Finalize worktree work: update docs, commit, merge to main, clean up 1.3k ★

Full documentation available on GitHub

View Source Repository