Skill Creator
Metadata
- Trigger when: the job is to create a skill, refactor an existing skill, or improve skill reliability instead of solving the underlying domain task directly.
- Do not use when: the user only wants a one-off answer and there is no reusable skill to build.
Skill Purpose
Turn a skill into a small, durable harness. The skill should tell the agent exactly when to trigger, what to do, what is non-negotiable, and what output shape must exist before the skill can be considered complete.
Instructions
- Inspect the target skill directory first. Read
SKILL.md, only the references/scripts/assets actually needed for the rewrite, andagents/openai.yamlif it exists. Use~/.codex/skills/.system/skill-creator/references/openai_yaml.mdwhen UI metadata needs to be created or checked. - Rewrite the skill into one narrow job with this body shape:
Metadata,Skill Purpose,Instructions,Non-Negotiable Acceptance Criteria,Output. Keep the purpose to one short paragraph. KeepInstructionsto three top-level steps maximum. Push bulky examples, schemas, and variant-specific details into existingreferences/orscripts/instead of bloatingSKILL.md. - Validate the result. Frontmatter must contain functional
nameanddescription; script invocations must use exact paths; output format must be explicit; andagents/openai.yamlmust exist and match the skill. If the skill naturally hands work to another skill, make that handoff explicit insideOutputor the final instruction: name only the valid next skills in the form$skill-name— one-line purpose. Keep the list short and only include real next steps, not a catalog dump. Regenerate or createagents/openai.yamlwith~/.codex/skills/.system/skill-creator/scripts/generate_openai_yaml.pyand run~/.codex/skills/.system/skill-creator/scripts/quick_validate.pyon the finished skill when possible.
Non-Negotiable Acceptance Criteria
- One skill owns one real job. If the workflow still needs more than three top-level steps, split the skill or route to another skill instead of expanding the harness.
- Treat “more than 3 stages” as a system-design smell, not a formatting game: prefer a stable parent router plus child skills over one fat skill.
- Metadata stays functional: clear triggers, clear anti-triggers, no vague marketing copy.
- The body stays concise and procedural. Detailed references live in
references/; deterministic execution lives inscripts/. - When a handoff is part of the real workflow, the skill must name the valid next skill options explicitly instead of leaving chaining implicit.
- The skill does not count as done until the acceptance criteria and output contract can actually be satisfied.
Output
- Updated skill files written to disk.
- A short note listing which files changed and whether
agents/openai.yamlwas created or regenerated. - If the rewrite exposed a skill that is too broad, an explicit split recommendation naming the proposed smaller skills or follow-up cuts.