Repository navigation
Description
Summary
docs/guides/customization.md documents .claude/.local/ as an update-safe override layer: "Put your customizations in .claude/.local/ and they will never be overwritten" and, for skills, "The local version takes precedence." For skills (and almost certainly hooks) this is false. A skill placed in .claude/.local/skills/<name>/SKILL.md is never loaded or invoked — neither in an orchestrated run nor when a user types /<name> interactively. The original .claude/skills/<name>/SKILL.md always runs.
This is the headline use case of the customization layer (fork a skill, survive updates), and it silently does nothing. Users following the guide get no error and no effect.
Related but distinct: #708 covers update/sync overwriting in-place edits. #708 assumes .local/ is a working safe-harbor; this issue shows the safe-harbor itself is non-functional for skills/hooks. Fixing #708 alone still leaves "copy a skill into .local/ to customize it" broken.
Verification (this session)
Confirmed at three layers:
-
No runtime merge in sequant. The only
.local/handling in all ofsrc/:src/commands/update.ts:136-159— skips.local/during updates (legit update-safety)src/commands/status.ts:400-402— cosmetic "Custom overrides: Yes" if the dir exists
There is no code that reads
.claude/.local/skills/and merges it into the discovered skill path. -
Skills are invoked via the harness, not sequant. The orchestrator hands a prompt ending "Run the /spec {issue} workflow." (
src/lib/workflow/phase-registry.ts:178). Sequant never readsSKILL.mdcontent itself — it delegates/specto Claude Code's native skill discovery. -
Native discovery has no
.local/path. Claude Code resolves skills only at user (~/.claude/skills/), project (.claude/skills/), and plugin (namespaced) scopes..claude/.local/skills/is not a discovery location, so the file is invisible.
Hooks: very likely the same failure mode (hooks fire from explicit settings.json paths; .local/hooks/* is not auto-discovered). Not fully traced — calling it out for the same pass.
False claims in docs/guides/customization.md
- L21: "Put your customizations in
.claude/.local/and they will never be overwritten" — true only forupdate, notsync(see fix(update/sync): sync reports 'up to date' on content drift; update overwrites in-place customizations (constitution) #708), and irrelevant for skills since they never load. - L52-65 "Modifying an Existing Skill" → "The local version takes precedence" — false, never loaded.
- L67-101 "Creating a New Skill" in
.local/skills/<name>/— false, never discovered. - L105-138 "Customizing Hooks" in
.local/hooks/— suspect, same mechanism.
Acceptance criteria
-
.claude/.local/skills/<name>/SKILL.mdeither (a) actually takes precedence when invoked, or (b) the docs stop claiming it does and point users to a mechanism that works. - Same resolution for
.claude/.local/hooks/(verify, then fix or correct docs). - A net-new custom skill has a documented home that the harness actually discovers (project
.claude/skills/checked-in, or user~/.claude/skills/), andupdate/synctreat unmanaged dirs under.claude/skills/as user-owned (never clobber). -
customization.mdcontains no override instruction that doesn't function end-to-end (verified by an actual invocation, not just file placement).
Fix options (for /spec to weigh)
- Runtime overlay hook (recommended for prose skills). Each managed
SKILL.mdends with a stable directive: "If.claude/.local/skills/<name>/overrides.mdexists, treat its instructions as authoritative over the above." Works regardless of harness discovery (Claude reads the file at invocation), survives updates because users write small deltas not full forks, and avoids the vendored-copy rot of full-file shadowing. - Install-time merge.
init/update/synccopy.local/skills/*over.claude/skills/*so the harness-discovered file is the merged result. Simple but re-clobbers on every sync and loses the "never touched" guarantee. - Redirect to native scopes. Drop
.local/skills/entirely; document forking into project.claude/skills/(checked in) and makeupdate/syncmanifest-hash-aware so in-place edits aren't overwritten (overlaps fix(update/sync): sync reports 'up to date' on content drift; update overwrites in-place customizations (constitution) #708 — wire up the unusedmanifest.fileshashes).
Recommendation: (1) for modifying existing skills + correct the docs; net-new skills go to project .claude/skills/ per (3); coordinate the update-safety mechanics with #708.
Suggested approach
- Correct
docs/guides/customization.mdfirst (stop the false promise), then implement the overlay hook across skill templates (templates/skills/,skills/,.claude/skills/— keep all three in sync). - Add a verification test that actually invokes an overridden skill and asserts the override ran, so this can't silently regress.
Activity
admarble commentedon Jun 4, 2026
→ PROCEED — Fix or correct the
.claude/.local/override layer (non-functional for skills/hooks)Workflow: spec → exec → qa (-Q)
Clear ACs (4) but large/multi-surface: runtime overlay mechanism + doc correction + 3-dir SKILL.md template edits + an actual invocation test. Three fix options in the body — pick one strategy in /spec before exec. If option (1) is chosen, it appends a directive to every SKILL.md and overlaps #707's release/SKILL.md edit.
admarble commentedon Jun 4, 2026
Complexity: Standard (4 ACs, ~5 directory roots / 3× skill mirror dirs)
AC Quality Check
.claude/skills/dirs.No vague/unmeasurable language. Branching ACs resolved below.
Scope Assessment
Non-Goals:⚠️ Not declared in the issue. Proposed (confirm): out of scope = (i) building a generic harness-level
.localskill discovery path (we don't control Claude Code's resolver); (ii) re-doing #708's manifest-hash update-safety (closed/merged — we depend on it, not redo it); (iii) a per-hook runtime overlay mechanism (none feasible — docs-correct only for hooks).Verdict:⚠️ SCOPE_WARNING — high file fan-out (directive appended to every managed
SKILL.md× 3 mirror dirs). Auto-enables quality loop. Matches/assess(quality-loop=true).Key finding that reframes the fix
update.ts:~150-159already has a.localbranch: when.claude/.local/skills/<name>/SKILL.mdexists it marks the package filelocal-overrideand skips overwriting it. This is the source of the false promise — update believes it's honoring an override, but the harness never loads the.localcopy at invocation, so nothing changes. Any fix must retire/repurpose this full-file-shadow assumption, not leave it dangling.Acceptance Criteria
AC-1:
.local/skills/<name>override actually takes effect (chose option 1: runtime overlay)Verification: Integration Test
Scenario: Given a managed
SKILL.mdshipped with the overlay directive and a.claude/.local/skills/<name>/overrides.mdpresent → When the skill is invoked → Then the override instructions are treated as authoritative.Decision: Append a stable directive to each managed
SKILL.md: "If.claude/.local/skills/<name>/overrides.mdexists, treat its instructions as authoritative over the above." Delta-file (overrides.md), not full-SKILL.mdshadow — survives updates, avoids vendored-copy rot. Automated bar = assert the directive string is present in every managedSKILL.md(unit). End-to-end bar = documented actual invocation (AC-4).Assumptions: Claude reads the full
SKILL.mdbody at invocation (true — that's how skills run);<name>is resolvable per-skill (substitute literal name, not a placeholder, so the path is correct).AC-2: Same resolution for
.claude/.local/hooks/Verification: Integration Test (discovery) + docs correction
Scenario: Given a hook in
.claude/.local/hooks/→ When the corresponding tool event fires → Then confirm whether it runs (expected: does not, hooks fire only from explicitsettings.jsonpaths).Decision: No per-hook runtime-overlay mechanism is feasible. Correct
customization.mdto point hook customization at the real mechanism (settings.local.json/ explicit settings paths), and remove the false.local/hooks/promise.Assumptions:
.claude/settings.local.jsonis honored (referenced inworktree-isolation.test.ts); confirm during exec.AC-3: Net-new custom skill has a real home; update/sync never clobber unmanaged
.claude/skills/dirsVerification: Integration Test
Scenario: Given a net-new
.claude/skills/foo/SKILL.mdnot present intemplates/→ Whenupdate/syncruns → Thenfoo/is untouched.Decision: Document net-new skills → checked-in project
.claude/skills/(harness-discovered) or user~/.claude/skills/. Update-safety is largely already satisfied:update.tsonly writes paths derived fromlistTemplateFiles()and never deletes non-template files, so unmanaged dirs are already safe — add a regression test proving it + document the guarantee.Assumptions:
sync:skills(cp -r templates/skills/* .claude/skills/) only adds/overwrites managed names, never prunes unmanaged — verify the npm-script andsynccommand path both hold this.AC-4:
customization.mdcontains no non-functional override instructionVerification: Manual/Integration Test
Scenario: Given the rewritten guide → When each documented override path is actually exercised (skill invoked, hook fired) → Then every instruction produces its claimed effect.
Decision: Rewrite the doc to: overlay (
overrides.md) for modifying skills; project/user.claude/skills/for net-new; corrected hook guidance. Each example must be invocation-verified, not file-placement-verified.Implementation Plan
Phase 1: Correct the false promise (ship first, independently mergeable)
docs/guides/customization.md: replace full-file.local/skills/<name>/SKILL.mdshadowing with theoverrides.mdoverlay; redirect net-new skills to project/user.claude/skills/; fix the hooks section to the real mechanism; soften the blanket "never overwritten" line (cross-ref fix(update/sync): sync reports 'up to date' on content drift; update overwrites in-place customizations (constitution) #708).Phase 2: Overlay mechanism (the functional fix)
SKILL.mdacross all three mirror dirs (templates/skills/,.claude/skills/,skills/) — keepscripts/check-skill-sync.tsgreen (synced 3/3).templates/skills/is the published source-of-truth (inpackage.jsonfiles).update.ts:~150-159local-overrideSKILL.md-shadow branch so it aligns withoverrides.md(don't leave a dead full-file-shadow code path).Phase 3: Update-safety guarantee for net-new skills
update/syncagainst a fixture containing an unmanaged.claude/skills/foo/asserts it is untouched.Phase 4: Anti-regression test for the override
SKILL.md(so a new skill can't ship without it), plus a documented manual invocation-verification step proving anoverrides.mdactually wins.Design Review
SKILL.mdbody (LLM-interpreted at invocation), not TypeScript — there is no sequant runtime skill loader to hook. update/sync safety lives insrc/commands/update.ts+sync.overrides.mddirective beats install-time merge (re-clobbers, loses "never touched") and beats trying to add a.localdiscovery path we don't control in the harness..local/memory/constitution.md) is the precedent for "user delta read at runtime." 3-dir SKILL.md sync is the established mirror pattern (check-skill-sync.ts, memory: sync.claude/skills/,templates/skills/,skills/).release/SKILL.md).Rule Touchpoints
The override is a behavior rule implemented at two touchpoints — flagged so neither goes stale:
*/skills/*/SKILL.md(×3 mirrors).localsrc/commands/update.ts:~150-159local-overridebranch must be reconciled, not duplicatedConflict Risk Analysis (in-flight)
Worktrees exist but are empty (0 commits) for #707/#709/#713 — no live conflict yet, forward-looking only:
release/SKILL.md→ our directive touches the same file. Land whichever merges first, then rebase the other; trivial (different sections).update --nonon-interactive) & fix(sync): areSkillsOutdated/checkAndWarnSkillsOutdated pre-flight is version-only — misses content drift (sibling of #708) #713 (syncskills-outdated) touchupdate.ts/sync→ overlaps AC-3's update-safety edits. Coordinate via/mergeror sequence after they merge.Open Questions
update.tslocal-overrideSKILL.md branch? Recommendation: repurpose to recognizeoverrides.md. Impact: leaving it dead-but-present re-creates the false-promise smell.Recommended Workflow
Phases: spec → exec → qa
Quality Loop: enabled (SCOPE_WARNING)
Reasoning: Matches
/assess(spec,exec,qa,quality-loop=true). Not addingtestgenas a separate phase — the only clean automated tests are the directive-presence assertion (AC-1/4) and the unmanaged-dir regression (AC-3); fold both into exec. Notestphase (no browser UI). Docs-heavy + prose-skill directive, so exec carries the bulk.Label Review
Current: (none)
Recommended:
bug,docs,cliReason: Non-functional documented feature (bug) + doc rewrite (docs) + update/sync safety in CLI commands (cli). Mirrors #708's labeling.
Quality Loop: Will auto-enable via SCOPE_WARNING (directory fan-out).
→
gh issue edit 711 --add-label bug,docs,cli--- DRAFT GITHUB ISSUE COMMENT (PLAN) ---
Plan — fix the non-functional
.claude/.local/override layerChosen strategy (resolving the branching ACs): Option (1) runtime overlay for modifying skills + native project
.claude/skills/for net-new + correct the docs.Root cause nuance:
update.ts:~150-159already has a.local/skills/<name>/SKILL.md"local-override" branch that skips overwriting the package file — but the harness never loads the.localcopy, so it silently does nothing. That branch is the source of the false promise and must be reconciled with the newoverrides.mdmechanism.ACs & verification
SKILL.mdmakes.claude/.local/skills/<name>/overrides.mdauthoritative — Integration test invokes an overridden skill; unit asserts directive present in all SKILL.md..local/hooks/discovery (expected: not auto-loaded) → correct docs to the real mechanism (settings.local.json). No per-hook runtime overlay is feasible..claude/skills/;update/syncnever clobber unmanaged dirs — regression test on an unmanaged.claude/skills/foo/.customization.mdcontains no override instruction that isn't invocation-verified.Plan: (1) correct
customization.mdfirst; (2) add overlay directive across all 3 skill mirror dirs (keepcheck-skill-syncgreen); (3) reconcile theupdate.tslocal-override branch; (4) regression + directive-presence tests.Coordinate: #707 also edits
release/SKILL.md; #709/#713 touchupdate.ts/sync(update-safety). Worktrees currently empty — sequence on merge order.Open Qs: (1) confirm Non-Goals (no per-hook overlay); (2) repurpose vs. retire the existing
update.tslocal-override branch (recommend repurpose).Workflow: spec → exec → qa, quality loop on.
admarble commentedon Jun 4, 2026
Exec Progress — PR #716
Implemented the chosen strategy: runtime overlay for modifying skills + project/user
.claude/skills/for net-new + docs correction.AC coverage
<!-- sequant:local-override -->) appended to all 53SKILL.mdacross the 3 mirror dirs; presence asserted by__tests__/integration/local-override-directive.integration.test.ts; verified end-to-end — a skill body carrying the directive read.claude/.local/skills/<name>/overrides.mdand emitted the override marker instead of its default output.local/hooks/is not auto-discovered (hooks fire only from explicitsettings.jsoncommand paths);customization.mdcorrected to register hooks via.claude/settings.local.json(Claude Code merges it, gitignored, update-safe).claude/skills/;update/synconly writelistTemplateFiles()paths and never delete unmanaged files —src/commands/unmanaged-skill-safety.integration.test.tsproves a custom.claude/skills/foo/survives bothupdateandsync --forcedocs/guides/customization.md+docs/troubleshooting.mdrewritten so no documented override path is non-functional; added a manual invocation-verification recipe; overlay proven by actual invocation (not file placement)Key files changed
.claude/skills/*/SKILL.md,templates/skills/*/SKILL.md,skills/*/SKILL.md(53 files) — overlay directivedocs/guides/customization.md— overrides.md overlay for skills; project/user scope for net-new; corrected hooks →settings.local.json; verification recipedocs/troubleshooting.md— fixed the same broken full-SKILL.md-shadow snippetsrc/lib/templates.ts— clarifying comment:.local/parallel-file protection guards in-place edits (constitution), not skill loading__tests__/integration/local-override-directive.integration.test.ts(new),src/commands/unmanaged-skill-safety.integration.test.ts(new)CHANGELOG.mdQuality Plan Alignment
N/A — the
/speccomment had no dedicated Feature Quality Planning / Derived ACs table; quality was folded into the 4 ACs above.Design decision (spec Open Question #2)
Kept #708's generic
.local/parallel-file protection intact rather than gutting it. Under the overlay mechanism users writeoverrides.md(auto-skipped under.local/) and leave the managedSKILL.mdunchanged, so that branch is inert for skills — not a live false promise. Removing it risked regressing freshly-shipped #708. Added a clarifying comment instead.Checks
npm run build✅ ·npm run lint✅ ·lint:skill-calls✅Coordination
release/SKILL.md(different section — trivial rebase whichever merges second).update.ts/sync; this PR only adds a comment totemplates.ts+ new test files, so overlap is minimal.Suggested reviewer step
Invoke a real skill (e.g.
/spec) with a markeroverrides.mdpresent and confirm the marker appears in output — closes the loop on AC-4's live-invocation bar.admarble commentedon Jun 4, 2026
QA Review for Issue #711
AC Coverage
.local/skills/<name>override actually takes effect<!-- sequant:local-override -->) in all 53SKILL.mdacross 3 mirror dirs, each with the literal skill name in the override path (verified 0 problems). Presence asserted bylocal-override-directive.integration.test.ts. Independently verified end-to-end: a fresh agent acting as/specwith the shipped directive readoverrides.mdand emitted the override marker instead of its default output.local/hooks/settings.jsoncommand paths — no.local/hooks/auto-discovery.customization.mdcorrected to the real mechanism (.claude/settings.local.json, which Claude Code merges and gitignores — verified.claude/settings.local.jsonis in.gitignore). Hook JSON format matchestemplates/settings.json.claude/skills/.update/synconly writelistTemplateFiles()paths and never delete —unmanaged-skill-safety.integration.test.tsprovesupdateANDsync --forceboth leave an unmanaged.claude/skills/foo/byte-identical while updating the managed skillcustomization.mdhas no non-functional override instructioncustomization.md+troubleshooting.mdrewritten; full-repo scan finds no residualtakes precedence/ SKILL.md-shadow /.local/hooksfalse promises. Each documented path is invocation-verified, not file-placement-verified; added a user-facing verification recipeCoverage: 4/4 AC items fully met (all original; no derived ACs)
CI Status
CI Summary: 7 passed, 0 pending, 0 failed (build matrix completed during QA).
Quality Metrics
any)Test Coverage Analysis
src/lib/templates.tstemplates.test.ts+update.integration+ newunmanaged-skill-safety*/SKILL.mdlocal-override-directive.integration.test.tsdocs/*.mdCoverage: All substantive changes covered.
Skill-Sync (3-dir) Check
Skill
.mdfiles modified → rancheck-skill-sync.ts. Result24 synced / 8 diverged / 10 missingis byte-identical to the origin/main baseline — this PR introduced zero new divergence. The pre-existing diverged files (improve, loop, qa refs, security-review) each carry the directive consistently across all 3 mirrors; their divergence predates this branch and is out of scope (per thebehavior-rule-skill-synctouched-files-only precedent). Does not block merge.Code Review
Strengths:
templates.ts— no behavior change, so fix(update/sync): sync reports 'up to date' on content drift; update overwrites in-place customizations (constitution) #708's freshly-shipped in-place-protection logic is preserved.customization.mdandtroubleshooting.md) — cross-file sibling caught.Issues: None blocking.
Observations (non-blocking, no change required):
templates.tshasLocalOverridebranch. Exec kept it (it correctly protects in-place constitution edits — fix(update/sync): sync reports 'up to date' on content drift; update overwrites in-place customizations (constitution) #708) and added a comment clarifying it is not a skill-loading path. This is the correct call; gutting it would risk regressing fix(update/sync): sync reports 'up to date' on content drift; update overwrites in-place customizations (constitution) #708.Skill Command Verification
Not Required — the only skill-file change is the prose overlay directive; no CLI commands were added or modified.
Detection Pattern Verification
Not Required — the directive is prose, not a corpus-matching
grep/awk/jq/sed/regex pattern. No detection patterns added.Execution Evidence
N/A — no
scripts/changes; thetemplates.tschange is comment-only.CHANGELOG Verification
Risk Assessment
SKILL.mdwithout the directive (override silently stops working for that skill) — mitigated: the presence test scans all dirs dynamically and fails CI if anySKILL.mdlacks the sentinel. Secondary: the overlay is LLM-interpreted prose, so an exceptionally stubborn skill could ignore it — mitigated by placing the directive at end-of-file and verifying it wins at actual invocation.sequant run(the prose mechanism has no unit-testable runtime surface).customization.md,troubleshooting.md); both fixed. No other occurrences.templates.tshasLocalOverrideis the only in-file site touching.local/resolution; reviewed and intentionally retained for constitution protection.Adversarial Re-Read
Findings: No gaps found because: (1) ran the new overlay against an independent fresh-fixture invocation (not exec's) —
overrides.mdwon over the default, confirming AC-1/AC-4 at runtime; (2) the AC-4 evidence is a genuine post-fix validation (override honored), not a pre-fix repro; (3) inspected process state — working tree clean, single commit, branch 0 ahead/behind origin, zero new sync divergence vs origin/main; (4) cited sibling sites explicitly — cross-file (customization.md + troubleshooting.md, both fixed; full-repo scan clean) and intra-file (templates.tsbranch, intentionally retained); (5) checked spec Non-Goals — overlay stays prose-level (no harness-resolver work),templates.tsgot only a comment (didn't redo #708), hooks are docs-only (no per-hook overlay). No Non-Goal expanded into scope.Status: Clean
Verdict: READY_FOR_MERGE
All 4 ACs literally met and verified by actual invocation (independently re-run in QA), all 7 CI checks green, build/lint/92 tests pass, CHANGELOG present, and zero new 3-dir skill divergence. The fix is minimal and well-scoped, docs are accurate with no residual false promises, and the one debatable design point (retaining the
templates.tsprotection branch) is the correct, documented choice. A+.Documentation
customization.md,troubleshooting.md) — this is the core of the fix/docs 711if a dedicated feature doc page is desired (not required — the customization guide IS the doc surface).Next Steps
release/SKILL.md, different section — trivial) and fix(update): no non-interactive path — crashes without a TTY, add --yes #709/fix(sync): areSkillsOutdated/checkAndWarnSkillsOutdated pre-flight is version-only — misses content drift (sibling of #708) #713 (touchupdate.ts/sync; this PR only adds a comment + tests).admarble commentedon Jun 4, 2026
QA Review for Issue #711
Fresh full-weight pass at
a32d8763f(HEAD). The prior QA was atb48c31d; the only deltas to HEAD are the #707release/SKILL.mdrebase + CHANGELOG integration — the override mechanism and docs are byte-identical to the previously verified content.AC Coverage
.local/skills/<name>override actually takes precedence (or docs corrected + point to a working mechanism)<!-- sequant:local-override -->) present in all 53SKILL.mdacross 3 mirror dirs, each with the literal skill name in the override path (0 mismatches). Old false claims removed from docs. Presence asserted bylocal-override-directive.integration.test.ts..local/hooks/(verify, then fix or correct docs).local/hooks/auto-discovery; documents the real mechanism (register script in.claude/settings.local.json).update/syncnever clobber unmanaged.claude/skills/dirsunmanaged-skill-safety.integration.test.tsprovesupdateandsync --forceleave an unmanaged.claude/skills/foo/intact while updating the managedspec.Coverage: 4/4 AC items MET (4/4 original; no derived ACs).
Quality Metrics
any)tsc --noEmitexit 0)CI Status
Test Coverage Analysis
local-override-directive.integration.test.ts— asserts the sentinel + literal per-skill override path in every managedSKILL.mdacross all 3 mirror dirs.unmanaged-skill-safety.integration.test.ts— assertsupdate/sync --forcenever clobber an unmanaged.claude/skills/dir.src/lib/templates.tschange is comment-only (documents that the.local/protection branch is not a skill-loading mechanism) — no runtime surface, no test needed.Code Review
Strengths:
overrides.mddeltas) instead of full-SKILL.mdshadow — survivesupdate/sync, avoids vendored-copy rot. Isomorphic to the already-working constitution overlay.settings.local.jsonmechanism.Issues: None blocking.
Skill Sync Check
Three-dir sync reports 8 diverged / 10 missing — identical to the origin/main baseline (24 synced, 8 diverged, 10 missing). This PR introduced zero new divergence; the drift is pre-existing, longstanding repo structure (e.g.
release/upstreamonly in.claude/skills) and out of scope for #711.Detection Pattern Verification
N/A — the added directive is prose; no
grep/awk/jq/sedor regex literals were added to skill markdown.CHANGELOG Verification
✅
[Unreleased] → Fixedentry present for #711.Risk Assessment
SKILL.mdwithout the directive → override silently stops working for that skill. Mitigated — the presence test scans all dirs dynamically and fails CI if anySKILL.mdlacks the sentinel. Secondary: overlay is LLM-interpreted prose, so a stubborn skill could ignore it — mitigated by end-of-file placement + the verified invocation..local/handling insrc/is the (now-commented)templates.tsprotection branch and the cosmeticstatus.tscheck, neither of which is a loading path.Adversarial Re-Read
Findings: No gaps found, because: (1) confirmed every managed
SKILL.mdcarries the directive with its literal skill name (53/53, 0 mismatches) — no placeholder/wrong-name resolution failures; (2) grepped docs for the original false claims and confirmed they're gone; (3) verified thetemplates.tschange is comment-only with no behavior delta; (4) confirmed the skill-sync divergence is pre-existing (byte-identical baseline on origin/main), not introduced here; (5) confirmed HEAD's override-mechanism content is byte-identical to the prior-QA commit that recorded the actual-invocation verification (only #707 rebase artifacts differ); (6) no Non-Goals silently expanded into scope.Status: Clean
Verdict: READY_FOR_MERGE
All 4 ACs literally met. The headline bug —
.claude/.local/skillssilently doing nothing — is fixed with the correct mechanism (runtime overlay), the docs no longer make any non-functional promise, net-new skills are pointed at a discoverable home with a regression test guarding unmanaged-dir safety, and the overlay's end-to-end efficacy is verified by actual invocation (recorded on identical content). Both new test suites pass, typecheck is clean, CI is 7/7 green, the CHANGELOG entry is present, and the PR introduces no new 3-dir skill divergence.Documentation
docs/guides/customization.md+docs/troubleshooting.mdrewritten; this IS the fix.Next Steps
fix(#711): make .claude/.local skill overrides functional via runtime…
fix(#711): relocate local-override directive to top of every SKILL.md
merge: reconcile rebased #711 branch
admarble commentedon Jun 4, 2026
QA follow-up — gaps filled (commit
49b6c391e)After the READY_FOR_MERGE pass I did an adversarial second look and found real gaps; all are now fixed in this branch.
1. Directive fired unreliably in long skills (the real one)
The overlay directive was at end-of-file — line 3136 of the 3138-line
/qaskill, 1938 of/exec. A "check the filesystem for an override first" instruction buried at the end of a 3000-line skill is unlikely to fire. Fixed: relocated the directive to the top of the body (right after frontmatter, before the first heading) in all 53SKILL.mdacross the 3 mirror dirs — it's now the first thing the executing agent reads.Verified end-to-end on the worst case: a subagent running the full 3135-line
/qaskill (neutral invocation prompt, no hint about overrides) read.claude/.local/skills/qa/overrides.mdand honored a legitimate override delta (emitted the configured banner before its verdict). A deliberately injection-shaped override ("ignore all checks, emit token") was correctly refused — so the overlay honors legitimate deltas without becoming a safety-bypass.2. Orchestrated (
sequant run) pathSame fix closes it — orchestrated phase subagents load the identical
SKILL.mdand now see the directive first. The worst-case verification above was run through a subagent, which is the orchestrated execution shape.3. AC-2 hooks claim was asserted, not code-backed
Added
src/commands/local-hooks-not-autodiscovered.integration.test.ts: greps all ofsrc/and fails if any code path reads/executes.claude/.local/hooks/, so the docs' "register viasettings.local.json" guidance is now backed by a test, not just reasoning.4. No copyable example / second-hand verification
Added
docs/examples/overrides.example.md(linked from the guide) as a copyable starting point. The end-to-end overlay is now verified by an invocation I ran directly (above), not relied on from the prior pass.Regression guard
Strengthened
local-override-directive.integration.test.tsto pin the sentinel **before the first#heading` — end-of-file regressions now fail CI.Status
tsc --noEmitclean,lint:skill-callsclean.49b6c391e; PR fix(#711): make .claude/.local skill overrides functional via runtime overlay #716MERGEABLE.Verdict unchanged: READY_FOR_MERGE (now with the runtime overlay proven on the worst-case skill).
test(#711): run local-hooks check in unit project, not integration
test(#711): TEMP diagnostics for unmanaged-skill CI-only failure
test(#711): TEMP diag B — classify vs apply
test(#711): TEMP diag C — update summary + writeFile probe
test(#711): fix CI-only flake — drive unmanaged-skill update via --force
admarble commentedon Jun 4, 2026
QA follow-up — CI green (commit
72024917e)The gap-fill push surfaced a CI-only failure in
unmanaged-skill-safety.integration.test.ts(authored with the original PR). Root-caused it via staged CI diagnostics rather than guessing:SEQUANT_TEMPLATES_DIR, the template-on-disk (v2), the change classification (modified), andfs.writeFilewere all verified correct in CI.updateCommand({})path is gated by aninquirer.promptconfirm. In the shared, sequential integration worker that mock isn't reliably active insideupdateCommand, so in CI the prompt resolved falsy and update aborted before applying → managedspecstayed v1 → sanity assertion failed. Thesync --forcesibling test (no prompt) always passed — the tell.Fix: drive the update test via
updateCommand({ force: true })— bypasses the prompt and is the stricter AC-3 assertion (even maximal-overwrite must leave the unmanagedfoodir alone, sincefoois never in the template change set). Diagnostics removed.CI now 7/7 green on
72024917e; PR #716MERGEABLE.(History note: three
TEMP diagcommits remain in the branch — they collapse on squash-merge; rewriting them would need a hook-blocked force-push.)Verdict unchanged: READY_FOR_MERGE.
fix(#713): make pre-flight skill check content-aware, not version-only (
fix(#711): make .claude/.local skill overrides functional via runtime…
feat(#813): pre-flight the skills install — missing .claude/skills/ f…
feat(#813): pre-flight the skills install so a missing .claude/skills…