cli/internal/skills/discovery
Sam Morrow 9a368f45e9
feat(skills): support nested skills/ directories in discovery
Relax skill discovery to recognize skills/ directories at any depth
in the repository tree, not just at the root. This enables repos like
hashicorp/agent-skills that organize skills under prefixes such as
terraform/code-generation/skills/*/SKILL.md.

Changes:
- matchSkillConventions: add checks for <prefix>/skills/<name>/SKILL.md
  and <prefix>/skills/<ns>/<name>/SKILL.md at any depth
- isSkillPath: also match paths containing /skills/ for direct
  path-based install
- DiscoverSkillByPath: fix namespace detection to find the skills
  segment anywhere in the path
- Update error messages and help text to mention nested conventions

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-20 21:07:15 +02:00
..
collisions.go add core logic and improve test coverage 2026-04-15 15:45:49 +02:00
collisions_test.go Expand test coverage and fix invariants/bugs 2026-04-15 15:46:58 +02:00
discovery.go feat(skills): support nested skills/ directories in discovery 2026-04-20 21:07:15 +02:00
discovery_test.go feat(skills): support nested skills/ directories in discovery 2026-04-20 21:07:15 +02:00