Guide for creating effective skills. Use this skill when users need to create a new skill or reshape a draft skill package before hardening, benchmarking, or distribution.
50
54%
Does it follow best practices?
Impact
—
No eval scenarios have been run
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./Plugins/skill-factory/fixtures/budget-archive/2026-04-21/deferred-store/skills/scaffolding_templates/skill-creator/SKILL.mdCreate and evolve Codex skills that are reusable, auditable, and easy for another agent to execute.
Use this skill when work involves:
SKILL.md, references/, scripts/, assets/, and agents/openai.yaml.Do not use this skill when the main request is:
Treat skill authoring as durable systems design:
references/ with explicit progressive-disclosure signposts.Collect these inputs before editing:
github/<skill-name> under the git source tree.display_name, icons, brand color, default prompt).Assumptions and requirements:
SKILL.md frontmatter includes valid name and description.references/.When the new skill needs a dedicated subagent path, handle role wiring during scaffold creation:
./configs/codex/agents/ when present, then fall back to project/global .codex/agents/.bash Skills/codex-agent-creator/scripts/validate_role.sh --agent-name <name> --agent-file <path>Note: the canonical skill route is [[codex-agent-creator]]; the helper scripts still live under the legacy directory name Skills/codex-agent-creator/.
bash Skills/codex-agent-creator/scripts/install_role.sh --agent-name <name> --agent-file <path> --scope project|global [--update-existing]agent_injection_mode: reuse-existing|create-purpose-built.Create or reshape only canonical skill source packages, not generated runtime projections or command handles.
The entrypoint must keep execution ownership visible: who writes files, which artifacts are expected, when a subagent or external skill may be used, and which validation gate proves the package is ready for hardening.
Do not hide boundary decisions only in references. SKILL.md must expose enough boundary, artifact, repair, and validation guidance for another agent to run the workflow without guessing.
Produce these deliverables:
SKILL.md as the concise operational entrypoint.references/ documents for detailed guidance and examples.scripts/ and assets/ only when they provide real reuse value.agents/openai.yaml aligned with the current skill intent.For non-trivial responses, include:
schema_versionmodeskill_pathchanged_filescontext_routes as [{from, to, read_when}] whenever required detail moved from SKILL.md to references/validation_evidence as [{command, outcome, note}] with outcome in pass|fail|blockedfactory_governance for non-trivial skills, including posture, traceability mode, eval coverage, and agent injection decisionsession_evidence when improving, refactoring, warning-cleaning, pruning, or deriving a skill from repeated session behaviorskill_improvement_loop when improving or refactoring an existing skillrisksFollow this workflow in order unless the user asks for a scoped shortcut.
scripts/, references/, assets/).
~/.agents/session-collector bundle evidence for skill improvement, warning cleanup, repeated workflow capture, pruning, or confidence-target work when available.python3 scripts/init_skill.py <skill-name> --path <output-directory> [--resources scripts,references,assets] [--examples]scripts/init_skill.py renders SKILL.md from templates/scaffold-simple-skill.md.tmpl.
SKILL.md so it points to those resources.
SKILL.md, move required detail to references/ before deleting prose and add a Read when: <condition> signpost from SKILL.md.SKILL.md; do not hide ownership boundaries, artifact expectations, repair behavior, or acceptance criteria only in deep references.agents/openai.yaml when needed:python3 scripts/generate_openai_yaml.py <path/to/skill-folder> --interface key=valueDetailed procedures, examples, and rationale live in:
Run validation after each meaningful change and before handoff:
python3 scripts/quick_validate.py <path/to/skill-folder>
./bin/ask skills audit <path/to/skill-folder> --level strict --robotFail-fast policy:
For complex revisions, run forward-testing and verify the skill can solve realistic tasks without privileged context leakage.
Use references/factory-governance-spine.md when the skill is reusable, delivery-related, delegated to agents, connected to coding_harness, or being improved from existing behavior.
Keep tiny_helper skills light. Require traceability, session evidence, A/B/C improvement loops, and Linear or Project Brain lifecycle fields only when the classification calls for them.
Adapt the scaffold to the user's actual context instead of converging on a favorite shape:
Avoid these pitfalls:
SKILL.md instead of moving detail into references/.SKILL.md and reference files.references/.Safety and quality constraints:
SKILL.md concise and delegate deep context to references/ and scripts.Example requests:
agent-ops, with realistic trigger and non-trigger evals?"SKILL.md; it is too long, and I need the deep implementation detail moved into references without losing behavior."Read when:
Read these files based on the task:
agents/openai.yaml interface, policy, or dependencies.| Skill | When to use together |
|---|---|
| [[codex-agent-creator]] | Create or update custom agents when skill workflows need dedicated role files |
| [[skillify]] | Convert hand-authored or rough skills into canonical, graph-aware skill packages |
Topic map: [[agent-ops]]
4c78f98
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.