Fix install.sh to support subdirectory-based Claude skills#2
Conversation
The glob pattern only matched top-level *.md files, silently skipping skills like /research that use a subdirectory layout (skills/research/SKILL.md). Extend the loop to also match directories so both structures install correctly.
|
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 (1)
📝 WalkthroughWalkthroughThe Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 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 docstrings
🧪 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 |
What
The
install_claudeloop ininstall.shonly globbed top-level*.mdfiles:This silently skips skills that use a subdirectory layout — like the recently added
/researchskill atclaude/skills/research/SKILL.md. Running./install.sh claudewould complete without error but the skill would never be linked to~/.claude/skills/.Fix
Extend the glob to also match subdirectories:
Uses
${f%/}to strip the trailing slash before symlinking, so both flat files and directories are handled identically. Existing behavior for flat skills/rules/commands is unchanged.Testing
Summary by CodeRabbit