I changed a lot of files and I want to trust the batch without reading every diff — and come
out understanding what changed, not alienated from my own code. So collapse the diff into a
short, teaching report: let the machine carry the mechanical load, and spend judgment (and my
attention) only where a machine can't.
Read first: the repo's code-style.rules.json (each rule's verify command + exemplars), CODE-STYLE.md,
PROJECT.md/CONTEXT.md, and my original prompt/intent (ask me for it if you don't have it —
Tier 3 checks the diff did what I asked and flags scope creep). No ruleset? Offer
grill-me-code-style(-with-docs) first.
Scope the diff (ask if unclear): git diff <base>...HEAD (branch/PR), the uncommitted working
tree, or a named PR. That file list is the review surface.
The three tiers — cheapest enforcement first
Walk every rule in the ruleset by its verify command. Most never reach me:
- Tier 1+2 — deterministic, whole-tree, auto-fix (every rule with a real
verify command).
Run the repo's gate: biome ci . / lint:fix, then verify (biome + tsc + tests + build), plus
any repo style script a rule points at (e.g. pnpm style). Those rules all run here — across
all files at once. Auto-fix everything safe, re-run to green. I read nothing for this tier.
Never weaken a rule/test to go green — fix the code.
- Tier 3 — judgment, fanned out over the diff. For rules whose
verify is judgment (taste,
architecture, placement) + my intent, split the changed files into slices and dispatch
read-only sub-agents (see below). Each returns only deviations — never a file dump.
Fan-out (Tier 3)
Group the changed files into coherent slices (by layer/feature/directory). For each slice, launch a
subagent_explore with: the slice's file list, code-style.rules.json (the judgment rules +
exemplars), the relevant CONTEXT.md terms, and my original prompt. Ask each to report, per
finding: file:line · which rule/intent it breaks · the one-line fix · the exemplar it should
mirror. Tell them explicitly: report deviations only; stay silent on conforming code. Aggregate,
dedupe, and rank (intent-misses and architectural breaks first, nits last).
The report — teaching, deviations-only
Open with orientation, then findings:
- Layer/flow map — an ASCII map (via
ascii-architecture-flow-mapper) of the layers/modules the
diff touched and how the change blended in (new module → which layer, who calls it). This is
the lesson: I see the shape of what changed, not 300 diffs.
- Intent check — one line: did the diff do what I asked? Any scope creep?
- Findings — each:
file:line, the rule/intent broken, why it matters (the rationale /
ADR / the pattern it protects — this is how I learn), the fix, and the exemplar to imitate.
Clean slices get a one-line "✓ conforms" — never a diff dump.
- Verdict —
verify state + counts per tier. Auto-fixed (Tier 1+2) items are summarized, not
itemized.
Friction: auto-fix everything the Biome tiers own; for each judgment finding, don't silently
rewrite architecture — surface it and make me decide (keep / fix / accept). That decision is
where I learn. Render the report as an interactive planpage (before-after / plan-brief) when
I want to approve/reject findings in the browser; otherwise ASCII inline.
Never
- Never claim the batch is clean from reading alone — Tier 1+2 must be green (run it).
- Never weaken a Biome rule, edit the config, or skip/loosen a test to reach green — fix the code.
- Never dump conforming diffs — the report is deviations + the teaching map only.
- Never rewrite a
judgment-level architectural choice without my decision.
- Never review a
judgment rule from memory — read it (and its exemplar) from the ruleset.
1---2name: grill-me-code-style-review3description: Review a large changeset (a branch, working tree, or PR — tens to hundreds of files) against a repo's code-style.rules.json so the user can trust it WITHOUT reading every diff, and LEARN the architecture from a short teaching report instead. Runs Biome (+ its grit plugins) to auto-fix the mechanical/structural channels across all files, then fans out sub-agents over the diff to check only the judgment-channel rules + the user's original intent, and returns a deviations-only report that opens with a layer/flow map of what changed and teaches the "why" behind each finding. Use when reviewing/auditing a big diff, a PR, or an AI-generated changeset, or the user says "review this", "can I trust this diff", "audit these changes". To coach while building, use grill-me-code-style-coach; to create the ruleset, grill-me-code-style.4---56<what-to-do>78I changed a lot of files and I want to **trust the batch without reading every diff** — and come9out **understanding what changed**, not alienated from my own code. So collapse the diff into a10short, teaching report: let the machine carry the mechanical load, and spend judgment (and my11attention) only where a machine can't.1213**Read first:** the repo's `code-style.rules.json` (each rule's `verify` command + exemplars), `CODE-STYLE.md`,14`PROJECT.md`/`CONTEXT.md`, and **my original prompt/intent** (ask me for it if you don't have it —15Tier 3 checks the diff *did what I asked* and flags scope creep). No ruleset? Offer16`grill-me-code-style(-with-docs)` first.1718**Scope the diff** (ask if unclear): `git diff <base>...HEAD` (branch/PR), the uncommitted working19tree, or a named PR. That file list is the review surface.2021</what-to-do>2223<supporting-info>2425## The three tiers — cheapest enforcement first2627Walk **every** rule in the ruleset by its `verify` command. Most never reach me:28291. **Tier 1+2 — deterministic, whole-tree, auto-fix (every rule with a real `verify` command).**30 Run the repo's gate: `biome ci .` / `lint:fix`, then `verify` (biome + tsc + tests + build), plus31 any repo style script a rule points at (e.g. `pnpm style`). Those rules **all** run here — across32 all files at once. **Auto-fix everything safe**, re-run to green. I read **nothing** for this tier.33 Never weaken a rule/test to go green — fix the code.342. **Tier 3 — judgment, fanned out over the diff.** For rules whose `verify` is `judgment` (taste,35 architecture, placement) + **my intent**, split the changed files into slices and dispatch36 read-only sub-agents (see below). Each returns **only deviations** — never a file dump.3738## Fan-out (Tier 3)3940Group the changed files into coherent slices (by layer/feature/directory). For each slice, launch a41`subagent_explore` with: the slice's file list, `code-style.rules.json` (the `judgment` rules +42exemplars), the relevant `CONTEXT.md` terms, and **my original prompt**. Ask each to report, per43finding: `file:line` · which rule/intent it breaks · the one-line fix · the exemplar it should44mirror. Tell them explicitly: **report deviations only; stay silent on conforming code.** Aggregate,45dedupe, and rank (intent-misses and architectural breaks first, nits last).4647## The report — teaching, deviations-only4849Open with **orientation, then findings**:5051- **Layer/flow map** — an ASCII map (via `ascii-architecture-flow-mapper`) of the layers/modules the52 diff touched and **how the change blended in** (new module → which layer, who calls it). This is53 the lesson: I see the shape of what changed, not 300 diffs.54- **Intent check** — one line: did the diff do what I asked? Any scope creep?55- **Findings** — each: `file:line`, the rule/intent broken, **why it matters** (the rationale /56 ADR / the pattern it protects — this is how I learn), the fix, and the exemplar to imitate.57 Clean slices get a one-line "✓ conforms" — never a diff dump.58- **Verdict** — `verify` state + counts per tier. Auto-fixed (Tier 1+2) items are summarized, not59 itemized.6061**Friction:** auto-fix everything the Biome tiers own; for each **judgment** finding, don't silently62rewrite architecture — surface it and **make me decide** (keep / fix / accept). That decision is63where I learn. Render the report as an interactive **planpage** (`before-after` / `plan-brief`) when64I want to approve/reject findings in the browser; otherwise ASCII inline.6566## Never6768- Never claim the batch is clean from reading alone — Tier 1+2 must be green (run it).69- Never weaken a Biome rule, edit the config, or skip/loosen a test to reach green — fix the code.70- Never dump conforming diffs — the report is deviations + the teaching map only.71- Never rewrite a `judgment`-level architectural choice without my decision.72- Never review a `judgment` rule from memory — read it (and its exemplar) from the ruleset.7374</supporting-info>