Skill Builder
Unified, security-first skill builder.
This skill is intentionally opinionated:
- Prefer no new skill if a simpler change works (project docs, a script, or a small snippet).
- When you do create a skill, make it boring, testable, and hard to misuse.
- Keep one clear router and avoid overlapping triggers across skills.
Operation Router
| User intent |
Operation |
Output |
| create/build/make/new skill |
CREATE |
new skill folder + SKILL.md + README.md |
| update/modify/improve skill |
UPDATE |
minimal diff, keep triggers stable |
| delete/remove skill |
DELETE |
remove skill + update repo index |
| add content/route/workflow to skill |
ADD |
new router row + new section file (when needed) |
| validate skill |
VALIDATE |
checklist results + fixes |
| rename skill |
RENAME |
safe rename + reference updates |
What "Correct" Means
This skill treats "correct" as:
- Conforms to the Agent Skills spec (directory +
SKILL.md frontmatter constraints).
- Uses progressive disclosure: small
SKILL.md, deeper docs in references/.
- Has unambiguous activation: specific description + non-overlapping triggers.
- Is safe: no secrets, no default-destructive commands, tool usage is scoped.
Phase 0: First-Principles Check (Mandatory)
Run this before ANY CREATE/UPDATE:
- QUESTION: what problem, for who, measured how?
- DELETE: can an existing component/skill/command solve it?
- SIMPLIFY: smallest change that works (often a project instruction file)
- ACCELERATE: only after (2) and (3)
- AUTOMATE: create a component only if it will be reused
If the answer is "no skill", propose:
- a README section
- a small script
- a usage snippet users can copy
Phase 1: Detect Target + Name
Target repository layout
This repo layout:
/<skill-name>/SKILL.md (home/router)
/<skill-name>/README.md (short overview)
- optional:
/<skill-name>/references/*.md (split workflows)
Spec Rules (Agent Skills)
From the Agent Skills specification:
- Skill folder name must match
name.
name constraints: 1-64 chars; lowercase letters/numbers/hyphens; no leading/trailing -; no --.
description should say what + when; max 1024 chars.
- Optional frontmatter fields you may include:
license, compatibility, metadata, allowed-tools.
Reference: https://agentskills.io/specification
Naming
- Use kebab-case (
my-skill-name).
- Avoid generic names (
tools, helper).
- Prefer verbs for commands (
review-pr, sync-main).
Phase 2: CREATE Flow
Inputs (minimum)
- Name
- Goal + non-goals
- Triggers (what user says)
- Allowed tools (tightest possible)
CREATE Steps
- Discover existing conventions (look at other skills in the repo).
- Draft a micro-spec (goal/non-goals, routing, tool boundaries).
- Create
/<skill-name>/SKILL.md with:
- front matter (name/description + triggers)
- router table
- safety rules
- minimal workflows (or links to
references/)
- Create
/<skill-name>/README.md with install + entry points.
- Validate (see Validation).
- If the repo has an index of skills (commonly a
README.md), add/update the entry.
Output Contract (CREATE)
When creating a skill, always return:
- Files created/edited (paths only)
- Trigger phrases added
- One minimal "smoke test" prompt (how to activate it)
- Validation result (pass/fail + what to fix)
Phase 3: UPDATE Flow
- Read current skill.
- Identify actual user goal (avoid refactors).
- Apply minimal diff.
- Re-run validation checklist.
- Keep triggers stable unless explicitly requested.
Phase 4: DELETE Flow
- Confirm skill folder.
- Identify dependents (root
README.md, other skill references).
- Remove skill and update references.
- Provide rollback note (restore from git).
Phase 5: ADD Content to a Skill
Rules for skill growth:
- Never duplicate trigger phrases across multiple skills in the same install.
- Route by intent first, then load deeper sections.
- Keep SKILL.md readable: prefer short tables + stable templates.
Add steps:
- Add one new router row.
- Add the minimal new procedure.
- If it grows: split into
references/<topic>.md.
- Add/adjust examples.
- Re-check cross-skill consistency.
Validation
Skill Validation Checklist
- Front matter includes
name and description.
- Has a router (how to decide what to do).
- Defines what is safe to run without confirmation vs requires confirmation.
- No secrets; no links to private paths.
- No unscoped destructive instructions.
- Trigger hygiene: no overlapping triggers with existing skills in the repo.
- Docs split: if SKILL.md becomes long, move workflows into
references/.
Spec Validation (Recommended)
If you have the reference validator available (optional), run:
skills-ref validate ./<skill-name>
If not available, validate manually using the rules in "Spec Rules" above.
Tool Safety
- Prefer Read/Glob/Grep before Bash.
- If Bash is needed, scope it (git-only, or specific commands).
- Never recommend
rm -rf, git reset --hard, push --force as defaults.
Templates
Skill Front Matter
---
name: my-skill
description: Describe what the skill does and when to use it. Include trigger phrases.
compatibility: Optional. Mention required system tools, network needs, or target environments.
metadata:
version: "0.1"
allowed-tools: Optional. Space-delimited list. Prefer the narrowest set possible.
---
Progressive Disclosure Pattern
Keep SKILL.md as:
- Frontmatter
- Router table
- Safety rules
- Short workflows
- Links to
references/*.md for deep details
References
references/checklist.md (authoring checklist)
references/templates.md (copy/paste templates)
references/validation.md (validation flow + trigger hygiene)
What This Skill Is For (Practical Examples)
- "Create a skill that scaffolds new skills" → create a skill + templates + validation.
- "Update my git workflow" → improve the router + split workflows into
references/.
- "Make skills consistent across repos" → enforce naming/triggers/tool boundaries.
1---2name: skill-builder-133description: Build correct, consistent Agent Skills (create/update/delete/add content) using validated templates, safe defaults, and cross-skill consistency checks. Works across common agent CLIs that load skills from Markdown folders. Triggers: "new skill", "create skill", "build skill", "update skill", "delete skill", "add to skill", "skill template", "skill validation", "skill builder".4license: MIT5---6
7# Skill Builder
8
9Unified, security-first skill builder.
10
11This skill is intentionally opinionated:
12- Prefer no new skill if a simpler change works (project docs, a script, or a small snippet).
13- When you do create a skill, make it boring, testable, and hard to misuse.
14- Keep one clear router and avoid overlapping triggers across skills.
15
16## Operation Router
17
18| User intent | Operation | Output |
19|---|---|---|
20| create/build/make/new skill | CREATE | new skill folder + `SKILL.md` + `README.md` |
21| update/modify/improve skill | UPDATE | minimal diff, keep triggers stable |
22| delete/remove skill | DELETE | remove skill + update repo index |
23| add content/route/workflow to skill | ADD | new router row + new section file (when needed) |
24| validate skill | VALIDATE | checklist results + fixes |
25| rename skill | RENAME | safe rename + reference updates |
26
27## What "Correct" Means
28
29This skill treats "correct" as:
30
31- Conforms to the Agent Skills spec (directory + `SKILL.md` frontmatter constraints).
32- Uses progressive disclosure: small `SKILL.md`, deeper docs in `references/`.
33- Has unambiguous activation: specific description + non-overlapping triggers.
34- Is safe: no secrets, no default-destructive commands, tool usage is scoped.
35
36## Phase 0: First-Principles Check (Mandatory)
37
38Run this before ANY CREATE/UPDATE:
39
401. QUESTION: what problem, for who, measured how?
412. DELETE: can an existing component/skill/command solve it?
423. SIMPLIFY: smallest change that works (often a project instruction file)
434. ACCELERATE: only after (2) and (3)
445. AUTOMATE: create a component only if it will be reused
45
46If the answer is "no skill", propose:
47- a README section
48- a small script
49- a usage snippet users can copy
50
51## Phase 1: Detect Target + Name
52
53### Target repository layout
54
55This repo layout:
56
57- `/<skill-name>/SKILL.md` (home/router)
58- `/<skill-name>/README.md` (short overview)
59- optional: `/<skill-name>/references/*.md` (split workflows)
60
61## Spec Rules (Agent Skills)
62
63From the Agent Skills specification:
64
65- Skill folder name must match `name`.
66- `name` constraints: 1-64 chars; lowercase letters/numbers/hyphens; no leading/trailing `-`; no `--`.
67- `description` should say what + when; max 1024 chars.
68- Optional frontmatter fields you may include: `license`, `compatibility`, `metadata`, `allowed-tools`.
69
70Reference: https://agentskills.io/specification
71
72### Naming
73
74- Use kebab-case (`my-skill-name`).
75- Avoid generic names (`tools`, `helper`).
76- Prefer verbs for commands (`review-pr`, `sync-main`).
77
78## Phase 2: CREATE Flow
79
80### Inputs (minimum)
81
82- Name
83- Goal + non-goals
84- Triggers (what user says)
85- Allowed tools (tightest possible)
86
87### CREATE Steps
88
891. Discover existing conventions (look at other skills in the repo).
902. Draft a micro-spec (goal/non-goals, routing, tool boundaries).
913. Create `/<skill-name>/SKILL.md` with:
92 - front matter (name/description + triggers)
93 - router table
94 - safety rules
95 - minimal workflows (or links to `references/`)
964. Create `/<skill-name>/README.md` with install + entry points.
975. Validate (see Validation).
986. If the repo has an index of skills (commonly a `README.md`), add/update the entry.
99
100### Output Contract (CREATE)
101
102When creating a skill, always return:
103
104- Files created/edited (paths only)
105- Trigger phrases added
106- One minimal "smoke test" prompt (how to activate it)
107- Validation result (pass/fail + what to fix)
108
109## Phase 3: UPDATE Flow
110
1111. Read current skill.
1122. Identify actual user goal (avoid refactors).
1133. Apply minimal diff.
1144. Re-run validation checklist.
1155. Keep triggers stable unless explicitly requested.
116
117## Phase 4: DELETE Flow
118
1191. Confirm skill folder.
1202. Identify dependents (root `README.md`, other skill references).
1213. Remove skill and update references.
1224. Provide rollback note (restore from git).
123
124## Phase 5: ADD Content to a Skill
125
126Rules for skill growth:
127- Never duplicate trigger phrases across multiple skills in the same install.
128- Route by intent first, then load deeper sections.
129- Keep SKILL.md readable: prefer short tables + stable templates.
130
131Add steps:
1321. Add one new router row.
1332. Add the minimal new procedure.
1343. If it grows: split into `references/<topic>.md`.
1354. Add/adjust examples.
1365. Re-check cross-skill consistency.
137
138## Validation
139
140### Skill Validation Checklist
141
142- Front matter includes `name` and `description`.
143- Has a router (how to decide what to do).
144- Defines what is safe to run without confirmation vs requires confirmation.
145- No secrets; no links to private paths.
146- No unscoped destructive instructions.
147- Trigger hygiene: no overlapping triggers with existing skills in the repo.
148- Docs split: if SKILL.md becomes long, move workflows into `references/`.
149
150### Spec Validation (Recommended)
151
152If you have the reference validator available (optional), run:
153
154```bash
155skills-ref validate ./<skill-name>
156```
157
158If not available, validate manually using the rules in "Spec Rules" above.
159
160### Tool Safety
161
162- Prefer Read/Glob/Grep before Bash.
163- If Bash is needed, scope it (git-only, or specific commands).
164- Never recommend `rm -rf`, `git reset --hard`, `push --force` as defaults.
165
166## Templates
167
168### Skill Front Matter
169
170```yaml
171---
172name: my-skill
173description: Describe what the skill does and when to use it. Include trigger phrases.
174compatibility: Optional. Mention required system tools, network needs, or target environments.
175metadata:
176 version: "0.1"
177allowed-tools: Optional. Space-delimited list. Prefer the narrowest set possible.
178---
179```
180
181### Progressive Disclosure Pattern
182
183Keep `SKILL.md` as:
184
1851. Frontmatter
1862. Router table
1873. Safety rules
1884. Short workflows
1895. Links to `references/*.md` for deep details
190
191## References
192
193- `references/checklist.md` (authoring checklist)
194- `references/templates.md` (copy/paste templates)
195- `references/validation.md` (validation flow + trigger hygiene)
196
197## What This Skill Is For (Practical Examples)
198
199- "Create a skill that scaffolds new skills" → create a skill + templates + validation.
200- "Update my git workflow" → improve the router + split workflows into `references/`.
201- "Make skills consistent across repos" → enforce naming/triggers/tool boundaries.