Skip to content

chore(skills): resolve the skills issues filed up to #2407 - #2379

Merged
OmarAlJarrah merged 270 commits into
mainfrom
chore/skills-gaps-2301-2372
Dec 2, 2026
Merged

OmarAlJarrah merged 270 commits into
mainfrom
chore/skills-gaps-2301-2372

Conversation

@OmarAlJarrah

@OmarAlJarrah OmarAlJarrah commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

Summary

Resolves every skills: issue filed up to #2407 that was still open: each gets the rule, probe or route it asked for, and each that asks for a decision gets one.

Decisions

  • Rule 5.28 (skills: decide whether rule 5.28 is a departure, as 59 enums start at iota #2308). The rule binds as its reason reads (departures.md#enum-zero-states-its-meaning). An enum starts at iota + 1, names its zero for the unset state (NoRole, FormatNone), or says in the zero constant's comment that an unset value means that member, as idRequired does. 65 production enums start at iota at 4a7a384. 19 name an unset, none or invalid zero, and 2 document their default. The other 44 are listed, each with the literals and lookups that produce its zero, in style: 44 enums start at an ordinary member and say nothing of their zero #2378, which rules-the-tree-still-breaks now cites.
  • A function over a type and the method cap (skills: functional-core does not say whether a function over a struct counts against its method cap #2365). A function in a type's own package taking it, or a pointer to it, as any of its parameters and reading its fields counts as one of its methods (design-rules.md#function-over-a-type-is-its-method), as it could be one. This departs from the issue's first reading, which counted a function whose first parameter is the type: reordering parameters evades a first-parameter count, and the lowerings' pattern of lowering.Ctx first escapes it, as 34 of the 40 functions taking allOfComposition take it after another parameter. A function in another package, as each lowering over lowering.Ctx is, counts for none: 458 functions outside lowering take lowering.Ctx first, the ones openapi: rename the schema package's admission types and take admission off the method cap #2081 moved there among them. The way out is a narrower input, as openapi: rename the schema package's admission types and take admission off the method cap #2081 took (design-rules.md#leave-a-type-by-a-narrower-input). Counted that way at 4a7a384, a go/parser count puts twenty types under compilers/openapi/internal over 20 and the rule's one-line probe eighteen, missing stand and finisher, whose signatures wrap; counting only the functions that read one of a type's fields, thirteen stay over, neither of those two among them. archtest: count a function taking a type against that type's method cap #2377 lists all twenty and widens the archtest count after they split. morphic-designing-code's "Already checked" leaves archtest a method cap's receivers and cites the rule for the functions.
  • Unpushed commits on an open PR (skills: the review setup has no form for unpushed commits on an open PR #2355). The setup gains a third case: the worktree takes the local head after the fetch, which review-head-in-own-ref now names, and the gate cell stays unreached until a push gives that head a run, as ci-is-the-gate says of any head with no run. The alternative, pushing before every round, was rejected because it puts unreviewed commits on the PR.
  • Rewording below the tip (skills: no recipe rewords an unpushed commit below the branch's tip #2357). git filter-branch --msg-filter, changing only the target commit's message by $GIT_COMMIT, rewords an unpushed commit below the tip whether or not a merge follows it, and keeps every tree, a fix committed inside a merge included, where git rebase --rebase-merges re-merges a merge that merged cleanly and drops such a fix, exiting 0, with --autosquash or without. Its range excludes origin/main, as filter-branch would otherwise rewrite main's signed commits as the branch's own, which no tree diff shows. One rule, reword-an-unpushed-commit, covers both cases and sits in merging-main.md. It names the message file by an absolute path, since filter-branch runs its filters in .git-rewrite/t, where a relative path fails the filter. --amend reaches only the tip and rebase -i needs an editor, and git history reword was left out because git marks it experimental. A per-commit tree diff, in topological order, checks the result, and an own-commit count checks that main's commits stayed main's.
  • Test-first against an API not built yet (skills: no rule says how to write and show red a test for an API not built yet #2364). A stand-in that builds makes the red --- FAIL, not a build failure. Its commit may fail only those tests, and it is pushed only together with the commit that fills it.
  • A seam with no production caller (skills: cost-tests gives no route where the code has neither a budget nor a seam #2359). A seam a cost test adds is set by production and replaced or wrapped by the test, as OnVerify wraps the engine's verifier. An option or parameter production passes only as nil, a zero or a no-op, for tests alone to fill, is refused by design-rules.md#production-sets-each-parameter, split from no-forwarding-layer at its word cap, whose Rule and Probe cite it; its Probe lists each production call through callgraph, as a line grep missed split calls and calls through a value, the parameter refused where each passes nil, a zero or a no-op, and each production setting of an option, and cost-without-a-budget-or-seam cites it rather than restating the case. The fallback is statement counts in the PR body.
  • A moved provenance pointer (skills: morphic-changing-the-ir does not say whether moving a node's provenance pointer needs an IRVersion bump #2346). Moving one node's pointer changes a value, not a key's meaning, and bumps nothing. A hint composed from that position moves with it, as commonFor in compilers/openapi/internal/schema/hoist.go composes an anonymous node's hint from the pointer it records, and the skill's Version step then decides the bump, as it does for any moved hint. A change to which place a whole class records bumps, as feat!: own I/O in the engine and lower each file of a split spec #1009 did for 0.17.0.
  • Another contributor's PR (skills: one-owner-per-shared-fact and review-together-what-touches-one-fact omit another contributor's open pull request #2351). It is recorded in the plan and the touching PR bodies, and left to its author. trial-merge-open-prs still holds where its conditions do, departing from the issue's draft: a trial merge reads the other PR's head locally and writes nothing to it, and it is how a change learns it breaks another open PR, as one adding a line to every conformance golden broke those adding goldens (fix(compilers/openapi): compose a field redeclared as models #1181).
  • Stopping a plant run on macOS (skills: three probes need Linux tools that macOS lacks #2301). stop-a-plant-run checked a session with setsid and ps -s, which macOS lacks. It now stops a run by a new rule, toolchain.md#list-a-run-by-descent, which freezes the run, and each process it lists at every depth, with kill -STOP before any kill, then kills the run and each listed with kill -KILL and sees them gone. pgrep -x timeout would list every run's on the machine, against toolchain.md#stop-by-pid-not-pattern, and pgrep -P <the run's pid> lists the run's children alone, missing a timeout that xargs starts. Without the freeze, a run looping over timeout starts another the moment the listed one dies, which no list holds. The issue's two other Probes, run-a-limit-or-a-stray-panic-ended's timeout and background-start-ignores-sigint's env --default-signal=INT, now name their macOS spellings, gtimeout and genv from coreutils.

Moves. Two reference files were close to the 4,000-word cap, and a third reached it beside #2354, so their rules moved, with every citation updated. The emitter design rules moved verbatim; of the run-reading rules, five were then edited for #2360, #2361 and #2368, and three are new:

Lint and archtest.

  • skills_lint.py passed any span shaped as an ir/ or pass/ code and skipped every openapi/ span, so it read the real compile/registry-refused as a missing path while passing an invented ir/bogus-code and a missing openapi/gone.go, which skills: skills_lint flags ir/ and pass/ diagnostic codes as missing tree paths #2296 asked it to catch. It now reads the codes the module builds, in Python, from the Go files it already lists that are neither tests nor testdata fixtures, untracked ones included: each "<prefix>/<words>" string literal, one word included (openapi/validation, engine/unencodable); each family written as a literal head, one expression and a literal tail, as irverify writes "ir/duplicate-" + ir.RefNoun(...) + "-id", which matches the head and tail with any words between; and each name joined to more words by a "/", resolved to the literal a declaration binds it to, as diag.Validation + "/" + class builds openapi/validation/<class>. A family is read on one line and a name from a word's start, so the tail of a longer identifier is no name. A span naming one passes, and any other span shaped as a path is held to the tree.
  • The retired-page check had two copies: TestDocuments_CiteNoRetiredPage, whose walk passes over dot directories and so never read the skills, and a pattern in skills_lint.py. Both matched the name anywhere, so their-design read as a citation. archtest's walk now reads .claude/skills beside the root, through keydoc.DocumentTrees, which the plus-marker, link and test-name checks and keydoc.Citations walk too; its pattern starts at a word boundary so their-design passes, and the lint's copy is gone.
  • skills_lint.py held the skills' links, design-document headings, keyed entries and test names, which archtest, or for a keyed entry TestRecord_CitationsNameAnEntry and TestLoweringSpec_CitationsNameARule, hold on every other document, while their walks passed over .claude (skills: move skills_lint's link, heading and test-name checks into archtest #2381). TestDocuments_LinksResolve and TestDocuments_NameOnlyTestsThatExist now walk keydoc.DocumentTrees too, and the test-name check also reads the test names in a go test command's -run pattern, anchored or not, each held to a test of that name or of its _ family that the alternative matches as go test -run matches it, so ^TestFamily$ takes no TestFamily_ test while TestFamily$ takes TestFamily_TestFamily, which the skills write and only the lint read, and the other documents write and nothing read; TestName, CLAUDE.md's example, joins the placeholders. The reader takes a name only from one line's code span, whole or in a go test command's -run pattern, so a -skip pattern, another command's pattern, a span wrapped across lines and a name in prose stay unread, as testNameProblems' doc comment says; no document writes one today. The lint's four copies go, with their test rows and its scan of test files, and with them its misreading of a go list template field such as {{.TestImports}} as a test. keydoc.Citations, which those two read citations through, now walks the skills too, so a skill's citation of a parser-library entry or a lowering rule is held to an entry, the forms without docs/ that main's lint held among them (parser-library.md#<key>, compilers/openapi.md#<key>), which archtest, reading a docs/ path's heading, does not; the specification's citations are read by its file's name, so openapi.md#<key> is held too. The tree list moves into internal/keydoc (DocumentTrees, WalkDocuments, SkillsTree), which archtest's walks now take. The lint keeps what archtest has no counterpart for: frontmatter, word caps, the rule format, rule citations, paths, Go names placed in a file, architecture §N sections, diagnostic codes, machine paths and the scripts. morphic-curating-skills' Upkeep step names one go test run selecting the archtest, canary and lowering-specification tests that read the skills beside the lint, and CLAUDE.md no longer credits the lint with the design documents' headings. trial-merge-lints-the-skills and the push checklist in morphic-shipping-prs run Upkeep's checks in the lint's place, so a trial merge and a push meet the archtest run that now holds the skills' links, headings and test names.

The issues filed after #2372

  • Probing an unwritten tree (skills: the probe routes for a tree that must stay unwritten never name go test -overlay #2382). Every route the skills gave for a tree that must stay unwritten took a copy, and the one rule naming go test -overlay only replaced a file that exists. morphic-verifying-changes/references/mutation.md#overlay-before-a-copy plants a defect, swaps in an alternative or adds a scratch test through an overlay first, within overlay-reaches-the-compiler-alone's reach: a Replace key naming an absent path adds the file, and two packages' unexported readers are compared through a non-test shim and a scratch internal test, neither copied. plant-in-an-unpacked-copy, the claim-to-probe table, review-without-origin and the testing angle's opening point to it.
  • A NUL in test output (skills: no rule warns that a NUL in go test output hides macOS grep's matching lines #2383). macOS's grep prints Binary file (standard input) matches in place of every matching line when a test's message holds a NUL, and still exits 0. morphic-verifying-changes/references/toolchain.md#grep-test-output-as-text filters go test output through grep -a, and notes that -c and -q count and exit alike either way.
  • Guards only a cost test or a unit test reaches (skills: redundant-guard never runs the cost tests, so it deletes a guard that only saves work #2384, skills: no rule finds code real input never reaches while each package's tests cover all of it #2385). redundant-guard deleted a guard whose mutant survived without saying which tests it must survive or whether cost counts, so a guard that only saves work read as dead. morphic-reviewing-prs/references/testing.md#guard-only-a-cost-test-notices has a mutant survive only the run morphic-verifying-changes/references/mutation.md#mutation-survivor-scope names, over the whole module, cost tests included, and keeps a guard only a cost test notices as a commented optimization held through a counting seam; where the package has no cost test, the reviewer grows each input dimension first. skills: redundant-guard never runs the cost tests, so it deletes a guard that only saves work #2384's Direction named the owning package's suite; the rule takes the module-wide run instead, because an end-to-end test in another package can be what needs a guard, so a mutant passing its own package's suite could still delete a guard that test relies on. skills: redundant-guard never runs the cost tests, so it deletes a guard that only saves work #2384's asks became a rule of their own, which redundant-guard cites, because redundant-guard had no room for them under a rule's 150-word cap. Each package's own 100% coverage hides code only unit tests reach, so testing.md#guard-only-unit-tests-reach profiles the end-to-end suite alone over the packages it drives, lists the changed files' unreached blocks with morphic-covergate -all, a flag added here that lifts the gate's 25-block bound on its listing, merging each test package's copy of a block and skipping blocks that hold no statement, and plants each guard among them; redundant-guard cites it, and mutation.md#find-what-only-excluded-callers-reach cites it for its profile. The two commands that run a whole suite, the survival run with its cost tests and the end-to-end profile, carry -timeout=30m, so a run a plant slows is not cut at Go's 10-minute default.
  • Names (skills: the name-what-it-holds probe misses one-letter method and literal parameters, fields and locals #2393, skills: checking-style records no departure from rules 2.1 and 2.18's scope-sized names #2394, skills: name-what-it-holds does not say whether the specification's term outranks its ban on figurative words #2395). name-what-it-holds' probe read only an unwrapped function with no receiver, listing 1 of skills: the name-what-it-holds probe misses one-letter method and literal parameters, fields and locals #2393's 6 one-letter names. It moves to design-rules.md#one-letter-names-by-kind, whose grep reads a method's and a function literal's parameters, struct fields and := and var locals on a diff's added lines, passes a receiver, a for counter, t *testing.T and a parameter list's leading pair sharing a type, comparison pair or not, as its Rule says, and says it misses a wrapped signature's parameter not opening its line. This widens the line probe and builds no internal/lintrules analyzer, the issue's second option, because an analyzer needs a baseline over every one-letter name already in the tree or a rename across the whole tree; the rule routes that question to lintrules: decide whether a one-letter-name analyzer gates the module #2410. morphic-checking-style/references/departures.md#names-long-at-any-scope records the departure from styleguide rules 2.1 and 2.18's scope-sized names, with the exceptions CLAUDE.md writes, rule 2.18's point 5 kept, and why .golangci.yml leaves varnamelen off. For skills: name-what-it-holds does not say whether the specification's term outranks its ban on figurative words #2395, design-rules.md#normative-term-outranks-figurative keeps a normative document's term, figurative or not, as travelsAs keeps the documents' "travels as", names the documents that count and changes a term in its document first; name-what-it-holds cites it. CLAUDE.md's naming bullet follows both: it drops "scope-proportional length", which the departure overrides, and keeps a normative document's term even if figurative.
  • One shape under several names (skills: no probe finds one concept spelled under several names across packages #2396). The consistency angle held a new name to its own package's, so the type lookup func(ir.TypeID) (ir.TypeDef, bool), written out 25 times in production and bound under several names, gained more unseen. Step 2 now cites consistency.md#one-shape-one-name: one shape under several names is a finding, the shape takes one name, a function type written out at several sites takes a named type, and sites the change does not need are filed rather than renamed. consistency.md#list-a-shapes-names holds the commands that rank the function types written out most, list one's names and list a name's near-synonyms across the module. The rule does not flag one shape bound under several names where its sites mean different things (design-rules.md#share-only-what-means-the-same), a case the issue's draft did not except, as one name there would join what differs.
  • IR versioning (skills: changing-the-ir says the names pin catches a renamed symbol, where it pins rendered names #2397, skills: nothing asks an IR version-history entry to list moved type IDs and diagnostic codes #2399). morphic-changing-the-ir's Version bullet said TestIRVersion_PinsTheNames catches a renamed symbol, which reads as a Go identifier; it now says a moved name, a canonical word sequence or hint an emitter renders an identifier from, which renaming a Go declaration does not move. Nothing asked a bump's history entry to name the ID forms or diagnostic codes its change moves, which a consumer keys state by and a triage rule names: ir-lessons.md#entry-lists-moved-ids-and-codes asks it, with a probe listing both from a branch's goldens, and the Version bullet routes to it. docs/ir/ir-version.md is corrected too: "versioned as a renamed symbol is" becomes "as a moved name is", and a paragraph asks the entry to list each moved ID form and code. IRVersion stays, as no shape, name or meaning of the IR changes. To make room under the skill body's 500-word cap, four lines restating CLAUDE.md or a document the skill cites were dropped: the Census and Emitters bullets, the Goldens bullet's "a version bump rewrites none", and the opening's gloss of "the IR is the ABI".
  • A package of free functions (skills: no measure catches a package of free functions that mixes read and build phases #2398). The method cap counts receivers, so a package of free functions grows and mixes phases with every check green: schema holds 755, 21 of its 55 files mixing build and read functions. Of the issue's three options this takes the third, a rule of thumb with a probe: functional-core splits a package past 300 free functions by phase, and design-rules.md#split-a-package-by-phase counts free functions and lists the files holding both phases by a parameter marking each. Tried on the three packages the issue names, 300 sits above all but schema: operation holds 249 and merge 174. Options 1 and 2, a baselined count and a call-graph check, wait for a proxy that leaves out a build's reads of its own source, which the marker proxy lists: on operation, marking a build by the registry and a read by a source object, it lists 11 of 30 files, mostly a build beside its own reads. Splitting schema is openapi: split the schema package by phase #2408.
  • A rule's heading and routing (skills: no step checks that a rule's heading says what its Rule says #2402, skills: no step checks that an added or moved rule is still routed to #2406). No step read a rule's heading against its Rule, though headings had disagreed with theirs three times, this branch's once; and no step kept an added, moved or reworded rule reached, though this branch had cut topics from three References lines whose files still held the rules. morphic-curating-skills/references/rule-format.md gains heading-matches-the-rule and each-rule-is-routed, written steps, as no lint judges scope, and the consistency angle's new step 5 sends a reviewer to both.
  • Reuse in the harness (skills: mechanism-exists never searches the harness oracles and case generators #2405). mechanism-exists never searched the harness's oracles or case generators, so a lesson a case axis could hold landed as prose with a hand-built twin, nor sent a reviewer to a tool's own source or help. reuse.md#search-the-harness-and-tool-docs, cited from mechanism-exists, searches internal/harness and internal/harness/openapicases for each addition, a skill change's rules and probes included, files a comparison a case axis could make as that axis, and reads a tool's source or --help before judging its command, as the issue's comment asked. mechanism-exists' heading now names the algorithms its Rule covers.
  • A Probe's answer (skills: run-prescribed-commands passes a probe whose command exits 0 without its answer #2407). run-prescribed-commands passed a command that exits 0 without the fact its Probe asks for, as the tracker Probe's gh issue view --json body did. claims-and-process.md#probe-output-holds-its-fact names that fact for each edited Probe and quotes the output line holding it; a command whose output cannot hold it is an issue: whatever its exit status. The claims step routes to it.

Found while closing the issues, and fixed here

  • The push checklist never sent its reader to the closing issues' comments and ## Out of scope items. "Before the first push" now routes to closing-issues.md#closing-issue-read-whole.
  • The open-question grep passed four deferred alternatives in these issues, phrased as "the alternative is" or "for that issue to weigh"; it now matches alternative|weigh too.
  • skills_lint.py read a code-span token holding a parenthesis, such as the formula 2/(log2(n) + 2), as a missing path. No tracked path holds one, and no token the lint checks today does either, so such a token now names no path.
  • merging-main.md#trial-merge-reads-what-the-head-adds still spelt a PR's added lines with a nested git merge-base, where the rest of the file takes git diff "origin/main...<head>"; it now takes the same form.
  • checkers.md sent the IR's verifier and codec rules to ir-lessons.md, which holds none of them since chore(skills): resolve the open skills issues #2293 moved them to verifier-and-codecs.md; it now names that file.
  • skills: no rule runs the full schema cases at a branch's final head before merge #2363's scope, "anything under compilers/openapi or internal/harness", left out packages the schema cases compile through: they compile with the engine's passes (internal/harness/cases.go), so a change to pass, ir or engine can move a record. The rule takes its scope from go list -deps ./internal/harness/openapicases.
  • rounds.md#read-standing-reviews listed a PR's reviews and inline review comments, not its conversation comments (issues/<N>/comments), where fix(harness): give an order verdict to more block scalars #2179 holds three nit: findings the inline path does not list. Its Probe now reads that path too, printing each comment's time, as a conversation comment names no commit, and each listing with --paginate, as the files listing does.
  • rule-format.md let a rule over 150 words become two, but said nothing of what a cut to fit the cap may drop. A cut now never drops a fact the rule's Probe needs or anything a closing issue asked for (a platform's spelling, a step, an option); when nothing else can go, the rule splits. rule-format.md names the two checks that hold a cut: cut-against-mains-words for what main's words held, and closing-issue-met-at-its-site for a closing issue's asks, which a word diff against main does not show where the branch never added them.
  • rule-format.md pinned a Why's evidence to an issue, a merged PR or a revision, never an open PR, which read as barring a Why from naming the PR that adds the citation, and said nothing of where a reader finds a revision main lacks. A Why may now name an open PR as its evidence's source when the pin is durable, the PR adding the citation among them, merged by the time the citation lands; cut-against-mains-words already cites chore(skills): settle what reviews had to rule on unaided #1619, the PR that added it. A claim resting on an open PR's moving head stays barred, and the claim sweep (sweep-each-claim-class), which counted a claim resting on any open PR's head, now names another open PR's head, so it no longer refuses that citation. A revision a Why or Probe cites is on main or named with the PR whose head holds it (pin-a-revision-where-it-stays), since after a squash merge only pull/<N>/head reaches a branch's commits; its Probe checks a hash by git merge-base --is-ancestor against origin/main, or finds the PRs holding it through gh api 'repos/{owner}/{repo}/commits/<sha>/pulls' and checks it against the fetched pull/<N>/head, and each revision this branch adds off main names its PR. The file also gives the gh pr view command printing a cited PR's state. Four rules already on main cite five revisions beside an issue rather than the PR holding them → skills: four rules on main cite a revision by an issue, not the PR holding it #2421.
  • The push checklist's subject check refuses an over-length subject on any unpushed commit, yet morphic-shipping-prs' References line named no rewording, so its refusal routed nowhere; merging-main.md's line now names it, the topic of reword-an-unpushed-commit.
  • On main, fold-the-whole-set was cited from nowhere and is not among the rules the table names, the topic morphic-designing-code's References line gave its file. That line now names folding declarations too, which covers it and stage-a-stepwise-fold in deciding-once.md, and design-rules.md's opening points to deciding-once.md, as ir-lessons.md and finding-cost.md point to the files split from them. Every other rule this branch adds, moves or rewords is cited from a SKILL.md step or another rule, or falls under its file's References topic: read-the-source-not-the-registry, reworded for skills: read-the-source-not-the-registry does not say whether a build may read nodes it built itself #2350, was neither, and the determinism angle's search step now cites it.
  • replay-own-diff-onto-main's Probe asked git diff --stat origin/main HEAD to list only the PR's own files, which an empty list meets, as a git apply --3way leaves one where a file the diff touches is absent and it applies nothing (merging-main.md#failed-apply-without-markers); it now asks for every file the PR changes, and no other.
  • remembered-reading-keys-what-it-reads' Probe grepped c\. for the context's reads, while the lowerings name a lowering.Ctx loweringContext in all but a few functions and a service.Ctx serviceContext, so it listed none of them: not admission.go's loweringContext.SchemaRules(), the read the rule's own example keys by, nor any read of readUnion in operation/filebody.go, the one reading outside schema. It now cites deciding-once.md#context-reads-listed-by-type, as a grep by those names still missed there.Rules() and calls through dc, use, in and entryCtx: that rule lists each call to a method of a type lowering or service declares through callgraph -algo cha, since -algo static never visits a closure passed as a value, a reading's own body among them, and each read of the two context types' exported fields by name, other types' fields of that name included. Nothing listed what a reading is handed, such as merge's FieldDeclarationContext (skills: a remembered reading's key ignores what a handed-in walk can vary by #2319): deciding-once.md#handed-in-answers-join-the-key, split from that rule to keep it within 150 words, lists each caller of ReadOncePerRun with a parameter of function or interface type, error and any among them, through the callgraph command of the golang.org/x/tools that go.mod pins, with -algo cha for the same reason, since a parameter's type is a question a grep cannot answer (sweep-every-site.md#sweep-a-typed-mechanism-by-type). A closure calling ReadOncePerRun is listed under its own parameters, not its enclosing function's, as the Probe says.
  • The skills lint held a Go name placed in a file only on one line; it now reads one wrapped onto the next, as it reads a section citation.

Questions the closed issues leave, and where each now lives

Test plan

  • python3.14 .claude/skills/morphic-curating-skills/scripts/skills_lint.py → clean (10 skills); each skill's script tests → OK.
  • Declared codes: test_a_span_naming_a_declared_code_names_no_path fails with openapi put back among the first segments the lint skips, with test files, testdata fixtures or a Markdown file read for codes, with declared codes ignored, and with the old (?:ir|pass|compile|engine) shape check in place of the declared set. On the tree, ir/bogus-code, compile/registry-refusd, openapi/gone.go and openapi/no-such-code planted in a skill are reported and openapi/cyclic-ref and ir/unresolved-auth-space pass, where the lint at 7c60b8b passed all six. test_a_code_built_from_parts_names_no_path fails with families ignored, joins ignored, a joined name kept with its package selector, every bound name taken as joined, one-word literals dropped, a binding left unanchored at its line's end, so a name bound to a literal and more builds a code, a family read across a line break, or a name read from inside a longer identifier; with families ignored, the tree reports ir/duplicate-property-id in ir-lessons.md.
  • The code reader: at 9c0b562 the in-process reader builds the same 316 forms as the git grep it replaced (comm -3 of the two sorted sets prints nothing), and the lint's output on the tree and on 3,942 code-shaped spans planted in a skill is byte-identical. At f1c1e0b the whole lint takes 0.90 s of user and system time (0.81 to 1.00), where 7b934b7's, git grep included, took 2.17 s (2.16 to 2.27): five alternating runs under /usr/bin/time -l, load 27 to 28 at both ends.
  • Each later reshaping of the code reader (CODE_LITERAL built on CODE_WORDS, Linter deriving the codes itself, each match's groups read through findall) left the lint's output on the tree byte-identical, and the code tests still fail under the plants above.
  • test_a_code_built_from_parts_names_no_path fails with CODE_FAMILY requiring spaces around its plus signs, as a row writes a family without them, as pass/validate_refs.go builds "ir/dangling-"+noun+"-ref".
  • Code completeness: every code-shaped string in testdata, in a *_test.go string literal, and in a Markdown span outside the skills, bar an existing path, 325 in all, goes through the recognizer. It misses 54, none a code the tree builds: codes docs/emitters and docs/architecture.md plan, two retired codes docs/ir/version-history.md names, path stems such as ir/testdata/names, codes tests invent (openapi/x, pass/near), one a test asserts is never reported, and openapi/unknown-key-entry-unreachable, which a test lists and nothing builds. Of the 49 the goldens and specs under testdata hold, it misses only the path stem. The reader at abe9696 missed 102, seven validation codes in the goldens among them. ir/duplicate-property-id is what irverify reports for a property (TestCheckDuplicateIDs_TwoDifferentPropertiesOnOnePropertyID).
  • Retired page: ir-design §4.3 planted in a skill fails TestDocuments_CiteNoRetiredPage and Their-design and repair-design work passes it, and a + line planted in the same skill file fails TestDocuments_OpenNoLineWithAPlus. TestRetiredCitations_ReportsEachForm fails with the document trees cut back to the root and with the word boundary dropped.
  • skills: three probes need Linux tools that macOS lacks #2301, on macOS 26.5.2 with Homebrew coreutils 9.12:
    • the new stop-a-plant-run probe, with gtimeout, lists gtimeout and sleep after the group kill;
    • with an unrelated gtimeout running, pgrep -x gtimeout lists both;
    • for a run starting gtimeout through xargs, pgrep -P <run pid> lists xargs alone, and after a kill of the run's group gtimeout and sleep live on; list-a-run-by-descent's walk lists xargs, gtimeout and sleep, and after stop-a-plant-run's steps ps -o pid=,comm= -p <them> prints nothing and exits 1, the run stopped before its next command;
    • for a run looping for i in 1 2 3; do gtimeout 30 sleep 27; done, killing the listed gtimeout and then the run's group, or each listed process alone, left a new gtimeout and sleep running while ps -p on the listed pids printed nothing; with the freeze, that loop and a two-input xargs run each leave no process after kill -KILL (the two-input run on macOS only);
    • gtimeout 5 go test on a hanging test exits 124 with no FAIL;
    • genv --default-signal=INT prints trapped, and nothing without it.
    • The same forms on Linux (Debian, GNU coreutils 9.1, procps-ng 4.0.2): the old session form and the new process-group form both still list timeout and sleep after the group kill; timeout 5 on a hang exits 124; the SIGINT probe prints trapped only with env --default-signal=INT; and list-a-run-by-descent's Probe prints three pids where pgrep -P prints one, and with the freeze neither its run nor the loop above leaves a process after kill -KILL.
  • list-a-run-by-descent's Probe with gtimeout 3 sleep 2, on macOS: 5 s after the probe's shell exited, ps -o stat= showed the run, xargs, gtimeout and sleep all T; after kill -KILL on each, ps -p on them printed nothing and exited 1.
  • skills: a fresh binary's first run counts extra instructions the probes read #2360: two fresh copies of a main binary counted 348.2 M on their first hint_positions.yaml compile and 310.0 to 311.1 M after, and a --version run first still left +14 M. Binaries left unused for twelve minutes, at load 85 with under 100 MB free, read 69 to 70 M high on their first run too, so first-run-of-a-batch-unread asks for an unread run of the measured command itself before each batch, not only after a build or copy. Not measured on Linux, as the rule says.
  • every-spelling-of-one-concept's Probe: at 5637f6c, whose Go tree is main's, go run ./cmd/morphic-harness -cases full exits 0 and reports no finding the records leave unexplained, while its summary's spelling row reads found 951, the recorded findings included, so the Probe reads the unexplained findings, not that row. The head's Go tree differs from main's only in internal/archtest's, the canary's and the end-to-end suite's tests, internal/keydoc and cmd/morphic-covergate, none of which the harness compiles (go list -deps ./internal/harness/openapicases names none).
  • The tracker Probe's GraphQL query prints, for tracking: close the open OpenAPI compiler and IR issues, in order #1918, a lastEditedAt after its three comments' createdAt, and for skills: three probes need Linux tools that macOS lacks #2301, whose body was never edited, null beside its one comment; gh issue view --json lists no field holding an edit time.
  • build-head-where-measured's Probe on a spec with an unresolved $ref, whose compile exits 1: the && chain printed no count, and the grouped form prints one.
  • skills: marginal-growth-on-one-path does not say an n log n cost reads near its bar #2358: the probe prints [2.667, 2.4, 2.25] for n = 2, 8, 64.
  • skills: cost-tests gives no route where the code has neither a budget nor a seam #2359: in a scratch module, production-sets-each-parameter's parameter probe lists the production line calling Plant(1, nil) for a parameter production passes nil and only a test fills, and not the test's call, and for one production sets, the line setting it; its option probe prints nothing for an option only a test sets, and both settings of one production sets. A file under ir/ importing compilers/openapi/internal/budget fails go build ./ir with use of internal package github.com/dexpace/morphic/compilers/openapi/internal/budget not allowed, which is the rule's probe. The go list -e -test scan it replaced showed only that no package outside compilers/openapi imports it today, where the Why says none can.
  • skills: measure-the-premise names no measure for a premise about planned code #2310: the planned-code grep lists shaping-hints.md:25.
  • skills: a remembered reading's key ignores what a handed-in walk can vary by #2319: handed-in-answers-join-the-key's probe lists one caller on the tree, operation.readSchema, whose memo reads through the read field of its branchReading parameter, keyed by the part paired with it. A version printing each parameter's own type alone listed nothing there, nor callers planted in schema handed an interface through a struct parameter or a receiver, which this one lists beside one handed a func() bool. With callers of ReadOncePerRun planted in merge taking a FieldDeclarationContext, a func() bool, an error and an interface declared in a type (…) group, beside one whose only parameter beside the context is an int, it lists the four and exits 0. The grep it replaced listed two of the four, missing the error and the grouped interface, and also missed a wrapped signature, a generic parameter and an explicitly instantiated call. context-reads-listed-by-type's two parts list nothing in merge/detail.go, which reads through its walk parameter. Of the 15 operation/filebody.go lines a grep by the context's usual names prints, its method part lists the 9 calling a context method, and the reads of the other 6, which hand serviceContext.Ctx on, at their callees' lines, compilers/openapi/internal/schema/twin.go:49 among them. Under compilers it lists 38 lines of method calls that grep misses, and 29 that -algo static misses, each inside a closure passed as a value. With a reading planted that names its context lc and calls lc.SchemaRules() inside the closure it hands ReadOncePerRun, the method part lists that call, which neither the grep nor -algo static does, and the field part lists a planted lc.Limits read. With a closure passed as a value, taking a func() bool and handing it to ReadOncePerRun, planted beside the callers above, handed-in-answers-join-the-key's probe lists it, which -algo static did not. At 9954835, design-rules.md holds 3,851 words, and a trial merge with feat!: unify schema composition, folding and routing #2354 at 34f77cf, its one conflict resolved by keeping both citations, 3,992 with the skills lint clean.
  • skills: a design decision may be worded so that it admits two results #2320: order-or-choice-admits-one-result's heading names the orders, selections and rankings its Rule binds, and holds 142 words.
  • skills: morphic-changing-the-ir does not say whether moving a node's provenance pointer needs an IRVersion bump #2346: git show 461d16e32 -- ir/irversion_test.go adds the 0.17.0 row with its meaning.
  • skills: no recipe rewords an unpushed commit below the branch's tip #2357: in a scratch repository whose branch merged main with a fix committed inside the merge, the amend! and git rebase --rebase-merges --autosquash reword exited 0, its tree diff printed and the fixed file was back in its broken form. The filter-branch reword left every tree equal, the own-commit count at 3 and main an ancestor, on a branch, on a detached HEAD and in a linked worktree; without --not origin/main the trees stayed equal and the count rose to 4, a copy of main's signed commit. On a branch with no merge after the reworded commit, the same filter-branch reword left all three trees equal, the own-commit count at 3 and main an ancestor. With the message file named by a relative path, filter-branch exited 1 (msg filter failed) and rewrote nothing.
  • skills: functional-core does not say whether a function over a struct counts against its method cap #2365: the rule's probe lists 15 functions taking *binder, and 40 taking allOfComposition, 6 of them first. A go/parser count over every non-test file under compilers/ agrees with the grep counts on every type's methods and on the functions of all eighteen types in archtest: count a function taking a type against that type's method cap #2377 but allOfComposition, whose composeModel wraps its signature before the type (41); it also finds stand and finisher under-read by the one-line probe, whose limit the rule's Probe states. git grep -hE '^func [[:alnum:]_]+(\[[^]]*\])?\([[:alnum:]_]+ \*?lowering\.Ctx[,)]' -- '*.go' ':!*_test.go' | wc -l counts the 458 functions over lowering.Ctx outside its package.
  • skills: decide whether rule 5.28 is a departure, as 59 enums start at iota #2308: the departures probe lists 65 enums, matching a type-checked scan.
  • skills: morphic-verifying-changes has no rule for a memo reused across charged walks #2348: compiling two components sharing one $ref target, with one set near schema/nulls.go's 256-conjunct budget, showed no order or sibling dependence on main, so the rule is stated as what a change adding such a memo must show, with no defect claimed.
  • The two lint changes found later each have a test row that fails with the old pattern planted. No token the lint checks today stops being checked by the parenthesis rule.
  • Of the open PRs editing a skill or CLAUDE.md, feat!: unify schema composition, folding and routing #2354, feat(emitters/plan): plan a type's members, wire shape and alias #2204 and ci: build planted TypeScript with a pinned Node.js and tsc #2148, and feat(emitters/plan): plan an operation's tier, auth and effects #2321, feat(emitters/plan): plan discriminator routes and open types #2322 and feat(emitters/plan): walk a scalar's base chain to its root once #2353, which carry feat(emitters/plan): plan a type's members, wire shape and alias #2204's skill edits, only feat!: unify schema composition, folding and routing #2354 meets this one on a line, in two files (trial merge at feat!: unify schema composition, folding and routing #2354's 74e754c): both edit name-what-it-holds' line on renaming, each adding a citation, and CLAUDE.md's naming bullet, which this PR rewraps and feat!: unify schema composition, folding and routing #2354 extends by a sentence on a defined word's one sense. Whichever merges second keeps both sides of each. So resolved, design-rules.md stays within a reference file's 4,000 words, and every other file either side touches stays within its cap.
  • feat!: unify schema composition, folding and routing #2354 (646 files at eeec83b): gh pr view --json files and gh pr list --json files return 100, gh api on pulls/2354/files without --paginate returns 30, gh pr diff --name-only refuses the diff (HTTP 406, "exceeded the maximum number of files (300)") and exits 1, and gh api --paginate 'repos/{owner}/{repo}/pulls/2354/files' --jq '.[].filename' lists 646. On feat(emitters/plan): plan discriminator routes and open types #2322 (227 files at 788a91b), gh pr diff --name-only lists all 227. git grep -nE 'gh (pr|api)|pulls/|--json[^|]*files|name-only' -- .claude CLAUDE.md AGENTS.md docs Makefile .github finds no other gh listing of a pull request's files; every --name-only it finds is a local git command.
  • With the key of either citation the determinism angle gains misspelt, the skills lint reports its line: at 9954835, determinism.md:20 for read-the-source-not-the-registry and determinism.md:40 for memo-across-charged-walks. morphic-designing-code's body holds 496 words, and 500 beside feat!: unify schema composition, folding and routing #2354, which adds four; count-on-one-thread holds 150 and stage-a-stepwise-fold 147 by wc -w.
  • rule-format.md stays within the 4,000 words a reference file takes.
  • With the parenthesis dropped from NOT_A_PATH, a lint test fails. git diff "origin/main...<head>" prints what the merge-base form does at four heads of this branch, and, for trial-merge-reads-what-the-head-adds, git diff "$B...<head>" and git diff "$(git merge-base $B <head>)" <head> print identical bytes at five open PR heads 26 commits behind this branch's 7c60b8b as $B, where the two-dot git diff $B <head> differs.
  • The moved-pointer rule holds 148 words, within the 150 a rule takes.
  • skills: move skills_lint's link, heading and test-name checks into archtest #2381: with a missing link target, two missing headings, a missing test, and a -run pattern naming a missing test beside an existing one planted in a skill, beside go list -f '{{.TestImports}}' ./ir, TestDocuments_LinksResolve and TestDocuments_NameOnlyTestsThatExist report the five plants and nothing else, and the skills lint reports none of them. TestLinkProblems_ReportsALinkThatResolvesToNothing fails with the document trees cut back to the root. A skill writing go test ./internal/archtest -run '^TestDocComments$', which runs no test, fails TestDocuments_NameOnlyTestsThatExist, and TestTestNameProblems_ReportsANameNoTestDeclares fails with an end-anchored alternative read as a family. With a -skip pattern, a dlv test command's and a test binary's -test.run, a -run span wrapped across two lines and a name in prose planted in a skill, each naming no test, TestDocuments_NameOnlyTestsThatExist passes, and it fails on a go test -run plant beside them.
  • skills: the probe routes for a tree that must stay unwritten never name go test -overlay #2382: at the head, an overlay adding an absent ir shim exporting canonicalWordsExactly and an absent compilers/compile internal test comparing neutralHint with it over five hints prints --- PASS, and git status --porcelain --untracked-files=all then prints nothing.
  • skills: no rule warns that a NUL in go test output hides macOS grep's matching lines #2383: in a scratch module whose failing test's message holds a NUL (macOS 26.5.2, Go 1.27.4), go test -count=1 . 2>&1 | /usr/bin/grep -E '^(--- FAIL|ok|FAIL)' prints Binary file (standard input) matches and exits 0; with -a it prints the --- FAIL line and three FAIL lines, and -c prints 4.
  • skills: redundant-guard never runs the cost tests, so it deletes a guard that only saves work #2384 and skills: no rule finds code real input never reaches while each package's tests cover all of it #2385: guard-only-a-cost-test-notices' Probe restates skills: redundant-guard never runs the cost tests, so it deletes a guard that only saves work #2384's reproduction at feat!: unify schema composition, folding and routing #2354's 775043a. At the head, whose compilers/ tree is main's, guard-only-unit-tests-reach's profile of ./compilers/openapi/e2e over ./compilers/openapi/... passes (175.5 s) and lists schema/branch.go:132.3,133.1, allOfIn's nil guard; that a panic planted there leaves the suite green and fails only TestConjunctsIn_ANilSchemaWritesNone is skills: no rule finds code real input never reaches while each package's tests cover all of it #2385's measurement at 4a7a384, main.
  • skills: a trial merge blocked by the other PR's own conflicts leaves a joint claim unchecked #2366: at fix(compilers/openapi)!: keep a carrier's notes on the carrier #2187's 12624a7, claim-on-the-other-heads-tree's probe exits 0 and stages only pass/; its old probe accepted every exit the command can give.
  • skills: the name-what-it-holds probe misses one-letter method and literal parameters, fields and locals #2393: on skills: the name-what-it-holds probe misses one-letter method and literal parameters, fields and locals #2393's six added lines, one-letter-names-by-kind's probe lists five, missing only the wrapped generic signature's b, as its Rule says; the probe it replaced listed one.
  • skills: checking-style records no departure from rules 2.1 and 2.18's scope-sized names #2394: grep -c varnamelen .golangci.yml prints 0.
  • skills: no probe finds one concept spelled under several names across packages #2396: list-a-shapes-names' first command ranks func(ir.TypeID) (ir.TypeDef, bool) second, at 25, and its second, with the Probe's p and r, prints node, Node, resolve, return and Type.
  • skills: changing-the-ir says the names pin catches a renamed symbol, where it pins rendered names #2397: renaming CanonicalWords across ir's files through an overlay leaves TestIRVersion_PinsTheNames and TestIRVersion_PinsTheEncodedShape passing, and appending a word to one hint in testdata/golden/openapi/hint_positions.golden.json fails TestIRVersion_PinsTheNames.
  • skills: no measure catches a package of free functions that mixes read and build phases #2398: split-a-package-by-phase's probe on compilers/openapi/internal/schema, with *compile.Types and *statement.Schema as the markers, prints 755 and lists 21 files. Summed per package over non-test files, git grep -c '^func [A-Za-z]' gives operation 249 and merge 174, and no package but schema more than 249.
  • skills: nothing asks an IR version-history entry to list moved type IDs and diagnostic codes #2399: entry-lists-moved-ids-and-codes' probe over fix!: home union bounds and fold redeclared composition members #1977's commit (9562ea46d^!) prints p/openapi/.../properties/<p> forms going and p/composed/<model>/oneOf/<n>/allOf/allOf/properties/<p> forms coming, and over refactor(compilers/openapi)!: lower a schema from one statement #1996's commit it prints one finding arriving at openapi/composition-lowering beside 13 leaving openapi/degraded-construct.
  • skills: no step checks that a rule's heading says what its Rule says #2402: heading-matches-the-rule's probe with chore(skills): resolve the skills issues filed up to #2407 #2379's 67bbcf87a for HEAD prints the narrower heading beside its Rule's opening, "Right before the build starts".
  • pin-a-revision-where-it-stays' Probe, in bash and zsh: 461d16e32 prints 0 against origin/main; chore(skills): resolve the skills issues filed up to #2407 #2379's 67bbcf87a prints 1 there and 0 against the fetched pull/2379/head; feat!: unify schema composition, folding and routing #2354's 775043ada prints 1 against both; docs(emitters): lower redaction and stability tiers #1340's 4cb221a80 prints 0 against pull/1340/head; and 0123456ab prints 128. Its gh api 'repos/{owner}/{repo}/commits/<sha>/pulls' --jq '.[].number' prints 1009 for 461d16e32, which the main check already settles, 2379 for 67bbcf87a, 2354 for 775043ada, and exits 1 on 0123456ab. For each revision the skills cite off main, gh api repos/dexpace/morphic/commits/<sha>/pulls names a PR its rule names, bar skills: four rules on main cite a revision by an issue, not the PR holding it #2421's five.
  • skills: mechanism-exists never searches the harness oracles and case generators #2405: grep -c -i -E 'harness|oracle|openapicases' counts 10 lines in reuse.md, where main's holds none.
  • skills: run-prescribed-commands passes a probe whose command exits 0 without its answer #2407: gh issue view 1918 --json 2>&1 | grep -ciE 'edit' prints 0, as probe-output-holds-its-fact's Probe says.
  • Keyed citations in the skills: with parser-library.md#planted-bare, docs/parser-library.md#planted-docs, openapi.md#planted-bare-spec and docs/compilers/openapi.md#planted-docs-spec planted in a skill, TestRecord_CitationsNameAnEntry reports the first two and TestLoweringSpec_CitationsNameARule the last two. Before keydoc.Citations read the skills both passed, TestDocuments_LinksResolve reported only the two docs/ forms, as missing headings, and the skills lint reported none. With nothing planted, every citation the skills write passes both. TestCitations_ReadsEachKindOfFile, TestCitationProblems_ReportsAKeyNoEntryHas and TestCitations_FailsOnAFileItCannotRead fail with Citations walking the root alone, and TestLoweringSpec_CitationsAreReadInEveryForm fails with the specification cited as compilers/openapi.md. internal/keydoc holds 100% statement coverage, and the Upkeep step's go test run, as written, runs its seven tests and passes.
  • go test -count=1 ./internal/archtest, which reads the skills' Markdown for the link and test-name checks (TestDocuments_LinksResolve, TestDocuments_NameOnlyTestsThatExist), the line-opening check (TestDocuments_OpenNoLineWithAPlus) and the retired-page check (TestDocuments_CiteNoRetiredPage) and holds their layout (TestAgentFiles_ReachAntigravity), passes on the final head, and so does CI's lint job, which runs go vet and the Makefile's pinned golangci-lint; the package declares no statement for the coverage gate to count. CI's gate run on the final head checks the rest.
  • With trial-merge-lints-the-skills naming SKILLX.md as Upkeep's file, the skills lint reports it; morphic-shipping-prs' body holds 500 words.
  • In a scratch repository, a two-file diff conflicting with the other head in one file makes git apply --3way exit 1, git diff --name-only --diff-filter=U lists that file holding <<<<<<< ours while the other file is staged, and once it is resolved and added the list is empty.
  • With the overlay Probe's pattern written '^TestOverlayProbe', TestDocuments_NameOnlyTestsThatExist reports it; written '^<Test>$', Upkeep's checks pass.
  • On the trial merge with feat!: unify schema composition, folding and routing #2354 at 7e2435b, both citations on name-what-it-holds' line kept, the skills lint is clean, as is the archtest run Upkeep names; with buildsVariantz planted, the lint reports that name. test_a_go_name_placed_in_a_file_is_held_to_its_declarations fails with the one-line reader put back, on a wrapped Wrapt in ir/b.go; every trial merge above stays clean under the widened lint.
  • make cases passes at e739521, whose Go tree is main's, as cases-before-done's Probe asks.

Closes #2301, closes #2306, closes #2308, closes #2309, closes #2310, closes #2319, closes #2320, closes #2346, closes #2347, closes #2348, closes #2349, closes #2350, closes #2351, closes #2352, closes #2355, closes #2356, closes #2357, closes #2358, closes #2359, closes #2360, closes #2361, closes #2362, closes #2363, closes #2364, closes #2365, closes #2366, closes #2368, closes #2369, closes #2370, closes #2372, closes #2381, closes #2382, closes #2383, closes #2384, closes #2385, closes #2393, closes #2394, closes #2395, closes #2396, closes #2397, closes #2398, closes #2399, closes #2402, closes #2405, closes #2406, closes #2407

function-over-a-type-is-its-method said each of the 34 functions taking
allOfComposition after another parameter takes it after lowering.Ctx.
At 4a7a384, 28 do; the other six take it after a slice, a schema or
an Unmodeled value. The Why now says 28.
memo-across-charged-walks spelt out the two-order diff at each limit,
which determinism.md#two-orders-at-every-limit already owns. It now
cites that rule for the diff and keeps only what is particular to a
memo: charge the reuse, or run the diff at the first reader's spend and
one below it.
The seam rule's Probe grepped Go files for the budget package's import
path, which also matched internal/archtest, whose rules map names the
path as a string, so the Probe had to excuse it. go list -e -test reads
the import graph itself: it lists no package outside compilers/openapi
on the tree, and lists a planted importer under ir/ whether the import
sits in a file, an in-package test or an external test.
read-standing-reviews' Probe listed a PR's reviews and its review
comments, the inline ones under pulls/<N>/comments, but not the comments
on its conversation, which live under issues/<N>/comments. #2179's
conversation holds three nit: findings that the review comments' path
does not list. The Probe now reads that path too, and pages through
each listing with --paginate, as the files listing in
another-contributors-pull-request does, since each returns 30 entries a
page by default.
TestDocuments_CiteNoRetiredPage walked the root alone, which passes over
every directory starting with a dot, so the skills fell to a copy of the
pattern in skills_lint.py. The two copies disagreed: the lint read the
name from a word's start, so "their-design" passed there, while archtest
matched it anywhere.

The archtest walk now reads .claude/skills as well, and its pattern
starts at a word boundary, so "their-design" passes and "ir-design"
fails in either tree. The lint's copy and its test rows go.
skills_lint.py passed any span shaped as an ir/, pass/, compile/ or
engine/ code, and skipped every openapi/ span, so an invented code and
a missing openapi/ path both passed, which #2296 asked it to catch.

It now reads the codes the module declares: every "<prefix>/<kebab>"
string literal in a Go file that is neither a test nor a testdata
fixture, by one git grep. A span naming one passes; any other span
shaped as a path is held to the tree, so ir/bogus-code,
compile/registry-refusd and openapi/gone.go are reported.

A code built from parts is not read. The one span naming such a code,
ir/duplicate-property-id in ir-lessons.md, now spells it as irverify
builds it, ir/duplicate-<noun>-id.
trial-merge-reads-what-the-head-adds still spelt the PR's added lines
with a nested git merge-base, where the rest of merging-main.md already
takes the shorter git diff "origin/main...<head>", which prints the
same diff.
moved-provenance-pointer said a node recording another
Provenance.Pointer bumps nothing, while the skill's Version step says a
hint moved at a position hint_positions.yaml does not write is a bump
no test sees. Both hold where the hint is composed from the recorded
position, as commonFor in compilers/openapi/internal/schema/hoist.go
composes an anonymous node's from the pointer it records.

The rule now says so and leaves that bump to the Version step, and its
heading says the pointer alone bumps nothing.
The lint read a code only where a Go file spells it as one literal, so
the codes irverify builds as "ir/duplicate-" + noun + "-id" and the
OpenAPI validation codes built as diag.Validation + "/" + class read as
missing paths, and ir-lessons.md had to spell a real code as a template.

The same git grep now also reads a family, a literal head, one
expression and a literal tail, which matches the head and tail with any
words between, and a name joined to more words by a "/", resolved to the
literal a declaration binds the name to. A one-word literal such as
"openapi/validation" is read as a code too. ir-lessons.md names
ir/duplicate-property-id again.
cost-without-a-budget-or-seam restated count-work-not-wall-clock and counting-seam-for-optimizations, OnVerify example included; split-into-tested-commits restated the condition test-first-against-a-stand-in sets for a test-first commit; and conjunct-walk-follows-a-bare-ref restated resolve-to-true-target's follow-to-the-end rule without citing it, while that rule cited it from an unrelated clause. Each now cites the rule that owns the text, and resolve-to-true-target's citation sits on the clause it specializes.
The probe for cost-without-a-budget-or-seam listed the budget package's importers with go list, which shows only that none outside compilers/openapi imports it today. The Why says ir, pass, irverify and engine cannot count through it, and Go's internal-package rule is what makes that so: go build refuses the import. The probe now plants the import under ir/ and reads that refusal.
TestDocuments_OpenNoLineWithAPlus and the retired-page check each looped over the root and .claude/skills, one spelling the skills' path and the other naming skillsTree. documentTrees now holds the pair, with why the skills are walked on their own, so a walk widened to the skills takes the same list.
Stopping a plant run signalled each timeout by its pid before the run's
group, and the descent rule stopped each listed process without the run
itself. A run looping over timeouts then started another the moment the
listed one died, which no list held, so the check that every listed
process was gone passed while a go test kept running on the tree the
next restore changes.

The descent rule now stops the run with SIGSTOP and stops each process
as the walk lists it, so nothing in the run starts another, then kills
the run and each listed with SIGKILL, which a stopped process does not
hold back as it does TERM.
The lint read the diagnostic codes the module builds through a git grep
subprocess, which needed exit-status handling of its own and a git
repository in every lint test's fixture. It now reads the same patterns
in Python from the Go files load_tree already lists that are neither
tests nor testdata fixtures: untracked files included and ignored ones
not, as git grep --untracked read them.

A family stays on one line, as git grep read it line by line, and a name
starts at a word boundary, so the tail of a longer identifier is no
name. Each pattern now matches on its own rather than inside git's
longest match on a line, so the binding's anchor at its line's end gets
a test of its own: a name bound to a literal and more is bound to no
code.

At 9c0b562 the reader builds the same 316 forms git grep did, and the
lint's output on the tree and on 3,942 code-shaped spans planted in a
skill is byte-identical. The reader takes 0.21 s where git grep took
0.29 s, and the whole lint 0.65 s where it took 0.81 s.
TestRetiredCitations_ReportsEachForm planted its skill under skillsTree
but expected the finding at a literal .claude/skills path. The expected
path now starts from the same constant, so the plant and its finding
name one tree, as the walks over documentTrees already do.
CODE_LITERAL wrote the words after a code's prefix as its own copy of
CODE_WORDS, with a capturing group nothing reads, and CODE_FAMILY put
optional spaces on both sides of an expression whose class already takes
spaces. CODE_LITERAL now builds on CODE_WORDS and CODE_FAMILY drops the
spaces its class covers. Both match exactly what they did: on the tree the
reader builds the same 316 forms, and no Go file, tests and testdata
included, matches either pattern differently.
stop-a-plant-run spelt out list-a-run-by-descent's freeze, list, kill and
check, said "before the next restore" and "before git reset" both, and
repeated that rule's loop failure in its Why. It now names the descent
rule as how a plant run stops and keeps what is its own: when, and why a
kill of the run's group misses each timeout. The descent rule drops a
sentence its Why and Probe already show, that pgrep -P lists only
children.
background-start-ignores-sigint named genv in its Rule and again in its
Probe. The Probe keeps it, with the package that provides it, in the form
the two timeout Probes in mutation.md use.
Their-design and repair-design each put a letter before the name, the one
case the word boundary decides, so the plant keeps the first, which the
pattern's comment quotes. The test still fails with the boundary dropped.
Both callers built Linter with declared_codes(root, known) beside the
known it already takes and derives its names and paths from. Linter now
derives the codes from the same root and known, so its constructor and
the test's helper are as they were before the codes were read. The
lint's output on the tree is unchanged, and the code tests still fail
with the codes ignored or a test file read for them.
The test's comment still spoke of words ending in the retired name after
the plant kept one.
A revision cited as evidence must be fetchable. Each hash these rules cite that is not on main now names the pull request whose head holds it: #2354's 775043a, #2379's 753c282 and #1340's 4cb221a. #1738's 01f5c2b already named its pull request.
The case giving main no profile went through the same wiring as the one
giving it an undefined flag: every change to main's arguments, writers or
exit code that reddened it reddened the flag case too, and only the flag
case sees the flag package write to the process's stderr. With one case
left, the test drops its table.
The callee and the parameter types sit in one callgraph line, callee
first, so one pattern matches what the two piped greps did.
`git rebase --rebase-merges` re-merges a merge that merged cleanly and
drops a fix committed inside it, exiting 0. The merge rules commit such
fixes inside the merge, so the amend! and autosquash recipe silently
reverted them where a merge followed the reworded commit.

Where a merge follows it, reword with `git filter-branch --msg-filter`,
changing only the target's message by `$GIT_COMMIT`, which keeps every
tree. The range excludes origin/main, as filter-branch would otherwise
rewrite main's signed commits as the branch's own. The amend! recipe
stays for a range with no merge, as a rule of its own. Both move to
merging-main.md, as commits-and-prs.md would pass its word cap.
The joint-claim rules cited 12624a7 and 5ef173c, neither on main,
without the PR whose head holds them, so a reader could not fetch
them. Name #2187's head and #2171's head beside them; each is fetched
by `git fetch origin pull/<N>/head`.
rule-format.md pinned a Why's evidence to "a revision" without saying
where a reader finds it. Skills cite commits of open PRs and of squashed
ones, which main does not hold: after a squash merge a branch's commits
are reachable only through pull/<N>/head, so a hash naming no PR leaves
the reader nothing to fetch.

pin-a-revision-where-it-stays asks each cited revision to be on main or
named with the PR whose head holds it, and its Probe checks either with
git merge-base --is-ancestor, against origin/main or the fetched
pull/<N>/head. The preamble keeps a claim resting on an open PR's moving
head barred, and lets a Why name an open PR as its evidence's source
when the pin is durable, the PR adding the citation included.

heading-matches-the-rule's Probe now names #2379 beside 67bbcf8.
another-contributors-pull-request asks the plan and each of its pull
requests touching a shared fact to name another contributor's open pull
request on it, but its Probe checked the plan alone, so a touching
pull request's body that left it out passed. The Probe now reads both.
Adding TestName as a placeholder let a lookup by the bare name skip a.TestName, a real package's test, as it skips the package.TestName shape, and no row told the two apart. The row now names a.TestName, which package a does not declare.
Rule 2.18 lists r and w as idioms at any scope. The departure from it kept the one-letter names name-what-it-holds allows without naming them, so a reviewer reading 2.18 beside it could not tell whether r io.Reader, the example the departure was asked to give, still stands. It now names r io.Reader and w io.Writer as standard-library conventions it keeps.
The probe's for-statement pattern passes the first variable whatever it holds, so for v := range seq, an element the naming rule renames, prints nothing. The Rule said it passed a for counter, which read as listing every other first variable.
Where another PR's head lacks a file this branch's diff edits, applying
that diff there applies nothing, and the joint-claim rules ended at
reporting that no test ran. Applying the other PR's diff, limited to
the files the claim reads, onto this branch's head reaches the same
joint tree for those files: #2187's end-to-end tests applied onto this
branch's head, where the skills' test-name check ran.
"Such conventions as X among them" said its list twice; the sentence now names the two conventions once and rewraps the lines below it.
"The PR adding the citation is one" left "one" to be resolved against the clause before it, where "an open PR" reads first and contradicts the merge that follows. Naming it "such a pin" says at once that the citing PR pins the evidence, being merged by the time the citation lands.
The rule restated the failed-apply rule's missing-file case beside a citation of that rule, and "its own conflicts" could be read as the head's. Drop the restated case and name the other PR as the one whose conflicts with main bar a file.
"Each one touching its files" followed a clause about each pull request's own files, so "its" could be read as theirs. Name the plan's files.
The amend! recipe covered a reword with no merge after it, and the filter-branch one a reword below a merge. The filter-branch recipe keeps every tree in both cases, so one rule now covers every reword of an unpushed commit below the tip, and its Why carries the reasons --amend and rebase -i do not serve.

The message file is named by an absolute path: filter-branch runs its filters in .git-rewrite/t, where a relative path names nothing and the filter fails.
pin-a-revision-where-it-stays asks that a revision off main be named
with the PR whose head holds it, but its Probe had to be handed that PR
number. GitHub lists the PRs holding a commit through
repos/{owner}/{repo}/commits/<sha>/pulls, so the Probe now finds them
that way and keeps the fetch of pull/<N>/head and the
git merge-base --is-ancestor check as the test. The API call exits 1
for a hash GitHub lacks. The rule stays at 150 words.
decide-once's Why named the files holding disjoint and disjointAtoms.
#2354 renames the first of them, and only the skills lint, which no CI
job runs, would see the citation go stale once both changes merge.
Naming the package and the two functions keeps the evidence and holds
through the rename.
apply-the-other-diff-onto-the-head's Probe applied the other PR's
end-to-end tests alone. Its documents name tests in other packages'
test files, so on #2194 the test-name check failed on names the partial
apply had left out. The Probe now applies every file Upkeep's checks
read, test files included, bar those the other PR's own conflicts with
main touch, which merge-tree lists; #2194 and #2187 both pass there.

Applying every file that does not conflict with main fails #2187's
build instead: its schema/notes.go needs a schema/members.go change that
conflicts with main.
project-ci-time-from-counts forbids projecting a CI time from local
wall time or a local profile's share, but its heading named only "a
local share", so a reader projecting from wall time, the commoner
mistake, would pass it by. The heading now names both.
reword-an-unpushed-commit ran filter-branch with its default backup
namespace, refs/original, which every worktree of a repository shares,
then deleted all of refs/original. A backup another worktree had left
there made the rewrite refuse, and the cleanup, run after the failed
rewrite, deleted that backup.

The rewrite now backs up under refs/worktree/reword, which git keeps
per worktree, and deletes only that namespace, after && so that a
failed rewrite keeps its backup. filter-branch-backup-per-worktree
states this, with a two-worktree scratch repository as its Probe.
handed-in-answers-join-the-key covers a function or interface handed to
a remembered reading as a parameter or a field of one, but its probe
printed only each parameter's own type and kept only the lines naming a
function or an interface, so a caller handed one through a struct
parameter or its receiver printed nothing. operation.readSchema, whose
memo reads through branchReading's read field, is such a caller on the
tree. The probe now prints the receiver and each parameter, and the
fields of a struct or a pointed-to struct one level down, and names
readSchema as the line it lists.
review-head-in-own-ref's first sentence told a reviewer to add the
worktree from the fetched ref alone, while the setup adds it at the
local branch head where that branch holds commits the fetched ref lacks,
so a reader following that sentence missed the case. The sentence now
names both refs, and the next states the worktree's HEAD before any
merge as the commit it was added from.
@OmarAlJarrah
OmarAlJarrah merged commit b2a3427 into main Dec 2, 2026
2 checks passed
@OmarAlJarrah
OmarAlJarrah deleted the chore/skills-gaps-2301-2372 branch December 2, 2026 17:45
OmarAlJarrah added a commit that referenced this pull request Dec 2, 2026
The rules main gained in #2379 wrote words the glossary that opens
docs/compilers/openapi.md retires: "stand" (a stand-in, a count that
stands out), "meet" for an intersection and "reach" for a keyword
scope. They now say stub, as tests-that-bite.md already does, "is
well above the rest", the intersection and the keyword scope. The key
test-first-against-a-stand-in keeps its word, as rule keys do.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment