Merge PR #390: fix hidden directory filter broken on Windows

Authored by Farukest. Fixes #389.

Replaces hardcoded forward-slash string checks ('/.git/', '/.hub/') with
Path.parts membership test in _find_all_skills() and scan_skill_commands().
On Windows, str(Path) uses backslashes so the old filter never matched,
causing quarantined skills to appear as installed.
This commit is contained in:
teknium1 2026-03-04 19:22:43 -08:00
commit 7128f95621
3 changed files with 97 additions and 4 deletions

View file

@ -196,8 +196,7 @@ def _find_all_skills() -> List[Dict[str, Any]]:
return skills
for skill_md in SKILLS_DIR.rglob("SKILL.md"):
path_str = str(skill_md)
if '/.git/' in path_str or '/.github/' in path_str or '/.hub/' in path_str:
if any(part in ('.git', '.github', '.hub') for part in skill_md.parts):
continue
skill_dir = skill_md.parent