skillpm-skill 0.0.4 → 0.0.6
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/package.json +1 -1
- package/skills/skillpm/SKILL.md +52 -7
package/package.json
CHANGED
package/skills/skillpm/SKILL.md
CHANGED
|
@@ -24,6 +24,7 @@ Use this skill when the user wants to:
|
|
|
24
24
|
- **One skill per npm package.** The skill lives in `skills/<name>/SKILL.md` inside the package.
|
|
25
25
|
- **Transitive dependency resolution.** skillpm walks the full dependency tree to discover all skills and MCP server requirements.
|
|
26
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
|
+
- **Config files.** Skills can include a `configs/` directory to ship native agent config files (subagent definitions, rules, prompts). The directory mirrors the workspace layout — files are copied on install with an auto-prefix (de-scoped package name, or a shorter `skillpm.configPrefix` override) to prevent conflicts.
|
|
27
28
|
- **MCP server configuration.** Skills can declare MCP servers in `package.json` under `skillpm.mcpServers[]`. skillpm configures them via `add-mcp`.
|
|
28
29
|
|
|
29
30
|
## Commands
|
|
@@ -37,7 +38,7 @@ npx skillpm install <skill-name>
|
|
|
37
38
|
# Aliases: skillpm i
|
|
38
39
|
```
|
|
39
40
|
|
|
40
|
-
This runs `npm install`, scans `node_modules/` for skill packages, links them into agent directories, and configures any required MCP servers.
|
|
41
|
+
This runs `npm install`, scans `node_modules/` for skill packages, links them into agent directories, copies config files, and configures any required MCP servers.
|
|
41
42
|
|
|
42
43
|
### Install all dependencies
|
|
43
44
|
|
|
@@ -103,12 +104,22 @@ my-skill/
|
|
|
103
104
|
├── package.json # keywords: ["agent-skill"], dependencies, skillpm.mcpServers
|
|
104
105
|
├── README.md
|
|
105
106
|
├── LICENSE
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
107
|
+
├── skills/
|
|
108
|
+
│ └── my-skill/
|
|
109
|
+
│ ├── SKILL.md # Skill definition (YAML frontmatter + Markdown body)
|
|
110
|
+
│ ├── scripts/ # Optional executable scripts
|
|
111
|
+
│ ├── references/ # Optional reference docs
|
|
112
|
+
│ └── assets/ # Optional templates/data
|
|
113
|
+
└── configs/ # Optional — mirrors workspace layout
|
|
114
|
+
├── .claude/
|
|
115
|
+
│ ├── agents/reviewer.md # Claude subagent
|
|
116
|
+
│ └── rules/conventions.md # Claude rules
|
|
117
|
+
├── .cursor/
|
|
118
|
+
│ ├── agents/reviewer.md # Cursor agent
|
|
119
|
+
│ └── rules/conventions.md # Cursor rules
|
|
120
|
+
└── .github/
|
|
121
|
+
├── agents/reviewer.md # Copilot agent
|
|
122
|
+
└── instructions/conventions.instructions.md
|
|
112
123
|
```
|
|
113
124
|
|
|
114
125
|
### package.json for a skill
|
|
@@ -136,6 +147,40 @@ my-skill/
|
|
|
136
147
|
- The `"agent-skill"` keyword is required for publishing.
|
|
137
148
|
- Use `git+https://` prefix for `repository.url` (npm requires this format).
|
|
138
149
|
|
|
150
|
+
### Bundling agent configs, rules, and prompts
|
|
151
|
+
|
|
152
|
+
`SKILL.md` teaches agents *what to do* — instructions read at runtime. The `configs/` directory lets you also ship **config files** (subagent definitions, rules, instructions) in the native format of each agent system. It mirrors the workspace layout — files get copied to the workspace root on install, auto-prefixed to avoid conflicts.
|
|
153
|
+
|
|
154
|
+
The prefix used is: `configPrefix` (if set in `skillpm` field) → de-scoped package name (e.g. `@acme/fullstack-react` → `fullstack-react`). Set `configPrefix` to a short name when the package name is long.
|
|
155
|
+
|
|
156
|
+
Each agent system uses different names and directories:
|
|
157
|
+
|
|
158
|
+
| Agent system | Agents | Agent directory | Rules/Prompts | Rules directory |
|
|
159
|
+
|---|---|---|---|---|
|
|
160
|
+
| Claude Code | Subagents | `.claude/agents/*.md` | Rules | `.claude/rules/*.md` |
|
|
161
|
+
| Cursor | Custom agents | `.cursor/agents/*.md` | Rules | `.cursor/rules/*.md` |
|
|
162
|
+
| GitHub Copilot | Custom agents | `.github/agents/*.md` | Instructions | `.github/instructions/*.md` |
|
|
163
|
+
| Codex | — | `AGENTS.md` | — | `AGENTS.md` |
|
|
164
|
+
| Gemini CLI | — | `GEMINI.md` | — | `GEMINI.md` |
|
|
165
|
+
|
|
166
|
+
To ship config files, create a `configs/` directory that mirrors the workspace layout for each target system:
|
|
167
|
+
|
|
168
|
+
| Source in package | Destination in workspace |
|
|
169
|
+
|---|---|
|
|
170
|
+
| `configs/.claude/agents/reviewer.md` | `.claude/agents/my-skill-reviewer.md` |
|
|
171
|
+
| `configs/.cursor/rules/conventions.md` | `.cursor/rules/my-skill-conventions.md` |
|
|
172
|
+
| `configs/.github/instructions/help.instructions.md` | `.github/instructions/my-skill-help.instructions.md` |
|
|
173
|
+
|
|
174
|
+
On uninstall, all copied files are removed automatically (tracked via `.skillpm/manifest.json`).
|
|
175
|
+
|
|
176
|
+
Not every skill needs `configs/` — only use it when you want to ship native agent config files. Since `configs/` contains dotfile directories, add them to `package.json` `files`:
|
|
177
|
+
|
|
178
|
+
```json
|
|
179
|
+
{
|
|
180
|
+
"files": ["skills/", "configs/"]
|
|
181
|
+
}
|
|
182
|
+
```
|
|
183
|
+
|
|
139
184
|
### SKILL.md frontmatter
|
|
140
185
|
|
|
141
186
|
```yaml
|