--- name: comment-discipline description: "Scan added comments in the working diff and flag WHAT-not-WHY comments, paraphrase-of-next-line noise, and other recurring comment anti-patterns." user-invocable: true disable-model-invocation: false allowed-tools: - Read - Grep - Bash --- # Comment Discipline Code is the source of truth for **what** something does. Comments earn their place by explaining **why** — a hidden constraint, a non-obvious invariant, a workaround for a specific bug, behavior that would surprise a reader. Most comments added during a feature change are noise: paraphrases of the next line, status updates that decay, or references to a PR no one will look up. This skill scans the working diff for added comments and flags the recurring anti-patterns. It does not delete; it reports. ## Invocation - `/comment-discipline` — scan added/changed comments in the working diff - `/comment-discipline --staged` — only scan staged changes - `/comment-discipline ` — scope to a file or directory ## What it scans Lines beginning with `//`, `#`, `--`, `/*`, ` *`, `