feat: add --global/-g flag for installing personal skills#4
Merged
Conversation
…e/skills This change adds support for installing skills globally to ~/.claude/skills, making them available across all Claude Code projects. Key features: - New -g/--global flag installs skills to ~/.claude/skills instead of project directory - discover-skills script now searches both project and personal skills directories - Global installs skip .agents/discover-skills and AGENTS.md updates (project-specific) - Updated documentation with examples and usage guidelines Addresses the need for personal skills that are shared across projects as documented in Claude Code skills documentation. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Lars Trieloff <lars@trieloff.net>
…atibility The printf command was wrapped in echo with command substitution which could cause issues. Simplified to direct printf call for more reliable output. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Lars Trieloff <lars@trieloff.net>
Avoids potential issues with command substitution and external commands. Uses pure bash for better portability and reliability. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Lars Trieloff <lars@trieloff.net>
The -E flag causes ERR traps to be inherited by shell functions and command substitutions, which can cause unexpected failures in some environments. 🤖 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
--global/-gflag to install skills to~/.claude/skillsfor personal skills available across all projectsdiscover-skillsscript to search both project (.claude/skills) and personal (~/.claude/skills) directories.agents/discover-skillsandAGENTS.md)Rationale
Claude Code supports loading skills from three locations: personal skills (
~/.claude/skills), project skills (.claude/skills), and plugin skills. This enhancement enables upskill to install directly to the personal skills directory, making skills available across all projects.Changes
Core functionality
--global/-gflag to option parsing$HOME/.claude/skillswhen flag is set.agents/discover-skills,AGENTS.md,.gitignore) for global installsDiscovery script enhancement
discover-skillsnow searches both project and personal directoriesDocumentation
Test plan
--helpshows new flagupskill -g anthropics/skills --skill pdfinstalls to~/.claude/skills.agents/discover-skillsscript lists both project and personal skills🤖 Generated with Claude Code