comment-analyzer

comment-analyzer is a skill for Claude Code from euxx/claude-skills-for-copilot. It costs 35 tokens per session (521 once invoked), scanned A, original, MIT.

A code-comment review assistant that checks whether comments and documentation match the code and remain useful over time. It looks for outdated, incomplete, misleading, or unnecessary explanations.

In plain words
What is it for?
Use it after adding or changing comments, documentation comments, or docstrings, or when reviewing existing comments for technical debt.
Why use it?
Comments can become wrong after code changes or repeat what the code already says. This helps prevent documentation from confusing future maintainers.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it after adding or changing comments, documentation comments, or docstrings, or when reviewing existing comments for technical debt.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/euxx/claude-skills-for-copilot/comment-analyzer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add euxx/claude-skills-for-copilot --skill comment-analyzer
Clone the repo
git clone --depth 1 https://github.com/euxx/claude-skills-for-copilot

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for comment-analyzer

README.md
[![agentmods](https://agentmods.dev/badge/skills/euxx/claude-skills-for-copilot/comment-analyzer/github.svg)](https://agentmods.dev/skills/euxx/claude-skills-for-copilot/comment-analyzer)
Your own site
<a href="https://agentmods.dev/skills/euxx/claude-skills-for-copilot/comment-analyzer"><img src="https://agentmods.dev/badge/skills/euxx/claude-skills-for-copilot/comment-analyzer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for comment-analyzer

Your own site · 80×15
<a href="https://agentmods.dev/skills/euxx/claude-skills-for-copilot/comment-analyzer"><img src="https://agentmods.dev/badge/skills/euxx/claude-skills-for-copilot/comment-analyzer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 521 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00035 $0.00521
Opus 5 $0.00017 $0.00260
Sonnet 5 $0.00007 $0.00104
Haiku 4.5 $0.00003 $0.00052

Measured 10d ago against content hash 22aa6fb071dc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

comment-analyzer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/comment-analyzer/SKILL.md · 71 lines

How it starts

The opening of the file, as written. The whole thing — 71 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Comment Analyzer

Analyze code comments for accuracy, completeness, and long-term maintainability. Protect codebases from comment rot by ensuring every comment adds genuine value.

When to Use

  • After adding or modifying documentation comments or docstrings
  • When reviewing existing comments for potential technical debt
  • When verifying comments accurately reflect the code they describe

Analysis Steps

  1. Verify Factual Accuracy: Cross-reference every claim against the actual code.

    • Function signatures match documented parameters and return types
    • Described behavior aligns with actual code logic
    • Referenced types, functions, and variables exist and are used correctly
    • Edge cases mentioned are actually handled
    • Performance or complexity claims are accurate
  2. Assess Completeness:

    • Critical assumptions or preconditions are documented
    • Non-obvious side effects are mentioned
    • Complex algorithms have their approach explained
    • Business logic rationale is captured when not self-evident
  3. Evaluate Long-term Value:

    • Comments that merely restate obvious code should be flagged for removal
    • Comments explaining why are more valuable than those explaining what
    • Comments that will become outdated with likely future changes should be reconsidered
    • Avoid comments referencing temporary states or transitional implementations
  4. Identify Misleading Elements:

    • Ambiguous language with multiple possible meanings
    • Outdated references to refactored code
    • Assumptions that may no longer hold
    • TODOs or FIXMEs that may already be addressed

Output Format

## Summary
Brief overview of the analysis scope and findings.

## Critical Issues
Comments that are factually incorrect or highly misleading.
- Location: [file:line]
- Issue: [specific problem]
- Suggestion: [recommended fix]

## Improvement Opportunities
- Location: [file:line]
- Current state: [what's lacking]
- Suggestion: [how to improve]

## Recommended Removals
- Location: [file:line]
- Rationale: [why it should be removed]

## Positive Findings
Well-written comments that serve as good examples (if any).

Read the full file on GitHub · 71 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 71 lines · 35 tokens per session scan A 22aa6fb071dc

Subscribe to this mod's changes

comment-analyzer is a skill published in the GitHub repository euxx/claude-skills-for-copilot (4 stars, last pushed 2mo ago), licensed MIT. It adds 35 tokens to every session and 521 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

pr-comment-review

Audit and remediate an open GitHub PR's review feedback: verify Copilot and Codex actually reviewed, drive every unresolved thread to a fix-or-justify reply, correct PR title/description drift against the real diff, and run a one-time self-review pass. Trigger on "have all PR comments been addressed", "did copilot and…

anchildress1/awesome-github-copilot · 162 tokens

audit-legacy-controller

Read the legacy Admin{Domain}sController.php without modifying it. Extract every field rendered, every action method, and every Hook::exec() call.

jeffsenso/prestashop-skills · 38 tokens

copilot-mcp-server

Direct access to GitHub Copilot MCP server tools for AI-powered development assistance.

Poorgramer-Zack/copilot-mcp-tool · 21 tokens

continual-learning

Nightly refinement of an existing per-repo review-style prompt using this reviewer's own finding outcomes. Read confirmed (resolved-by-commit / thumbs-up) and dismissed (thumbs-down) findings, promote the bug patterns the team actually fixes, demote the false-positive patterns, reconcile against the current prompt…

langchain-ai/open-swe · 89 tokens

workthreads

SpecStory Workthreads - a weekly work-thread rollup across a team's repos from SpecStory coding histories (any agent - Claude Code, Codex, Cursor, Gemini, and more). It groups the window's sessions into threads of work per project and labels each new / open / recently closed, so a lead sees what shipped, what is still…

specstoryai/getspecstory · 126 tokens

review-work

Post-implementation gate review: run manual QA on the real surface yourself, then launch ONE gate reviewer (never a panel) to audit goal, constraints, code quality, security, missed context, and QA evidence. Use before a PR handoff or when the user explicitly asks to review completed work.

code-yeongyu/oh-my-openagent · 63 tokens