[H1][SKILL-BUILDER]
Dictum: Structured authoring produces discoverable, maintainable skills.
Create and refine Claude Code skills via structured workflows.
Tasks:
- Collect parameters — Scope:
create | refine, Type: simple | standard | complex, Depth: base | extended | full
- Read frontmatter.md — Discovery metadata, trigger patterns
- Read structure.md — Folder layout gated by Type
- Read depth.md — LOC limits, nesting gated by Depth
- (complex) Read scripting.md — Automation standards
- Capture requirements — purpose, triggers, outputs
- Invoke
skill-summarizer with skill style-standards — Extract voice, formatting, taxonomy
- Invoke
deep-research — Domain research for skill topic
- Plan with 3 agents — file inventory, section structure, content framework
- Execute per Scope:
- (create) Author new artifacts; select template:
- (refine) Compare input to existing frontmatter; see refine.md:
- Input = existing → optimize (density, fixes, quality)
- Input > existing → upgrade (expand structure or depth)
- Input < existing → downsize (combine, refactor, remove low-relevance)
- Validate — Quality gate, LOC compliance, structure match
Dependencies:
deep-research — Domain research via parallel agents
skill-summarizer — Voice and formatting extraction (with skill style-standards)
report.md — Sub-agent output format
[REFERENCE]: index.md — Complete file listing
[1][FRONTMATTER]
Dictum: Metadata enables discovery before loading.
Frontmatter indexed at session start (~100 tokens). Description is ONLY field parsed for relevance—quality determines invocation accuracy.
Guidance:
Discovery — LLM reasoning matches description to user intent. No embeddings, no keyword matching.
Trigger Density — Include file types, operations, "Use when" clauses. Every word aids matching.
Voice — Third person, active, present tense. Prohibit: 'could', 'might', 'probably', 'should'.
Best-Practices:
- Length — 1-2 sentences. Concise triggers outperform verbose explanations.
- Classification — Include
type and depth fields for refine workflow detection.
- Invocation Control —
disable-model-invocation: true for user-only; user-invocable: false for Claude-only.
[2][STRUCTURE]
Dictum: Type determines breadth—folder existence defines capability scope.
Type gates folder creation. Structure defines WHAT exists; Depth constrains HOW MUCH content.
| [INDEX] |
[TYPE] |
[FOLDERS] |
| [1] |
Simple |
SKILL.md only |
| [2] |
Standard |
+index.md, references/, templates/ |
| [3] |
Complex |
+scripts/ |
Guidance:
Naming — Skill folder matches frontmatter name exactly. Kebab-case throughout.
Index — Standard/Complex require index.md at root listing all reference files.
Upgrade Path — Start with simplest type satisfying requirements.
Best-Practices:
- Directory Purpose — references/ for domain knowledge, templates/ for output scaffolds, scripts/ for automation.
- File Limit — Max 7 files in references/ (including nested).
[3][DEPTH]
Dictum: Depth determines comprehensiveness—hard caps prevent bloat.
Depth enforces LOC limits and nesting rights. Each level adds +50 SKILL.md, +25 reference files (cumulative).
| [INDEX] |
[DEPTH] |
[SKILL.MD] |
[REF_FILE] |
[NESTING] |
| [1] |
Base |
<300 |
<150 |
Flat only |
| [2] |
Extended |
<350 |
<175 |
1 subfolder |
| [3] |
Full |
<400 |
<200 |
1-3 subfolders |
Guidance:
Nesting Gate — Subfolder requires 3+ related files OR distinct domain concern.
Content Scaling — Base: 1-2 items per Guidance/Best-Practices. Extended: 2-4. Full: comprehensive.
LOC Optimization — Density over deletion; see depth.md§LOC_OPTIMIZATION.
Content Separation — SKILL.md = WHY, references = HOW; see depth.md§CONTENT_SEPARATION.
Best-Practices:
- Hard Caps — Exceeding limits requires refactoring, not justification.
- No Brute-Force — Consolidate → restructure → densify → prune (in order).
[4][SCRIPTING]
Dictum: Deterministic automation extends LLM capabilities.
Complex type enables scripts/ folder for external tool orchestration, artifact generation, validation.
Guidance:
Justification — Script overhead demands explicit need: tool wrapping, exact reproducibility, schema enforcement.
Depth Scaling — Base/Extended: single script. Full: multiple when distinct concerns justify.
Best-Practices:
- Type Selection — Standard suffices for most skills. Complex only when automation is core purpose.
- Augmentation — Scripts support workflows; core logic remains in SKILL.md and references.
[5][TEMPLATES]
Dictum: Templates enforce canonical structure.
Templates define output scaffolds. Agent combines user input with template skeleton for consistent artifacts.
Guidance:
Purpose — Follow template exactly. No improvisation.
Composition — Input data + template skeleton = generated artifact.
Best-Practices:
- Placeholder Syntax — Use
${variable-name} for insertion points.
- Structure Match — Template complexity matches depth selection.
[6][VALIDATION]
Dictum: Gates prevent incomplete artifacts.
[VERIFY] Completion:
[REFERENCE] Operational checklist: →validation.md
1---2name: skill-builder-173description: Creates and refines Claude Code skills via structured workflows with YAML frontmatter, typed folders, and depth-gated LOC limits. Use when authoring SKILL.md files, organizing references/, or validating skill structure.4---5
6# [H1][SKILL-BUILDER]
7>**Dictum:** *Structured authoring produces discoverable, maintainable skills.*
8
9<br>
10
11Create and refine Claude Code skills via structured workflows.
12
13**Tasks:**
141. Collect parameters — Scope: `create | refine`, Type: `simple | standard | complex`, Depth: `base | extended | full`
152. Read [frontmatter.md](./references/frontmatter.md) — Discovery metadata, trigger patterns
163. Read [structure.md](./references/structure.md) — Folder layout gated by Type
174. Read [depth.md](./references/depth.md) — LOC limits, nesting gated by Depth
185. (complex) Read [scripting.md](./references/scripting.md) — Automation standards
196. Capture requirements — purpose, triggers, outputs
207. Invoke `skill-summarizer` with skill `style-standards` — Extract voice, formatting, taxonomy
218. Invoke `deep-research` — Domain research for skill topic
229. Plan with 3 agents — file inventory, section structure, content framework
2310. Execute per Scope:
24 - (create) Author new artifacts; select template:
25 - [simple](./templates/simple.skill.template.md) - DEFAULT
26 - [standard](./templates/standard.skill.template.md)
27 - [complex](./templates/complex.skill.template.md)
28 - (refine) Compare input to existing frontmatter; see [refine.md](./references/workflows/refine.md):
29 - Input = existing → optimize (density, fixes, quality)
30 - Input > existing → upgrade (expand structure or depth)
31 - Input < existing → downsize (combine, refactor, remove low-relevance)
3211. Validate — Quality gate, LOC compliance, structure match
33
34**Dependencies:**
35- `deep-research` — Domain research via parallel agents
36- `skill-summarizer` — Voice and formatting extraction (with skill `style-standards`)
37- `report.md` — Sub-agent output format
38
39[REFERENCE]: [index.md](./index.md) — Complete file listing
40
41---
42## [1][FRONTMATTER]
43>**Dictum:** *Metadata enables discovery before loading.*
44
45<br>
46
47Frontmatter indexed at session start (~100 tokens). Description is ONLY field parsed for relevance—quality determines invocation accuracy.
48
49**Guidance:**
50- `Discovery` — LLM reasoning matches description to user intent. No embeddings, no keyword matching.
51- `Trigger Density` — Include file types, operations, "Use when" clauses. Every word aids matching.
52- `Voice` — Third person, active, present tense. Prohibit: 'could', 'might', 'probably', 'should'.
53
54**Best-Practices:**
55- **Length** — 1-2 sentences. Concise triggers outperform verbose explanations.
56- **Classification** — Include `type` and `depth` fields for refine workflow detection.
57- **Invocation Control** — `disable-model-invocation: true` for user-only; `user-invocable: false` for Claude-only.
58
59---
60## [2][STRUCTURE]
61>**Dictum:** *Type determines breadth—folder existence defines capability scope.*
62
63<br>
64
65Type gates folder creation. Structure defines WHAT exists; Depth constrains HOW MUCH content.
66
67| [INDEX] | [TYPE] | [FOLDERS] |
68| :-----: | -------- | ---------------------------------- |
69| [1] | Simple | SKILL.md only |
70| [2] | Standard | +index.md, references/, templates/ |
71| [3] | Complex | +scripts/ |
72
73**Guidance:**
74- `Naming` — Skill folder matches frontmatter `name` exactly. Kebab-case throughout.
75- `Index` — Standard/Complex require index.md at root listing all reference files.
76- `Upgrade Path` — Start with simplest type satisfying requirements.
77
78**Best-Practices:**
79- **Directory Purpose** — references/ for domain knowledge, templates/ for output scaffolds, scripts/ for automation.
80- **File Limit** — Max 7 files in references/ (including nested).
81
82---
83## [3][DEPTH]
84>**Dictum:** *Depth determines comprehensiveness—hard caps prevent bloat.*
85
86<br>
87
88Depth enforces LOC limits and nesting rights. Each level adds +50 SKILL.md, +25 reference files (cumulative).
89
90| [INDEX] | [DEPTH] | [SKILL.MD] | [REF_FILE] | [NESTING] |
91| :-----: | -------- | :--------: | :--------: | -------------- |
92| [1] | Base | <300 | <150 | Flat only |
93| [2] | Extended | <350 | <175 | 1 subfolder |
94| [3] | Full | <400 | <200 | 1-3 subfolders |
95
96**Guidance:**
97- `Nesting Gate` — Subfolder requires 3+ related files OR distinct domain concern.
98- `Content Scaling` — Base: 1-2 items per Guidance/Best-Practices. Extended: 2-4. Full: comprehensive.
99- `LOC Optimization` — Density over deletion; see [depth.md§LOC_OPTIMIZATION](./references/depth.md).
100- `Content Separation` — SKILL.md = WHY, references = HOW; see [depth.md§CONTENT_SEPARATION](./references/depth.md).
101
102**Best-Practices:**
103- **Hard Caps** — Exceeding limits requires refactoring, not justification.
104- **No Brute-Force** — Consolidate → restructure → densify → prune (in order).
105
106---
107## [4][SCRIPTING]
108>**Dictum:** *Deterministic automation extends LLM capabilities.*
109
110<br>
111
112Complex type enables scripts/ folder for external tool orchestration, artifact generation, validation.
113
114**Guidance:**
115- `Justification` — Script overhead demands explicit need: tool wrapping, exact reproducibility, schema enforcement.
116- `Depth Scaling` — Base/Extended: single script. Full: multiple when distinct concerns justify.
117
118**Best-Practices:**
119- **Type Selection** — Standard suffices for most skills. Complex only when automation is core purpose.
120- **Augmentation** — Scripts support workflows; core logic remains in SKILL.md and references.
121
122---
123## [5][TEMPLATES]
124>**Dictum:** *Templates enforce canonical structure.*
125
126<br>
127
128Templates define output scaffolds. Agent combines user input with template skeleton for consistent artifacts.
129
130**Guidance:**
131- `Purpose` — Follow template exactly. No improvisation.
132- `Composition` — Input data + template skeleton = generated artifact.
133
134**Best-Practices:**
135- **Placeholder Syntax** — Use `${variable-name}` for insertion points.
136- **Structure Match** — Template complexity matches depth selection.
137
138---
139## [6][VALIDATION]
140>**Dictum:** *Gates prevent incomplete artifacts.*
141
142<br>
143
144[VERIFY] Completion:
145- [ ] Parameters: Scope, Type, Depth collected and applied.
146- [ ] Research: `deep-research` completed fully before authoring.
147- [ ] Style: `skill-summarizer` constraints applied to output.
148- [ ] Workflow: Executed per Scope (create | refine).
149- [ ] Quality: LOC within limits, content separation enforced.
150
151[REFERENCE] Operational checklist: [→validation.md](./references/validation.md)