Skip to content
2 changes: 1 addition & 1 deletion .claude/skills/pre-review/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ description: Run the checks a branch owes before review (lint, the suites it tou
3. Put the block in the hand-back, whole, and answer each list above its `result:` line: for each call that sorts or picks by a label, a name or a position, why that order is allowed ("What may follow names" in `CLAUDE.md`); for each added test of a choice or an order, how many candidates it has (twenty or more, or a permutation of six); for each run of changed lines no corpus graph executed, its disposition ("Coverage of a change" in `.claude/rules/fuzzer-corpora.md`); for each file the change shares with another open pull request or lane branch, that this branch is stacked on that one, or why it need not be (two changes that each owe a pins run share the fuzzer's pins: the pull requests that do are listed too, and the lane branches counted). An instruction file the change edits that the block lists as at or near its limit is trimmed or split before review, not answered. The first list sees calls only: an order inherited from a loop over a list already in label order is still yours to look for.
4. When the work has a brief with a shape matrix, add `--matrix BRIEF --hand-back DRAFT`: the block then lists each cell (a table row whose first column is a number such as `6.11`) that the draft does not account for. Name the cell, or a range such as `6.1–6.4`, at the start of a line, a list item or a clause after a semicolon, or after the word "cell", and right after it its test in backticks, its seed, or `unchanged`, `stopped` or `not done`.

Before every push that starts CI, run `python3 -I S --pre-push [BASE]` first: lint, a search of every tracked text file for a conflict marker a merge or rebase left (`<<<<<<<` or `>>>>>>>` at the start of a line), `Scripts/check-claude-instruction-files.sh` (each instruction file's limit and what the rules load together for one source file, which "Check Markdown links" fails on), then side by side the changed-line coverage script over the whole suite (generated code not compiled), with every line the change did not touch that a test ran on `BASE` and none runs now (the base is measured once per machine and kept; each such line fails the check, and since CI also counts the other platform, push over one only by saying in the pull request why that platform executes it), the tests that fail, in two groups, "new on head" and "also failing on base" (the base's failures are kept with its counts; only a new one stops a push, and a head with none reads `PUSH (inherited failures: N)`; the suites the change touches run a second time with their generated code compiled, since the whole suite skips that compile and a test whose verdict rests on it passes there whatever the code, and the step says so), and CI's release build of the tool, which fails on a compiler warning under `Sources/` or `Plugins/`. It takes minutes, asks GitHub nothing, pushes nothing and starts no run, and prints a "Pre-push block" that names the head and the toolchain that compiled it. A pass is of that toolchain only: CI builds with Swift 6.2, Xcode 26 and Swift 6.3, so code a newer compiler accepts can still fail there. It is not the pre-review block. While writing a change, `python3 -I S --changed-lines [BASE]` runs the coverage script alone in the same worktree, so both use one warm build.
Before every push that starts CI, run `python3 -I S --pre-push [BASE]` first: lint, a search of every tracked text file for a conflict marker a merge or rebase left (`<<<<<<<` or `>>>>>>>` at the start of a line), `Scripts/check-claude-instruction-files.sh` (each instruction file's limit and what the rules load together for one source file, which "Check Markdown links" fails on), the tests `BASE` has and the head lacks (a test is its function's name wherever its file is; one whose body is the same or nine tenths alike under a new name is renamed; one a commit of the branch removes is listed with that commit; any other fails the check, since a merge that took one side of a conflict dropped it and the suite still passes without it), then side by side the changed-line coverage script over the whole suite (generated code not compiled), with every line the change did not touch that a test ran on `BASE` and none runs now (the base is measured once per machine and kept; each such line fails the check, and since CI also counts the other platform, push over one only by saying in the pull request why that platform executes it), the tests that fail, in two groups, "new on head" and "also failing on base" (the base's failures are kept with its counts; only a new one stops a push, and a head with none reads `PUSH (inherited failures: N)`; the suites the change touches run a second time with their generated code compiled, since the whole suite skips that compile and a test whose verdict rests on it passes there whatever the code, and the step says so), and CI's release build of the tool, which fails on a compiler warning under `Sources/` or `Plugins/`. It takes minutes, asks GitHub nothing, pushes nothing and starts no run, and prints a "Pre-push block" that names the head and the toolchain that compiled it. A pass is of that toolchain only: CI builds with Swift 6.2, Xcode 26 and Swift 6.3, so code a newer compiler accepts can still fail there. It is not the pre-review block. While writing a change, `python3 -I S --changed-lines [BASE]` runs the coverage script alone in the same worktree, so both use one warm build.

A block is of one head. Reviewing a hand-back, compare the block's `head:` with the commit under review and run `--report` on that commit when in doubt: a hand-back with no block, a block of another head, or one that says `NOT READY` goes back before it is read.

Expand Down
Loading
Loading