CreateSkill
MANDATORY skill creation framework for ALL skill creation requests.
Authoritative Source
Before creating ANY skill, READ: $PAI_DIR/skills/CORE/SkillSystem.md
Workflow Routing
| Workflow | Trigger | File |
|---|---|---|
| CreateSkill | "create a new skill" | Workflows/CreateSkill.md |
| ValidateSkill | "validate skill" | Workflows/ValidateSkill.md |
| CanonicalizeSkill | "canonicalize", "fix skill" | Workflows/CanonicalizeSkill.md |
Examples
Example 1: Create a new skill
User: "Create a skill for managing my recipes"
→ Invokes CreateSkill workflow
→ Reads SkillSystem.md for structure
→ Creates skill with TitleCase naming
Example 2: Fix an existing skill
User: "Canonicalize the daemon skill"
→ Invokes CanonicalizeSkill workflow
→ Renames files to TitleCase
→ Ensures Examples section exists
Quick Start
- Read
$PAI_DIR/skills/CORE/SkillSystem.mdfor the required structure - Create skill directory with TitleCase naming
- Create SKILL.md with frontmatter (name, description with USE WHEN)
- Add Workflows/ and Tools/ directories
- Run
bun $PAI_DIR/Tools/GenerateSkillIndex.tsto register the skill