Repository navigation
feat(#813): pre-flight the skills install — missing .claude/skills/ fails fast - #821
Merged
admarble merged 2 commits intoJul 27, 2026
Merged
Conversation
…/ fails fast The claude-code driver loads skills from project scope only (settingSources: ["project"], #19/#711), so a missing .claude/skills/ sends every phase agent hunting for a slash command that can never resolve — surfacing ~30 minutes later as a bogus "spec retry" failure. - New shared lib/skills-check.ts owns the .claude/skills/<skill>/SKILL.md layout; doctor's Skills/Core Skills checks now consume it (AC-4). - workflow/skills-preflight.ts resolves the skills required by the phases of *this* run (explicit --phases, label auto-detect, additive --testgen/--security-review, UI-label test, loop when quality loop is on) — not a hardcoded triple (AC-2). - RunOrchestrator.run() aborts with exit 1 naming the missing skills and the remedy (sequant sync) before any worktree or state entry (AC-1), covering MCP-initiated runs too. - New AgentDriver.resolvesSkills gates the check: claude-code true, aider false — aider's inline driverOverrides prompts never resolve skills, so a skills-less aider run still executes (AC-3). - Integration test asserts a skills-less tree exits non-zero with no worktree provisioned and no state entry (AC-5); docs note the directory is a runtime dependency worth committing (AC-6). Fixes #813
6 tasks
…ookup Post-QA gap fixes surfaced in review of PR #821: - Explicit --testgen/--security-review now require their skill even when spec is absent from the pipeline: on resume-after-spec, batch-executor inserts the phase via specAlreadyRan, which the pre-flight cannot cheaply know. Requiring the skill the flag names is the safe superset. - The loop skill is required when any issue's labels would auto-enable the quality loop (detectPhasesFromLabels().qualityLoop), not only when the loop was enabled up front. - An unknown settings.run.agent no longer throws raw from run()'s pre-flight; the check steps aside and phase-executor surfaces the unknown-driver error through its normal per-issue failure path.
Open
14 tasks
Contributor
Author
|
Follow-up commit |
admarble
added a commit
that referenced
this pull request
Sep 9, 2026
…ookup Post-QA gap fixes surfaced in review of PR #821: - Explicit --testgen/--security-review now require their skill even when spec is absent from the pipeline: on resume-after-spec, batch-executor inserts the phase via specAlreadyRan, which the pre-flight cannot cheaply know. Requiring the skill the flag names is the safe superset. - The loop skill is required when any issue's labels would auto-enable the quality loop (detectPhasesFromLabels().qualityLoop), not only when the loop was enabled up front. - An unknown settings.run.agent no longer throws raw from run()'s pre-flight; the check steps aside and phase-executor surfaces the unknown-driver error through its normal per-issue failure path.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
sequant runnow pre-flights the skills install inRunOrchestrator.run()— after issue info is fetched, before any worktree is provisioned or state entry written — and exits 1 naming the missing skills and the remedy (sequant sync). This replaces the motivating incident's failure mode: 30 minutes of a phase agent hunting for a slash command that can never resolve, misreported as a transient "spec retry" (feat(run): pre-flight the skills install — missing .claude/skills/ should fail fast, not flail for 30 minutes as a spec retry #813).--phases, label auto-detect, additive--testgen/--security-review, UI-labeltest,loopwhen the quality loop is on) — not a hardcodedspec, exec, qatriple. Seesrc/lib/workflow/skills-preflight.ts.src/lib/skills-check.tsand shared withdoctor's Skills/Core Skills checks, so the two cannot drift (AC-4).AgentDriver.resolvesSkillscapability gates the check: claude-codetrue, aiderfalse— aider's inlinedriverOverridesprompts never resolve skills, so an aider run on a skills-less tree still executes (AC-3).--dry-runalso skips it..claude/skills/is a hard runtime dependency of the claude-code driver (settingSources: ["project"], Fix sequant run to use Claude Agent SDK #19/bug(customization): .claude/.local/skills (and likely hooks) never load — documented override layer is non-functional #711) and worth committing.AC Verification
missing .claude/skills/ directory (needs: exec, qa)+sequant sync; no worktree, no state entryresolveRequiredSkillsunit tests (--phases exec,qa→ exec,qa only; additive flags; UI labels; auto-detect).claude/skills/; driver capability unit testscheckSkillsInstalled; path literal exists in one moduleskills-preflight.integration.test.tsdocs/getting-started/installation.md,docs/troubleshooting.mdTest plan
skills-check.test.ts(5),skills-preflight.test.ts(12), driver capability assertionssequant syncremedy loop with the built CLIFixes #813
🤖 Generated with Claude Code