Repository navigation
Description
Summary
#583 fixed the broken ./scripts/dev/cleanup-worktree.sh path in skill mirrors and docs. The same root cause affects two sibling scripts that #583 deliberately scoped out: new-feature.sh and list-worktrees.sh.
Both are symlinks under scripts/ (scripts/new-feature.sh -> ../templates/scripts/new-feature.sh, scripts/list-worktrees.sh -> ../templates/scripts/list-worktrees.sh); the scripts/dev/ path users see in the docs is gitignored and only exists in private setups. Following the documented commands gives 127: no such file or directory — identical symptom to #583, identical fix pattern.
Discovered as Gap 2 during the QA pass on PR #593 (the #583 fix). Filed separately to keep #583's scope tight to its title.
Affected Files
new-feature.sh references (~28 sites across 3 skill mirrors + 5 docs files)
.claude/skills/exec/SKILL.md:30,276,464,465,487,489
.claude/skills/testgen/SKILL.md:629
templates/skills/exec/SKILL.md:30,276,464,465,487,489
templates/skills/testgen/SKILL.md:629
skills/exec/SKILL.md:30,276,464,465,487,489
skills/testgen/SKILL.md:629
docs/concepts/worktree-isolation.md:68
docs/concepts/worktree-isolation.md:228
docs/concepts/what-is-sequant.md:145
docs/features/exec-qa-phase-guards.md:8
docs/guides/git-workflows.md:16
docs/guides/git-workflows.md:201
docs/guides/git-workflows.md:204
(7 sites × 3 skill mirrors = 21, plus 7 docs sites = 28 total occurrences.)
list-worktrees.sh references
docs/internal/testing.md:33
docs/internal/testing.md:45
Allowlist patterns to verify
.claude/skills/exec/SKILL.md:30: - Bash(./scripts/dev/new-feature.sh:*)
templates/skills/exec/SKILL.md:30
skills/exec/SKILL.md:30
These are literal-path allowlists (analogous to the cleanup-worktree.sh:* ones #583 fixed in exec/SKILL.md:31). The fullsolve/SKILL.md:36 Bash(./scripts/dev/*:*) wildcard does cover ./scripts/dev/new-feature.sh:* invocations, but the canonical invocations users will type are ./scripts/new-feature.sh ... — those won't match the wildcard. Whether to add a parallel Bash(./scripts/new-feature.sh:*) allowlist or broaden to Bash(./scripts/*:*) is a design call (see Open Questions).
Acceptance Criteria
- AC-1: All occurrences of
./scripts/dev/new-feature.shinexec/SKILL.md(lines 30, 276, 464, 465, 487, 489) andtestgen/SKILL.md:629replaced with./scripts/new-feature.shacross all three mirror dirs. - AC-2: All occurrences of
./scripts/dev/new-feature.shindocs/concepts/worktree-isolation.md,docs/concepts/what-is-sequant.md,docs/features/exec-qa-phase-guards.md, anddocs/guides/git-workflows.mdreplaced with./scripts/new-feature.sh. - AC-3: All occurrences of
./scripts/dev/list-worktrees.shindocs/internal/testing.md(lines 33, 45) replaced with./scripts/list-worktrees.sh. - AC-4:
npx tsx scripts/check-skill-sync.tsreportssynced exec/SKILL.md — 3/3 matchANDsynced testgen/SKILL.md — 3/3 match. - AC-5:
grep -rn "scripts/dev/\(new-feature\|list-worktrees\)" .claude/skills/ templates/skills/ skills/ docs/returns zero matches. - AC-6:
scripts/new-feature.shandscripts/list-worktrees.shexist and are executable (already true — symlinks totemplates/scripts/). - AC-7: Decide on allowlist approach for the two scripts (see Open Questions); if adding entries, do so in all three mirrors of
exec/SKILL.mdline ~30 vicinity. - AC-8: CHANGELOG entry under
[Unreleased] / ### Fixedreferencing this issue (≤3 lines).
Non-Goals
- Not changing the scripts themselves.
- Not addressing the
scripts/dev/analyze-hook-logs.ts(fullsolve/SKILL.md:810) orscripts/dev/test-error-handling.ts(verify/SKILL.md:222) references — these are.tsfiles invoked vianpx tsx, and the corresponding canonical paths intemplates/scripts/may not exist (templates/scripts/only has the three.shfiles). Worth a separate audit. - Not updating
CONTRIBUTING.mdlines 86, 90, 92 (which describescripts/dev/as the canonical layout — that's a deeper docs-vs-reality drift; separate concern).
Risks
Trivially low — same bug class as #583, same fix pattern. Mechanical find/replace. Skill-mirror sync is CI-gated by validate-skills.
Complexity
simple-fix — sed-style find/replace across ~30 sites in 3 skill dirs + 5 docs files.
Self-assessed workflow
spec → exec → qa (skip testgen — docs/skill change).
Open Questions
-
Allowlist strategy for
new-feature.sh: Theexec/SKILL.md:30line currently readsBash(./scripts/dev/new-feature.sh:*). Two options:- (A) Replace with literal
Bash(./scripts/new-feature.sh:*)— narrowest, mirrors fix(fullsolve, exec): wrong cleanup-worktree.sh path in skill mirrors (scripts/dev/ is gitignored) #583'scleanup-worktree.shfix. - (B) Add a parallel literal alongside the existing dev/ entry — preserves backward-compat for users who still have
scripts/dev/populated locally. - (C) Broaden
fullsolve/SKILL.md:36Bash(./scripts/dev/*:*)wildcard toBash(./scripts/*:*)(or add a siblingBash(./scripts/*.sh:*)).
Recommend (A) for
exec/SKILL.md(parallels what fix(fullsolve, exec): wrong cleanup-worktree.sh path in skill mirrors (scripts/dev/ is gitignored) #583 did) plus a newBash(./scripts/new-feature.sh:*)entry alongside the existingBash(./scripts/dev/*:*)wildcard infullsolve/SKILL.md:36(parallels what PR fix(#583): correct cleanup-worktree.sh path in skill mirrors #593's second commit added for cleanup-worktree.sh). - (A) Replace with literal
-
docs/concepts/worktree-isolation.mdhad three sites total (lines 68, 98, 228). Line 98 was the one fix(fullsolve, exec): wrong cleanup-worktree.sh path in skill mirrors (scripts/dev/ is gitignored) #583/PR fix(#583): correct cleanup-worktree.sh path in skill mirrors #593 swept (cleanup-worktree.sh). Lines 68 and 228 are still on the brokennew-feature.shpath — addressed by AC-2 here.
Related
- fix(fullsolve, exec): wrong cleanup-worktree.sh path in skill mirrors (scripts/dev/ is gitignored) #583 / PR fix(#583): correct cleanup-worktree.sh path in skill mirrors #593 — the original cleanup-worktree.sh fix; this is the same bug class for siblings
reference_scripts_layout.md— explains whyscripts/dev/is gitignoredfeedback_qa_recommendation_vs_ac_gap.md— distinguishing prose recommendations from unmet ACs (informed the decision to file this separately rather than expand fix(fullsolve, exec): wrong cleanup-worktree.sh path in skill mirrors (scripts/dev/ is gitignored) #583's scope)
Activity
admarble commentedon May 8, 2026
Exec Phase Complete
PR #603 opened with the full fix.
AC Coverage
exec/SKILL.md(lines 30, 276, 464, 465, 487, 489) andtestgen/SKILL.md:629across all 3 mirrors (.claude/skills/,templates/skills/,skills/)./scripts/dev/new-feature.sh→./scripts/new-feature.shindocs/concepts/worktree-isolation.md(lines 68, 228),docs/features/exec-qa-phase-guards.md:8,docs/guides/git-workflows.md(lines 16, 201, 204).docs/concepts/what-is-sequant.md:145had no./scripts/dev/new-feature.shliteral (just a tree diagram) — left untouched, consistent withCONTRIBUTING.mdNon-Goaldocs/internal/testing.md:45(list-worktrees.sh) and:46(new-feature.sh) replaced. Issue body listed line 33 but that line saysShell scripts in scripts/dev/ are executable(no./prefix) — same docs-vs-reality drift, out of AC scopenpx tsx scripts/check-skill-sync.tsreportssynced exec/SKILL.md — 3/3 matchandsynced testgen/SKILL.md — 3/3 matchgrep -rn "scripts/dev/\(new-feature|list-worktrees\)" .claude/skills/ templates/skills/ skills/ docs/returns zero matchesscripts/new-feature.shandscripts/list-worktrees.share executable symlinks totemplates/scripts/exec/SKILL.md: literalBash(./scripts/dev/new-feature.sh:*)replaced withBash(./scripts/new-feature.sh:*). Forfullsolve/SKILL.md:36, added literalBash(./scripts/new-feature.sh:*)andBash(./scripts/list-worktrees.sh:*)entries alongside the existingBash(./scripts/dev/*:*)wildcard (parallels what PR #593's second commit added forcleanup-worktree.sh)[Unreleased] / ### FixedFiles Changed
{templates,skills,.claude}/skills/{exec,testgen,fullsolve}/SKILL.md)docs/concepts/worktree-isolation.md,docs/features/exec-qa-phase-guards.md,docs/guides/git-workflows.md,docs/internal/testing.md)CHANGELOG.mdTotal: 14 files, +36/-29 lines.
Quality Gates
npm run build— ✅ passednpm run lint— ✅ passednpm run lint:skill-calls— ✅No violationsnpm test— ✅ 2931 tests passed across 123 filescheck-skill-sync.ts— ✅exec/SKILL.md,testgen/SKILL.md,fullsolve/SKILL.mdall3/3 matchPR Status
PR #603 created: #603
Quality Plan Alignment
N/A — no quality plan in issue (no
/specwas run; issue authored with full ACs by design per itssimple-fixcomplexity rating).Pre-PR Confidence Check
validate-skillsjob.admarble commentedon May 8, 2026
QA Review for Issue #596 (Simple Fix)
Size Gate
AC Coverage
./scripts/dev/new-feature.sh→./scripts/new-feature.shinexec/SKILL.md(lines 30, 276, 464, 465, 487, 489) andtestgen/SKILL.md:629across all 3 mirrorsdocs/concepts/worktree-isolation.md,docs/concepts/what-is-sequant.md,docs/features/exec-qa-phase-guards.md,docs/guides/git-workflows.mdwhat-is-sequant.md:145correctly left alone — that line is a tree-diagram showing the layout, not an invocation literal./scripts/dev/list-worktrees.sh→./scripts/list-worktrees.shindocs/internal/testing.md(lines 33, 45)./scripts/list-worktrees.sh) and line 46 (./scripts/new-feature.sh) updated. Line 33 (Shell scripts in scripts/dev/ are executable) is descriptive prose without a./invocation prefix — left alone, consistent with the Non-Goal explicitly carving out CONTRIBUTING.md lines 86/90/92 for the same docs-vs-reality drift classcheck-skill-sync.tsreports 3/3 match for both filessynced exec/SKILL.md — 3/3 matchandsynced testgen/SKILL.md — 3/3 matchconfirmedgrep -rn "scripts/dev/(new-feature|list-worktrees)" .claude/skills/ templates/skills/ skills/ docs/returns zero matchesscripts/new-feature.shandscripts/list-worktrees.shexist and are executabletemplates/scripts/exec/SKILL.md:30(literalBash(./scripts/new-feature.sh:*)); forfullsolve/SKILL.md:36-39, the existingBash(./scripts/dev/*:*)wildcard is preserved and parallel literal entries forcleanup-worktree.sh(#583),new-feature.sh, andlist-worktrees.share added — exactly the pattern the issue body recommended[Unreleased] / ### Fixedreferencing #596### Fixeddescribes the fix, lists affected files, mirrors structure of the parent #583 entryCoverage: 8/8 AC items fully met
Quality Metrics
any).tsfiles modified)CI Status
build (20.x)build (22.x)typecheckvalidate-skillsvalidate-pluginPlugin Structure ValidationHooks ValidationSetup Directory CreationCI Summary: 8 passed, 0 pending, 0 failed.
Code Review
Strengths:
{templates,skills,.claude}/skills/) and 4 docs files.check-skill-sync.tsreports 3/3 for both touched skills, which is the only automated guardrail for this class of change.cleanup-worktree.sh: replace the literal inexec/SKILL.md, add a parallel literal next to the existing wildcard infullsolve/SKILL.mdrather than broadening the wildcard. Consistent with the parent fix.what-is-sequant.md:145tree diagram,testing.md:33descriptive prose) match the issue's stated Non-Goal scope and are documented in the exec evidence.Issues:
Suggestions:
scripts/dev/analyze-hook-logs.ts(fullsolve/SKILL.md:810),scripts/dev/test-error-handling.ts(verify/SKILL.md:222), andCONTRIBUTING.mdlines 86/90/92 for separate audit. Worth filing a third sibling issue once the canonical-vs-dev/policy for.tsscripts and the CONTRIBUTING layout drift are settled.Test Coverage Analysis
*.mdfiles (14 total)Coverage: N/A — this PR modifies only Markdown content. The behavioral guardrail is the
check-skill-sync.tsinvariant (which passes 3/3 for both files) plus CI'svalidate-skillsjob (passing).Anti-Pattern Detection
No code patterns to scan — diff is
.md-only. No regex/grep/awk/jq/sed additions in the skill markdown either, so Section 6c Detection Pattern Verification is Not Required.Risk Assessment
./scripts/dev/new-feature.shand./scripts/dev/list-worktrees.shpaths cause127: no such file or directoryfor users following the documented commands (sincescripts/dev/is gitignored). After this fix, every documented path resolves to a committed symlink. The reverse failure — a user with a populated privatescripts/dev/directory — is unaffected because the canonical paths shadow the dev/ paths cleanly, and theBash(./scripts/dev/*:*)wildcard infullsolve/SKILL.mdis preserved for backward compat.check-skill-sync.ts(passing) plus the literal grep AC-5 (passing). No new test required for a docs/skill-prose path correction.scripts/dev/analyze-hook-logs.ts,scripts/dev/test-error-handling.ts,CONTRIBUTING.md:86/90/92). Those are out-of-scope here and should land as a third follow-up issue.Verdict: READY_FOR_MERGE
All 8 ACs are literally MET (verified line-by-line, not by intent), all 8 CI checks are green, the skill-mirror sync invariant holds, and the AC-5 grep guard returns zero matches. The two intentional scope decisions (tree-diagram in
what-is-sequant.md:145, descriptive prose intesting.md:33) match the issue's documented Non-Goals and the parent #583's scope philosophy. AC-7's allowlist treatment exactly parallels what PR #593 established forcleanup-worktree.sh, including the parallel-literal-alongside-wildcard pattern infullsolve/SKILL.md. The follow-up sibling audit (.tsscripts underscripts/dev/, CONTRIBUTING.md drift) is properly deferred to a separate issue per the documented Non-Goals.Documentation
docs/andSKILL.mdfiles updated as the primary fix[Unreleased] / ### Fixed(fix(skills, docs): same scripts/dev/* path bug for new-feature.sh and list-worktrees.sh (#583 follow-up) #596)Next Steps
scripts/dev/analyze-hook-logs.ts,scripts/dev/test-error-handling.ts, andCONTRIBUTING.mdlayout drift.fix(#596): replace ./scripts/dev/{new-feature,list-worktrees}.sh with…
fix(#596): replace ./scripts/dev/{new-feature,list-worktrees}.sh with…