Skip to main content
skill CX Codex

share-a-library — Claude Code skill: publish your library

share-a-library — a skill that automates publishing a finished local library to GitHub and generates an install command for your teammates.

MIT 161 installs ★ 1,161 updated 2026-09-21

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add MoizIbnYousaf/ai-agent-skills --skill share-a-library -a claude-code
Open on GitHub

What share-a-library does

When your library is ready to share, this skill handles the full workflow: regenerates documentation via npx ai-agent-skills build-docs, initializes a Git repository, commits your code, and creates a public GitHub repo. It then returns the exact install command that other developers can run immediately in their projects.

If your library defines a starter-pack collection, the skill will suggest an install command scoped to that collection—cleaner than installing everything at once. It also checks whether the repo already exists and avoids creating duplicates; if a remote is already set up, it just pushes your changes.

You need to be working inside a managed library workspace that has passed basic sanity checks. The skill won't stop at git init; it delivers a ready-to-share install command for your team.

What it helps with

  • publish a library to GitHub in one go
  • generate the correct install command for your team
  • avoid duplicate repositories when re-publishing
  • choose between a starter pack and full library installation

Example prompts for the agent

  • Publish this library to GitHub and give me the command to share with my team
  • Take my finished local library, push it to GitHub, and return the install command
  • Share this library: publish to GitHub and tell me how to install it

How to install share-a-library

1Skills CLI (Vercel)

npx skills add MoizIbnYousaf/ai-agent-skills --skill share-a-library -a claude-code

2Manually: put the files in place

~/.claude/skills/share-a-library/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/share-a-library/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about share-a-library

How do I install share-a-library in Claude Code?

Run npx skills add MoizIbnYousaf/ai-agent-skills --skill share-a-library -a claude-code, then edit ~/.claude/skills/share-a-library/SKILL.md.

What does the share-a-library skill do?

It takes a finished local library, publishes it to GitHub, regenerates documentation, and returns an install command you can hand to your team.

Do I need to set up Git myself before using this skill?

No. The skill handles Git initialization, commits your code, and pushes to GitHub. If the repo already exists, it connects the remote and pushes your changes.

Source text

SKILL.md · MIT
---
name: share-a-library
description: 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.
category: workflow
version: 4.1.0
---

# 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.

```bash
npx ai-agent-skills build-docs
```

2. Publish the workspace to GitHub.

```bash
git init
git add .
git commit -m "Initialize skills library"
gh repo create <owner>/<repo> --public --source=. --remote=origin --push
```

3. Return the exact shareable install command.

If the library has a `starter-pack` collection:

```bash
npx ai-agent-skills install <owner>/<repo> --collection starter-pack -p
```

Otherwise:

```bash
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

© MoizIbnYousaf · MIT · MoizIbnYousaf/ai-agent-skills

Similar skills

All skills for Agent setup: memory, context, orchestration →
autoship vercel-labs autoship — a skill for Claude Code, Codex, Cursor, GitHub Copilot, and Gemini CLI that runs the full changeset release cycle end to end. It reads commits, writes an AI-generated description, and publishes to npm without manual steps. CX Codex +1 747installs ctx-upgrade mksglu ctx-upgrade — a skill for Claude Code and five other platforms. Updates context-mode to the latest release, then checks the result. CX Codex +1 1,700installs cyrus-setup-prerequisites cyrusagents cyrus-setup-prerequisites — a Claude Code skill that checks system prerequisites before installing Cyrus and puts cyrus-ai in place. Runs on Node.js 18+ and keeps secrets in ~/.cyrus/.env out of the conversation. CX Codex +1 1,100installs list-npm-package-content vercel The list-npm-package-content skill lists exactly which files will be included when you publish to npm. Check your bundle contents before publishing or verify that unwanted files didn't sneak in. CX Codex +1 22installs version-bump thedotmack version-bump — a skill for Claude Code managing the maintainer release pipeline in the thedotmack/claude-mem repo. It updates version strings across plugin manifests, tags git commits, and rebuilds changelogs. CX Codex +1 2,300installs pinme-share glitternetwork pinme-share — a Claude Code skill that packages results into a static HTML page and uploads it with pinme upload. It takes a project, report, or conversation summary and returns a shareable link. CX Codex +1 517installs

From the same set15

The whole set →
browse-and-evaluate The browse-and-evaluate skill helps you find, compare, and inspect catalog skills before adding them. Use it when catalog output needs to stay focused. CX Codex +1 177installs review-a-skill review-a-skill reviews a skill before it enters a library by checking metadata, structure, safety, and dependencies. Use it when the choice is keep, curate, or remove. CX Codex +1 177installs build-workspace-docs build-workspace-docs keeps README.md and WORK_AREAS.md aligned with a skills catalog. Run it after catalog changes or before committing workspace updates. CX Codex +1 172installs audit-library-health audit-library-health — a skill for diagnosing a skills library: validates structure, finds stale elements, checks documentation sync. Run before publishing or updating. CX Codex +1 170installs update-installed-skills update-installed-skills syncs previously installed agent skills to their upstream versions. Helps you inspect changes safely with dry-run flags before overwriting local setups. CX Codex +1 168installs install-from-remote-library install-from-remote-library guides safe skill installs from shared repos. Inspects targets via --list and previews every action with a dry-run flag. CX Codex +1 161installs curate-a-team-library curate-a-team-library — a skill for Claude Code, Codex, Cursor and other agents that walks an agent through building a team skills library: mapping shelves, adding entries with curator metadata, assembling a starter pack. CX Codex +1 160installs migrate-skills-between-libraries migrate-skills-between-libraries is a Claude Code skill that moves skills between library workspaces, including when switching from a personal library to a team one. CX Codex +1 158installs

Project sponsors

Companies that keep this analytics open