Create Skill
Use this skill to create and maintain repo-local Codex skills. In this
repository, a valid skill has a stricter layout than the generic system skill
initializer creates by default.
Workflow
- Read the user's request and identify the exact skill name, purpose, and
target directory.
- Read
STATE.md; for a new run, reset it from
references/template/STATE.template.md.
- Read the required references:
references/rules/categories.md before choosing a target directory or
moving an existing skill.
references/rules/filetree.md before adding, moving, or removing files in
any skill directory.
references/rules/workflow.md before creating or changing a skill's
workflow, installation steps, rollback behavior, or validation plan.
references/rules/env.md before installing packages, starting services,
choosing frameworks, or assuming runtime details.
references/rules/state-rules.md before changing any STATE.md.
- Mark the current step
in_progress in STATE.md before editing.
- Create or update the skill under the category selected from
references/rules/categories.md, using the local required layout from
references/rules/filetree.md and the workflow contract from
references/rules/workflow.md.
- Require an explicit
## Workflow section. When a skill is intended to be
reversible, pair every step that installs or enables component A with
instructions that uninstall, disable, or otherwise roll back that same A.
- Validate with generic skill validation when available:
/home/howard/.codex/skills/.system/skill-creator/scripts/quick_validate.py
Then inspect the skill directory against references/rules/filetree.md and
references/rules/categories.md. For each reversible installation path,
also run and record the full install A -> rollback A -> install A sequence
required by references/rules/workflow.md.
- Mark the workflow step
completed, blocked, or skipped in STATE.md
with concrete evidence.
Conflict Rule
If a generic system initializer or external template conflicts with
references/rules/filetree.md, the repo-local filetree rule wins.
Skill Layout Contract
Every newly created or substantially updated repo-local skill must include:
SKILL.md
STATE.md
references/rules/filetree.md
references/rules/env.md
references/rules/state-rules.md
references/template/STATE.template.md
SKILL.md must contain a ## Workflow section with executable ordered steps.
Additional domain references are allowed under references/.
references/scripts/ is the place for executable code needed by the skill.
Do not add agents/ or top-level scripts/ as part of the default
repo-local skill layout.
Reference Rules
- Keep
SKILL.md focused on trigger conditions, core workflow, and short
guardrails.
- Put detailed domain behavior in
references/.
- Put skill executable code in
references/scripts/.
- Put reusable operating rules in
references/rules/.
- Put state templates in
references/template/.
- Require runtime evidence for reversible installation workflows; prose-only
inspection does not satisfy the
install -> rollback -> install check.
- Keep skill directories under the approved category taxonomy.
- Load only the reference files needed for the current request.
- Do not add README, changelog, installation guide, or quick-reference files
unless the user explicitly asks for user-facing documentation.
Output
Final responses should include:
- What skill files changed.
- Which validation commands passed.
- Whether the target skill now satisfies the local required layout.
- Any blocker or remaining risk.
1---2name: skill-create3description: Create or update repository-local Codex skills under .codex/skills. Use when the user asks to create a skill, update a SKILL.md, change skill metadata, add skill references/rules/templates, validate skill behavior, or fix a skill's required layout.4---56# Create Skill78Use this skill to create and maintain repo-local Codex skills. In this9repository, a valid skill has a stricter layout than the generic system skill10initializer creates by default.1112## Workflow13141. Read the user's request and identify the exact skill name, purpose, and15 target directory.162. Read `STATE.md`; for a new run, reset it from17 `references/template/STATE.template.md`.183. Read the required references:19 - `references/rules/categories.md` before choosing a target directory or20 moving an existing skill.21 - `references/rules/filetree.md` before adding, moving, or removing files in22 any skill directory.23 - `references/rules/workflow.md` before creating or changing a skill's24 workflow, installation steps, rollback behavior, or validation plan.25 - `references/rules/env.md` before installing packages, starting services,26 choosing frameworks, or assuming runtime details.27 - `references/rules/state-rules.md` before changing any `STATE.md`.284. Mark the current step `in_progress` in `STATE.md` before editing.295. Create or update the skill under the category selected from30 `references/rules/categories.md`, using the local required layout from31 `references/rules/filetree.md` and the workflow contract from32 `references/rules/workflow.md`.336. Require an explicit `## Workflow` section. When a skill is intended to be34 reversible, pair every step that installs or enables component A with35 instructions that uninstall, disable, or otherwise roll back that same A.367. Validate with generic skill validation when available:37 `/home/howard/.codex/skills/.system/skill-creator/scripts/quick_validate.py`38 Then inspect the skill directory against `references/rules/filetree.md` and39 `references/rules/categories.md`. For each reversible installation path,40 also run and record the full `install A -> rollback A -> install A` sequence41 required by `references/rules/workflow.md`.428. Mark the workflow step `completed`, `blocked`, or `skipped` in `STATE.md`43 with concrete evidence.4445## Conflict Rule4647If a generic system initializer or external template conflicts with48`references/rules/filetree.md`, the repo-local filetree rule wins.4950## Skill Layout Contract5152Every newly created or substantially updated repo-local skill must include:5354- `SKILL.md`55- `STATE.md`56- `references/rules/filetree.md`57- `references/rules/env.md`58- `references/rules/state-rules.md`59- `references/template/STATE.template.md`6061`SKILL.md` must contain a `## Workflow` section with executable ordered steps.6263Additional domain references are allowed under `references/`.64`references/scripts/` is the place for executable code needed by the skill.65Do not add `agents/` or top-level `scripts/` as part of the default66repo-local skill layout.6768## Reference Rules6970- Keep `SKILL.md` focused on trigger conditions, core workflow, and short71 guardrails.72- Put detailed domain behavior in `references/`.73- Put skill executable code in `references/scripts/`.74- Put reusable operating rules in `references/rules/`.75- Put state templates in `references/template/`.76- Require runtime evidence for reversible installation workflows; prose-only77 inspection does not satisfy the `install -> rollback -> install` check.78- Keep skill directories under the approved category taxonomy.79- Load only the reference files needed for the current request.80- Do not add README, changelog, installation guide, or quick-reference files81 unless the user explicitly asks for user-facing documentation.8283## Output8485Final responses should include:8687- What skill files changed.88- Which validation commands passed.89- Whether the target skill now satisfies the local required layout.90- Any blocker or remaining risk.