From code
Cleans up redundant, commented-out, or edit-history comments while preserving TODOs, directives, and non-obvious reasoning. Operates on a diff or the whole repository.
How this skill is triggered — by the user, by Claude, or both
Slash command
/code:comment-cleanupThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use comments sparingly. Preserve comments that explain non-obvious logic, constraints, or business rules.
Use comments sparingly. Preserve comments that explain non-obvious logic, constraints, or business rules.
Default to diff-only cleanup. Inspect the complete staged and unstaged patch and edit only comments introduced or changed by that patch. Looking at every changed file is too broad because unchanged comments in those files are outside scope.
Use repository-wide cleanup only when the user explicitly asks to clean all comments, the whole repository, or a named directory. In repository-wide mode, apply the same rules to existing comments inside the requested scope.
Do not use end-of-line comments. Move a necessary end-of-line comment to its own line immediately above the code it describes, using the same indentation.
Focus only on comments. Do not change executable code, behavior, formatting unrelated to the moved or removed comment, or generated files that should be regenerated instead.
npx claudepluginhub motlin/claude-code-plugins --plugin codeRemoves redundant and obvious comments following clean code principles while preserving meaningful documentation. Supports git scope filtering for staged, unstaged, branch, or commit-range changes.
Rewrites unprofessional code comments into clear, professional ones and performs non-semantic cleanup such as removing dead code comments and fixing formatting. Useful before code review, handoff, or open-sourcing.
Removes unnecessary comments from git-scoped code files: branch changes since main, unstaged files, or commit ranges like HEAD~5..HEAD.