Convert npm packages into installable AI agent skills that work with Claude Code, Codex, Cursor, and 40+ other agents.
npm-skills wraps any npm package as a standard SKILL.md skill and registers it with every coding agent you have installed. It builds on the vercel-labs/skills ecosystem — the generated skills are plain SKILL.md files that any agent supporting that format can consume.
┌────────────────────┐ ┌──────────────────────┐
│ npm package │──────▶│ SKILL.md generator │
│ (lodash, axios …) │ │ (npm-skills add) │
└────────────────────┘ └────────┬─────────────┘
│ writes
.npm-skills/skills/<name>/SKILL.md
│
┌────────▼─────────────┐
│ skills CLI install │
│ (npx skills add …) │
└──────────────────────┘
On the first add npm-skills also registers npm-skills-guide — a meta-skill that teaches agents how to interpret and use auto-generated npm skills correctly.
# Use once-off with npx (no global install needed)
npx npm-skills add lodash
# Or install globally
npm install -g npm-skills
npm-skills add lodash| Command | Description |
|---|---|
npm-skills add <package> |
Generate and install a skill for an npm package |
npm-skills remove <package> |
Remove a skill and uninstall it from agents |
npm-skills upgrade <package[@version]> |
Upgrade a skill to the latest or a specified version |
npm-skills list |
List all registered npm skills |
# Add lodash skill
npx npm-skills add lodash
# Add a specific version of a package
npx npm-skills add lodash@4.17.21
# Add a scoped package
npx npm-skills add @types/node
# Check what's installed
npx npm-skills list
# Upgrade to latest version
npx npm-skills upgrade lodash
# Upgrade to a specific version
npx npm-skills upgrade lodash@4.17.21
# Remove a skill
npx npm-skills remove lodashSkills are written to .npm-skills/skills/ in your project:
.npm-skills/
├── registry.json # tracks installed packages
└── skills/
├── npm-skills-guide/ # meta-skill (added automatically)
│ └── SKILL.md
└── npm-lodash/ # generated from lodash
└── SKILL.md
The generated skill name follows the convention npm-<package-name>, with scoped packages (@org/name) becoming npm-org-name.
npm-skills-guide is a companion skill that explains to coding agents how to work with auto-generated npm skills. It is registered automatically the first time you run npm-skills add.
You can also install it independently from this repository:
npx skills add jianliang00/npm-skills --skill npm-skills-guideThe system has three layers:
- Standard SKILL.md format — every generated skill and
npm-skills-guideitself are plainSKILL.mdfiles compatible with the vercel-labs/skills ecosystem. - npm → skill generator —
src/generator.jsconverts npm package metadata (name, version, description, bin, exports, keywords) into a structuredSKILL.md. - Lifecycle management —
npm-skills add / remove / upgradekeeps generated skills in sync with their npm packages.
- Node.js ≥ 18.3.0
Apache-2.0