mcpField
S
share-a-library

share-a-library

github.com/moizibnyousafAgent workflows1.2k156 installsUpdated 5w ago
Repository

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

  1. 01Regenerate library documentation
  2. 02Publish or update a GitHub repository
  3. 03Choose collection or full-library install
  4. 04Return repository URL and install command

Use cases

  1. 01Share a finished library with teammates
  2. 02Publish a curated starter-pack collection
  3. 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-library

After installing, type/share-a-libraryin Claude Code to confirm it loaded.

Details

From the project README

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.
  • npx ai-agent-skills build-docs has already run, or you run it now before publishing.

Workflow

  1. Regenerate docs if needed.
npx ai-agent-skills build-docs
  1. 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
  1. 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