Skip to content

fix: apply paths.exclude during skill discovery#28

Open
cidrblock wants to merge 1 commit into
michellepellon:mainfrom
cidrblock:fix/apply-paths-exclude
Open

fix: apply paths.exclude during skill discovery#28
cidrblock wants to merge 1 commit into
michellepellon:mainfrom
cidrblock:fix/apply-paths-exclude

Conversation

@cidrblock

@cidrblock cidrblock commented Jul 9, 2026

Copy link
Copy Markdown

Summary

  • [paths].exclude / --exclude were parsed and documented but never applied during discovery
  • Discovery now filters with globset, skips matching subtrees (e.g. .tox/), and omits skills under excluded paths
  • Fixes false E013 failures from third-party SKILL.md under .tox/site-packages (Playwright, etc.)

Attribution

Human lead, AI assisted (Grok)

Test plan

  • cargo test
  • Unit test: test_discover_skills_respects_exclude
  • CLI test: test_check_exclude_skips_nested_skills
  • Confirm .skillmark.toml with exclude = [".tox/"] no longer reports Playwright skills when run from a repo with a populated .tox

[paths].exclude and --exclude were parsed and documented but never used,
so discovery walked the whole tree (including .tox/site-packages) and
failed E013 on third-party SKILL.md files. Filter discovery with globset
and skip matching subtrees.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant