comment-judge
LLM-as-a-judge rubric for code comments (forbidden, false, stale, narration, noise, keep).
Skill by fmflurry
Chalk Labs
Need help deploying comment-judge?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
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/fmflurry-comment-judge
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: frontend, ml, agent-building
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 and code. 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/comment-judge
What's inside
- Skill name
comment-judge- Description
- LLM-as-a-judge rubric for code comments (forbidden, false, stale, narration, noise, keep). Loaded in-process by code-reviewer, dotnet-cop and angular-cop to judge every added or changed comment in a review; used by the comment-judge agent for per-module comment purges. Use when judging whether comments are true, useful, or should be deleted/rewritten.
- License
- MIT
- Instructions
- 143 lines in SKILL.md · view on GitHub
Before installing
- Instructions read files in your home folder (~/.ssh, ~/.aws…)
Files (1)
- SKILL.md
SKILL.md (first lines)
# comment-judge
LLM-as-a-judge for code comments. Applies rubric-based verdict, harvests blocks, emits structured findings. Loaded in-process by code-reviewer/dotnet-cop/angular-cop during review; used by the comment-judge agent for module-scoped purges.
## Modes
**REVIEW**: Candidates are added/changed comments in the diff. Source: `bash scripts/check-added-comments.sh <base>` if the repo provides that script; otherwise `git diff -U0 <base>...HEAD | grep -nE '^\+.*(//|/\*|#|<!--)'`, merged with pre-existing comments within ±10 lines of changed hunks (`git diff -U10 <base>...HEAD | grep -nE '^\+.*(//|/\*|#|<!--)'`). Goal: verify each comment truthfully describes code behavior.
**PURGE**: Scans a directory for all comments (added or pre-existing). Source: `bash scripts/check-added-comments.sh --path <dir>` if available; otherwise `grep -rnE '(//|/\*|#|<!--)' <dir>` (directory-scoped only; repo-wide is prohibitively slow). Goal: delete stale, false, forbidden, or noisy comments in bulk.
**EXPLICIT**: Caller supplies a list of `path:start-end` line ranges (used for manual calibration and edge-case handling).
## Grouping
Merge consecutive `path:line` hits in the same file into blocks: `start_line..end_line`. One block = one contiguous region. Emit verdict and reasoning once per block, not per line.
## Asymmetric cost (REVIEW vs PURGE)
**REVIEW mode:** Missing a false comment is costly (reviewers trust the code). A wrong flag is cheap (human ignores). Strategy: flag suspected false/stale/forbidden comments even with partial evidence. Tier as ❓ (low) when evidence is incomplete.
**PURGE mode:** Verdicts are bulk-applied to many files. Delete only at high confidence (`Important` or `Nit`). Any doubt → keep + ❓ marker for follow-up.
**Never auto-apply `false`:** Comment may be correct and code may be wrong = possible bug. Always require human review.
## Rubric
Read the code the comment describes: enclosing symbol, or ±15 lines, or ≤60 lines below a doc block. Never read files >400 lines whole. When CodeMemory is off, skip it. For stale checks, use `codememory_definitions` only when CodeMemory is on; otherwise one targeted Grep.
Ask in order; first failure wins:
**a) FORBIDDEN class (per the project's code-comments rule — `~/.claude/rules/common/code-comments.md` / `~/.config/opencode/instructions/code-comments.md`, or the repo's own copy if it has one)**
- Narration: restates what code does; rename the code instead (tier: Nit).
- **adr-restate:** Restating, paraphrasing, or quoting design-doc/RFC/rule sections, points, phases, or citing project convention files (AGENTS.md, rules, CLAUDE.md) content. Citations must be bare pointers only: `(ADR-1042)` or `(RFC 7636 §4.2)` for external specs (section allowed for RFCs only). Tier: Nit.
- **task-ref (extended):** Requirement or work-item IDs: `US\d+`, `EX\d+`, `SEC\d+`, `R\d{1,2}`, `F\d[a-z]?`, `#\d{5,}`, `WI \d+`, `TC #\d+`, `Phase \d`, `sub-phase`, `P\d(\.\d)?`, `Pin #\d+`. Fix: strip the ID; keep the sentence if a why remains. Tier: Nit.
- Suppression/TODO missing reason or ticket number (tier: Nit).
- History/changelog/task reference (tier: Nit).
- Quality claim or verification assertion (tier: Nit).
- Section banners or `#region` markers (tier: Nit).
- Verdict: **delete** or **rewrite** (reason rule).
**b) FALSE or STALE (tier: Important)**
- FALSE: Comment claims behavior the code does NOT perform (e.g., "thread-safe" without locks). The contradicting evidence is IN the attached code itself (enclosing symbol, ±15 lines). Must quote contradicting `path:line` + exact line.
- STALE: Comment describes behavior, a call site, a symbol, or an architecture that has moved or been removed. The contradicting evidence lives OUTSIDE the attached code (another file, a removed/renamed symbol, a deleted method call). Even though the claim is technically untrue now, the comment was once correct and was never updated when the code changed. Verdict: **rewrite** if the attached code still needs a non-obvious why (supply corrected ≤1-line reason); else **delete**. Evidence: quote removal or cite `codememory_definitions` result.
- Mixed (noise + stale): When history/ticket noise is attached to stale code, classify **STALE** (Important outranks Nit); remove noise + supply corrected reason if needed.
- Verdict: **false** (REVIEW mode only; PURGE requires high confidence). If low confidence → ❓.
**c) NARRATION (restates next lines or method signature)**
- Example: `// Creates a new user` above `public User Create(…) {}`.
- Verdict: **delete**.
**d) NOISE (task/phase/agent history, verbose doc blocks, overstated impl detail on private members)**
- Example: `// As discussed in ticket 1234`, `// Agent wrote this`.
- Verdict: **delete**, or **rewrite** to one line if non-obvious why is buried.
**e) KEEP (non-obvious why, invariant with bare pointer, public/cross-module contract)**
- Example: `// Sort by created_at DESC; matches UI mockup (ADR-1042)`.
- Example: `// Retry budget is capped at 3; matches upstream rate-limit window (ADR-2031)`.
- A reference is allowed ONLY as a bare trailing pointer after a one-line why. Multi-line design-doc paraphrases must be rewritten to one line (why + bare pointer) or deleted if no local why remains.
- Verdict: **keep**.
**f) UNSURE (evidence partial, contradiction unclear, or context ambiguous)**
- Verdict: ❓ (low tier; flag for human).
## Decision Rules
**DELETE vs REWRITE (when verdict is forbidden, narration, or noise):**
After removing the offending part (ticket ids, history, narration, stale claim), does a non-obvious why, invariant, or constraint remain that a reader of the attached code would otherwise miss?
- YES: **rewrite** to ≤1 line, keeping only the non-obvious why. Example: comment says "avoid O(n²) — used in hot path", remove "Ticket 123: ", keep "avoid O(n²) — used in hot path".
- NO (nothing of value left): **delete**.
- Pure narration (comment merely restates code) is always delete.
**External evidence for FALSE:**
When a comment cites external evidence (RFC, spec, ADR section, standard name) as proof of its claim:
- If you can fetch and verify the cited source → apply it as evidence; if it contradicts the code, verdict is **false** with URL/path + section quoted.
- If you cannot fetch/verify the cited source → **❓** (unsure), not false. Example: "// RFC 7232 says ETag must be…" — must verify RFC; do not guess.
**Rubric order (tie-breaker for equally valid verdicts):**
When two verdicts seem equally valid:
1. Apply rubric categories literally in order: forbidden → false → stale → narration → noise → keep.
2. Do not skip a category with a charitable reading unless the comment text genuinely supports multiple meanings (ambiguous wording), in which case → **❓**.
3. Example: a comment with history noise AND stale behavior → first check forbidden (no), then false (no), then stale (yes) → STALE wins. Do not downgrade to noise just because history is also present.
## Output contract
One finding per judged block, JSON:
```json
{
"path": "src/file.ts",
"start_line": 42,
"end_line": 45,
"category": "comment",
"tier": "Important",
"rule_ref": "code-comments.md#false-or-stale",
"source": "llm",
"existing_code": "// This is thread-safe.\nfunction update(cache, key, value) {",
"verdict": "false",
"suggestion_code": "",
"reason": "Code mutates cache[key] directly without synchronization; comment claims thread-safety but no locking present."
}
```
**Optional verdict field** (if omitted, finding is recorded but not auto-applied):
- `keep` — no change needed.
- `delete` — remove the comment (suggestion_code = "").
- `rewrite` — replace with suggestion_code (≤1 line, English, no narration).
- `false` — assertion proven false; must quote evidence.
**Tier** (review tag, JSON `tier` field):
- `Important` — false/stale.
- `Nit` — forbidden, narration, noise.
- `❓` — unsure. Never blocks.
A confirmed false/stale finding is Important and blocks. An unconfirmed false/stale stays ❓ and does not block. The reviewer emits a forbidden comment as 🔴 Important [comment] and blocks; narration and noise stay 🟡 Nit.
**Summary line format:**
```
Comments: judged N · keep K · delete D · rewrite R · false F · ❓ Q
```From fmflurry/settings-opencode, MIT.
More from fmflurry/settings-opencode
- 0.779score
interfectio-commentarum
poteto
Spawn Haruspex Commentorum, fix accepted findings, and offer encodings for claimed constraints.
SkillAFreshness: A★ 171Claude Code +9 - 0.655score
chimera
poteto
Spawn N parallel candidates at the same task, pick a base, graft the strongest parts of the losers into it.
SkillAFreshness: A★ 171Claude Code +9 - 0.649score
humanizer
poteto
Cut AI tells from any writing.
SkillAFreshness: A★ 171Claude Code +9 - 0.643score
e2e
fmflurry
Resolve this project's browser end-to-end stack before /e2e or e2e-runner writes tests.
SkillAFreshness: A★ 171Claude Code +9 - 0.643score
show-your-work
fmflurry
Keep a reviewable decision trail for long-running or unattended work: a TSV log with one row per decision (what, why, evidence, result).
SkillAFreshness: A★ 171Claude Code +9 - 0.643score
why
fmflurry
Use for 'why does X work this way', 'why we picked Y', design rationale, regressions, postmortems, or data-backed thresholds.
SkillAFreshness: A★ 171Claude Code +9 - 0.641score
verify-this
fmflurry
Verify a claim with fresh local evidence: restate it falsifiably, capture baseline and treatment, compare artifacts, and return VERIFIED, NOT VERIFIED, or…
SkillAFreshness: A★ 171Claude Code +9 - 0.640score
create-verification-skill
fmflurry
Use when creating or refreshing a project's verify-this override.
SkillAFreshness: A★ 171Claude Code +9 - 0.639score
angular-ddd
fmflurry
Domain-Driven Design for Angular/TypeScript: functional patterns with `type` aliases, `readonly` fields, pure rule functions, immutable value types, branded…
SkillAFreshness: A★ 171Claude Code +9 - 0.639score
codebase-exploration
fmflurry
Use when searching a repository, looking up symbols, callers, callees, or imports, and when deciding whether CodeMemory is on.
SkillAFreshness: A★ 171Claude Code +9 - 0.639score
patterns
fmflurry
Use when starting a feature from a skeleton project, or when adding a repository interface or a shared API response envelope.
SkillAFreshness: A★ 171Claude Code +9 - 0.639score
socratic-design
fmflurry
Use when a planning, design, architecture, or refactor decision is still open.
SkillAFreshness: A★ 171Claude Code +9
Signals
- Stars
- 171
- Forks
- 9
- Open issues
- 0
- Last commit (this folder)
- Oct 18, 2026 (18 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/fmflurry/settings-opencode
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from fmflurry
- 0.643score
why
fmflurry
Use for 'why does X work this way', 'why we picked Y', design rationale, regressions, postmortems, or data-backed thresholds.
SkillAFreshness: A★ 171Claude Code +9 - 0.643score
show-your-work
fmflurry
Keep a reviewable decision trail for long-running or unattended work: a TSV log with one row per decision (what, why, evidence, result).
SkillAFreshness: A★ 171Claude Code +9 - 0.643score
e2e
fmflurry
Resolve this project's browser end-to-end stack before /e2e or e2e-runner writes tests.
SkillAFreshness: A★ 171Claude Code +9 - 0.641score
verify-this
fmflurry
Verify a claim with fresh local evidence: restate it falsifiably, capture baseline and treatment, compare artifacts, and return VERIFIED, NOT VERIFIED, or…
SkillAFreshness: A★ 171Claude Code +9 - 0.640score
create-verification-skill
fmflurry
Use when creating or refreshing a project's verify-this override.
SkillAFreshness: A★ 171Claude Code +9 - 0.639score
codebase-exploration
fmflurry
Use when searching a repository, looking up symbols, callers, callees, or imports, and when deciding whether CodeMemory is on.
SkillAFreshness: A★ 171Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get comment-judge running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
comment-judge skill. Agent Mart. https://agentmart.dev/skills/fmflurry-comment-judge (last updated 2026-10-24)