Repository context. Gather first
<!-- BEGIN GENERATED: gather-block. Edit docs/conventions/gather-block/block.md, then run scripts/sync-gather-block.py -->
Run each command below as its own Bash call, all sent together in one message (worktree isolation).
Keep any bound in the command's own pipe (output limits).
Unless this section says otherwise, treat a failure (not a repository, git unavailable) as an unknown value and carry on. Keep these as body calls, never ## Pre-computed context lines (gather-block convention).
<!-- END GENERATED: gather-block -->
- Current branch,
git branch --show-current - Uncommitted .md files (empty = none matched or the probe returned nothing),
git status --porcelain | grep -E '\.md"?$' | head -10
Pre-computed context
Noise findings (sample): !${CLAUDE_SKILL_DIR}/scripts/detect.sh 2>/dev/null | grep -E '^(status:|Summary total:|Finding shape:)' | head -20 || echo "none"
Purpose
Tracked markdown (rules, skill bodies, CLAUDE.md, AGENTS.md, docs/, READMEs) accumulates nine NOISE shapes, distinct from FLAVOR, which the sibling /docs-hygiene:compress owns. Every reader pays to read past noise in every file that carries it. This skill is a read-only classifier: it surfaces candidates with treatment guidance; the author hand-applies every edit.
Three shapes, plan-reference, conversational-antecedent, and ticket-pr-residue, share names with the code-side sibling /code-tidying:remove-comments audit (if enabled) because they are the same authoring failure in a different file type. Ownership splits by file type, not shape: markdown is this skill's, everything else is the sibling's, and neither scans the other's files. The patterns are not shared code: the sibling classifies only a line's extracted comment portion, while this skill classifies whole prose, where the same words carry meaning far more often, so its patterns are tighter and several of the sibling's cues are deliberately not carried over.
Existence pre-check (before in-page noise)
Before classifying in-page noise, ask the whole-page admission question:
**could a reader with repository search derive this page's content from the
code itself?** A failing page is a deletion candidate. Its finding recommends
relocate-then-delete (salvage anything admissible first), never a line-level
noise treatment, and never auto-delete (this skill stays read-only).
Four categories always pass admission regardless of derivability: decisions,
domain language, thin navigation, and policy/wiring. For the four-factor
scoring behind a contested call, reuse /docs-hygiene:audit-derivability's
rubric by reference: invoke it via the Skill tool when available; otherwise
apply the admission question standalone.
Org override. This pre-check is a portable-baseline default. When the
consuming repository declares its own documentation-existence convention,
defer to it, resolved via the resolution ladder of
/discipline:follow-our-standards (if enabled): repo-declared source → repo's own conventions → this portable
baseline.
Only a page that passes admission proceeds to the nine in-page NOISE shapes below.
Noise shapes and treatments
| Shape | What it looks like | Default tier | Treatment |
|---|---|---|---|
| citation, historical citations | Dated incident citations, inline origin notes ("ported from X", "Merged 2026-07-24 from Y"), migration/rename narration ("Empirically observed 2026-…", "was renamed to", "we pivoted from") when the current form suffices | 1 | Relocate to a per-file ## Sources / ## History footer; strip when non-load-bearing (version control preserves history). Keep inline only when the date is load-bearing (methodology or freshness stamp). Origin cues are clause-anchored on both sides plus a list-bullet anchor, require column 0 (the code-side sibling allows leading whitespace), and stand down on a line carrying a link (inline or reference-style) or a bare URL, because a pointer is what /attribution:audit (if enabled) asks an author to write. The stand-down covers only a pointer, not the other two sanctioned forms: an attribution naming a work rather than a location ("Copied from Kent Beck, Tidy First?, chapter 3") is matched, as is a clause-leading descriptive use ("Copied from the source buffer, the bytes are then hashed"). Both land on relocate, not delete, and ## Sources is an exempt section, so relocating either is terminal |
| ghost-ref, refs into slice-scoped working paths | Concrete paths into a memory work slice (.work/<slug>/) and concrete children of the concern-scoped roots, cited from durable surfaces, plus any citation of the retired .claude/notes/ location. The citing document outlives the slice, so slice retirement breaks the reference, whether or not the consumer's memory tier is gitignored | 2 | 3-way classify: promote the content to a durable home, replace with a durable pointer (a commit-SHA permalink or the carrying PR number), or strip. Exemptions apply per matched path, never per line: slot-variable forms (<slug> as a schema placeholder, not a literal name) and the bare concern-scoped roots (.work/handoffs/, .work/reviews/, .work/running-retros/, .work/overengineering/, .work/enforceability/, .work/exports/, .work/lanes/, reserved first-level names under the memory root, with nothing concrete after) are not ghost refs. A concrete child under a concern root flags |
| preamble, "Why this file exists" openers | Opening section explaining motivation/history/rationale | 2 | Diataxis classify: KEEP on Explanation-quadrant files (rule bodies, ADRs, convention rationale); STRIP on Reference-quadrant files (data tables, registries, cheat-sheets), replacing with a 1-sentence orientation |
| enum-list, hard-coupled consumer lists | Tables/lists hardcoding N specific consumers that drift on every add/remove ("the following five skills…", bulleted /skill — role rosters) | 1 | Replace with a runtime derivation (a grep/list command cited inline) or a category citation; hardcode only when both fail |
| scope-meta, scope/loading meta-commentary | Body prose restating loading mechanics that config/frontmatter already owns ("Path-scoped to X", "Loads on Read of Y", "Auto-loads when…") | 1 | Strip the clause; the frontmatter/config is the single source of truth. Keep a genuine cross-ref riding the same sentence. Files with no scoping frontmatter may state scope in one sentence |
| plan-reference, plan/changeset narration | Prose pointing at the work that produced the page instead of its subject: replaces the old …, in this PR we …, Task 2 of the plan | 1 | Delete the plan/changeset frame and keep what the sentence asserts about the present subject, rewritten without it. A doc citing a plan artifact that still exists is a live cross-reference, not this shape. Matching requires a first-person actor behind in this PR, so the files changed in this PR is not flagged |
| conversational-antecedent, asides to the requester | Prose addressed to the person who asked for the page or to the conversation that produced it: As you asked, …, As requested, …, Per our discussion, …, per your request, like you said | 1 | Delete the address. The conversation is invisible to every future reader, and the assertion survives verbatim once the clause is cut. Two follower classes stand the shape down, because both name something a future reader can still open: an anaphoric adverb (as we discussed above), and in / under / at / on ahead of a document locator, meaning a § or #anchor, a section/chapter/step/table, a link or path, or a named durable document (as we decided in §3, in the ADR, on the ADR's recommendation). Those prepositions ahead of anything else are matched, so as we discussed in yesterday's meeting, as we decided in favor of X, as we agreed on Tuesday, and as we decided at the standup are residue. Tracker nouns are deliberately not locators: decided in issue 88 is a back-reference that ticket-pr-residue owns. The actor-less as requested matches only as a clause-final adverbial, so the attribution as requested by the client is not matched |
| ticket-pr-residue, tracker/PR back-references | A bare back-reference offered as the reason the prose says what it says: See PR #45 for the rationale, Tracked in JIRA-123, decided in issue 88, from the feature branch | 2 | Review: delete a bare back-reference, or relocate it to the ## Sources / ## History footer (an exempt section, so a relocated reference stops flagging). Carve-out: a markdown task-list item (- [ ] … #123, - [x] … #123) and a TODO(#123)-family marker are never flagged: both denote outstanding tracked work, where the reference is the actionable part of the line (the markdown form of the sibling's sanctioned-TODO exception). Nothing else is carved out: an inline parenthetical (… (tracked in #482)) stays Tier 2 so a reviewer rules on it, not the scanner. Routed, not flagged: in a SKILL.md this shape belongs to /skill-quality:check (if enabled), and in an agents/*.md to /harness-config:audit-instructions (if enabled) |
| negation, imperative prohibition with no positive alternative | An imperative prohibition (never, do not, don't, avoid, must not, should not) opening the sentence, with no positive alternative stated in that sentence ("Do not use markdown."). Soft-wrapped sentences are accumulated across paragraph lines before classification. Descriptive prose ("Older versions do not support this flag"), a mid-sentence cue (already-paired "Prefer X; never Y"), and a table row are out of scope | 2 | Rewrite to the positive target the prohibition implies ("Do not use markdown" → "Compose your response as smoothly flowing prose paragraphs"). Keep a negation only where the positive form genuinely loses the constraint, and then pair it with the positive in the same sentence. Never a deletion: the constraint survives; only its framing changes. This completes the write-side rule