Skip to content

Add comment-audit skill for code documentation quality#341

Closed
juliarvalenti wants to merge 1 commit into
mainfrom
claude/beautiful-archimedes-1ClJE
Closed

Add comment-audit skill for code documentation quality#341
juliarvalenti wants to merge 1 commit into
mainfrom
claude/beautiful-archimedes-1ClJE

Conversation

@juliarvalenti

Copy link
Copy Markdown
Contributor

Summary

Introduces a new Claude skill for auditing code comments and inline documentation. The skill identifies and flags three common comment quality issues: temporal/historical notes, overly long narration, and over-referencing of external artifacts (issues, PRs, plan steps). This helps maintain clean, focused documentation that explains what the code does now rather than its lineage or exhaustive context.

Changes

  • Added .claude/skills/comment-audit/SKILL.md with complete skill definition including:
    • Clear rubric for the three comment smells being targeted
    • Canonical example showing before/after of a problematic comment
    • Step-by-step workflow for running audits (scope detection, dispatch to Haiku subagents, consolidation, optional fixing)
    • Guidance on using cheap models (Haiku) for high-volume pattern matching
    • Guardrails to avoid over-correction and preserve genuinely useful documentation
    • Instructions for applying fixes with proper formatting

Testing

N/A — this is a skill definition document with no executable code or tests.

Related Issues

None

https://claude.ai/code/session_01SP7avU9N61aWhawc7ivpcv

Audits code comments for temporal/historical notes, overly long
narration, and over-referencing of external artifacts. Reviews the PR
diff by default or the whole codebase with --all, dispatching the
high-volume pattern-matching to a cheap Haiku subagent.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants