openskills README

The project's README from github.com/numman-ali/openskills. As one markdown file: README.md.

OpenSkills

Universal skills loader for AI coding agents

One CLI. Every agent. Same format as Claude Code.

npm version npm downloads License

Quick Start · How It Works · Commands · Create Skills · FAQ


✨ What Is OpenSkills?

OpenSkills brings Anthropic's skills system to every AI coding agent — Claude Code, Cursor, Windsurf, Aider, Codex, and anything that can read AGENTS.md.

Think of it as the universal installer for SKILL.md.


🚀 Quick Start

npx openskills install anthropics/skills
npx openskills sync

By default, installs are project-local (./.claude/skills, or ./.agent/skills with --universal). Use --global for ~/.claude/skills.


✅ Why OpenSkills


🧠 How It Works

Claude Code System Prompt (Skills)

Claude Code ships skills as SKILL.md files and exposes them inside a <available_skills> block. When the user asks for a task, Claude dynamically loads the matching skill.

<available_skills>
<skill>
<name>pdf</name>
<description>Comprehensive PDF manipulation toolkit for extracting text and tables...</description>
<location>plugin</location>
</skill>
</available_skills>

OpenSkills: Same Format, Universal Loader

OpenSkills generates the exact same <available_skills> XML in your AGENTS.md and loads skills via:

npx openskills read <skill-name>

So any agent that can read AGENTS.md can use Claude Code skills without needing Claude Code itself.

Side-by-Side

Aspect Claude Code OpenSkills
Prompt Format <available_skills> XML Same XML
Skill Storage .claude/skills/ .claude/skills/ (default)
Invocation Skill("name") tool npx openskills read <name>
Marketplace Anthropic marketplace GitHub (anthropics/skills)
Progressive Disclosure ✅ ✅
Show the exact AGENTS.md format OpenSkills writes
<skills_system priority="1">

## Available Skills

<!-- SKILLS_TABLE_START -->
<usage>
When users ask you to perform tasks, check if any of the available skills below can help complete the task more effectively.

How to use skills:
- Invoke: `npx openskills read <skill-name>` (run in your shell)
- The skill content will load with detailed instructions
- Base directory provided in output for resolving bundled resources

Usage notes:
- Only use skills listed in <available_skills> below
- Do not invoke a skill that is already loaded in your context
</usage>

<available_skills>

<skill>
<name>pdf</name>
<description>Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms...</description>
<location>project</location>
</skill>

</available_skills>
<!-- SKILLS_TABLE_END -->

</skills_system>

🔧 Install Skills

From Anthropic Marketplace

npx openskills install anthropics/skills

From Any GitHub Repo

npx openskills install your-org/your-skills

From a Local Path

npx openskills install ./local-skills/my-skill

From Private Git Repos

npx openskills install [email protected]:your-org/private-skills.git

🌍 Universal Mode (Multi-Agent Setups)

If you use Claude Code and other agents with one AGENTS.md, install to .agent/skills/ to avoid conflicts with Claude's plugin marketplace:

npx openskills install anthropics/skills --universal

Priority order (highest wins):

  1. ./.agent/skills/
  2. ~/.agent/skills/
  3. ./.claude/skills/
  4. ~/.claude/skills/

🧰 Commands

npx openskills install <source> [options]  # Install from GitHub, local path, or private repo
npx openskills sync [-y] [-o <path>]       # Update AGENTS.md (or custom output)
npx openskills list                        # Show installed skills
npx openskills read <name>                 # Load skill (for agents)
npx openskills update [name...]            # Update installed skills (default: all)
npx openskills manage                      # Remove skills (interactive)
npx openskills remove <name>               # Remove specific skill

Flags


🧬 The SKILL.md Format

OpenSkills uses Anthropic's exact format:

---
name: pdf
description: Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms.
---

# PDF Skill Instructions

When the user asks you to work with PDFs, follow these steps:
1. Install dependencies: `pip install pypdf2`
2. Extract text using scripts/extract_text.py
3. Use references/api-docs.md for details

Skills are loaded on demand, keeping your agent's context clean and focused.


🧪 Creating Your Own Skills

Minimal Structure

my-skill/
└── SKILL.md

With Resources

my-skill/
├── SKILL.md
├── references/
├── scripts/
└── assets/

Install your own skill:

npx openskills install ./my-skill
git clone [email protected]:your-org/my-skills.git ~/dev/my-skills
mkdir -p .claude/skills
ln -s ~/dev/my-skills/my-skill .claude/skills/my-skill

Authoring Guide

npx openskills install anthropics/skills
npx openskills read skill-creator

🔄 Updating Skills

If you installed skills from a git repo, you can refresh them anytime:

npx openskills update

To update specific skills, pass a comma-separated list:

npx openskills update git-workflow,check-branch-first

If a skill was installed before updates were tracked, re-install it once to record its source.


✅ Tips


❓ FAQ

Why CLI instead of MCP?

MCP is for dynamic tools. Skills are static instructions + resources.

MCP and skills solve different problems. OpenSkills keeps skills lightweight and universal.


📋 Requirements


📜 License

Apache 2.0

Attribution

Implements Anthropic's Agent Skills specification.

Not affiliated with Anthropic. Claude, Claude Code, and Agent Skills are trademarks of Anthropic, PBC.

openskills (numman-ali/openskills)

Searching Database…

这是什么?OpenSkills 是一个通用的命令行加载工具,可以把 Anthropic 的 Agent Skills 系统(SKILL.md 文件)带到任何 AI 编程智能体中,不限于 Claude Code,包括 Cursor、Windsurf、Aider 和 Codex。
这是命令行工具,还是我要装在智能体里面的插件?它是一个独立的 Node.js 命令行工具,可以通过 npx 运行,也可以全局安装。它会把技能写入一个文件夹,并在你的 AGENTS.md 中生成对应的 XML 块,这样任何兼容的编程智能体都能读取。
我该如何用它安装技能?你可以从 Anthropic 的市场、任意 GitHub 仓库、本地路径或私有 git 仓库拉取技能。默认会安装到 ./.claude/skills;加上 --universal 参数则安装到 ./.agent/skills;使用 --global 则改为安装到 ~/.claude/skills。
使用前需要先安装什么?你需要 Node.js 20.6 或更高版本;如果想从代码仓库安装技能,还需要 Git。
要让它正常工作,我需要安装 Claude Code 吗?不需要。OpenSkills 复刻了 Claude Code 的技能格式和提示词 XML,让其他编程智能体无需安装 Claude Code 也能使用相同的技能。
这个工具只支持 Claude Code,还是也支持其他编程智能体?它是为多智能体环境设计的,支持 Claude Code、Cursor、Windsurf、Aider、Codex,以及任何能读取 AGENTS.md 文件的工具。
为什么用命令行工具而不是 MCP 来管理技能?MCP 用于动态工具,而技能是静态的指令和资源,只需要以文件形式存放在磁盘上,不需要服务器。因此 OpenSkills 让技能保持轻量,并且不论编程智能体是否支持 MCP,都能与其配合使用。
安装后还能更新技能吗?可以。如果技能来自 git 仓库,随时都可以刷新。也可以传入以逗号分隔的技能名称列表,只更新指定的技能。
如果我同时使用 Claude Code 和其他编程智能体,会怎样?使用 --universal 参数可以将技能安装到 .agent/skills/ 而不是 .claude/skills/,从而避免与 Claude 自带的插件市场发生冲突;OpenSkills 会在这两个位置之间处理优先级。
我可以创建并安装自己的技能吗?可以。你可以编写一个 SKILL.md 文件,并选择附带资源文件,然后从本地路径安装。在反复修改调试时,还可以用符号链接进行本地开发。
Creator
numman-ali
Size
0.2 MB
Stars
10.8K
Age
11mo
Commits · 90 Days