skillpm-skill 0.0.2 → 0.0.5
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 +38 -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 package-name prefixes 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,26 @@ 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 with the package name to avoid conflicts.
|
|
153
|
+
|
|
154
|
+
| Source in package | Destination in workspace |
|
|
155
|
+
|---|---|
|
|
156
|
+
| `configs/.claude/agents/reviewer.md` | `.claude/agents/my-skill--reviewer.md` |
|
|
157
|
+
| `configs/.cursor/rules/conventions.md` | `.cursor/rules/my-skill--conventions.md` |
|
|
158
|
+
| `configs/.github/instructions/help.instructions.md` | `.github/instructions/my-skill--help.instructions.md` |
|
|
159
|
+
|
|
160
|
+
On uninstall, all copied files are removed automatically (tracked via `.skillpm/manifest.json`).
|
|
161
|
+
|
|
162
|
+
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`:
|
|
163
|
+
|
|
164
|
+
```json
|
|
165
|
+
{
|
|
166
|
+
"files": ["skills/", "configs/"]
|
|
167
|
+
}
|
|
168
|
+
```
|
|
169
|
+
|
|
139
170
|
### SKILL.md frontmatter
|
|
140
171
|
|
|
141
172
|
```yaml
|