cli/pkg/cmd/skills
Sam Morrow eaa018545a
refactor: decouple hidden-dir filtering from discovery layer
Move --allow-hidden-dirs filtering logic from the discovery package to
the install command, addressing review feedback. Discovery functions now
always return all skills (including hidden-dir), and callers decide how
to handle them.

Changes:
- DiscoverSkillsWithOptions/DiscoverLocalSkillsWithOptions always return
  hidden-dir skills; callers filter using IsHiddenDirConvention()
- DiscoverSkills/DiscoverLocalSkills (convenience wrappers) auto-filter
  hidden-dir skills for backward compatibility with preview/update/publish
- Remove --allow-hidden-dirs reference from discovery error messages
- Add filterHiddenDirSkills in install.go with caller-side flag logic
- Inline warning using heredoc.Docf, remove printHiddenDirWarning
- Add inline comments in matchHiddenDirConventions (babakks nitpicks)
- Add non-hidden-namespaced dir and no-skills-at-all test cases
- Add --allow-hidden-dirs tests in TestNewCmdInstall, TestInstallRun,
  and TestRunLocalInstall

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-20 11:14:39 +02:00
..
install refactor: decouple hidden-dir filtering from discovery layer 2026-04-20 11:14:39 +02:00
preview Add skills specific telemetry 2026-04-17 19:58:59 +02:00
publish Add support for installation in multiple agent hosts in gh skills install (#13209) 2026-04-18 15:22:09 -06:00
search Add skills specific telemetry 2026-04-17 19:58:59 +02:00
update docs(skill): improve help docs 2026-04-16 14:03:54 +01:00
skills.go Add skills specific telemetry 2026-04-17 19:58:59 +02:00
skills_test.go Add skills specific telemetry 2026-04-17 19:58:59 +02:00