mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-19 02:17:09 +00:00
Unify ~160 lines of duplicated walk logic from DiscoverSourceSkills and DiscoverSourceSkillsLite into a single discoverSourceSkillsInternal function controlled by discoverOptions (parseFrontmatter, collectIgnored, collectTracked). Add DiscoverSourceSkillsWithStats which returns IgnoreStats populated with root/repo .skillignore file paths, active patterns, and ignored skill relPaths. When collectIgnored is true, CanSkipDir is bypassed so the file-level Match check can record every ignored SKILL.md path. Add Patterns() method to skillignore.Matcher to expose the original pattern strings stored during Compile().