---
description: "Before fixing the one thing you were told about, count how many of the same kind exist — set a denominator and report N out of total"
when_to_use: "Right after you fixed one mistake, or told the assistant to fix one, when the same kind may be elsewhere"
allowed-tools: Read, Grep, Glob
argument-hint: "[what to run it on]"
---

$ARGUMENTS is a situation where **one thing was pointed out**. Do not fix it first. Count how many more of the same kind there are.

What gets pointed out is almost always **the one that was noticed**. The ones that were not noticed never even get reported. Fix only the one and the same complaint comes back next week.

Four steps.

1. **Define the kind in one sentence.** Write down the **kind**, not **the instance**. Not "article 3 has no photo" but "articles are going out with no photo". Define it too narrowly and this becomes a check of that one item, not a sweep. Too broadly and it cannot be counted. **If you cannot write it in one sentence, you do not yet know the kind.**

2. **Establish the denominator.** How many things could carry this defect in total — files, articles, functions, paragraphs. **Without a denominator the result cannot be counted**; where there is none, write "scope unknown" first.

3. **Sweep all of them.** Everything, not a sample. State the method of sweeping first (one command, a listing, opening each) and record whatever that method cannot reach.

4. **Report as N out of total** — "3 of 5". Only then fix. And fix in order of **most harmful first**, not the one that was pointed out. Those two are usually different.

Finish with two lines: **why this kind arose** (once is a slip; several is structural) / **what will tell you first the next time this kind appears**.

If the count comes back as just the one that was pointed out, write that. "1 of 12" is a result too. Never widen the kind to make the number look bigger.
