comment-quality
Skill448 starsChanged 4 days agoMITView on GitHub
Review and fix temporal references in code comments.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- notque/claude-code-toolkitword for word, first seen Oct 8, 2026
- rikvanriel/code-hygienetheir own version, first seen Sep 17, 2026
Other versions2 projects use a version of this.
Word for word · 1
- notque/claude-code-toolkit★ 448100% same
Edited · 0
None found.
Wrote their own version · 1
- rikvanriel/code-hygiene★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository64 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- assessmentSkill
- dataSkill
- business-opsSkill
- code-qualitySkill
- condenseSkill
- joy-checkSkill
- content-engineSkill
- contentSkill
- headlinesSkill
- image-genSkill
- image-to-videoSkill
- series-plannerSkill
- topic-brainstormerSkill
- video-editingSkill
- writingSkill
- domainSkill
- cli-designSkill
- frontendSkill
- frontend-slidesSkill
- jev-designSkill
- webgl-card-effectsSkill
- game-asset-generatorSkill
- game-devSkill
- game-trailerSkill
- motion-pipelineSkill
- browser-jev-automationSkill
- cve-source-checkSkill
- deploySkill
- endpoint-validatorSkill
- headless-cron-creatorSkill
- kubernetesSkill
- githubSkill
- accountsSkill
- auto-dreamSkill
- building-with-jevSkill
- codexSkill
- docs-sync-checkerSkill
- doSkill
- dSkill
- grill-jevSkill
- toolkitSkill
- workflow-helpSkill
- debuggingSkill
- plant-seedSkill
- processSkill
- pr-workflowSkill
- quickSkill
- testingSkill
- with-anti-rationalizationSkill
- workflowSkill
- worktree-agentSkill
- programmingSkill
- architecture-deepeningSkill
- codebase-analyzerSkill
- markdown-converterSkill
- news-collectionSkill
- researchSkill
- roastSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 12 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 38
Read the repository CLAUDE.md first to pick up any project-specific comment conventions.
- Distinctive: line 42
If user explicitly requests auto-fix, enable it.
- Distinctive: line 63
When a finding appears, inspect nearby comments in the same function or block -- temporal language tends to cluster.
- Distinctive: line 65
Gate: All files in scope scanned.
- Distinctive: line 92
Gate: Every finding classified with context understood.
- Very specific: line 119
If a rewrite just removes the temporal word without adding substance, it fails validation.
- Distinctive: line 121
Gate: All rewrites pass quality checks.
- Distinctive: line 149
If user requested auto-fix, apply all rewrites using Edit tool.
- Distinctive: line 153
Remove any scan results, intermediate reports, or helper files created during execution.
- Distinctive: line 162
Verify common files were scanned (README, main source files)
- Distinctive: line 176
Read surrounding code to infer current purpose
- Distinctive: line 177
If purpose is clear from code, suggest removing the comment entirely
- Distinctive: line 178
If purpose is unclear, ask user for clarification before rewriting
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Comment Quality Skill
Review code comments for temporal references, development-activity language, and relative comparisons. Produces structured reports with actionable rewrites that explain WHAT the code does and WHY, only WHAT the code does and WHY. Supports .go, .py, .js, .ts, .md, and .txt files.
Instructions
Phase 1: SCAN
Goal: Identify all comments containing temporal, activity, or relative language.
Step 1: Determine scope
Read the repository CLAUDE.md first to pick up any project-specific comment conventions.
Scan only what was requested. If user specifies files, scan those files. If user specifies a directory, scan that directory. Honor the explicit scope -- even if you suspect other files have issues, honor the explicit scope and suggest expansion separately at the end.
If user explicitly requests auto-fix, enable it. Otherwise present findings for review. For large codebases, group findings by directory when reporting.
Step 2: Search for temporal patterns
Flag every instance of the following categories. No temporal word is "harmless" -- all temporal language ages poorly and must be rewritten regardless of how innocuous it seems:
- Temporal words: "new", "old", "previous", "current", "now", "recently", "latest", "modern"
- Development activity: "added", "removed", "deleted", "updated", "changed", "modified", "fixed", "improved", "enhanced", "refactored", "optimized"
- State transitions: "replaced", "migrated", "upgraded", "deprecated", "became", "turned into", "evolved"
- Date references: "as of", "since", "from", "after", "before"
- Relative comparisons: "better than", "faster than", "instead of", "unlike the previous"
Step 3: Filter false positives
Exclude from findings -- these are not developer comments and must remain untouched:
- Copyright and license headers (legal requirements, not code comments)
@generatedmarkers (tooling markers)@deprecatedannotations (keep the tag, flag only temporal explanation text after it)- Variable names or string literals that happen to contain temporal words
- TODO/FIXME items that describe future work without temporal references
When a finding appears, inspect nearby comments in the same function or block -- temporal language tends to cluster.
Gate: All files in scope scanned. Findings list populated with file path, line number, and matched text. Every finding listed, not just the first few. Proceed only when gate passes.
Phase 2: ANALYZE
Goal: Understand context for each finding to produce meaningful rewrites.
Step 1: Read surrounding code
For each finding, read the function, block, or section the comment describes. Understand what the code actually does. A rewrite without code context produces vague replacements that strip temporal words without adding substance.
Step 2: Classify the comment
| Finding | Type | Severity |
|---------|------|----------|
| "now uses JWT" | Temporal + Activity | High |
| "improved perf" | Activity | Medium |
| "Copyright 2024" | Legal (skip) | N/A |Step 3: Determine replacement content
For each comment, identify:
- What does the code do right now?
- Why does it do it this way?
- What value does the comment add for a future reader?
Gate: Every finding classified with context understood. Proceed only when gate passes.
Phase 3: REWRITE
Goal: Generate specific, valuable replacement comments.
Step 1: Draft rewrites
For each finding, produce a structured entry with file path, line number, current text, suggested replacement, and reasoning:
**File: `path/to/file.ext`**
Line X - [Comment type]:
Current: // Authentication now uses JWT tokens
Suggested: // Authenticates requests using signed JWT tokens
Reason: "now uses" is temporal - describe current behavior onlyStep 2: Validate rewrite quality
Each rewrite MUST pass these checks:
- Would this comment make sense in 10 years?
- Does it explain WHAT or WHY, not WHEN?
- Is it more specific than what it replaces (not just temporal word removed)?
- Does it add value for a future maintainer?
If a rewrite just removes the temporal word without adding substance, it fails validation. Simply deleting a word produces a useless comment -- // Updated error handling becoming // Error handling adds nothing. Rewrite with specific, descriptive content: // Handles database connection errors with exponential backoff retry.
Gate: All rewrites pass quality checks. No vague or empty replacements. Proceed only when gate passes.
Phase 4: REPORT
Goal: Deliver structured, actionable report.
Step 1: Generate report
Report facts concisely with file paths and line numbers. Every finding must include the current text, suggested replacement, and reasoning -- a diagnostic-only count without rewrites creates work without providing solutions.
## Comment Quality Review
### Summary
- Files scanned: N
- Issues found: M
- Most common pattern: [temporal word]
### Findings
[All findings with file, line, current text, suggested text, reason]
### Recommendations
1. Apply suggested changes
2. Consider adding linter rules for temporal language preventionStep 2: Apply fixes (if auto-fix enabled)
If user requested auto-fix, apply all rewrites using Edit tool. Verify each edit succeeded. Wait for explicit user permission before auto-fixing without explicit user authorization.
Step 3: Cleanup
Remove any scan results, intermediate reports, or helper files created during execution.
Gate: Report delivered. All findings accounted for. Task complete.
Error Handling
Error: "No Temporal Language Found"
Cause: Files are clean or scope was too narrow Solution:
- Verify common files were scanned (README, main source files)
- Report clean results -- this is a valid positive outcome
- Suggest expanding scope if user suspects issues exist elsewhere
Error: "Too Many Results to Display"
Cause: Large codebase with widespread temporal language Solution:
- Prioritize by file importance (README first, then core modules)
- Group findings by pattern type
- Process files by directory with grouped reports
Error: "Comment Meaning Unclear Without History"
Cause: Comment only makes sense with development context that no longer exists Solution:
- Read surrounding code to infer current purpose
- If purpose is clear from code, suggest removing the comment entirely
- If purpose is unclear, ask user for clarification before rewriting
Deep References
Load on demand when the current task matches the signal.
| Signal | Reference | Content |
| Go files in scope | references/go-comment-patterns.md | Go-specific temporal patterns with detection commands |
| Error handling code | references/error-handling-patterns.md | Temporal patterns in try/catch, if err !=, raise |
| Performance code | references/performance-patterns.md | Temporal patterns in cache, pool, concurrency comments |
| Rewrite examples needed | references/examples.md | Before/after examples of comment rewrites |
| Full failure mode reference | references/preferred-patterns.md | Core temporal failure mode catalog (language-agnostic) |
| Language-specific or doc comments | references/preferred-patterns-language-specific.md | Go, Python, JS/TS, README, API failure modes |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

