Bug: squad.agent.md SKILL EXTRACTION still directs agents to .squad/skills/ (legacy path)
Related Issues
Problem
The SDK/CLI migration to .copilot/skills/ is complete — skill-source.ts, init.ts, tools/index.ts, templates, and tests all use .copilot/skills/ as the primary path. However, squad.agent.md line 825 still instructs agents to write skills to the legacy path:
SKILL EXTRACTION: If you found a reusable pattern, write/update
.squad/skills/{skill-name}/SKILL.md (read templates/skill.md for format).
This means every agent session that extracts a skill writes it to .squad/skills/ where:
- The SDK's
write_skill tool won't find it (writes to .copilot/skills/)
squad init and squad upgrade won't sync it (targets .copilot/skills/)
- Copilot's native skill discovery won't see it
- The
skill-source.ts fallback will read it, but only because of legacy compat code
Additional locations in squad.agent.md with the same issue
The spawn template also tells agents to check .squad/skills/ for existing skills:
If .squad/skills/ has relevant SKILL.md files, read them before working.
And the Skill-aware routing section:
Skill-aware routing: Before spawning, check .squad/skills/ for skills relevant...
And the Plugin Marketplace section:
Install: copy to .squad/skills/{plugin-name}/SKILL.md
Also affected: collections.ts state schema
packages/squad-sdk/src/state/collections.ts line 251 still resolves skills to .squad/skills:
const skillsDir = `${this.rootDir}/.squad/skills`;
Fix
- squad.agent.md: Change all
.squad/skills/ references to .copilot/skills/ in:
- SKILL EXTRACTION instruction (line 825)
- Spawn template skill-read instruction
- Skill-aware routing section
- Plugin Marketplace install path
- collections.ts: Update
skillsDir to resolve to .copilot/skills
- Keep
skill-source.ts fallback to .squad/skills/ for backward compat (already correct)
Impact
Every squad session that extracts a skill creates it in the wrong directory. The skill works due to legacy fallback but diverges from the SDK's canonical path, causing confusion about where skills live.
Bug: squad.agent.md SKILL EXTRACTION still directs agents to
.squad/skills/(legacy path)Related Issues
.squad/skills/to.copilot/skills/.copilot/skills/.copilot/skills/instead of.ai-team/skills/Problem
The SDK/CLI migration to
.copilot/skills/is complete —skill-source.ts,init.ts,tools/index.ts, templates, and tests all use.copilot/skills/as the primary path. However,squad.agent.mdline 825 still instructs agents to write skills to the legacy path:This means every agent session that extracts a skill writes it to
.squad/skills/where:write_skilltool won't find it (writes to.copilot/skills/)squad initandsquad upgradewon't sync it (targets.copilot/skills/)skill-source.tsfallback will read it, but only because of legacy compat codeAdditional locations in squad.agent.md with the same issue
The spawn template also tells agents to check
.squad/skills/for existing skills:And the Skill-aware routing section:
And the Plugin Marketplace section:
Also affected:
collections.tsstate schemapackages/squad-sdk/src/state/collections.tsline 251 still resolves skills to.squad/skills:Fix
.squad/skills/references to.copilot/skills/in:skillsDirto resolve to.copilot/skillsskill-source.tsfallback to.squad/skills/for backward compat (already correct)Impact
Every squad session that extracts a skill creates it in the wrong directory. The skill works due to legacy fallback but diverges from the SDK's canonical path, causing confusion about where skills live.