
Role Creator
This walks you through creating standalone TOML files for Codex custom agents, either globally in ~/.codex/agents or per-project. It won't let you proceed until you've confirmed the required fields like name, description, developer_instructions, and model settings. The workflow is deliberately rigid: it collects inputs, writes the file, validates the TOML, and hands you back a ready-to-run agent_type call. Good for setting up reviewers, specialists, or any role you want reproducible across projects. The main value is the guardrails around required fields and the bash script that handles the actual file writing, so you don't have to remember the schema or debug malformed configs manually.
- skills.sh installs
- 1.2K
- GitHub stars
- 1K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add am-will/codex-skills --skill role-creator --agent claude-codeInstalls into .claude/skills of the current project.
Files
Role Creator
Overview
Use this skill to author, update, or troubleshoot custom Codex agents as standalone TOML files.
Current behavior:
- Each custom agent is defined by one file:
- Global:
~/.codex/agents/<agent-name>.toml - Project:
<project>/.codex/agents/<agent-name>.toml
- Global:
- The agent file is the role source of truth.
~/.codex/config.tomlis only for global/runtime settings (for example[agents]thread limits), not per-role registration.
Non-Negotiable Inputs
Step 1 is required before writing files:
name(role identifier used byagent_type)description(short, human-readable purpose)developer_instructionsmodel(recommendgpt-5.3-codexunless requested)model_reasoning_effort(none|minimal|low|medium|high|xhigh)- role scope (
globalorproject) - output TOML path (canonical absolute path preferred)
- whether to include
nickname_candidatesand exact values
Execution rule:
- Do not infer required values.
- Do not write until required inputs are explicitly confirmed.
Role file contract (current)
Sponsors
Details
- Repository
- github.com/am-will/codex-skills
- Category
- AI & Agent Building
More from am-will/codex-skills
All 19- Parallel Task Spark1.1K
- Super Swarm Spark1.1K
- Tdd Test Writer857
- Codex Subagent309
- Agent Browser
- Frontend Responsive Design Standards
- Frontend Design1.4K
- Context71.2K
- Planner1.2K
- Read Github1.2K
- Parallel Task1.2K
- Plan Harder1.2K
- Markdown Url1.2K
- Llm Council1.2K
- Gemini Computer Use1.2K
- Openai Docs Skill1.2K
- Swarm Planner1.2K
- Vercel React Best Practices1.2K