cli/internal/skills/discovery
Copilot 8498bdf435 feat(skills): add --allow-hidden-dirs flag to preview command
Add support for the --allow-hidden-dirs flag in `gh skill preview`,
matching the existing pattern in `gh skill install`. This allows users
to preview skills located in hidden directories (e.g. .claude/skills/,
.agents/skills/).

Changes:
- Add AllowHiddenDirs field to PreviewOptions
- Register --allow-hidden-dirs flag on the preview command
- Switch from DiscoverSkills to DiscoverSkillsWithOptions to get all
  skills including hidden-dir ones
- Add filterHiddenDirSkills to exclude hidden-dir skills by default,
  showing a hint when they are found but excluded
- Print a warning when --allow-hidden-dirs is used and hidden skills
  are present
- Return an error when only hidden-dir skills exist without the flag

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-22 23:41:25 +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): add --allow-hidden-dirs flag to preview command 2026-04-22 23:41:25 +02:00
discovery_test.go feat(skills): support nested skills/ directories in discovery 2026-04-20 21:07:15 +02:00