Repository navigation
refactor: move generated skills to .agents/skills with .claude compatibility - #308
Conversation
Generate skills to .agents/skills/<id>/SKILL.md and add a .claude -> .agents symlink so Claude Code reads the same tree at .claude/skills/<id>/SKILL.md. Runtime loaders (Go/Rust/TS) default A2A_SKILLS_DIR to .agents/skills; Dockerfiles and .adl-ignore follow. BREAKING CHANGE: generated skills now live in .agents/skills/<id>/SKILL.md (was skills/<id>/SKILL.md) and the default A2A_SKILLS_DIR is now .agents/skills. Existing generated projects must move skills/ to .agents/skills/ (or set A2A_SKILLS_DIR=skills) on regenerate.
|
@claude Can you review this ? use /ponytail:ponytail /ponytail:ponytail-review |
|
Claude finished @edenreich's task in 3m 49s —— View job Ponytail review
Verdict: lean. The diff is almost entirely a mechanical Over-engineering (the /ponytail-review pass)
// now
if len(adl.Spec.Skills) > 0 {
if err := g.writeClaudePointer(outputDir); err != nil {
return err
}
}
// -> drop the error return, call bare
if len(adl.Spec.Skills) > 0 {
g.writeClaudePointer(outputDir)
}
Everything else is fine: the idempotent Correctness / design (checked while I was in there)
Pre-existing (skip unless bored)The bare-skill loop
--- · |
|
@claude Let's be explicit pointer from .claude/skills -> .agents/skills |
|
Claude finished @edenreich's task in 4m 44s —— View job Made the pointer explicit:
|
## [0.52.2](v0.52.1...v0.52.2) (2026-07-18) ### ⚠ BREAKING CHANGES * generated skills now live in .agents/skills/<id>/SKILL.md (was skills/<id>/SKILL.md) and the default A2A_SKILLS_DIR is now .agents/skills. Existing generated projects must move skills/ to .agents/skills/ (or set A2A_SKILLS_DIR=skills) on regenerate. * refactor: narrow pointer to .claude/skills -> .agents/skills ### ♻️ Improvements * move generated skills to .agents/skills with .claude compatibility ([#308](#308)) ([6d86459](6d86459))
|
🎉 This PR is included in version 0.52.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Summary
Moves generated skills out of the project-root
skills/directory into the portable.agents/skills/<id>/SKILL.mdlayout, and generates a.claude->.agentssymlink so the scaffolded agent is directly usable by Claude Code (which reads.claude/skills/) as well as any runtime following the.agents/convention. The ADL manifest stays the single source of truth.Changes
registry.go,generator.go): bare + non-bare skills now generate to.agents/skills/<id>/SKILL.mdfor Go, Rust, and TypeScript..claudepointer: newwriteClaudePointercreates a relative.claude->.agentssymlink when the manifest declares skills. Idempotent, tracked (committed by the generated repo), best-effort with a warning on platforms lacking symlink support.skillsDir, Rustunwrap_or_else, and TSenvStringdefault to.agents/skills; theA2A_SKILLS_DIRoverride is preserved in all three..agents/skillssoSKILL.mdis readable at startup..adl-ignore: bare-skill glob is now.agents/skills/<id>/.skills/<id>.mdreference), theskill.mdscaffold, and the generated CLAUDE.md / GEMINI.md / AGENTS.md docs point at.agents/skills/<id>/SKILL.md..well-known/agent-card.jsonis unchanged - already spec-driven from.Skills, consistent across all three languages.Open questions resolved
.claude->.agentssymlink, committed by the generated repo, created idempotently. Windows checkouts withcore.symlinks=falseare the known ceiling - generation warns instead of failing..agents/scope: skills-only for this change (noAGENTS.mdindex), per the issue.Verification
go build,go vet, fullgo test ./...pass.task examples:test+task examples:generatepass; verified the.claudesymlink,.agents/skills/<id>/SKILL.md, Dockerfile COPY,.adl-ignoreglob, and runtime defaults across go-agent, go-agent-builtin-tools, and rust-agent.Migration (breaking)
Generated skills move from
skills/<id>/SKILL.mdto.agents/skills/<id>/SKILL.mdand the defaultA2A_SKILLS_DIRbecomes.agents/skills. Existing generated projects must either moveskills/->.agents/skills/or setA2A_SKILLS_DIR=skillson regenerate.Closes #307