skillpm-skill 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # skillpm-skill
2
+
3
+ An [Agent Skill](https://agentskills.io) that teaches AI agents how to manage other Agent Skills using [skillpm](https://skillpm.dev).
4
+
5
+ ## What this skill does
6
+
7
+ When loaded by an AI agent (Claude, Codex, Cursor, Gemini CLI, etc.), this skill teaches the agent how to:
8
+
9
+ - **Install skills** from npm with full dependency resolution
10
+ - **Publish skills** to npmjs.org with spec validation
11
+ - **Scaffold new skills** with the correct directory structure
12
+ - **Wire skills** into agent directories and configure MCP servers
13
+ - **Wrap existing skills** for npm distribution
14
+
15
+ ## Install
16
+
17
+ ```bash
18
+ npx skillpm install skillpm-skill
19
+ ```
20
+
21
+ Or with npm directly:
22
+
23
+ ```bash
24
+ npm install skillpm-skill
25
+ ```
26
+
27
+ ## License
28
+
29
+ MIT
package/package.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "skillpm-skill",
3
+ "version": "0.0.1",
4
+ "description": "Agent Skill for managing skills with skillpm — install, publish, and wire Agent Skills into AI agent directories",
5
+ "keywords": [
6
+ "agent-skill",
7
+ "skillpm",
8
+ "agent-skills",
9
+ "ai-agents"
10
+ ],
11
+ "homepage": "https://skillpm.dev",
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "git+https://github.com/sbroenne/skillpm.git",
15
+ "directory": "packages/skillpm-skill"
16
+ },
17
+ "bugs": {
18
+ "url": "https://github.com/sbroenne/skillpm/issues"
19
+ },
20
+ "author": "sbroenne",
21
+ "license": "MIT",
22
+ "files": [
23
+ "skills",
24
+ "README.md",
25
+ "LICENSE"
26
+ ],
27
+ "dependencies": {}
28
+ }
@@ -0,0 +1,211 @@
1
+ ---
2
+ name: skillpm
3
+ description: Manage Agent Skill packages and their dependency trees using skillpm — npm for Agent Skills.
4
+ license: MIT
5
+ allowed-tools: Bash Read Write Edit
6
+ ---
7
+
8
+ # skillpm — Agent Skill Package Manager
9
+
10
+ ## When to use this skill
11
+
12
+ Use this skill when the user wants to:
13
+
14
+ - Install, uninstall, or update Agent Skill packages
15
+ - Create (scaffold) a new Agent Skill package
16
+ - Publish an Agent Skill to npmjs.org
17
+ - List installed skills or check their dependency trees
18
+ - Configure MCP servers required by skills
19
+ - Re-wire agent directories after manual changes
20
+
21
+ ## Key concepts
22
+
23
+ - **skillpm wraps npm.** All packages live on npmjs.org. Same `package.json`, same `node_modules/`, same `package-lock.json`.
24
+ - **One skill per npm package.** The skill lives in `skills/<name>/SKILL.md` inside the package.
25
+ - **Transitive dependency resolution.** skillpm walks the full dependency tree to discover all skills and MCP server requirements.
26
+ - **Agent directory wiring.** skillpm uses the `skills` CLI to link installed skills into 37+ agent directories (Claude, Cursor, VS Code, Codex, Gemini CLI, etc.).
27
+ - **MCP server configuration.** Skills can declare MCP servers in `package.json` under `skillpm.mcpServers[]`. skillpm configures them via `add-mcp`.
28
+
29
+ ## Commands
30
+
31
+ All commands can be run without global install via `npx skillpm <command>`.
32
+
33
+ ### Install a skill
34
+
35
+ ```bash
36
+ npx skillpm install <skill-name>
37
+ # Aliases: skillpm i
38
+ ```
39
+
40
+ This runs `npm install`, scans `node_modules/` for skill packages, links them into agent directories, and configures any required MCP servers.
41
+
42
+ ### Install all dependencies
43
+
44
+ ```bash
45
+ npx skillpm install
46
+ ```
47
+
48
+ Reads `package.json`, installs all dependencies, and wires discovered skills.
49
+
50
+ ### Uninstall a skill
51
+
52
+ ```bash
53
+ npx skillpm uninstall <skill-name>
54
+ # Aliases: skillpm rm, skillpm remove
55
+ ```
56
+
57
+ ### List installed skills
58
+
59
+ ```bash
60
+ npx skillpm list
61
+ # Aliases: skillpm ls
62
+ ```
63
+
64
+ Shows all installed skill packages with descriptions and MCP server requirements.
65
+
66
+ ### Scaffold a new skill
67
+
68
+ ```bash
69
+ npx skillpm init
70
+ ```
71
+
72
+ Creates `package.json` (with `"agent-skill"` keyword) and `skills/<name>/SKILL.md` in the current directory. Edit the SKILL.md to define the skill.
73
+
74
+ ### Publish a skill
75
+
76
+ ```bash
77
+ npx skillpm publish
78
+ ```
79
+
80
+ Validates the package structure and SKILL.md against the Agent Skills spec (via `skills-ref validate`), then delegates to `npm publish`.
81
+
82
+ ### Re-wire agent directories
83
+
84
+ ```bash
85
+ npx skillpm sync
86
+ ```
87
+
88
+ Re-scans `node_modules/` and re-links all skills into agent directories without reinstalling. Useful after manual changes.
89
+
90
+ ### Configure MCP servers
91
+
92
+ ```bash
93
+ npx skillpm mcp add <source> # Add an MCP server (delegates to add-mcp)
94
+ npx skillpm mcp list # List configured MCP servers
95
+ ```
96
+
97
+ ## Creating a skill package
98
+
99
+ ### Package structure
100
+
101
+ ```
102
+ my-skill/
103
+ ├── package.json # keywords: ["agent-skill"], dependencies, skillpm.mcpServers
104
+ ├── README.md
105
+ ├── LICENSE
106
+ └── skills/
107
+ └── my-skill/
108
+ ├── SKILL.md # Skill definition (YAML frontmatter + Markdown body)
109
+ ├── scripts/ # Optional executable scripts
110
+ ├── references/ # Optional reference docs
111
+ └── assets/ # Optional templates/data
112
+ ```
113
+
114
+ ### package.json for a skill
115
+
116
+ ```json
117
+ {
118
+ "name": "my-skill",
119
+ "version": "1.0.0",
120
+ "keywords": ["agent-skill"],
121
+ "repository": {
122
+ "type": "git",
123
+ "url": "git+https://github.com/user/repo.git"
124
+ },
125
+ "dependencies": {
126
+ "other-skill": "^1.0.0"
127
+ },
128
+ "skillpm": {
129
+ "mcpServers": ["@anthropic/mcp-server-filesystem"]
130
+ }
131
+ }
132
+ ```
133
+
134
+ - Skill dependencies go in standard `dependencies` — npm handles resolution.
135
+ - The `skillpm.mcpServers` array lists MCP servers that agents need for this skill.
136
+ - The `"agent-skill"` keyword is required for publishing.
137
+ - Use `git+https://` prefix for `repository.url` (npm requires this format).
138
+
139
+ ### SKILL.md frontmatter
140
+
141
+ ```yaml
142
+ ---
143
+ name: my-skill
144
+ description: What this skill does.
145
+ license: MIT
146
+ allowed-tools: Bash Read
147
+ ---
148
+ ```
149
+
150
+ Version comes from `package.json` — do not duplicate it in SKILL.md.
151
+
152
+ ## Creating a skill package
153
+
154
+ ### Scaffold from scratch
155
+
156
+ ```bash
157
+ mkdir my-skill && cd my-skill
158
+ npx skillpm init
159
+ # Edit skills/my-skill/SKILL.md with instructions
160
+ # Edit package.json to add dependencies and MCP servers
161
+ npx skillpm publish
162
+ ```
163
+
164
+ ### Wrap an existing skill for npm
165
+
166
+ If you already have a `skills/<name>/SKILL.md` (e.g. from `npx skills add`), add a `package.json` to make it publishable:
167
+
168
+ ```bash
169
+ cd my-existing-skill/
170
+ npm init -y
171
+ ```
172
+
173
+ Then edit `package.json` to add the required keyword and optional MCP servers:
174
+
175
+ ```json
176
+ {
177
+ "name": "my-existing-skill",
178
+ "version": "1.0.0",
179
+ "keywords": ["agent-skill"],
180
+ "skillpm": {
181
+ "mcpServers": ["@some/mcp-server"]
182
+ }
183
+ }
184
+ ```
185
+
186
+ Ensure the directory structure matches:
187
+
188
+ ```
189
+ my-existing-skill/
190
+ ├── package.json # Must have "agent-skill" in keywords
191
+ └── skills/
192
+ └── my-existing-skill/
193
+ └── SKILL.md # Must have name and description in frontmatter
194
+ ```
195
+
196
+ Then validate and publish:
197
+
198
+ ```bash
199
+ npx skillpm publish
200
+ ```
201
+
202
+ `skillpm publish` validates before publishing:
203
+ - `package.json` exists with `"agent-skill"` keyword
204
+ - `skills/<name>/SKILL.md` exists
205
+ - SKILL.md validates against the Agent Skills spec (`skills-ref validate`): name format, required fields, directory naming
206
+
207
+ ## Error handling
208
+
209
+ - If `skillpm install` fails, check that npm can resolve the package: `npm view <skill-name>`
210
+ - If `skillpm publish` fails with a keyword error, add `"agent-skill"` to the `keywords` array in `package.json`
211
+ - If skills aren't appearing in agent directories after install, run `npx skillpm sync` to re-wire