Skip to content

fix(#583): correct cleanup-worktree.sh path in skill mirrors - #593

Merged
admarble merged 2 commits into
mainfrom
feature/583-fix-fullsolve-exec-wrong-cleanup-worktree-sh-path-
May 7, 2026
Merged

admarble merged 2 commits into
mainfrom
feature/583-fix-fullsolve-exec-wrong-cleanup-worktree-sh-path-

Conversation

@admarble

@admarble admarble commented May 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Phase 5.3 of /fullsolve and the Worktree Cleanup section of /exec referenced ./scripts/dev/cleanup-worktree.sh, but scripts/dev/ is gitignored — the canonical, repo-tracked path is ./scripts/cleanup-worktree.sh (a symlink to templates/scripts/cleanup-worktree.sh). The suggested next-step command users would copy/paste returned 127: no such file or directory, and the Bash(./scripts/dev/cleanup-worktree.sh:*) permission allowlist pattern in exec/SKILL.md did not match the actual canonical invocation.
  • Replaced 9 occurrences across all three mirrors of exec/SKILL.md and fullsolve/SKILL.md (.claude/skills/, templates/skills/, skills/), plus 2 sibling-site occurrences in docs/concepts/worktree-isolation.md and docs/internal/testing.md.
  • Added ### Fixed entry under ## [Unreleased] in CHANGELOG.md.

Acceptance Criteria

  • AC-1 — Replace ./scripts/dev/cleanup-worktree.sh → ./scripts/cleanup-worktree.sh in 9 occurrences across 6 files.
  • AC-2 — npx tsx scripts/check-skill-sync.ts reports synced fullsolve/SKILL.md — 3/3 match AND synced exec/SKILL.md — 3/3 match.
  • AC-3 — grep -r "scripts/dev/cleanup-worktree" .claude/skills/ templates/skills/ skills/ returns zero matches.
  • AC-4 — scripts/cleanup-worktree.sh exists and is executable (symlink to templates/scripts/cleanup-worktree.sh).
  • AC-5 — CHANGELOG entry under [Unreleased] / ### Fixed referencing fix(fullsolve, exec): wrong cleanup-worktree.sh path in skill mirrors (scripts/dev/ is gitignored) #583 (≤3 lines).

Test plan

Notes

  • Out of scope (intentionally not changed):
    • .claude/skills/exec/SKILL.md:30 — ./scripts/dev/new-feature.sh is a separate script (not cleanup-worktree.sh), not covered by AC-1.
    • .claude/settings.local.json:46,88,90 — gitignored, per-developer permission allowlist; doesn't ship.
  • Sibling-site sweep: Spec's "Sibling-site gap" recommendation (extending to docs/) was applied — prevents an identical follow-up issue. AC-3's grep was deliberately not broadened to include docs/; a fresh grep -r "scripts/dev/cleanup-worktree" docs/ returns zero matches today, so the divergence is cosmetic.
  • Regression class is CI-gated: validate-skills CI job runs check-skill-sync.ts, so any future drift across the three mirrors will fail CI, not just QA.

Closes #583

Phase 5.3 of /fullsolve and the Worktree Cleanup section of /exec
referenced ./scripts/dev/cleanup-worktree.sh, but scripts/dev/ is
gitignored — the actual repo-tracked path is ./scripts/cleanup-worktree.sh.
The Bash(./scripts/dev/cleanup-worktree.sh:*) allowlist pattern in
exec/SKILL.md also missed the canonical path.

Replaced 9 occurrences across all three mirrors of exec/SKILL.md and
fullsolve/SKILL.md (.claude/skills/, templates/skills/, skills/), plus
2 occurrences in docs/concepts/worktree-isolation.md and
docs/internal/testing.md (sibling-site sweep).

Closes #583
…path

The fullsolve allowed-tools header had `Bash(./scripts/dev/*:*)` as a
wildcard permission, which does not match the canonical
`./scripts/cleanup-worktree.sh` path that Phase 5.3 now invokes after
the parent commit. Without this entry, users hit a permission prompt
running the suggested cleanup — exactly the second symptom the issue
body called out ("Permission allowlist misses").

Adds `Bash(./scripts/cleanup-worktree.sh:*)` to all three mirrors of
fullsolve/SKILL.md alongside the existing dev/* wildcard. Existing
exec/SKILL.md allowlist was already corrected in the parent commit.

Refs #583
@admarble
admarble merged commit a23e9ee into main May 7, 2026
8 checks passed
@admarble
admarble deleted the feature/583-fix-fullsolve-exec-wrong-cleanup-worktree-sh-path- branch May 7, 2026 03:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(fullsolve, exec): wrong cleanup-worktree.sh path in skill mirrors (scripts/dev/ is gitignored)

1 participant