Skip to content
Skills Library
Programming · Review & audit

comment-review

/comment-review

Code review focused exclusively on comment quality — not logic, naming, or structure. Use when the user says "/comment-review", "review komentarzy", "sprawdź komentarze", "przejrzyj komentarze", "comment review", or asks to check whether comments in a change are worth keeping. Reviews the current branch diff by default (auto-detects the base branch, or pass --base), or explicit file/dir paths when passed as arguments. Judges every comment against a focused rule set — no code-narration, decisions-only, not too long, no cross-file/doc/spec-id refs (file paths and bare requirement tokens like F1,

Author
grixu ↗
Repository
cc-toolkit ↗
Licence
MIT
Last repository change
26.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
1
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 26.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • SKILL.md zawiera komentarze HTML (1). Nie widać ich w podglądzie Markdown, a model je czyta.

What it does and when to use it

Code review focused exclusively on comment quality — not logic, naming, or structure. Use when the user says "/comment-review", "review komentarzy", "sprawdź komentarze", "przejrzyj komentarze", "comment review", or asks to check whether comments in a change are worth keeping. Reviews the current branch diff by default (auto-detects the base branch, or pass --base), or explicit file/dir paths when passed as arguments. Judges every comment against a focused rule set — no code-narration, decisions-only, not too long, no cross-file/doc/spec-id refs (file paths and bare requirement tokens like F1,

Triggers from the description

review komentarzysprawdź komentarzeprzejrzyj komentarzecomment review
Original author description

Code review focused exclusively on comment quality — not logic, naming, or structure. Use when the user says "/comment-review", "review komentarzy", "sprawdź komentarze", "przejrzyj komentarze", "comment review", or asks to check whether comments in a change are worth keeping. Reviews the current branch diff by default (auto-detects the base branch, or pass --base), or explicit file/dir paths when passed as arguments. Judges every comment against a focused rule set — no code-narration, decisions-only, not too long, no cross-file/doc/spec-id refs (file paths and bare requirement tokens like F1,

How it works

  1. Step 0 — Read the project's own conventions first
  2. Step 1 — Resolve scope
  3. Step 2 — Read the comments
  4. Step 3 — Judge each comment against the rules
  5. Step 4 — Report
  6. Step 5 — Offer to apply (only on confirmation)
Original SKILL.md headings · 226 lines, 2,201 words
SKILL.md preview
---
name: comment-review
description: >-
  Code review focused exclusively on comment quality — not logic, naming, or
  structure. Use when the user says "/comment-review", "review komentarzy",
  "sprawdź komentarze", "przejrzyj komentarze", "comment review", or asks to
  check whether comments in a change are worth keeping. Reviews the current
  branch diff by default (auto-detects the base branch, or pass --base), or
  explicit file/dir paths when passed as arguments. Judges every comment against
  a focused rule set — no code-narration, decisions-only, not too long, no
  cross-file/doc/spec-id refs (file paths and bare requirement tokens like F1,
  Q1, R2, §4.1), no banner sections, no change-state/ticket history, no
  process-narration disguised as a decision, no commented-out code, and nothing
  that contradicts the code, and no rationale parked on the wrong declaration when
  it belongs where the behavior lives — and returns a per-comment verdict (KEEP /
  REMOVE / REWRITE / MOVE / ADD) with a concrete suggested fix.
allowed-tools: Read, Bash, Grep, Glob, Edit, AskUserQuestion
---

# comment-review — review comments, nothing else

You review **comment quality only** — in every source file, **including test
files**. You do not review logic, naming, architecture, performance, or whether a
test is correct; you review the *comments* in all of them. If a comment is fine,
say nothing about it.

Your default stance is **"no comment beats a bad comment."** Bias hard toward
removal, and only ask for a *new* comment where a future reader is genuinely
stuck without one.

**The deletion test — apply it to every comment, especially the ones that sound
like rationale.** Mentally delete the comment and read the code without it. If
the only things lost are facts the code already states — its identifiers, its
types, the shape of a data structure, what a test asserts — the comment was dead
weight: REMOVE it. Domain vocabulary does not redeem a restatement: *"Dispatcher
receives the flat v3 contract — one entry per audit row"* reads like insight but
says exactly what the typed argument below it already says, so it fails the test.
A comment survives only when deleting it loses a *why* the code cannot express —
a constraint, a trade-off, an ordering rule, a non-obvious failure mode. When you
catch yourself defending a comment as *"documents the domain rule"* or *"the
mapping the code can't show,"* re-run the deletion test: usually the code *does*
show it.

A *why* that survives the deletion test can still be in the **wrong place** —
pinned to a declaration (an enum member, a constant, a type field) when it
actually explains the behavior of a method elsewhere. That is not a deletion
case; it is a relocation case. R12 covers it.

The `security`, `performance`, and `spec` lenses exist only in `/start-cr`; this
skill reviews comments and nothing else.

## Step 0 — Read the project's own conventions first

Before judging a single comment, run the **mechanical convention read** in
`${CLAUDE_PLUGIN_ROOT}/references/scope.md`: exact paths, repository root first. Its
step 0 is the standards pair — `CODING_STANDARDS.md`, then `CODING_STANDARDS.local.md`,
root only. They LAYER: both apply, and where they disagree `.local` wins per statement.
A tracked `.local` (`git check-ignore` fails) gets one note in the report's
skipped-files line. Then the rest of the list: `CLAUDE.md`, `AGENTS.md`,
`CONTRIBUTING.md`, `.cursor/rules`, the directory chain, `.claude/rules/*.md`.

Those convention files **suppress**: a sanctioned anchor-comment prefix
(`AGENTS-NOTE:`), a documented docblock style, or a banner convention the project
chose deliberately is not a finding. The standards pair may also **generate** one
`standards` finding per broken rule — only when it states an explicit, quotable comment
rule the file breaks (e.g. "every exported function has a docblock"), never from vague
prose, and never for a rule the `.local` file relaxes. It renders in this shape:

`` `standards` · <slug> · <sev> · L<lines> — "<quoted rule>" (CODING_STANDARDS.md › <section>) → <fix as a clause> ``

Slug: short kebab-case from the rule's wording. Severity from the rule's keyword:
MUST / MUST NOT / NEVER / ALWAYS → `high`; SHOULD → `medium`; MAY / prefer / consider →
`nit`; no keyword → `medium`. A `standards` finding sits **beside** the verdicts — it
is not a KEEP / REMOVE / REWRITE / MOVE / ADD and is not mapped onto one; an unsettled
fit is a one-line note, not a finding.

## Step 1 — Resolve scope

Parse the invocation arguments:

- **Arguments are file or directory paths** → review those targets in full
  (every comment line, not just changed ones). Expand directories to their
  source files. Skip the diff machinery below.
- **`--base <branch>`** → pass it straight through to the script as `--base <branch>`.
- **No path arguments** → review the current branch diff. Detect what exists with the
  bundled script, which resolves the base defensively (`@{upstream}`, then `origin/main`,
  `origin/master`, `main`, `master`) and covers committed, uncommitted, and untracked
  changes:

  ```bash
  python3 ${CLAUDE_PLUGIN_ROOT}/scripts/get_changes.py --scope uncommitted
  python3 ${CLAUDE_PLUGIN_ROOT}/scripts/get_changes.py --scope committed
  ```

  (append `--base <branch>` to both when the user passed one.) Read the `count` of each:

  - both zero → before concluding, look for an `alternate` object in the `committed`
    output: the script adds it when the resolved base saw nothing but another base
    (usually `origin/main`) holds real commits, which is what a freshly pushed branch
    tracking its own remote counterpart looks like. When it is there, say which base was
    used, which one differs and by how many files, and offer to re-run with
    `--base <alternate.ref>` — do not report "nothing to review" over it. With no
    `alternate`, tell the user there is nothing to review and stop;
  - exactly one non-zero → use that scope automatically;
  - both non-zero → ask with `AskUserQuestion` which to review — **Uncommitted**
    (working tree vs HEAD), **Committed** (HEAD vs base), or **Both** (base → working
    tree) — putting the file counts you just saw in each option's description.

  Re-run the script once with the chosen `--scope` to get the canonical file list. Each
  entry carries `path`, `status`, `binary`, an optional `untracked`, plus the run's
  `diff_args`. To see a file's change:

  - tracked → `git diff <diff_args> -- <path>`;
  - untracked (`"untracked": true`) → `git diff` shows nothing, so read the file
    directly and treat every line as added.

  Base resolution lives in the script, which computes the fork point internally (via a
  subprocess `git` call the Bash hook never sees) — so there is no `git merge-base`
  command to run here, and nothing for a "block the word merge" hook to catch.

  Review only the changed files, focusing on **added/modified comment lines**
  and on code whose meaning changed (a comment can rot when the code under it
  moves). If the script exits with "could not resolve a base ref", tell the user and
  offer to review uncommitted changes only or to pass `--base <branch>` — never guess
  silently.

### In scope vs skip

Which files get judged — the in-scope extensions, the skip list, and the rule about
a skipped dependency manifest that is the substance of the change — is in
`${CLAUDE_PLUGIN_ROOT}/references/scope.md`. Docs and `.md` files are skipped here:
the prose *is* the content. Note every skipped file in one line so coverage is honest.

## Step 2 — Read the comments

Open each in-scope file with `Read`. For large files, use `Grep` to locate
comment lines (`//`, `/* */`, `#`, `"""`, `<!-- -->`) first, then read those
regions with context. You must read the **code around each comment** — every
verdict is a judgment about the comment *relative to its code*, never a
keyword match.

**Enumerate before you judge.** List every comment in the file first — banners and
dividers included, since a run of similar-looking fences is where one quietly goes
unlisted — then work that list. A comment you never enumerated cannot get a verdict,
and a silently skipped one reads as a KEEP to the author.

## Step 3 — Judge each comment against the rules

For every comment, assign one verdict: **KEEP**, **REMOVE**, **REWRITE**,
**MOVE**, or **ADD** (an R2 *missing WHY* at genuinely non-obvious code — the one
verdict with no existing comment). Run the **deletion test** from the top of this
skill on every comment first — most findings fall out of it directly.

**Read the full rule set before judging.** Read
`${CLAUDE_PLUGIN_ROOT}/references/rules/comments.md` completely (read it whole,
without a range limit). It holds the load-bearing detail for every rule below —
the examples, the exceptions, and the false-positive traps that keep this review
from being noisy. The index here is only a map; the verdicts live in that file.

- **R1** — No narrating *what* the code does (a restatement, at any abstraction, is dead weight).
- **R2** — Comments explain *decisions* (the WHY); surface a *missing* WHY (verdict **ADD**) only at genuinely non-obvious code.
- **R3** — Not too long; trim to the single load-bearing sentence.
- **R4** — No cross-file / internal-doc / **spec-id** references — file paths *and* bare requirement tokens (`F1`, `Q1`, `R2`, `§4.1`, `AC-3`); strip the token, keep the fact. External pins (RFC/CVE) stay.
- **R5** — No banner / section-divider comments (a real information-bearing diagram stays).
- **R6** — No change-state / history comments; a present-day constraint that cites a ticket stays.
- **R7** — No process-narration disguised as a decision; a genuine invariant stays.
- **R8** — No commented-out code (a framed usage example stays).
- **R9** — No comment that **contradicts** the code — surface these **first**.
- **R10** — Consistent with the file's own commenting style.
- **R11** — In **test files** the bar is higher: the default reverses to **REMOVE** when unsure. A test file is one matched by the `## File kinds` test globs in `${CLAUDE_PLUGIN_ROOT}/references/scope.md` (directory and filename patterns) — a mechanical match, not a judgment from the file's contents or its name's flavour.
- **R12** — Rationale belongs where the behavior lives: **MOVE**/**REMOVE** a *why* orphaned on a declaration.

When two rules collide, the most specific finding wins; when genuinely unsure,
default to KEEP and move on (low signal is worse than a missed nitpick) —
**except in test files, where R11 reverses this to default-REMOVE.** A "note"
prefix (`NOTE:`, `NB:`, `IMPORTANT:`) buys nothing: strip it and judge the
remainder. The exact wording, examples, and exceptions for all of the above are
in `references/rules/comments.md` — consult it per comment rather than relying on this map.

## Step 4 — Report

Group findings by file. For each finding give:

- `path:line` and the **verbatim quoted comment**
- the rule it matches (`R1`–`R12`) and the **verdict** (KEEP / REMOVE / REWRITE /
  MOVE / ADD)
- a one-line reason
- a concrete **suggested fix** — the exact replacement text for REWRITE, or
  "delete these lines" for REMOVE, or the proposed new comment for a missing-WHY.
  For **MOVE**, name the **destination** (the method/usage site you located, or
  "the method that performs the behavior" if the search was inconclusive) and
  give the exact comment text to place there, plus "delete from the declaration."
  The fix must itself obey the rules: a replacement introduces no file/doc
  cross-reference (R4) and no divider/banner (R5) — inline the fact instead. **In
  particular, every spec/requirement-ID fragment is scrubbed out of the replacement
  text** — the most common leak is rewriting a comment but leaving the `(R2)`,
  the `F1:`, or the `§4.1` glued on. The replacement ships without any such token.

List any **R9 (contradicts-the-code)** findings first — they mislead readers and
are the most urgent to fix. Otherwise order findings within a file by line
number. A `standards` finding (Step 0) is its own bullet under the file, in the
Step 0 shape, after the verdict bullets; it carries no verdict. End with a short tally
(`N comments reviewed · X remove · Y rewrite · W move · V add · Z keep-as-is`, plus
`· S standards` when there are any) and the list of skipped files with reasons. If you
found nothing, say so plainly.

A filled-in report reads like this:

<example>
### src/gateway/retry.ts
- L12 · `// Retry-After handling per RFC 9110 §10.2.4` — **KEEP** (R4 external pin) — an externally pinned spec stays.
- L31 · `// increment the attempt counter` — **REMOVE** (R1) — restates `attempts++` on the next line → delete these lines.
- L44 · `// §4.1 caps a single charge at 500_000 minor units` — **REWRITE** (R4) — the spec-id points at an internal doc; the cap itself is worth keeping → `// the ledger rejects a single charge above 500_000 minor units`
- L58 — **ADD** (R2) — the 250 ms retry gap is a gateway constraint no reader can infer → `// 250 ms — the gateway rejects retries closer than its own debounce window`

### src/gateway/backoff.ts
- L7 · `// ===== Backoff =====` — **REMOVE** (R5) — a section fence carrying no information → delete these lines.

**Tally:** 14 comments reviewed · 2 remove · 1 rewrite · 0 move · 1 add · 10 keep-as-is. Skipped: pnpm-lock.yaml (lockfile).
</example>

## Step 5 — Offer to apply (only on confirmation)

Never edit during the review. Immediately after presenting the report, in the **same
turn**, ask whether to apply the REMOVE, REWRITE, and MOVE fixes — the tally ends the
report, not the turn, and a turn that ends on the report leaves the verdicts
unactionable until the user prods it. Apply with `Edit` only the ones the user
confirms; leave **ADD** (missing-WHY) suggestions for the author to write, since
only they know the real reason. Locate each site by its **content** rather than the
line number you recorded, and apply the already-scrubbed replacement text from the
report.

For a confirmed **MOVE**, delete the comment at the declaration, and insert the
rewritten comment at the destination **only when you located a single
unambiguous usage site**; if the destination was ambiguous, apply just the
deletion and hand the user the exact text to paste, so you never drop a comment
into the wrong method.

<review_tone>
Say in one sentence what you are about to do before the first tool call, then work.
Lead the wrap-up with the outcome: what the review found, then the detail. Match the
report to the findings — a clean file gets a short report, not a padded one.
</review_tone>

Versions

RepositoryScoreLicence
This page · grixu/cc-toolkit100MIT
stirling-tools/stirling-pdf100MIT
aglabo/deckrd100MIT

Database snapshot: 13.11.2026 · package version 55cf62711b00 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90how-to-comment-review
    When the user asks to review, trim, tighten, or evaluate code comments in a file, diff, or branch -- or asks whether comments are too long, redundant, missing, ambiguous, or inconsistent in their terminology -- consult this skill to decide whether to delegate to the…
  • 100pr-review
    Bug-first, evidence-only review of a pull request or branch-versus-base diff. Use when the user explicitly asks to review a pull request, supplies a PR number or URL, names a branch comparison, or asks to review changes since a fixed point.
  • 100comments-docs
    Reviews comment quality and documentation practices: the four comment types, comments-first workflow, and comment rot. Use when reviewing comments or docs, when comments just repeat the code, or when something is hard to describe in a sentence. Not for naming or code obviousness…
  • 100comment-policy
    Use when writing or editing code, adding/changing comments, or before committing a code diff — delivers FR-22's tripwire + retrieval-pointer comment policy at write time. Do NOT use for prose/doc edits, non-code tickets, or as a review gate (that's `code-review`).
  • 100gh-address-comments
    Use when addressing GitHub PR review comments or issue comments on the current branch with gh CLI, including auth checks, comment triage, edits, verification, and replies.
  • 100pr-comment-attribution
    Prefix every PR comment the agent posts with the literal "[Claude Code 🤖]" marker so reviewers can tell the agent's replies apart from the account owner's own. Use whenever posting a PR review-thread reply, an inline review comment, or a top-level issue comment on a PR — via gh…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.