skillpm-skill 0.0.5 → 0.0.7

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skillpm-skill",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "Agent Skill for managing skills with skillpm — install, publish, and wire Agent Skills into AI agent directories",
5
5
  "keywords": [
6
6
  "agent-skill",
@@ -24,7 +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
+ - **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.
28
28
  - **MCP server configuration.** Skills can declare MCP servers in `package.json` under `skillpm.mcpServers[]`. skillpm configures them via `add-mcp`.
29
29
 
30
30
  ## Commands
@@ -88,6 +88,16 @@ npx skillpm sync
88
88
 
89
89
  Re-scans `node_modules/` and re-links all skills into agent directories without reinstalling. Useful after manual changes.
90
90
 
91
+ **Monorepo / npm workspace support:** If your repo uses npm workspaces, npm creates symlinks in `node_modules/` pointing to your first-party skill packages. `skillpm sync` detects these symlinks and copies their `configs/` files into the workspace root — same as for externally installed skills. Contributors run `skillpm sync` after editing a skill's source files, then commit the regenerated configs.
92
+
93
+ ```
94
+ node_modules/
95
+ @org/
96
+ my-skill → ../../skills/my-skill ← symlink (npm workspace)
97
+ ```
98
+
99
+ Workspace packages appear in sync output as: `Linking workspace package @org/my-skill@1.0.0`.
100
+
91
101
  ### Configure MCP servers
92
102
 
93
103
  ```bash
@@ -149,13 +159,27 @@ my-skill/
149
159
 
150
160
  ### Bundling agent configs, rules, and prompts
151
161
 
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.
162
+ `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.
163
+
164
+ 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.
165
+
166
+ Each agent system uses different names and directories:
167
+
168
+ | Agent system | Agents | Agent directory | Rules/Prompts | Rules directory |
169
+ |---|---|---|---|---|
170
+ | Claude Code | Subagents | `.claude/agents/*.md` | Rules | `.claude/rules/*.md` |
171
+ | Cursor | Custom agents | `.cursor/agents/*.md` | Rules | `.cursor/rules/*.md` |
172
+ | GitHub Copilot | Custom agents | `.github/agents/*.md` | Instructions | `.github/instructions/*.md` |
173
+ | Codex | — | `AGENTS.md` | — | `AGENTS.md` |
174
+ | Gemini CLI | — | `GEMINI.md` | — | `GEMINI.md` |
175
+
176
+ To ship config files, create a `configs/` directory that mirrors the workspace layout for each target system:
153
177
 
154
178
  | Source in package | Destination in workspace |
155
179
  |---|---|
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` |
180
+ | `configs/.claude/agents/reviewer.md` | `.claude/agents/my-skill-reviewer.md` |
181
+ | `configs/.cursor/rules/conventions.md` | `.cursor/rules/my-skill-conventions.md` |
182
+ | `configs/.github/instructions/help.instructions.md` | `.github/instructions/my-skill-help.instructions.md` |
159
183
 
160
184
  On uninstall, all copied files are removed automatically (tracked via `.skillpm/manifest.json`).
161
185