Guided workflow that authors and updates Codex custom agents as standalone TOML role files.

CCM score
66 of 100
skills.sh installs
1.2K
GitHub stars
1K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers creating or updating one agent file per role, globally at ~/.codex/agents/ or per project at .codex/agents/
  • Requires confirmed inputs such as name, description, developer_instructions, model, reasoning effort, and scope before any file is written
  • Includes a write_role_config.sh script with optional flags for nickname candidates, sandbox mode, and web search
  • Designed for developers who want minimal role files, with tomlq checks and troubleshooting for unknown agent types

Install

$ npx -y skills add am-will/codex-skills --skill role-creator -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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
  • The agent file is the role source of truth.
  • ~/.codex/config.toml is 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 by agent_type)
  • description (short, human-readable purpose)
  • developer_instructions
  • model (recommend gpt-5.3-codex unless requested)
  • model_reasoning_effort (none|minimal|low|medium|high|xhigh)
  • role scope (global or project)
  • output TOML path (canonical absolute path preferred)
  • whether to include nickname_candidates and exact values

Execution rule:

  • Do not infer required values.
  • Do not write until required inputs are explicitly confirmed.

Role file contract (current)

Details

Repository
github.com/am-will/codex-skills
Categories
Skill & Plugin Building, AI Agents & LLM Apps, Agent Workflow & Planning

More from am-will/codex-skills

All 14

Similar to Role Creator

More Skill & Plugin Building