Skip to content

feat(run): load phase skills from the installed package when the project doesn't commit them (ADR-0012 follow-up 2) #1398

Open

Description

@admarble

Follow-up 2 of ADR-0012 (#1388, PR #1392). Blocked by follow-up 1 (the skills-only view must be verified first).

What

The Claude Code driver loads a phase skill from the package's skills-only plugin view when the project doesn't track .claude/skills/<skill>/SKILL.md, and invokes it as /sequant:<skill>. A tracked skill keeps today's bare /<skill> and the committed copy. Nothing changes for projects that commit all their skills.

Acceptance Criteria

  • AC-1: For each phase, the driver passes the skills-only view in plugins and a /sequant:<skill> prompt when the skill isn't tracked, and neither when it is. Evidence: driver tests for both cases, mutation-verified by forcing the committed branch.
  • AC-2: The phase prompts in phase-registry.ts render either form from one source, with no hard-coded bare /spec left on the package path. Evidence: a test over every registry phase in both modes.
  • AC-3: assess-comment-parser.ts recognizes /sequant:<skill> wherever it recognizes /<skill> (today line.includes("/spec") misses the namespaced form). Evidence: parser tests with namespaced input.
  • AC-4: The skills pre-flight (runSkillsPreflight) fails a Claude Code phase only when its skill is neither tracked nor present in the package view. The fix(adopt): missing-skills remedies contradict each other, and the README plugin path omits the skills that runs need #1201 remedy text says to update the package, not to commit skills. Evidence: pre-flight tests for tracked, package-only and neither.
  • AC-5: verify and loop never resolve to Claude Code built-ins of the same name. They're always invoked namespaced, or committed. Evidence: a test on the prompt for both phases.

May touch

src/lib/workflow/drivers/claude-code.ts, src/lib/workflow/phase-registry.ts, src/lib/workflow/skills-preflight.ts, src/lib/assess-comment-parser.ts, their tests.

Non-Goals

  • Skill text (frozen; follow-up 4). doctor (follow-up 3).
  • Codex and opencode drivers.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions