Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Create and update Codex custom agents using standalone custom-agent TOML files.
.claude/skills/aiskillstore-role-creator/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 30% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 52% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 32% | 0% |
| case-14 | ✗→✓ | ▲ Improved | 197% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 5% | 0% |
Use this skill to author, update, or troubleshoot custom Codex agents as standalone TOML files.
Current behavior:
~/.codex/agents/<agent-name>.toml<project>/.codex/agents/<agent-name>.toml~/.codex/config.toml is only for global/runtime settings (for example [agents] thread limits), not per-role registration.Step 1 is required before writing files:
name (role identifier used by agent_type)description (short, human-readable purpose)developer_instructionsmodel (recommend gpt-5.3-codex unless requested)model_reasoning_effort (none|minimal|low|medium|high|xhigh)global or project)nickname_candidates and exact valuesExecution rule:
From Codex custom agent docs (/codex/subagents):
name, description, developer_instructions.nickname_candidates, model, model_reasoning_effort, sandbox_mode, web_search, mcp_servers, skills.config, etc.name is the spawn identifier and source of truth.description + developer_instructions define behavior and usage boundaries.nickname_candidates is optional and used only for display.nickname_candidates requirements:
global → ~/.codex/agents/<name>.tomlproject → <project>/.codex/agents/<name>.tomljson{"agent_type":"<name>","message":"<task>"}
bash# 1) Write a standalone custom-agent file /home/willr/Applications/skills/skills/role-creator/scripts/write_role_config.sh \ --output ~/.codex/agents/reviewer.toml \ --role-name reviewer \ --description "PR reviewer focused on correctness, security, and risk." \ --model gpt-5.4 \ --reasoning high \ --developer-instructions "Review code like an owner. Lead with concrete findings and residual risks." # Optional: include nickname candidates for display /home/willr/Applications/skills/skills/role-creator/scripts/write_role_config.sh \ --output ~/.codex/agents/reviewer.toml \ --role-name reviewer \ --description "PR reviewer focused on correctness, security, and risk." \ --model gpt-5.4 \ --reasoning high \ --developer-instructions "Review code like an owner. Lead with concrete findings and residual risks." \ --nickname-candidates "Atlas,Delta,Echo" \ --sandbox-mode read-only \ --web-search disabled
unknown agent_type, verify the active scope and confirm the file exists at the expected path.tomlq or tomlq -C.https://developers.openai.com/codex/subagentshttps://developers.openai.com/codex/subagents#display-nicknamestemplates/| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-05 | pass→pass | 12,577 | 11,135 | -11% | 1 | 1 | 0% | 1,238 | 2,110 | +70% | 0 | 0 | — |
case-01 | fail→pass | 15,864 | 13,331 | -16% | 1 | 1 | 0% | 1,954 | 2,536 | +30% | 0 | 0 | — |
case-02 | fail→pass | 14,991 | 11,166 | -26% | 1 | 1 | 0% | 1,378 | 2,100 | +52% | 0 | 0 | — |
case-03 | fail→fail | 11,805 | 11,636 | -1% | 1 | 1 | 0% | 1,094 | 2,198 | +101% | 0 | 0 | — |
case-04 | pass→pass | 6,237 | 9,163 | +47% | 1 | 1 | 0% | 1,006 | 1,606 | +60% | 0 | 0 | — |
case-06 | pass→pass | 7,741 | 10,653 | +38% | 1 | 1 | 0% | 1,414 | 1,940 | +37% | 0 | 0 | — |
case-07 | fail→pass | 10,368 | 10,966 | +6% | 1 | 1 | 0% | 1,479 | 1,959 | +32% | 0 | 0 | — |
case-08 | pass→pass | 9,511 | 11,057 | +16% | 1 | 1 | 0% | 803 | 2,193 | +173% | 0 | 0 | — |
case-09 | pass→pass | 16,324 | 8,353 | -49% | 1 | 1 | 0% | 1,814 | 1,670 | -8% | 0 | 0 | — |
case-14 | fail→pass | 9,344 | 6,225 | -33% | 1 | 1 | 0% | 684 | 2,033 | +197% | 0 | 0 | — |
case-10 | fail→pass | 9,755 | 9,322 | -4% | 1 | 1 | 0% | 1,685 | 1,773 | +5% | 0 | 0 | — |
case-11 | fail→pass | 27,937 | 2,728 | -90% | 1 | 1 | 0% | 4,080 | 1,489 | -64% | 0 | 0 | — |
case-12 | fail→pass | 7,466 | 2,947 | -61% | 1 | 1 | 0% | 1,308 | 1,527 | +17% | 0 | 0 | — |
case-13 | fail→pass | 12,248 | 7,083 | -42% | 1 | 1 | 0% | 1,620 | 1,316 | -19% | 0 | 0 | — |
case-15 | fail→pass | 10,716 | 3,547 | -67% | 1 | 1 | 0% | 936 | 1,599 | +71% | 0 | 0 | — |
case-16 | fail→pass | 14,717 | 8,767 | -40% | 1 | 1 | 0% | 1,449 | 1,648 | +14% | 0 | 0 | — |
case-17 | fail→pass | 9,091 | 7,133 | -22% | 1 | 1 | 0% | 1,449 | 1,347 | -7% | 0 | 0 | — |
case-18 | fail→pass | 16,733 | 3,506 | -79% | 1 | 1 | 0% | 1,131 | 1,603 | +42% | 0 | 0 | — |
case-19 | fail→pass | 13,924 | 2,644 | -81% | 1 | 1 | 0% | 1,423 | 1,457 | +2% | 0 | 0 | — |
case-20 | fail→pass | 18,527 | 7,614 | -59% | 1 | 1 | 0% | 2,195 | 1,376 | -37% | 0 | 0 | — |
case-21 | fail→pass | 12,814 | 8,864 | -31% | 1 | 1 | 0% | 1,508 | 1,625 | +8% | 0 | 0 | — |
case-22 | pass→pass | 9,304 | 8,855 | -5% | 1 | 1 | 0% | 1,363 | 1,632 | +20% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +68 percentage points is the difference between those two pass rates over the 22 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.