Skill Optimizer
Optimize a skill folder for clarity, concision, and maintainability.
Workflow
- Inspect
SKILL.md,agents/openai.yaml,references/,scripts/, andassets/. - Strictly parse
SKILL.mdfrontmatter as YAML before judging discoverability. - Remove duplicate or overlapping instructions first.
- Keep only core trigger info and the shortest usable workflow in
SKILL.md. - Move detail into
references/and repeatable logic intoscripts/. - Delete docs that exist only for human convenience.
- For any skill with executable scripts, read references/script-contract.md, require a deterministic test or validator, and run it.
- Recheck the folder with the audit script after every non-trivial edit.
Keep In SKILL.md
- Trigger conditions in frontmatter
description. - YAML-safe frontmatter. If
descriptioncontains:, use quotes or a>-block scalar. - One short workflow.
- Any essential guardrails that change how Codex should act.
Move Out
- Long explanations.
- Repeated examples.
- Schema, command, or policy details.
- Variant-specific guidance.
- Anything that can be enforced by a script.
Repository Defaults
- Keep skill folders flat and shallow.
- Prefer one
SKILL.md, oneagents/openai.yaml, a smallscripts/set, and only the references you actually need. - Avoid adding
README.md,CHANGELOG.md, or similar support docs unless a user explicitly asks for them. - Keep references one level deep from
SKILL.md. - Require script-bearing skills to parse cleanly, avoid unsafe dynamic execution and hardcoded local paths, and include runnable validation.
- See repo_profile.md for the default shape this repo expects.
Output Standard
When optimizing a skill, produce:
- A short diagnosis of what changed.
- A file map showing the final source of truth for each topic.
- The patch or updated file content.
- Any remaining ambiguity or validation gaps.