cli: shared skill install for global skill install - #11
Merged
Conversation
Add a "shared skill install" command that writes the embedded shared-sites skill to ~/.claude/skills/shared-sites/SKILL.md, making it available to agents in every project rather than only in a directory scaffolded by "shared init". Reuses the same embedded copy (web.InitSkillMD), so the skill stays URL-agnostic and driven by $SHARED_SERVER. Skips an existing file unless --force.
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.
Adds a
shared skill installcommand that installs theshared-sitesagent skill globally, into~/.claude/skills/shared-sites/SKILL.md.Why
shared initalready ships theshared-sitesskill, but only per-project — it scaffolds the skill into a specific site directory. That means an agent only knows the shared client API and deploy flow once you have runinitin that project. For a skill you want available everywhere (before any project exists), the only option was maintaining a separate hand-copied skill elsewhere, which then drifts and tends to hardcode the server URL.This command installs the same embedded copy (
web.InitSkillMD) to the user-global Claude skills directory, so:$SHARED_SERVER/--serverrather than baking in a host.Behaviour
Mirrors the skip-if-exists semantics of
shared init. README CLI section updated.