share-a-library

Publishes a local skills library to GitHub and returns a shareable install command.

1.1k|131|Updated Dec 17, 2025
One-click install
npx skills add https://github.com/skillcreatorai/Ai-Agent-Skills --skill share-a-library
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: share-a-library
Source: https://github.com/skillcreatorai/Ai-Agent-Skills/tree/main/skills/share-a-library
Command: npx skills add https://github.com/skillcreatorai/Ai-Agent-Skills --skill share-a-library

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Turning a finished local skills library into something teammates can actually install requires several manual steps: regenerating docs, initializing git, creating a GitHub repo, pushing, and constructing the correct install command. This Skill walks through that entire publishing flow and guarantees you end with a working repo URL and an exact install command to hand off.

Core Features & Use Cases

  • Guided GitHub Publishing: Runs the full sequence from git init through gh repo create and push, with guardrails against stopping halfway or creating duplicate repos.
  • Docs Regeneration: Ensures npx ai-agent-skills build-docs runs before publishing so the shared library ships with up-to-date documentation.
  • Exact Install Command Output: Returns the precise npx ai-agent-skills install command, preferring the --collection starter-pack variant when a curated starter pack exists.
  • Use Case: You have finished curating a team skills library in a managed workspace. Run this Skill to publish it to GitHub under your organization and receive the one-line install command to paste into your team's onboarding docs.

Quick Start

Publish my current skills library workspace to GitHub and give me the exact install command to share with my teammates.

Frequently Asked Questions about share-a-library

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I share my ai-agent-skills library with teammates?

Publish the workspace to GitHub using git init, gh repo create, and a push, then share the generated npx ai-agent-skills install command. Teammates run that single command to install the library into their own environment.

How do I publish a skills library to GitHub from the command line?

Run git init, commit the workspace, then use gh repo create with the --source and --push flags to create the remote repository and push in one step. Regenerate docs with npx ai-agent-skills build-docs before publishing.

What if the GitHub repository for my library already exists?

Do not create a duplicate repository. Instead, connect the existing remote with git remote add and push your commits to it, then return the install command pointing at that repository.

When should I use the starter-pack collection install command?

Use the --collection starter-pack variant when the library contains a curated starter-pack collection, so teammates install only that curated subset. Otherwise share the plain install command for the whole library.

What tools are required to share a skills library?

You need git, the GitHub CLI (gh) authenticated to your account, and the ai-agent-skills npm package available via npx. The workspace must also be a managed library that has passed a sanity check.