Skip to content

fix(#596): replace ./scripts/dev/{new-feature,list-worktrees}.sh with canonical paths - #603

Merged
admarble merged 2 commits into
mainfrom
feature/596-fix-skills-docs-same-scripts-dev-path-bug-for-new-
May 9, 2026
Merged

admarble merged 2 commits into
mainfrom
feature/596-fix-skills-docs-same-scripts-dev-path-bug-for-new-

Conversation

@admarble

@admarble admarble commented May 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #583 (PR #593). Same root cause (scripts/dev/ is gitignored; canonical paths are ./scripts/<name>.sh symlinked to templates/scripts/), applied to two sibling scripts that #583 deliberately scoped out.

  • Replaced 21 occurrences in skill mirrors (exec/SKILL.md, testgen/SKILL.md × 3 mirror dirs) and 7 occurrences in docs (worktree-isolation.md, exec-qa-phase-guards.md, git-workflows.md, internal/testing.md).
  • Allowlist update in exec/SKILL.md: Bash(./scripts/dev/new-feature.sh:*) → Bash(./scripts/new-feature.sh:*) (parallels fix(fullsolve, exec): wrong cleanup-worktree.sh path in skill mirrors (scripts/dev/ is gitignored) #583's cleanup-worktree.sh fix).
  • Allowlist additions in fullsolve/SKILL.md: literal Bash(./scripts/new-feature.sh:*) and Bash(./scripts/list-worktrees.sh:*) alongside the existing Bash(./scripts/dev/*:*) wildcard.
  • CHANGELOG [Unreleased] / ### Fixed entry referencing this issue.

AC Coverage

AC Status Evidence
AC-1 ✅ Implemented All 21 skill-mirror occurrences replaced; sync verified 3/3 match
AC-2 ✅ Implemented All ./scripts/dev/new-feature.sh occurrences in target docs replaced
AC-3 ✅ Implemented docs/internal/testing.md line 45 (list-worktrees.sh) and line 46 (new-feature.sh) replaced
AC-4 ✅ Implemented npx tsx scripts/check-skill-sync.ts reports synced exec/SKILL.md — 3/3 match and synced testgen/SKILL.md — 3/3 match
AC-5 ✅ Implemented grep -rn "scripts/dev/\(new-feature|list-worktrees\)" .claude/skills/ templates/skills/ skills/ docs/ returns zero matches
AC-6 ✅ Implemented scripts/new-feature.sh and scripts/list-worktrees.sh are executable symlinks to templates/scripts/
AC-7 ✅ Implemented Option (A) for exec/SKILL.md (replaced literal); literal additions alongside wildcard in fullsolve/SKILL.md (parallels #593)
AC-8 ✅ Implemented CHANGELOG [Unreleased] / ### Fixed entry added

Quality Gates

  • npm run build — passed
  • npm run lint — passed
  • npm run lint:skill-calls — No violations
  • npm test — 2931 tests passed across 123 files
  • npx tsx scripts/check-skill-sync.ts — exec/SKILL.md, testgen/SKILL.md, fullsolve/SKILL.md all 3/3 match (pre-existing divergences in unrelated qa/references/* and security-review/* left untouched)

Test Plan

  • ./scripts/new-feature.sh <issue> works as documented
  • ./scripts/list-worktrees.sh works as documented
  • Bash(./scripts/new-feature.sh:*) allowlist entry in exec/SKILL.md permits the canonical command without prompting
  • CI validate-skills job remains green (skill-mirror sync confirmed locally)

Notes

  • Out of scope (per issue Non-Goals): scripts/dev/analyze-hook-logs.ts and scripts/dev/test-error-handling.ts .ts references; CONTRIBUTING.md layout description; the docs/concepts/what-is-sequant.md:145 directory tree (matches the same docs-vs-reality drift pattern, no ./scripts/dev/new-feature.sh literal command on that line).

Closes #596

… ./scripts/ canonical paths

Same root-cause as #583: scripts/dev/ is gitignored; canonical paths live at
scripts/<name>.sh as symlinks to templates/scripts/. Replaced 21 occurrences
across all 3 mirrors of exec/SKILL.md and testgen/SKILL.md (AC-1) plus 7
occurrences in docs/concepts/worktree-isolation.md, docs/features/exec-qa-phase-guards.md,
docs/guides/git-workflows.md, and docs/internal/testing.md (AC-2/AC-3).

Updated allowlists (AC-7): replaced Bash(./scripts/dev/new-feature.sh:*) with
Bash(./scripts/new-feature.sh:*) in exec/SKILL.md (parallels what #583 did for
cleanup-worktree.sh), and added literal Bash(./scripts/new-feature.sh:*) and
Bash(./scripts/list-worktrees.sh:*) entries alongside the existing
Bash(./scripts/dev/*:*) wildcard in fullsolve/SKILL.md.

CHANGELOG entry added under [Unreleased] / Fixed (AC-8).

Verified: AC-4 check-skill-sync.ts shows exec/SKILL.md and testgen/SKILL.md
both 3/3 match; AC-5 grep returns zero matches; AC-6 both scripts executable.
…s-docs-same-scripts-dev-path-bug-for-new-

# Conflicts:
#	CHANGELOG.md
@admarble
admarble merged commit eb11fa7 into main May 9, 2026
8 checks passed
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(skills, docs): same scripts/dev/* path bug for new-feature.sh and list-worktrees.sh (#583 follow-up)

1 participant