About share-a-library
A workflow skill for publishing a completed library from a managed workspace as a GitHub repository and preparing an install command for teammates. It covers documentation generation, repository creation or reuse, and sharing either a collection or the full library.
Key features
- 01Regenerate library documentation
- 02Publish or update a GitHub repository
- 03Choose collection or full-library install
- 04Return repository URL and install command
Use cases
- 01Share a finished library with teammates
- 02Publish a curated starter-pack collection
- 03Push an existing library repository
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ moizibnyousaf/ ai-agent-skills --skill share-a-libraryAfter installing, type/share-a-libraryin Claude Code to confirm it loaded.
Details
From the project READMEShare 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.
npx ai-agent-skills build-docshas already run, or you run it now before publishing.
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
git init. A shared library is not shared until the repo exists and the install command is ready. - 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
Comments
Markdown supported