Repository navigation
Conversation
A SKILL.md under .git, node_modules, site-packages, a virtualenv or __pycache__ below the catalog root is a dependency's copy, not a skill of the catalog; a differing version escaped the mirror rule and loaded as a rival skill. Those directories are no longer walked. Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #215 +/- ##
=======================================
Coverage 92.01% 92.02%
=======================================
Files 223 223
Lines 27768 27777 +9
Branches 4563 4565 +2
=======================================
+ Hits 25552 25561 +9
Misses 1570 1570
Partials 646 646
🚀 New features to boost your workflow:
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
discover_skillswalked every directory under the catalog root, including.git,node_modules,site-packagesand virtualenvs. A dependency's copy of a skill there loaded as a skill of the catalog. If the copy differed by even one byte from the real skill, the mirror rule did not drop it, so theskill-catalog:arm offered two rival skills with the same name.Found while working on #211 (trigger-set formats).
Evidence
skills/linux-perfandnode_modules/pkg/skills/linux-perf(a different version) gave twolinux-perfskills.After: it gives one. The new cases are in
tests/test_skill_loader.py:node_modules,.git/modules, and.venv/.../site-packagesare skipped, and a root that itself sits insidenode_modulesis still walked.Merge Danger
Door: two-way
Blast Radius: small. A catalog that keeps real skills under a directory named
venv,.tox,site-packagesor one of the others no longer loads them. These are directory names that would be odd for a skills tree.🤖 Generated with Claude Code