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-code

Installs 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
  • 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)

Sponsors

Details

Repository
github.com/am-will/codex-skills
Category
AI & Agent Building

More from am-will/codex-skills

All 19
1capawesome-team avatarionic-app-upgradescapawesome-team/skillsGuides the agent through upgrading an Ionic Framework app to a newer major version. Supports upgrades from Ionic 4 through 8, including multi-version jumps. Cov1.2Kskills.sh installs
2astronomer avatarmigrating-airflow-2-to-3astronomer/agentsGuide for migrating Apache Airflow 2.x projects to Airflow 3.x. Use when the user mentions Airflow 3 migration, upgrade, compatibility issues, breaking changes,1.1Kskills.sh installs
3capawesome-team avatarcapacitor-in-app-purchasescapawesome-team/skillsGuides the agent through setting up in-app purchases in Capacitor apps. Covers App Store Connect and Google Play Console product configuration, plugin selection1.1Kskills.sh installs
4marswaveai avatarexplainermarswaveai/skillsCreate explainer videos with narration and AI-generated visuals. Triggers on: "解说视频", "explainer video", "explain this as a video", "tutorial video", "introduce1.1Kskills.sh installs
5capawesome-team avatarcapacitor-plugin-spm-supportcapawesome-team/skillsGuides the agent through adding Swift Package Manager (SPM) support to an existing Capacitor plugin. Covers creating a Package.swift manifest, replacing Objecti1.1Kskills.sh installs
6jezweb avatarstripe-paymentsjezweb/claude-skillsAdd Stripe payments to a web app — Checkout Sessions, Payment Intents, subscriptions, webhooks, customer portal, and pricing pages. Covers the decision of which1.1Kskills.sh installs