hunt-comments

A code-review aid for finding comments that are too long, outdated, or unnecessary in a software project.

In plain words
What is it for?
Use it to rank files by comment size, remove redundant explanations and docstrings, shorten long block comments, and check that the code still works.
Why use it?
It helps reduce comment clutter while keeping notes that explain important rules or safety constraints. It also calls for running tests and checks after edits.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/dealfluence/adeu/hunt-comments
Any agent
npx skills add dealfluence/adeu --skill hunt-comments
Clone the repo
git clone --depth 1 https://github.com/dealfluence/adeu

Made for: Claude Code, Codex.

Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 316 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00026 $0.00316
Opus 5 $0.00013 $0.00158
Sonnet 5 $0.00005 $0.00063
Haiku 4.5 $0.00003 $0.00032

Measured yesterday against content hash 2d6f74bfaa4c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

hunt-comments 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 yesterday.

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.

.opencode/skills/hunt-comments/SKILL.md · 33 lines

What it actually says

Hunt Comments Skill

This skill provides a systematic approach to finding and reducing comment density and character bloat across source code files.

Workflow

  1. Run the Comment Density Spotter: Execute python scripts/count_comment_chars.py to rank files by comment character count:

    uv run python scripts/count_comment_chars.py -n 25
    
  2. Target High-Density Files: Focus on top-ranked files with high comment ratios (>20% comment characters).

  3. Identify & Remove Non-Essential Commentary:

    • Delete narrative historical explanations ("Why we added this in 2024...", "Fix for issue #123 where...").
    • Strip redundant docstrings that simply restate function signatures, types, or obvious operations.
    • Collapse multi-paragraph block comments into brief 1-line "why" notes or remove them entirely if code is self-explanatory.
    • Retain only essential architectural invariants (e.g., OPC part boundaries, Word signed int32 overflow rules, security guards).
  4. Verify Behavior: Always run test suites to verify zero functional or formatting regressions:

    • Python: uv run pytest & uv run mypy src
    • Node: npm run build && npm test
    • LangChain: uv run pytest in langchain
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. yesterday First seen · 33 lines · 26 tokens per session scan A 2d6f74bfaa4c

Subscribe to this mod's changes

hunt-comments is a skill published in the GitHub repository dealfluence/adeu (149 stars, last pushed 2d ago), licensed MIT. It adds 26 tokens to every session and 316 once invoked, about $0.0001 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-30.

Related

Other skills, from other repositories

make_plan

For external plan request scenarios, guides the Agent to request a clear, actionable, step-by-step plan from a stronger Agent via listagents and chatwithagent, emphasizing that the plan is executed by the requester, not by the consulted Agent.

agentscope-ai/QwenPaw · 51 tokens

pdf

当用户需要对PDF文件进行任何操作时,请使用此技能。包括从 PDF 中读取或提取文本/表格、合并多个 PDF、拆分 PDF、旋转页面、添加水印、创建新PDF、填写PDF表单、加密/解密 PDF、提取图片,以及对扫描版 PDF 进行 OCR 使其可搜索。如果用户提到 .pdf 文件或要求生成 PDF,请使用此技能。.

agentscope-ai/QwenPaw · 95 tokens

wiki-status

Show the current state of the wiki — what's been ingested, what's pending, and the delta between sources and wiki content. Use this skill when the user asks "what's the status", "how much is ingested", "what's left to process", "show me the delta", "what changed since last ingest", "wiki dashboard", or wants an…

Ar9av/obsidian-wiki · 210 tokens

hermes-history-ingest

Ingest Hermes agent history into the Obsidian wiki. Use this skill when the user wants to mine their past Hermes sessions for knowledge, import their /.hermes folder, extract insights from previous Hermes conversations, or says things like "process my Hermes history", "add my Hermes memories to the wiki", "ingest…

Ar9av/obsidian-wiki · 108 tokens

wiki-context-pack

Produce a token-bounded, citation-ready context slice from an existing Obsidian vault for a downstream agent or task. Use for "/wiki-context-pack", "use my vault as context", "context slice for X", "pack the wiki for my agent", or "bounded context for Y".

Ar9av/obsidian-wiki · 63 tokens

security-review

Perform a focused security review of pending git changes to identify high-confidence security vulnerabilities with real exploitation potential. Use this skill when the user asks for a security review, security audit, vulnerability scan, or wants to check pending changes on a branch for security issues before merging.…

waybarrios/opencode-power-pack · 64 tokens