publish-skills
v1.3.0
Published
A CLI tool that publishes AI agent skills to Git repositories via Pull/Merge Requests.
Downloads
79
Maintainers
Readme
🚀 publish-skills
Publish AI agent skills to Git repositories in one command.
The easiest way to share Claude, Cursor, Gemini, and Copilot skills with the world.
Works With
| AI Agents | Git Platforms | |-----------|---------------| | Claude Code, Cursor, GitHub Copilot, Gemini, Cline, Codex, Windsurf, OpenHands, and 40+ more | GitHub, GitLab, Bitbucket |
⚡ Quick Start
npx publish-skills publishThat's it! Your skill is now a Pull Request away from being shared with the world.
🎯 What Does It Do?
publish-skills is a CLI tool that bridges the gap between creating AI agent skills and sharing them with the community. Whether you're building skills for Claude, Cursor, Gemini, Copilot, or any of the 40+ supported AI coding agents, this tool automates the entire publishing workflow via Pull Requests to GitHub, GitLab, or Bitbucket.
The Magic Combo: publish-skills + skills
| Step | Tool | What It Does | | ---- | ------------------ | -------------------------------------------------------- | | 1️⃣ | publish-skills | 📤 Publish your skill to a Git repository via PR/MR | | 2️⃣ | skills (npx) | 🔍 Discover, download & install skills from the registry |
graph LR
A[You create a skill] --> B[npx publish-skills publish]
B --> C[PR to skills repo]
C --> D[Skills package manager]
D --> E[Everyone can install!]Together, they create a complete ecosystem:
- Publish your skills once with
publish-skills - Share them via a central Git repository
- Discover them with
npx skills find <topic> - Install them with
npx skills add <repo-or-skill>
📦 What's a Skill?
A skill is a reusable package of instructions that supercharge AI agents like Claude, Gemini, Cursor, and 40+ others.
my-awesome-skill/
├── SKILL.md # 📋 Required: YAML frontmatter + instructions
├── README.md # 📖 Optional: Usage documentation
└── content/ # 📁 Optional: Prompts, templates, resources
├── prompts/
├── templates/
└── resources/📁 Skills Directory
You can organize multiple skills in a single directory:
skills/
├── skill-one/
│ ├── SKILL.md
│ └── content/
├── skill-two/
│ ├── SKILL.md
│ └── README.md
└── skill-three/
├── manifest.json
└── content/This allows you to publish multiple skills in a single merge request.
SKILL.md Format
---
name: my-skill
description: What this skill does and when to use it
---
# My Skill
Detailed instructions for the agent to follow when this skill is activated.
## When to Use
Describe the scenarios where this skill should be used.
## Steps
1. First, do this
2. Then, do thatRequired fields:
name: Unique identifier (lowercase, hyphens allowed)description: Brief explanation (1-2 sentences)
Optional fields:
metadata.internal: Set totrueto hide from normal discovery (WIP/internal skills)
That's it! No separate manifest.json needed. The SKILL.md file contains everything.
🎨 Commands at a Glance
# 🏗️ Create a new skill from template
npx publish-skills create
# ✅ Validate your skill before publishing
npx publish-skills validate [path]
# 🚀 Publish your skill (creates PR/MR)
npx publish-skills publish [skill-path] [--all]
# 🔐 Login/Logout to Git platforms
npx publish-skills login
npx publish-skills logout
# ⚙️ Manage configuration
npx publish-skills config list
npx publish-skills config set <key> <value>🔧 How It Works
1. Create Your Skill
npx publish-skills createInteractive wizard guides you through:
- Skill name & description
- Target AI agents (Claude, Gemini, Cursor, etc.)
- License selection
2. Build Your Skill
Add content to the generated structure. Edit SKILL.md with your instructions. Optionally add content/ with prompts, templates, and resources.
3. Publish Your Skill
Publish a Single Skill
npx publish-skills publish ./my-skillPublish Multiple Skills
If you have a directory containing multiple skills, you can publish them all at once:
# Interactive mode: select which skills to publish
npx publish-skills publish ./skills
# Non-interactive: publish all skills in the directory
npx publish-skills publish ./skills --allWhen publishing multiple skills:
- All skills are validated before proceeding
- A single feature branch is created (
feature/multi-skill-<timestamp>) - All selected skills are copied into the repository
- One commit with all skills is created
- One Pull Request is opened with details about all skills
The tool:
- ✅ Validates your skill structure(s)
- 🔐 Loads your Git credentials
- 📥 Clones the target repository
- 🌿 Creates a feature branch
- 📁 Copies your skill(s) to
skills/<skill-name>/ - 💾 Commits with a clear message
- 🚀 Pushes the branch
- 🔀 Opens a Pull/Merge Request
- 🎉 Displays the PR URL
4. Share with the World
Once your PR is merged to the skills repository, anyone can install your skill:
# List available skills in a repo
npx skills add vercel-labs/agent-skills --list
# Install a specific skill
npx skills add vercel-labs/agent-skills --skill my-awesome-skill
# Install all skills from a repo
npx skills add vercel-labs/agent-skills --all
# Install to specific agents
npx skills add vercel-labs/agent-skills -a claude-code -a cursor
# Install globally (available in all projects)
npx skills add vercel-labs/agent-skills -g --skill my-awesome-skill🛠️ Setup & Configuration
First-Time Setup
# 1. Login to your Git platform (GitHub/GitLab/Bitbucket)
npx publish-skills login
# 2. Configure the target repository
# Example for GitHub:
npx publish-skills config set repositories.default.url https://github.com/your-org/skills-repo
# Example for GitLab:
npx publish-skills config set repositories.default.url https://gitlab.com/your-group/skills-repo
# Example for Bitbucket:
npx publish-skills config set repositories.default.url https://bitbucket.org/your-team/skills-repo
# 3. Publish your first skill!
npx publish-skills publish ./my-skillConfiguration File
Settings stored at ~/.publish-skills/config.json:
{
"author": {
"name": "Your Name",
"email": "[email protected]"
},
"repositories": {
"default": {
"platform": "github",
"url": "https://github.com/your-org/skills-repo",
"targetBranch": "main",
"skillsPath": "skills/"
}
},
"defaultRepository": "default"
}🌟 Why Use publish-skills?
| ✅ Feature | Benefit | | -------------------------- | ------------------------------------ | | One-command publishing | No manual Git operations | | Multi-platform | GitHub, GitLab, Bitbucket | | Secure credentials | Stored in platform-native keychains | | PR-based workflow | Review process, attribution, history | | Agent-agnostic | Works with 40+ AI coding agents | | Open ecosystem | Anyone can create and share skills |
🔒 Supported Git Platforms
| Platform | Status | API Library |
| --------------- | ---------- | ----------------- |
| GitHub | ✅ Phase 1 | @octokit/rest |
| GitLab | ✅ Phase 1 | @gitbeaker/rest |
| Bitbucket | ✅ Phase 1 | bitbucket |
| Self-hosted Git | 🚧 Phase 2 | Git CLI |
🤖 Supported AI Agents
The skills package manager supports 40+ agents, including:
| Agent | --agent flag |
| --------------- | ---------------- |
| Claude Code | claude-code |
| Cursor | cursor |
| GitHub Copilot | github-copilot |
| Cline | cline |
| OpenCode | opencode |
| Codex | codex |
| Windsurf | windsurf |
| OpenHands | openhands |
| And 30+ more... | |
See the full list in the skills documentation.
🚀 For Developers
Local Development
# Clone and setup
git clone https://github.com/jindalAnuj/publish-skills
cd publish-skills
npm install
# Build
npm run build
# Link for testing
npm link
# Try it out
publish-skills --version
publish-skills createTech Stack
- Language: TypeScript 5 (strict mode)
- CLI: yargs + inquirer
- Git: simple-git
- APIs: @octokit/rest, @gitbeaker/rest, bitbucket
- Security: keytar (platform-native credential storage)
- UI: chalk, ora, cli-table3
📄 License
MIT © Anuj Jindal
🙋 Support
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- LinkedIn: Anuj Jindal
🌐 Part of the Skills Ecosystem
publish-skills is designed to work seamlessly with the Vercel Labs skills ecosystem:
┌─────────────────────────────────────────────────────────────────┐
│ Skills Ecosystem │
├─────────────────────────────────────────────────────────────────┤
│ │
│ CREATE PUBLISH DISCOVER INSTALL │
│ ────── ─────── ──────── ─────── │
│ │
│ SKILL.md → publish-skills → ClawHub → skills │
│ OpenClaw (npx) │
│ GitHub │
│ │
└─────────────────────────────────────────────────────────────────┘Skill Registries & Directories
| Registry | Description | |----------|-------------| | ClawHub | 3,000+ OpenClaw skills with vector search | | Awesome Agent Skills | 26,000+ skills directory | | Agent Skill Hub | Universal registry for 790+ skills | | Local Skills | Team-focused skill sharing |
🔗 Related
- skills - The companion package manager for discovering and installing skills (Vercel Labs)
- vercel-labs/skills - Skills CLI source and documentation
- OpenClaw - OpenClaw ecosystem documentation
- ROADMAP.md - Current features and future roadmap
- MARKETING.md - Marketing guide and directory submissions
Made with ❤️ for the AI agent community
