Create Skill
Purpose
Create a new .claude/skills/{folder-name}/ skill scaffold that follows the multi-YAML pattern.
This skill produces the canonical file set for a new skill in the ci-core-e2e-runner project.
Quick Reference
- Creates: SKILL.md, skill.yaml, collaboration.yaml, sharp-edges.yaml
- Requires: folder name, kind, description
- No task runner or hooks -- this is a shell/YAML project
Procedure
Gather inputs from the user:
folder_name -- directory name under .claude/skills/
title -- human title for H1 header in SKILL.md
description -- one-line description for trigger matching (frontmatter)
purpose -- 2-3 sentences for the SKILL.md purpose section
kind -- one of: action, workflow, gate, helper, meta
user_invocable -- true or false
allowed_tools -- list of tools the skill needs
Create folder: mkdir -p .claude/skills/{folder-name}/
Write SKILL.md (thin wrapper):
- Frontmatter: name, description, user-invocable, allowed-tools
- Purpose section (2-3 sentences)
- Quick Reference (creates/requires pointers)
- Automation section pointing to skill.yaml / sharp-edges.yaml / collaboration.yaml
Write skill.yaml:
- Canonical patterns, anti-patterns, ownership, procedure
- All rule details live here, not in SKILL.md
Write collaboration.yaml:
- Dependencies, composition sequences, triggers
Write sharp-edges.yaml:
- Common gotchas with detection hints, impact, and fixes
Document in CLAUDE.md:
- Add the skill to the skills table in CLAUDE.md
- Format: appropriate section with skill name and description
File Layout
.claude/skills/{folder-name}/
SKILL.md # Thin wrapper with frontmatter + pointers
skill.yaml # Canonical patterns, procedure, ownership
collaboration.yaml # Dependencies, triggers, composition
sharp-edges.yaml # Common failure modes and fixes
Automation
See skill.yaml for the full procedure and patterns.
See sharp-edges.yaml for common failure modes.
1---2name: create-skill-313description: Scaffold a new skill directory using the multi-YAML pattern. Use when user says /create-skill.4---5
6# Create Skill
7
8## Purpose
9Create a new `.claude/skills/{folder-name}/` skill scaffold that follows the multi-YAML pattern.
10This skill produces the canonical file set for a new skill in the ci-core-e2e-runner project.
11
12## Quick Reference
13- Creates: SKILL.md, skill.yaml, collaboration.yaml, sharp-edges.yaml
14- Requires: folder name, kind, description
15- No task runner or hooks -- this is a shell/YAML project
16
17## Procedure
18
191. **Gather inputs** from the user:
20 - `folder_name` -- directory name under `.claude/skills/`
21 - `title` -- human title for H1 header in SKILL.md
22 - `description` -- one-line description for trigger matching (frontmatter)
23 - `purpose` -- 2-3 sentences for the SKILL.md purpose section
24 - `kind` -- one of: action, workflow, gate, helper, meta
25 - `user_invocable` -- true or false
26 - `allowed_tools` -- list of tools the skill needs
27
282. **Create folder**: `mkdir -p .claude/skills/{folder-name}/`
29
303. **Write SKILL.md** (thin wrapper):
31 - Frontmatter: name, description, user-invocable, allowed-tools
32 - Purpose section (2-3 sentences)
33 - Quick Reference (creates/requires pointers)
34 - Automation section pointing to skill.yaml / sharp-edges.yaml / collaboration.yaml
35
364. **Write skill.yaml**:
37 - Canonical patterns, anti-patterns, ownership, procedure
38 - All rule details live here, not in SKILL.md
39
405. **Write collaboration.yaml**:
41 - Dependencies, composition sequences, triggers
42
436. **Write sharp-edges.yaml**:
44 - Common gotchas with detection hints, impact, and fixes
45
467. **Document in CLAUDE.md**:
47 - Add the skill to the skills table in CLAUDE.md
48 - Format: appropriate section with skill name and description
49
50## File Layout
51
52```
53.claude/skills/{folder-name}/
54 SKILL.md # Thin wrapper with frontmatter + pointers
55 skill.yaml # Canonical patterns, procedure, ownership
56 collaboration.yaml # Dependencies, triggers, composition
57 sharp-edges.yaml # Common failure modes and fixes
58```
59
60## Automation
61See `skill.yaml` for the full procedure and patterns.
62See `sharp-edges.yaml` for common failure modes.