| name | skill-creator |
| description | Meta-skill for creating new Codex skills with rigor and consistency. Use when asked to create new skills or extend Codex capabilities. |
| allowed-tools | write_file, read_file |
| metadata | [object Object] |
Skill Creator
Guide for creating new Codex skills with the same rigor as existing ones.
Core Principle: Explicit References
Never summarize guidance documents. Always instruct to read the full documents, allowing all guidance to apply.
Bad (summarizing):
Per quality.md:
- Correctness first
- Then safety
Good (explicit read):
**Read these references:**
- `~/.config/agent/domain/coding/quality.md` - Complete quality priorities
File Locations
All files in chezmoi source: ~/.local/share/chezmoi/home/
Codex Skills:
- Location:
dot_codex/skills/<name>/ - Main file:
SKILL.md - References:
references/symlink (for domain-specific guidance)
Apply with chezmoi:
chezmoi apply ~/.codex
Creating a Codex Skill
Template:
---
name: skill-name
description: What this skill does. When to use. Use when <triggers>.
allowed-tools: ["shell", "apply_patch", "read_file", "write_file"]
metadata:
short-description: Brief one-liner
---
# Skill Title
**Read these references:**
- `references/file1.md` - Purpose/summary
- `~/.config/agent/path/to/file2.md` - Purpose/summary
## Instructions
<Skill-specific guidance>
Apply all guidance from references listed above.
## Arguments
Target: ${ARGUMENTS}
Key points:
descriptionfield triggers auto-activation - be specific about triggersallowed-toolsis JSON array format:["shell", "read_file"]metadata.short-descriptionfor UI display- Use
${ARGUMENTS}for argument substitution (NOT$ARGUMENTS) - No
@includes - use explicit "Read these references" instead
Reference Formats:
- Local (via symlink):
references/file.md - Direct path:
~/.config/agent/path/to/file.md - AGENT.md is auto-loaded for all profiles
Creating References Symlink
For skills needing domain-specific guidance:
# In deployed directory (NOT chezmoi source!)
cd ~/.codex/skills/skill-name
ln -s ~/.config/agent/domain/path references
Example: Go skills symlink to ~/.config/agent/domain/coding/go
Workflow for Creating New Skills
1. Identify Purpose
- What problem does this solve?
- When should it activate?
- What tools does it need?
- Is it command-style (explicit invocation) or auto-activation?
2. Identify Relevant Guidance
Which modules from ~/.config/agent/ apply?
core/- Universal behaviors (methodology, task-management, etc.)domain/- Domain-specific (coding, testing, review, architecture)workflows/- Task workflows (feature implementation, etc.)
3. Design Skill Structure
- Frontmatter: name, description (with triggers), allowed-tools, metadata
- References section: List all guidance files to read
- Instructions: Skill-specific logic
- Arguments section: How to use ${ARGUMENTS}
4. Write SKILL.md File
In chezmoi source: ~/.local/share/chezmoi/home/dot_codex/skills/<name>/SKILL.md
- Use explicit read instructions (not summaries)
- List ALL relevant guidance files
- Keep instructions focused and minimal
- Reference AGENT.md where applicable
5. Apply with Chezmoi
chezmoi apply ~/.codex
6. Create References Symlink (if needed)
In deployed directory: ~/.codex/skills/<name>/
ln -s ~/.config/agent/domain/path references
7. Test
- Invoke skill:
$skill-name <arguments> - Verify skill activates correctly
- Confirm references are readable
- Validate guidance is being applied
Existing Guidance Modules
All paths relative to ~/.config/agent/:
Core:
core/behavior.md- Critical thinking, evidence-based reasoningcore/communication.md- Tone, style, concisenesscore/methodology.md- 5-phase problem-solvingcore/efficiency.md- Parallelization, throughputcore/task-management.md- TODO disciplinecore/principles.md- Engineering principles
Architecture:
domain/architecture/decomposition.md- Problem breakdowndomain/architecture/parallelization.md- Concurrent execution
Coding (General):
domain/coding/workflow.md- Universal coding workflowdomain/coding/quality.md- Quality prioritiesdomain/coding/safety.md- Runtime + security safety
Coding (Go):
domain/coding/go/style.md- Go code styledomain/coding/go/idioms.md- Go conventionsdomain/coding/go/concurrency.md- Go thread safetydomain/coding/go/testing.md- Go test practicesdomain/coding/go/tooling.md- Go commandsdomain/coding/go/organization.md- Go code structuredomain/coding/go/performance.md- Go optimization
Testing:
domain/testing/unit.md- Unit test strategiesdomain/testing/coverage.md- Coverage requirements
Review:
domain/review/process.md- Review workflowdomain/review/priorities.md- Review focus areas
Workflows:
workflows/feature.md- Feature implementation
Anti-Patterns to Avoid
❌ Summarizing guidance:
From quality.md, the priorities are: correctness, safety...
❌ Selective quoting:
Key rules: Rule A, Rule B
❌ Using @ includes (doesn't work in Codex):
Apply all guidance from:
- @~/.config/agent/file.md
✅ Explicit read instructions:
**Read these references:**
- `references/file.md` - Complete guidance on topic
- `~/.config/agent/path/to/file.md` - Full details
Examples
See existing Codex skills:
~/.codex/skills/go-development/SKILL.md- With references symlink~/.codex/skills/go-test/SKILL.md- Command-style skill~/.codex/skills/problem-solving/SKILL.md- With multiple references~/.codex/skills/feature/SKILL.md- Workflow orchestration