cli/internal/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
..
discovery refactor: decouple hidden-dir filtering from discovery layer 2026-04-20 11:14:39 +02:00
frontmatter clean up interface and fix a few bugs 2026-04-15 15:50:53 +02:00
installer fix: enforce size cap on first preview file, surface corrupted skills, fail on path traversal 2026-04-15 16:53:27 +02:00
lockfile address review comments 2026-04-15 16:01:26 +02:00
registry Add support for installation in multiple agent hosts in gh skills install (#13209) 2026-04-18 15:22:09 -06:00
source cleanup frontmatter fields 2026-04-15 15:47:34 +02:00