Write a skill
Use when
- Adding a new
docs/skills/<name>/SKILL.md. - Repairing front matter that
validate-docs.pyrejects.
Do not use when
- Updating an existing skill's body: use
Required front matter
Every docs/skills/<name>/SKILL.md starts with exactly these keys:
---
name: <kebab-case-name> # must equal the directory name
version: "1.0" # quoted semver string
last_updated: YYYY-MM-DD
id: <kebab-case-name> # must equal name and the directory name
one_line_purpose: <=120 chars, imperative, no "Use when" clause
entry_point: docs/skills/<name>/SKILL.md
category: ci-ops | test-authoring | meta
mcp_compliance_level: partial
optimization_status: draft
status: active | deprecated | reserved
dependencies: [] # ids of skills that must load first
tags: [tag1, tag2, tag3] # 3-6 lowercase keywords
description: >- # <=256 chars: capability sentence, then
<capability>. Use when <triggers>.
metadata:
type: procedure | reference | runbook | policy
source-of-truth:
- <path that owns the mutable facts>
---
metadata.source-of-truth is load-bearing: it tells an agent which files to
read before documenting mutable behavior. Never drop it when editing front
matter. metadata accepts additional keys (audience, context7-sources).
Procedure
- Confirm no existing skill covers the domain. Prefer updating one.
- Create
docs/skills/<name>/SKILL.mdwith the front matter above. - Write real values.
one_line_purposeanddescriptionmust describe this
skill specifically; templated filler is a defect.