skillpm
Copilot instructions14 starsChanged 2 months agoMITView on GitHub
skillpm is npm for Agent Skills. It builds on top of npm to add skill-awareness: resolving skill dependency trees, scanning for installed skills, and wiring them into agent directories. Design principle: stay as close to npm as possible. skillpm should feel like npm. Same package.json, same node_modules, same package-lock.json, same registry. skillpm only adds what npm cannot do by itself: discovering installed skills and linking them into agent directories. skillpm only manages npm-hosted skills. For broader project-level agent packaging or…
- Installs packages
The file
We split this copilot-instructions.md into the rules it gives an agent
7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Before writing any new code, check whether one of these tools already does it.
- Distinctive: line 71
All dependencies resolve transitively through npm.
- Very specific: line 95
When a user runs skillpm install refactor-react:
- Very specific: line 147
Use Vitest for testing. Co-locate tests next to source as *.test.ts.
- Distinctive: line 148
Use ESLint and Prettier.
- Very specific: line 153
Use gray-matter for parsing YAML frontmatter from SKILL.md files.
- Distinctive: line 154
Prefer explicit, actionable error messages.
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Copilot Instructions for skillpm
What is skillpm?
skillpm is npm for Agent Skills. It builds on top of npm to add skill-awareness: resolving skill dependency trees, scanning for installed skills, and wiring them into agent directories.
Design principle: stay as close to npm as possible. skillpm should feel like npm. Same package.json, same node_modules, same package-lock.json, same registry. skillpm only adds what npm cannot do by itself: discovering installed skills and linking them into agent directories.
skillpm only manages npm-hosted skills. For broader project-level agent packaging or non-npm sources, point users to APM or to the underlying host-specific tools.
The project is developed in TypeScript.
Key dependencies (don't reimplement — use these)
| Package | Type | What it does | How skillpm uses it |
| npm | CLI (shell out) | Package management, dependency resolution, registry, lockfiles, caching | All package operations — skillpm install calls npm install under the hood |
skills | CLI (shell out) | Installs canonical skill copies and agent links | npx skills@1.7.0 add <path> -y --json — checks structured project-install results |
Official skills-ref | Python CLI (shell out) | Validates SKILL.md against the Agent Skills spec | skills-ref validate <path> from PATH during skillpm publish; not the third-party npm port |
Before writing any new code, check whether one of these tools already does it.
Requires Node.js 22.20.0 or later. Keep the upstream CLI version pinned in
src/utils/exec.ts and recheck its JSON contract before upgrading.
Publishing also requires Python 3.11+ and the official validator on PATH.
What are Agent Skills?
Agent Skills are modular, reusable packages of instructions, scripts, and resources that AI agents can dynamically load to extend their capabilities. They follow an open standard adopted by Claude, Codex, Cursor, Gemini CLI, Augment, and others.
Skill package structure
A skill is a standard npm package with the skill content in a skills/<name>/ subdirectory:
my-skill/
├── package.json # npm metadata, deps, keywords: ["agent-skill"]
├── README.md
├── LICENSE
└── skills/
└── my-skill/
├── SKILL.md
├── scripts/
├── references/
└── assets/One skill per npm package. The skill directory name must match the name field in SKILL.md frontmatter. All skill packages must include "agent-skill" in package.json keywords for discoverability on npmjs.org. Use git+https:// for repository.url.
The npm layout and keyword are skillpm conventions, not open-standard requirements.
Metadata is a string-to-string map. allowed-tools is experimental and
host-dependent. Recommend fewer than 500 lines in SKILL.md with relative
references to detailed resources; do not enforce this as a hard format limit.
Dependency model
Skill dependencies go in standard package.json dependencies — npm handles resolution, lockfiles, audit, outdated, caching, everything.
{
"name": "refactor-react",
"version": "1.0.0",
"keywords": ["agent-skill"],
"dependencies": {
"react-patterns": "^2.0.0",
"typescript-best-practices": "^1.3.0"
}
}All dependencies resolve transitively through npm.
SKILL.md format
---
name: pdf-processing
description: Extract text and tables from PDF files, fill forms, merge documents.
license: Apache-2.0
compatibility: Requires pdfplumber Python package.
metadata:
author: jane@example.com
allowed-tools: Bash Read
---
# PDF ProcessingVersion comes from package.json — do not duplicate it in SKILL.md metadata.
How skillpm works
Install flow
When a user runs skillpm install refactor-react:
- skillpm runs
npm install refactor-react - skillpm scans
node_modules/and nested dependencies for installed packages containingskills/*/SKILL.md, following each real package path once - Reject colliding SKILL.md names before installation
- For each skill found, skillpm calls
npx skills@1.7.0 add <skillDir> -y --jsonand verifies project installation
Current upstream normally copies content to .agents/skills/ and links agents
to that copy, not to node_modules. Run sync after npm updates or workspace edits.
package-lock.json owns npm resolution; upstream skills-lock.json is separate.
Uninstall currently refreshes remaining skills but does not garbage-collect
stale canonical copies. Do not claim that re-wiring removes them.
Core CLI commands
| Command | Description |
skillpm install [skill] | Install a skill + its dependency tree, wire it into agent dirs |
skillpm uninstall <skill> | Remove a skill |
skillpm list [--json] | Show installed skills |
skillpm init | Scaffold a new skill package |
skillpm publish | Publish a skill to npmjs.org |
skillpm sync | Re-scan and re-wire agent directories without reinstalling |
skillpm <npm-command> [args] | Any other command is passed through to npm |
Aliases: i/add for install, rm/remove for uninstall, ls for list.
Architecture
skillpm is a monorepo with npm workspaces:
skillpm/
├── package.json
├── src/
│ ├── cli.ts
│ ├── commands/
│ │ ├── install.ts
│ │ ├── uninstall.ts
│ │ ├── init.ts
│ │ ├── publish.ts
│ │ ├── list.ts
│ │ └── sync.ts
│ ├── scanner/
│ ├── manifest/
│ └── utils/
└── packages/
└── skillpm-skill/Conventions
- Use Vitest for testing. Co-locate tests next to source as
*.test.ts. - Use ESLint and Prettier.
- One file per CLI command under
src/commands/. - Delegate to npm for package management.
- skillpm's custom code is scanning
node_modules/forskills/*/SKILL.mdand orchestrating theskillsCLI. - Shell out to
skillsfor agent-directory linking andskills-reffor spec validation. - Use gray-matter for parsing YAML frontmatter from SKILL.md files.
- Prefer explicit, actionable error messages.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

