Repository navigation
chore(#1271): retire the root hooks/ and skills/ copies; one shared list of skill mirror roots - #1299
Merged
admarble merged 4 commits intoOct 4, 2026
Conversation
…roots Entire-Checkpoint: 992886035545
…irrors Entire-Checkpoint: f92f9ecf2bb7
…m SKILL_ROOTS Entire-Checkpoint: f0fdc5e55699
4 tasks
…ugin-retire-the-root-hooks-and-skills-copi
3 tasks
admarble
deleted the
feature/1271-chore-plugin-retire-the-root-hooks-and-skills-copi
branch
October 4, 2026 18:15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
skills/andhooks/are gone.npm run sync:skillsandnpm run sync:hooksdo not recreate them, andsync-hooks.shno longer copies roothooks.jsoninto the plugin.scripts/check-skill-sync.tsnow exportsSKILL_SOURCE_ROOT,SKILL_MIRROR_ROOTSandSKILL_ROOTS.lint-skill-calls.ts,ground-check.ts,ready-backtest.tsand about 40 gate tests now import it instead of keeping their own copy. Many of those copies had noplugin/skills, includingfullsolve-merge-gate-skill.test.ts, so they now also check the shipped copy. The two "sync N/N match" tests take N fromSKILL_ROOTS.lengthinstead of a hard-coded4/4.SCAN_ROOTSinlint-skill-gates.tsand the candidate list ingenerate-constitution-dod.ts. Both are first-match lists that also run in user projects, not mirror lists. In each I replaced rootskillswithplugin/skills.plugin/hooks/hooks.jsonis now its own source (derived AC-5). The test that compared it byte-for-byte with roothooks.jsonis replaced by a check that every script it registers exists inplugin/hooks/.plugin/hooks/: the three pre-tool integration tests andtoken-utils.test.ts.scripts/hook-corpus.tsnow readstemplates/hooks/, both normally and at the--diffref, because that directory exists at every ref.plugin-install-test.yml:hooks/**andskills/**fortemplates/hooks/**andtemplates/skills/**.bash -n, the smoke tests and the hooks.json check all run onplugin/.--plugin-dirstep now loads./plugin(derived AC-7).hooks/gone, it would have failed on every PR. It now looks underplugin/./upstreamdefault and.sequant/upstream/baseline.jsonnow nameplugin/hooks/hooks.json. New ADRdocs/adr/0008-retire-root-plugin-mirrors.md, listed in the ADR index.Pre-PR AC Verification
test ! -e skills && test ! -e hookspasses;lint:skill-syncreports 47 synced, 0 missing;lint:skill-callsreports no violationsplugin-install-test.ymlreturns nothing; the hooks.json and skill-scan steps were run locally and pass. The workflow itself first runs on the PR.docs/internal/graph-2026-09/issues/*,docs/investigations/*,hook-corpus.jsonl, the tautology-detector strings, and the fixture lists inmarkdown-only-ci,qa-markdown-only-ci-snippetandassess-collision-detecttest -f .agents/skills/qa/SKILL.mdpassessrc/lib/relay/__tests__/hook-sync.test.tsregistration check;sync-hooks.shreports "already in sync"SKILL_ROOTSis exported once and imported everywhereclaude --plugin-dir ./pluginMutation-verified: AC-2 — dropped the
plugin/prefix from the hooks.json path check; the step failed with "Referenced script not found: hooks/pre-tool.sh"; restored.Mutation-verified: AC-5 — registered a script that doesn't exist in
plugin/hooks/hooks.json; only the new registration test failed (1 of 5); restored.Mutation-verified: AC-6 — added root
skillsback toSKILL_MIRROR_ROOTS;lint:skill-syncreported 47 missing and the soak gate tests failed; restored.AC-6 has no parseable marker on purpose. Its guard is the single import of
SKILL_ROOTS, not one test. Re-adding a root failslint:skill-syncand the soak gates, as the prose line above records.Fixes #1271
Runner verification (post-QA)
The runner re-checked the work after QA:
test ! -e skills && test ! -e hookspasses.lint:skill-syncreports 47 synced, andlint:skill-callsfinds no violations.plugin/andtemplates/.test -f .agents/skills/qa/SKILL.mdpasses.claude --plugin-dir ./plugin.plugin/prefix removed, it exits 1 withReferenced script not found: hooks/pre-tool.sh.scripts/hook-corpus.ts(QA §11):npx tsx scripts/hook-corpus.ts --diff HEAD~3exits 0 with "0 verdict changes".templates/hooks/might be missing at older refs doesn't apply.templates/hooks/pre-tool.shwas added in the repository's first commit (49bf8204, 2026-01-03), so the "exists at every ref" comment is accurate..claude-plugin/plugin.jsonandmemory/): filed as chore(plugin): decide the root .claude-plugin/plugin.json and memory/ — second manifest kept in sync by hand since ./plugin ships #1301. The root manifest is still read by/release,ci.ymlandplugin-install-test.yml, so retiring it is a separate decision.closingIssuesReferenceswas empty).🤖 Generated with Claude Code