Ai-Agent-Skills share-a-library
Use when a managed library is ready to publish to GitHub and hand to teammates as an install command. Run the GitHub publishing steps, then return the exact shareable install command.
install
source · Clone the upstream repo
git clone https://github.com/MoizIbnYousaf/Ai-Agent-Skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/MoizIbnYousaf/Ai-Agent-Skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/share-a-library" ~/.claude/skills/moizibnyousaf-ai-agent-skills-share-a-library && rm -rf "$T"
manifest:
skills/share-a-library/SKILL.mdsource content
Share A Library
Goal
Turn a finished local library into a real shared artifact with a repo URL and an install command another agent can use.
Preconditions
- You are already inside a managed library workspace.
- The library has been sanity-checked.
has already run, or you run it now before publishing.npx ai-agent-skills build-docs
Workflow
- Regenerate docs if needed.
npx ai-agent-skills build-docs
- Publish the workspace to GitHub.
git init git add . git commit -m "Initialize skills library" gh repo create <owner>/<repo> --public --source=. --remote=origin --push
- Return the exact shareable install command.
If the library has a
starter-pack collection:
npx ai-agent-skills install <owner>/<repo> --collection starter-pack -p
Otherwise:
npx ai-agent-skills install <owner>/<repo> -p
Guardrails
- Do not stop at
. A shared library is not shared until the repo exists and the install command is ready.git init - If the repo already exists, connect the existing remote and push instead of creating a duplicate.
- Prefer the collection install command when a curated starter pack exists.
- Return the actual repo coordinates you used, not placeholders.
Done
Return:
- the repo URL
- whether you shared a collection or the whole library
- the exact install command to hand to teammates