refactor(bin): four skills still keep non-spec files at the skill root #122
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found during the #99 ADR-0020 retrofit and the follow-up audit pass on
refactor/adr0020-skill-retrofit. Deliberately left unfixed there — same class as #114, which has since been fixed forprototype.The rule
plugins/kyberforge/.apm/skills/skill-audit/references/file-structure.md:20:Four permitted directories only:
scripts/,references/,assets/,tests/.SKILL.mdandREADME.mdare the only spec files at the root.What is still there
Verified by
lson each skill root in the working tree:bin/grill-with-docsADR-FORMAT.md,CONTEXT-FORMAT.mdbin/improve-codebase-architectureDEEPENING.md,INTERFACE-DESIGN.md,LANGUAGE.mdbin/tdddeep-modules.md,interface-design.md,mocking.md,refactoring.md,tests.mdbin/triageAGENT-BRIEF.md,OUT-OF-SCOPE.mdbin/prototypeis now clean — its two flow files sit inreferences/(logic.md,ui.md), which is #114 landing.Why it is not cosmetic
This is the reason #114 was worth doing. A file outside
references/is invisible to the deterministic dangling-reference ERROR: the ADR-0020 gate resolves an unqualifiedreferences/…pointer against the skill's own directory and fails when it does not exist. A link to a root-levelLANGUAGE.mdis checked by nothing, so a typo in it fails silently at runtime — the agent follows a dead link mid-procedure and improvises.These files are live targets, not dead weight.
improve-codebase-architecture/SKILL.mdlinksLANGUAGE.mdthree times andINTERFACE-DESIGN.mdonce;INTERFACE-DESIGN.mdlinksDEEPENING.mdthree times andLANGUAGE.mdtwice;DEEPENING.mdlinksLANGUAGE.mdonce;triage/SKILL.mdlinksAGENT-BRIEF.mdtwice andOUT-OF-SCOPE.mdtwice;grill-with-docs/SKILL.mdlinksCONTEXT-FORMAT.mdandADR-FORMAT.mdonce each.The cross-skill consequence
grill-with-docs's two root files are cited from a sibling skill, so moving them is not a self-contained edit.improve-codebase-architecture/SKILL.mdcurrently reads:That possessive spelling is the one form
file-structure.mdsanctions for a cross-skill reference (it was../grill-with-docs/CONTEXT-FORMAT.mduntil commit03abcff— see the second half of the body-routing issue filed alongside this one). Moving the files togrill-with-docs/references/makes both citations stale, and neither is checked by any gate. Update them in the same change.Also worth confirming during the move
Each skill's
README.mdfile table must list every file that exists with no stale rows (file-structure.md, Internal consistency).grill-with-docs/README.mdandtriage/README.mdboth currently describe these as "Skill-root document" in their tables; those rows change with the files.Files
plugins/bin/.apm/skills/{grill-with-docs,improve-codebase-architecture,tdd,triage}/— and only the.apm/copies;plugins/bin/skills/is the generated mirrorplugins/kyberforge/.apm/skills/skill-audit/references/file-structure.md:20— the ruleRelated
prototype, now fixedOpened #133 implementing this — moved and renamed all 12 files to lowercase-kebab-case under references/ across the four skills, fixed the cross-skill citation and every in-skill link (including stale link text), updated the four README.md file tables, and resynced the content mirror. Full test suite and pre-push gate both green.