feat: add support for repositories with individual SKILL.md files#3
Merged
feat: add support for repositories with individual SKILL.md files#3
Conversation
This enhancement allows upskill to work with repositories like anthropics/skills that organize skills as individual SKILL.md files instead of using a .claude/skills directory structure. New features: - Auto-detect whether repo uses .claude/skills or individual SKILL.md files - --list flag to display available skills before installing - --skill flag (multi-use) to selectively install specific skills - --all flag to install all discovered skills from SKILL.md files - Backward compatible: repos with .claude/skills work as before For repos without .claude/skills: - Discovers all SKILL.md files recursively - Extracts skill name and description from YAML frontmatter - Allows selective installation by skill name - Prompts user to choose skills when neither --skill nor --all is provided Examples: upskill anthropics/skills --list upskill anthropics/skills --skill pdf --skill xlsx upskill anthropics/skills --all 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Lars Trieloff <lars@trieloff.net>
Based on user feedback, this commit improves the skill listing experience:
- Enhanced formatting: bold skill names, cyan relative paths in parentheses
- Smart examples: use actual discovered skill names in usage examples
- Better layout: description on separate line below skill name
- Cleaner paths: show relative paths instead of absolute paths
- Verified temp directory cleanup works correctly (trap already in place)
Example output:
**pdf** (document-skills/pdf/SKILL.md)
Comprehensive PDF manipulation toolkit...
To install specific skills:
upskill anthropics/skills --skill pdf --skill xlsx
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Lars Trieloff <lars@trieloff.net>
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
This PR enhances
upskillto support repositories likeanthropics/skillsthat organize skills as individualSKILL.mdfiles instead of using a.claude/skillsdirectory structure.Key Changes
.claude/skillsor individualSKILL.mdfiles--listflag to display available skills before installing--skill <name>flag (can be used multiple times) to install specific skills--allflag to install all discovered skills fromSKILL.mdfiles.claude/skillsdirectory continue to work as beforeNew Workflow for SKILL.md Repositories
When a repository doesn't have a
.claude/skillsdirectory:SKILL.mdfiles recursively in the repository--skillor--allExamples
List available skills:
Install specific skills:
Install all skills:
Implementation Details
.claude/skillsdirectoryTest plan
--listwithanthropics/skillsrepository--skill pdf--skill pdf --skill xlsx.claude/skillsrepositories🤖 Generated with Claude Code