cli/pkg/cmd/skills/publish
Sam Morrow b63f5bfd9a
refactor: use shared discovery logic in publish command
Replace the hardcoded skills/ directory requirement in the publish
command with the shared DiscoverLocalSkills() function used by install
and other commands. This removes the opinionated restriction that skills
must live under a skills/ directory and supports all discovery
conventions:

- skills/*/SKILL.md
- skills/{scope}/*/SKILL.md
- */SKILL.md (root-level)
- plugins/{scope}/skills/*/SKILL.md

All per-skill validation (frontmatter, spec-compliant naming, metadata
stripping, etc.) is preserved.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-16 15:38:36 +02:00
..
publish.go refactor: use shared discovery logic in publish command 2026-04-16 15:38:36 +02:00
publish_test.go refactor: use shared discovery logic in publish command 2026-04-16 15:38:36 +02:00