Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion agent/skill_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def scan_skill_commands() -> Dict[str, Dict[str, Any]]:
return _skill_commands
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
try:
content = skill_md.read_text(encoding='utf-8')
Expand Down
2 changes: 1 addition & 1 deletion tools/skills_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def _find_all_skills() -> List[Dict[str, Any]]:

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
Expand Down