Skip to content

fix(speckit-pro): detect Codex phase skills in the .agents/skills directory - #206

Merged
fgabelmannjr merged 2 commits into
racecraft-lab:mainfrom
flyinprogrammer:fix-autopilot-agents-skills-detection
Jun 17, 2026
Merged

fgabelmannjr merged 2 commits into
racecraft-lab:mainfrom
flyinprogrammer:fix-autopilot-agents-skills-detection

Conversation

@flyinprogrammer

Copy link
Copy Markdown
Contributor

What this fixes

Current spec-kit installs the Codex SDD phase skills natively under .agents/skills/<cmd>/SKILL.md (per github/spec-kit#1906) instead of the legacy .codex/skills/ path.

The autopilot preflight gate (check-prerequisites.sh, check 0.4) only looked in .claude/skills/ and .codex/skills/. So on a fresh Codex install with current spec-kit, the gate reported the core phase commands (speckit-specify, speckit-plan, speckit-tasks, speckit-implement) as missing and the autopilot refused to start — even though the skills were correctly installed under .agents/skills/.

The workaround people hit was hand-writing .codex/skills/<cmd>/SKILL.md compatibility-marker stubs whose own body points back at the canonical .agents/skills/ copy, purely to satisfy the gate. This PR removes the need for those shims.

The change

Teach the gate to also accept .agents/skills/<cmd>/SKILL.md as a valid install location, alongside the existing .claude/skills/ and .codex/skills/ paths. A command counts as installed if it exists as a skill in any of the three project-local layouts. The plugin's own bundled codex-skills/ is still deliberately excluded so the gate can't false-pass.

Validation

  • bash tests/speckit-pro/run-all.sh --layer 4 → test-check-prerequisites 16/16, including a new test covering the .agents/skills/ layout.
  • bash tests/speckit-pro/run-all.sh --layer 1 → 993/993 (regenerated dist/** payloads are in sync).

🤖 Generated with Claude Code

flyinprogrammer and others added 2 commits June 17, 2026 13:55
…ectory

Current spec-kit installs the Codex SDD phase skills natively under
.agents/skills/<cmd>/SKILL.md (github/spec-kit#1906) instead of the
legacy .codex/skills/ path. The autopilot preflight gate only looked in
.claude/skills/ and .codex/skills/, so a fresh Codex install reported the
phase commands as missing and the autopilot refused to start. Projects
were working around this by hand-writing .codex/skills compatibility-marker
stubs purely to pass the gate.

Teach the gate to also accept .agents/skills/<cmd>/SKILL.md so no shims are
needed. Adds a layer-4 test covering the .agents/skills layout.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@flyinprogrammer

Copy link
Copy Markdown
Contributor Author

ヾ(^ ∇ ^) Hi yah! Happy to iterate on this refinement. Perhaps I'm just doing something wrong, but this seems to address a tiny nitpick I've been running into, whereby these shims started to exist in my projects:

image

And they seem entirely unnecessary.

@fgabelmannjr fgabelmannjr self-assigned this Jun 17, 2026
@fgabelmannjr fgabelmannjr added the bug Something isn't working label Jun 17, 2026
@fgabelmannjr

Copy link
Copy Markdown
Contributor

@flyinprogrammer , thanks for the PR, and sorry this Spec Kit versioning change nipped you. I've also created a periodic Codex automation to keep things in line with all upstream Spec Kit version changes. 🙏

@fgabelmannjr
fgabelmannjr merged commit e65d8a8 into racecraft-lab:main Jun 17, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants