Skip to content

cli: shared skill install for global skill install - #11

Merged
sdelcore merged 1 commit into
mainfrom
add-skill-install
Jul 22, 2026
Merged

cli: shared skill install for global skill install#11
sdelcore merged 1 commit into
mainfrom
add-skill-install

Conversation

@sdelcore

Copy link
Copy Markdown
Owner

Adds a shared skill install command that installs the shared-sites agent skill globally, into ~/.claude/skills/shared-sites/SKILL.md.

Why

shared init already ships the shared-sites skill, 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 run init in 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:

  • there is a single source of truth (the embed in the binary), and
  • the skill stays URL-agnostic — it points at $SHARED_SERVER / --server rather than baking in a host.

Behaviour

shared skill install            # writes ~/.claude/skills/shared-sites/SKILL.md, skips if it exists
shared skill install --force    # overwrite an existing file

Mirrors the skip-if-exists semantics of shared init. README CLI section updated.

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.
@sdelcore
sdelcore merged commit 7995284 into main Jul 22, 2026
2 checks passed
@sdelcore
sdelcore deleted the add-skill-install branch July 22, 2026 00:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant