Commit 6892fbc
committed
feat(server): add skill generator for SKILL.md creation
Add two new MCP tools for generating Claude Code skills:
- `generate_skill` - builds context and prompt for LLM generation
- `save_skill` - validates and saves generated SKILL.md
Key features:
- Token-efficient template (<500 tokens) focused on bash commands
- Progressive loading pattern: ls, cat, grep, node
- LazyLock pre-compiled regexes for performance
- JSDoc metadata parsing from TypeScript files
- Comprehensive test coverage (550 tests)
New modules:
- skill/parser.rs - TypeScript file parser
- skill/context.rs - Skill context builder
- skill/template.rs - Handlebars template rendering1 parent a18c8f4 commit 6892fbc
File tree
13 files changed
+2793
-10
lines changed- crates/mcp-server
- src
- skill
- templates
- tests
13 files changed
+2793
-10
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
59 | | - | |
60 | | - | |
61 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
62 | 65 | | |
0 commit comments