Codex Skill Auditor
Overview
Use this skill to review a Codex or Claude-style skill folder before publishing, sharing, or installing it. Focus on whether the skill is easy for another AI coding agent to trigger, load, execute, and maintain.
Quick Start
- Locate the skill folder that contains
SKILL.md. - Run the bundled auditor:
bashpython scripts/audit_skill.py path/to/skill --format markdown
- If PyYAML is missing, install it in the active Python environment:
bashpython -m pip install PyYAML
- Read the auditor output first, then inspect the relevant files manually.
- Apply focused edits and rerun the auditor until only acceptable polish items remain.
For installed usage, prefer:
bashcsa path/to/skill --strict
Review Workflow
1. Metadata
Check SKILL.md frontmatter:
namemust match the folder name and use lowercase letters, digits, and hyphens.descriptionmust say what the skill does and when to use it.- Avoid extra frontmatter keys unless the host platform explicitly supports them.
- Remove generated-template markers and example scaffolding.
2. Progressive Disclosure
Keep SKILL.md concise and procedural. Move long reference material into references/ and mention when Codex should read each reference.
Prefer:
- Short workflow steps.
- Concrete command examples.
- Conditional references such as "read
references/review-checklist.mdonly when manual review details are needed."
Avoid:
- Large duplicated manuals in
SKILL.md. - Deep reference chains.
- User-facing documentation inside the skill folder that is not needed by Codex.
3. Resource Hygiene
Inspect optional folders only when they exist:
scripts/: executable helpers should have clear arguments, deterministic behavior, and basic tests where practical.references/: reference files should be named for the situations in which they are needed.assets/: assets should be files that Codex copies or uses, not more instructions.agents/openai.yaml: UI metadata should match the skill's actual behavior.
4. Report Format
When reporting issues, lead with actionable findings:
Critical: the skill cannot trigger, load, or run correctly.Needs work: likely confusion, fragile workflow, or misleading metadata.Polish: small clarity, naming, or maintainability improvements.
Use file paths and line numbers when available. Keep the summary short and include the validation command that was run.
Use --strict for release or CI checks. Use --ignore RULE_ID or .skill-auditor.toml only when a finding is intentionally accepted and the reason is clear. Use --explain RULE_ID when a rule needs examples. Use --collection when reviewing a directory of skills for trigger-description conflicts. Use --fix to apply safe mechanical fixes (name/folder mismatch, empty resource directories, misplaced repo docs).
Common Mistakes
- Summarizing the workflow in the description. Empirically, agents follow the description and skip the SKILL.md body. The description must describe when to trigger, not what the skill does. Run
csa explain frontmatter-description-summarizes-workflowfor examples. - First-person voice in the description. The description is injected into the system prompt at session start; write in third person.
- Noun-style skill names. Names like
skill-creationorasync-test-helperstrigger less reliably thancreating-skillsorwaiting-on-conditions. Runcsa explain frontmatter-name-active-voice. - No "When NOT to use" section. Skills with explicit failure modes are measurably less susceptible to agent rationalization. Add one even if short.
- Over-broad triggers in a collection. Two skills with similar descriptions cause ambiguous tool selection. Run
csa <collection-root> --collectionto detect overlaps.
When NOT to Use
- The skill folder is still being scaffolded and you have not yet written real triggers. Run
csa initfirst and edit the placeholders. - You are auditing a Markdown document that is not a skill (no
SKILL.mdat the path root). - You need behavioral / triggering evaluation rather than static structural checks. This skill performs static analysis only; behavioral pressure testing is a separate concern (see roadmap in README).
References
- Use
references/review-checklist.mdfor a compact manual checklist. - Use
scripts/audit_skill.pyfor automated structure checks. - Run
csa rulesto list every rule id;csa explain <rule>to see BAD/GOOD examples;csa doctorto diagnose the local environment.


