improve-code-comments
Audit or improve code comments and docstrings without changing executable logic.
Skill by wufei-png
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/wufei-png-improve-code-comments
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: security, productivity
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/improve-code-comments
What's inside
- Skill name
improve-code-comments- Description
- Audit or improve code comments and docstrings without changing executable logic. Use for stale, misleading, redundant, missing, low-value, or AI-sounding comments and TODO/FIXME/HACK notes.
- License
- MIT
- Instructions
- 51 lines in SKILL.md · view on GitHub
Files (2)
- SKILL.md
- openai.yaml · agents/
SKILL.md (first lines)
# Improve Code Comments Improve comments with the smallest durable change. Edit comments and docstrings only; do not change executable logic, tests, configuration, or external documentation. ## Scope and Workflow 1. Read local guidance, nearby comment style, lint rules, and generated or vendored paths before judging comments. 2. Use paths, directories, or a Pull Request named by the user. For a current-task cleanup, use files recorded as created or edited during that task; do not treat every pre-existing dirty file as authorized scope. For a broad request, audit first and let the user choose targets. If neither the user nor the task establishes a candidate set, ask for one. 3. Read each in-scope comment with the code it describes. Verify factual claims against definitions, call paths, tests, and external contracts when needed. 4. Decide whether to keep, remove, rewrite, or report the comment before editing. Inspect the full confirmed scope before consolidating duplicated rationale. 5. Review only the changes made by this pass and confirm that they are comment-only. Run the narrow formatter or check required for comment syntax or generated documentation. ## What To Change Use this order: 1. **Remove** comments that are stale, misleading, redundant, commented-out code, author or change-history notes, abandoned alternatives, untracked plans, or text that only lists current callers or describes another module's internals. 2. **Update** comments that contain useful context but no longer match current behavior. 3. **Rewrite** useful comments in short, direct language. Remove prompt or review history, before-state narration, persuasion, metaphors, and vague AI-style wording. Keep precise domain terms. 4. **Add** comments only for hidden intent: business rules, non-obvious constraints, edge cases, performance or security tradeoffs, workaround reasons, lifecycle requirements, surprising return values, or public API contracts. 5. **Recommend a non-comment fix** when a name, test, type, function boundary, ADR, or design document should carry the knowledge. Leave the comment in place until that knowledge has a durable home. ## Quality Rules - Explain information that the code does not already make clear, especially why an order, default, exception, or workaround exists. - Match the project's language and style. Do not impose Simple English, a docstring format, file headers, or one-line comments when local conventions require something else. - Keep public or exported API documentation complete enough for callers. Internal comments should add context that names and types cannot carry. - Preserve copyright and license notices, tool directives, compiler or formatter controls, coverage pragmas, doctest syntax, generated-code markers, and genuine security warnings exactly unless the user explicitly asks to change that item and the project permits it. - Put one design reason at the place that owns the decision. When code is intentionally duplicated, keep each copy understandable on its own. - Preserve accurate institutional knowledge. Do not delete a useful reason merely because its wording needs work. - Do not use word blacklists, comment counts, or density targets as automatic edit rules. Judge words in context and each comment by its value. - Keep TODO/FIXME/HACK comments only when they name a concrete action and give a blocker, issue or specification reference, owner, or removal condition. ## Accuracy Checks Check claims about thresholds, units, ordering, fallbacks, errors, retries, null and empty cases, flags, side effects, public signatures, external-system behavior, and tool-marker semantics. Report a factual error separately from a wording improvement. ## Severity - **Critical:** the comment could cause unsafe use, data loss, a security misunderstanding, or a false public contract. - **High:** the comment is stale or misleading, contains commented-out code, or gives the wrong contract for a public API. - **Medium:** the comment is redundant or vague, misses non-obvious rationale, or contains a weak TODO/FIXME/HACK note. - **Low:** wording, placement, or optional clarity improvement. ## Output For audits, return a summary followed by must-fix findings, useful improvements, recommended removals, and good existing patterns. Give each finding a `file:line`, severity, evidence, and proposed action. For edits, summarize changed paths and validation. List factually wrong comments and non-comment fixes that remain separately.
From wufei-png/skills, MIT.
More from wufei-png/skills
- 0.589score
suno-music-explorer
wufei-png
Explore Suno music from a blank canvas or bounded brief through budget-capped hypotheses, real listening, and human final selection.
SkillAFreshness: A★ 1Claude Code +9 - 0.589score
suno-create
wufei-png
Submit authorized Suno Creates through Playwright or Computer Use, reconcile uncertain outcomes, or prepare a manual package.
SkillAFreshness: A★ 1Claude Code +9 - 0.589score
game-experience-review
wufei-png
Review game experience through independent, code-informed player and critic perspectives, plan focused playtests, or compare builds with testable improvements.
SkillAFreshness: A★ 1Claude Code +9 - 0.589score
docs-context-curator
wufei-png
Organize current and historical project documentation so humans and agents read relevant material by default while history remains discoverable.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
godot-silent-review
wufei-png
Review Godot screenshots and motion keyframes without desktop windows through an existing project-local Web capture runner.
SkillAFreshness: A★ 1Claude Code +9 - 0.581score
codex-thread-report
wufei-png
Report findings from this chat to an existing Codex thread when the user asks to send them.
SkillAFreshness: A★ 1Claude Code +9 - 0.549score
opencode-session-toolkit
wufei-png
Inspect, search, diagnose, and safely export local OpenCode SQLite sessions, including transcripts, project history, and live schema information.
SkillBFreshness: B★ 1Claude Code +9 - 0.545score
codex-session-recovery
wufei-png
Find local Codex sessions read-only and provide CLI recovery commands.
SkillBFreshness: B★ 1Claude Code +9 - 0.544score
review-gated-grilling
wufei-png
Resolve a plan, decision, or idea through dependency-ordered questions reviewed by fresh, read-only subagents before they reach the user.
SkillBFreshness: B★ 1Claude Code +9 - 0.544score
sanitize-artifacts
wufei-png
Prepare selected user-facing artifacts for delivery by removing prompt, conversation, and production residue while preserving facts, necessary constraints…
SkillBFreshness: B★ 1Claude Code +9 - 0.544score
review-tests
wufei-png
Review existing tests as a read-only, defect-first auditor and return prioritized findings about missing protection, false confidence, invalid oracles…
SkillBFreshness: B★ 1Claude Code +9 - 0.541score
consensus-gated-grilling
wufei-png
Resolve decisions through dependency-ordered questions with bounded subagent consensus.
SkillBFreshness: B★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Sep 15, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/wufei-png/skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from wufei-png
- 0.589score
docs-context-curator
wufei-png
Organize current and historical project documentation so humans and agents read relevant material by default while history remains discoverable.
SkillAFreshness: A★ 1Claude Code +9 - 0.589score
suno-create
wufei-png
Submit authorized Suno Creates through Playwright or Computer Use, reconcile uncertain outcomes, or prepare a manual package.
SkillAFreshness: A★ 1Claude Code +9 - 0.589score
suno-music-explorer
wufei-png
Explore Suno music from a blank canvas or bounded brief through budget-capped hypotheses, real listening, and human final selection.
SkillAFreshness: A★ 1Claude Code +9 - 0.589score
game-experience-review
wufei-png
Review game experience through independent, code-informed player and critic perspectives, plan focused playtests, or compare builds with testable improvements.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
godot-silent-review
wufei-png
Review Godot screenshots and motion keyframes without desktop windows through an existing project-local Web capture runner.
SkillAFreshness: A★ 1Claude Code +9 - 0.581score
codex-thread-report
wufei-png
Report findings from this chat to an existing Codex thread when the user asks to send them.
SkillAFreshness: A★ 1Claude Code +9
Cite this page
improve-code-comments skill. Agent Mart. https://agentmart.dev/skills/wufei-png-improve-code-comments (last updated 2026-10-24)