@skillsmith/cli 0.2.2 → 0.2.4
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 +147 -1
- package/dist/.tsbuildinfo +1 -1
- package/dist/src/commands/author.d.ts +44 -1
- package/dist/src/commands/author.d.ts.map +1 -1
- package/dist/src/commands/author.js +524 -4
- package/dist/src/commands/author.js.map +1 -1
- package/dist/src/commands/index.d.ts +1 -1
- package/dist/src/commands/index.d.ts.map +1 -1
- package/dist/src/commands/index.js +1 -1
- package/dist/src/commands/index.js.map +1 -1
- package/dist/src/index.js +16 -6
- package/dist/src/index.js.map +1 -1
- package/dist/src/templates/index.d.ts +2 -0
- package/dist/src/templates/index.d.ts.map +1 -1
- package/dist/src/templates/index.js +2 -0
- package/dist/src/templates/index.js.map +1 -1
- package/dist/src/templates/mcp-server.template.d.ts +97 -0
- package/dist/src/templates/mcp-server.template.d.ts.map +1 -0
- package/dist/src/templates/mcp-server.template.js +529 -0
- package/dist/src/templates/mcp-server.template.js.map +1 -0
- package/dist/src/templates/subagent.md.template.d.ts +38 -0
- package/dist/src/templates/subagent.md.template.d.ts.map +1 -0
- package/dist/src/templates/subagent.md.template.js +128 -0
- package/dist/src/templates/subagent.md.template.js.map +1 -0
- package/dist/src/utils/tool-analyzer.d.ts +54 -0
- package/dist/src/utils/tool-analyzer.d.ts.map +1 -0
- package/dist/src/utils/tool-analyzer.js +156 -0
- package/dist/src/utils/tool-analyzer.js.map +1 -0
- package/dist/tests/author.test.js +419 -0
- package/dist/tests/author.test.js.map +1 -1
- package/dist/tests/mcp-server-template.test.d.ts +7 -0
- package/dist/tests/mcp-server-template.test.d.ts.map +1 -0
- package/dist/tests/mcp-server-template.test.js +351 -0
- package/dist/tests/mcp-server-template.test.js.map +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,8 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Command-line interface for Skillsmith - discover, manage, and author Claude Code skills.
|
|
4
4
|
|
|
5
|
-
## What's New in v0.2.
|
|
5
|
+
## What's New in v0.2.4
|
|
6
6
|
|
|
7
|
+
- **MCP Server Scaffolding**: Generate TypeScript MCP servers with `author mcp-init`
|
|
8
|
+
- **Decision Helper Integration**: Seamless flow from evaluation to scaffolding
|
|
9
|
+
- **Subagent Generation**: Generate companion specialist agents for parallel execution (37-97% token savings)
|
|
10
|
+
- **Skill Transform**: Upgrade existing skills with subagent configuration
|
|
11
|
+
- **Tool Detection**: Automatic analysis of required tools from skill content
|
|
7
12
|
- **Live Skills**: Search and install from 9,717+ real skills
|
|
8
13
|
- **Faster Search**: Full-text search with quality ranking
|
|
9
14
|
- **Privacy First**: Opt-out telemetry, no PII collected
|
|
@@ -156,6 +161,114 @@ skillsmith publish --dry-run
|
|
|
156
161
|
**Options:**
|
|
157
162
|
- `-d, --dry-run` - Preview without making changes
|
|
158
163
|
|
|
164
|
+
### author subagent
|
|
165
|
+
|
|
166
|
+
Generate a companion specialist agent for parallel skill execution.
|
|
167
|
+
|
|
168
|
+
```bash
|
|
169
|
+
# Generate subagent for current directory
|
|
170
|
+
skillsmith author subagent
|
|
171
|
+
|
|
172
|
+
# Generate for specific skill
|
|
173
|
+
skillsmith author subagent ./my-skill
|
|
174
|
+
|
|
175
|
+
# Override detected tools
|
|
176
|
+
skillsmith author subagent --tools "Read,Write,Bash"
|
|
177
|
+
|
|
178
|
+
# Use different model
|
|
179
|
+
skillsmith author subagent --model haiku
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
**Options:**
|
|
183
|
+
- `-o, --output <path>` - Output directory (default: ~/.claude/agents)
|
|
184
|
+
- `--tools <tools>` - Override detected tools (comma-separated)
|
|
185
|
+
- `--model <model>` - Model: sonnet, opus, haiku (default: sonnet)
|
|
186
|
+
- `--skip-claude-md` - Skip CLAUDE.md snippet generation
|
|
187
|
+
- `--force` - Overwrite existing subagent
|
|
188
|
+
|
|
189
|
+
**Output:**
|
|
190
|
+
- Creates `~/.claude/agents/[skill-name]-specialist.md`
|
|
191
|
+
- Displays CLAUDE.md integration snippet
|
|
192
|
+
|
|
193
|
+
### author transform
|
|
194
|
+
|
|
195
|
+
Upgrade existing skills with subagent configuration (non-destructive).
|
|
196
|
+
|
|
197
|
+
```bash
|
|
198
|
+
# Preview what would be generated
|
|
199
|
+
skillsmith author transform ./my-skill --dry-run
|
|
200
|
+
|
|
201
|
+
# Generate subagent for existing skill
|
|
202
|
+
skillsmith author transform ./my-skill
|
|
203
|
+
|
|
204
|
+
# Process multiple skills at once
|
|
205
|
+
skillsmith author transform ~/.claude/skills --batch
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
**Options:**
|
|
209
|
+
- `--dry-run` - Preview without creating files
|
|
210
|
+
- `--force` - Overwrite existing subagent
|
|
211
|
+
- `--batch` - Process directory of skills
|
|
212
|
+
- `--tools <tools>` - Override detected tools
|
|
213
|
+
- `--model <model>` - Model: sonnet, opus, haiku (default: sonnet)
|
|
214
|
+
|
|
215
|
+
### author mcp-init
|
|
216
|
+
|
|
217
|
+
Scaffold a new MCP server project with TypeScript and stdio transport.
|
|
218
|
+
|
|
219
|
+
```bash
|
|
220
|
+
# Interactive mode
|
|
221
|
+
skillsmith author mcp-init
|
|
222
|
+
|
|
223
|
+
# With name
|
|
224
|
+
skillsmith author mcp-init my-mcp-server
|
|
225
|
+
|
|
226
|
+
# With pre-defined tools
|
|
227
|
+
skillsmith author mcp-init my-server --tools "greet,search,process"
|
|
228
|
+
|
|
229
|
+
# Custom output directory
|
|
230
|
+
skillsmith author mcp-init my-server --output ./servers
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
**Options:**
|
|
234
|
+
- `-o, --output <path>` - Output directory (default: current directory)
|
|
235
|
+
- `--tools <tools>` - Initial tool names (comma-separated)
|
|
236
|
+
- `--force` - Overwrite existing directory
|
|
237
|
+
|
|
238
|
+
**Generated Structure:**
|
|
239
|
+
```
|
|
240
|
+
my-mcp-server/
|
|
241
|
+
├── package.json # npm package with MCP SDK
|
|
242
|
+
├── tsconfig.json # TypeScript configuration
|
|
243
|
+
├── src/
|
|
244
|
+
│ ├── index.ts # Entry point (npx-ready)
|
|
245
|
+
│ ├── server.ts # MCP server setup
|
|
246
|
+
│ └── tools/
|
|
247
|
+
│ ├── index.ts # Tool definitions
|
|
248
|
+
│ └── example.ts # Example tool implementation
|
|
249
|
+
├── README.md # Usage documentation
|
|
250
|
+
└── .gitignore
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
**After Generation:**
|
|
254
|
+
```bash
|
|
255
|
+
cd my-mcp-server
|
|
256
|
+
npm install
|
|
257
|
+
npm run dev # Start in development mode
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
**Configure in Claude Code** (`~/.claude/settings.json`):
|
|
261
|
+
```json
|
|
262
|
+
{
|
|
263
|
+
"mcpServers": {
|
|
264
|
+
"my-mcp-server": {
|
|
265
|
+
"command": "npx",
|
|
266
|
+
"args": ["tsx", "/path/to/my-mcp-server/src/index.ts"]
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
```
|
|
271
|
+
|
|
159
272
|
### import
|
|
160
273
|
|
|
161
274
|
Import skills from GitHub (for populating local database).
|
|
@@ -220,10 +333,43 @@ skillsmith init my-awesome-skill
|
|
|
220
333
|
# Validate your skill
|
|
221
334
|
skillsmith validate ./my-awesome-skill
|
|
222
335
|
|
|
336
|
+
# Generate companion subagent for parallel execution
|
|
337
|
+
skillsmith author subagent ./my-awesome-skill
|
|
338
|
+
|
|
223
339
|
# Prepare for publishing
|
|
224
340
|
skillsmith publish ./my-awesome-skill
|
|
225
341
|
```
|
|
226
342
|
|
|
343
|
+
### Upgrade Existing Skills with Subagents
|
|
344
|
+
|
|
345
|
+
```bash
|
|
346
|
+
# Preview subagent generation (dry run)
|
|
347
|
+
skillsmith author transform ~/.claude/skills/docker --dry-run
|
|
348
|
+
|
|
349
|
+
# Generate subagent for a skill
|
|
350
|
+
skillsmith author transform ~/.claude/skills/docker
|
|
351
|
+
|
|
352
|
+
# Batch upgrade all skills
|
|
353
|
+
skillsmith author transform ~/.claude/skills --batch --force
|
|
354
|
+
```
|
|
355
|
+
|
|
356
|
+
### Create an MCP Server
|
|
357
|
+
|
|
358
|
+
```bash
|
|
359
|
+
# Scaffold a new MCP server
|
|
360
|
+
skillsmith author mcp-init my-slack-integration --tools "send_message,list_channels"
|
|
361
|
+
|
|
362
|
+
# Navigate and install dependencies
|
|
363
|
+
cd my-slack-integration
|
|
364
|
+
npm install
|
|
365
|
+
|
|
366
|
+
# Start development server
|
|
367
|
+
npm run dev
|
|
368
|
+
|
|
369
|
+
# Add to Claude Code settings
|
|
370
|
+
# Edit ~/.claude/settings.json to include the server
|
|
371
|
+
```
|
|
372
|
+
|
|
227
373
|
### Manage Skills
|
|
228
374
|
|
|
229
375
|
```bash
|