Skip to content

fix(#1201): unify missing-skills remedy, document plugin skills requirement - #1216

Merged
admarble merged 3 commits into
mainfrom
feature/1201-fix-adopt-missing-skills-remedies-contradict-each-
Sep 29, 2026
Merged

admarble merged 3 commits into
mainfrom
feature/1201-fix-adopt-missing-skills-remedies-contradict-each-

Conversation

@admarble

@admarble admarble commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Unified the missing-skills remedy: skills-preflight.ts's remedy field now names the full sequant sync rewrite set (tracked hooks, .claude/settings.json, scripts/dev, sequant-owned AGENTS.md), and run-orchestrator.ts's two worktree-missing-skills messages now thread preflight.remedy instead of independently hand-written "commit .claude/skills" strings — closing the path that let the two drift apart.
  • README's plugin-install section now states .claude/skills/{spec,exec,qa} must exist and be committed for sequant run, and points at /sequant:setup or sequant sync.
  • /sequant:setup (all three mirrored copies: .claude/skills/setup/SKILL.md, skills/setup/SKILL.md, templates/skills/setup/SKILL.md) now copies the phase skills (spec, exec, qa) from the plugin into .claude/skills/ and tells the user to commit them, giving plugin-only users (no npm) a working path to the skills sequant run needs.

AC Verification

AC Description Status Evidence
AC-1 One consistent missing-skills remedy naming what sequant sync rewrites ✅ npx vitest run src/lib/workflow/skills-preflight.test.ts — 31/31 passed
AC-2 README plugin section states .claude/skills/{spec,exec,qa} must exist and be committed ✅ grep -n "skills/{spec,exec,qa}" README.md
AC-3 /sequant:setup copies phase skills into .claude/skills/, in all 3 mirrored copies ✅ grep -n ".claude/skills/spec" skills/setup/SKILL.md .claude/skills/setup/SKILL.md templates/skills/setup/SKILL.md

Runner follow-up (graph-run #1203, commit 1deb6db5)

QA returned AC_NOT_MET. Fixed here:

Mutation-verified: AC-1 main-checkout site — replaced SYNC_REWRITES_NOTE in the message with a literal; src/lib/workflow/skills-preflight.test.ts > RunOrchestrator skills pre-flight targets worktrees, not the main checkout (#933) > 1193 AC-1: a main checkout missing .claude/skills/spec/SKILL.md fails pre-flight before any worktree, naming the path failed (1/31); restored.
Mutation-verified: AC-1 worktree site — replaced preflight.remedy with preflight.cause in the worktree message; src/lib/workflow/skills-preflight.test.ts > RunOrchestrator skills pre-flight targets worktrees, not the main checkout (#933) > 933: a multi-issue abort removes every worktree this run created and names them all failed (plus the existing 933 AC-1 test); restored.

Runner follow-up, round 2 (commit 0883e6fd)

QA's second pass returned AC_MET_BUT_NOT_A_PLUS. I fixed its fix_now finding and one of its documented findings:

  • The Post-Setup commit list, the summary table (all 3 setup copies) and the README now name .claude/skills/_shared next to spec/exec/qa. The AC-2 grep still matches.
  • The isolation-disabled missing-skills message again ends with "Then re-run."

Mutation-verified: isolation-disabled remedy — removed " Then re-run."; src/lib/workflow/skills-preflight.test.ts > RunOrchestrator skills pre-flight targets worktrees, not the main checkout (#933) > 933: with worktree isolation disabled the remedy talks about the checkout, not a worktree failed (1/31); restored.

Test plan

  • npm run build — passes
  • npm run lint — passes
  • npm test (full suite, run by the exec agent before the runner follow-up) — 349 files, 8538 passed, 1 expected fail, 3 skipped (baseline)
  • npm run lint:skill-calls — no violations
  • Runner re-run at 1deb6db5: npx vitest run src/lib/workflow/skills-preflight.test.ts src/lib/workflow/skills-preflight.integration.test.ts src/lib/workflow/run-orchestrator.test.ts — 3 files, 40/40 passed; npx tsc --noEmit clean; npm run lint:skill-calls no violations
  • AC-2 grep -n "skills/{spec,exec,qa}" README.md and AC-3 grep across the 3 setup copies — both match

Closes #1201

🤖 Generated with Claude Code

…ks sources before deleting and copies _shared

Entire-Checkpoint: 836945d565e4
…lation-disabled remedy says re-run

Entire-Checkpoint: a98fdab019bd
@admarble
admarble merged commit d9330cb into main Sep 29, 2026
10 checks passed
@admarble
admarble deleted the feature/1201-fix-adopt-missing-skills-remedies-contradict-each- branch September 29, 2026 15:15
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(adopt): missing-skills remedies contradict each other, and the README plugin path omits the skills that runs need

1 participant