Fix/discover nested skills without parent skillmd#109
Conversation
The recursive walk in discoverSkills only descended into directories that contained a SKILL.md, so skills nested under grouping directories (dirs without their own SKILL.md) were silently skipped. Move the walk(childDir) call outside the SKILL.md existence check so the traversal always recurses into subdirectories.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
📝 WalkthroughWalkthroughThis pull request fixes skill discovery in the intent scanner by ensuring subdirectories are always traversed during the discovery process, rather than only when a Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
View your CI Pipeline Execution ↗ for commit a819dcf
☁️ Nx Cloud last updated this comment at |
commit: |
|
Ty for working on this! I appreciate your work |
🎯 Changes
The
walk()function indiscoverSkillsonly recursed into directories that contained aSKILL.md. This meant skills nestedunder intermediate grouping directories (directories without their own
SKILL.md) were silently skipped.For example, the following structure would fail to discover
group/nested-skill:skills/
group/ ← no SKILL.md (grouping directory)
nested-skill/ ← has SKILL.md → not found
Fixed by moving
walk(childDir)outside theif (existsSync(skillFile))block so the traversal always recurses intosubdirectories. Applied to both
scanner.tsandlibrary-scanner.ts, with regression tests added for each.✅ Checklist
pnpm run test:pr.🚀 Release Impact
changeset.
Summary by CodeRabbit
Bug Fixes
Tests