Skip to main content
skill CX Codex

role-creator — Claude Code skill: what it does, how to install

Builds and updates Codex subagent definitions as standalone TOML files. Useful when you need isolated role configs with explicit model settings and developer instructions.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add am-will/codex-skills --skill role-creator -a claude-code
Open on GitHub

What role-creator does

This skill writes and manages custom agent configs for Codex without manual TOML editing. Each agent lives in its own file: either globally at ~/.codex/agents/<agent-name>.toml or per-project at <project>/.codex/agents/<agent-name>.toml. The main ~/.codex/config.toml file remains untouched, since it handles global runtime limits rather than individual role registries.

Before writing any files, the skill insists on explicit confirmation for the role name, description, developer instructions, model choice, and reasoning effort. It refuses to guess missing parameters on its own. This strict policy stops broken or half-configured agent definitions before they reach disk. It also supports optional display nicknames, sandbox modes, and web search flags via write_role_config.sh.

Once generated, the TOML file is verified using tomlq to prevent syntax bugs. If Codex subsequently reports an unknown agent_type error, the first thing to inspect is whether the file ended up in the project folder or the global agents directory.

What it helps with

  • generate standalone TOML configs for custom Codex subagents
  • configure developer instructions and model parameters per role
  • set up project-scoped agents inside the local .codex directory
  • validate custom agent TOML syntax before running tasks

Example prompts for the agent

  • Create a global Codex reviewer agent with gpt-5.4 and high reasoning effort
  • Set up a project-scoped security auditor agent in .codex/agents
  • Update my custom agent to include display nicknames and disable web search

How to install role-creator

1Skills CLI (Vercel)

npx skills add am-will/codex-skills --skill role-creator -a claude-code

2Manually: put the files in place

~/.claude/skills/role-creator/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/role-creator/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about role-creator

How to install role-creator in Claude Code?

Run npx skills add am-will/codex-skills --skill role-creator -a claude-code. The skill file is placed in ~/.claude/skills/role-creator/SKILL.md.

What does role-creator do?

It creates, edits, and checks standalone TOML role definitions for Codex agents. It collects confirmed parameters, formats the configuration, and outputs a ready JSON payload to run the agent.

Where does role-creator place custom agent files?

Files are saved to ~/.codex/agents/<agent-name>.toml for global roles, or to <project>/.codex/agents/<agent-name>.toml when configured for a specific project.

Similar skills

All skills for Agent setup: memory, context, orchestration →

From the same set10

Frontend Responsive Design Standards A skill that gives your coding agent rules for mobile-first layouts: breakpoints, relative units, touch targets and content priority. CX Codex +1 1,200installs swarm-planner Builds implementation plans that show task dependencies for parallel agent work. Use it before coding changes in an unfamiliar codebase. CX Codex +1 1,200installs gemini-computer-use Runs Gemini 2.5 Computer Use agents with Playwright to drive browser workflows. It captures screenshots, calls UI actions, and prompts for confirmation on risky steps. CX Codex +1 1,200installs llm-council This skill runs several CLI agents as independent planners, strips their identities, and merges the results into one final plan. Useful when a single model's bias is the problem. CX Codex +1 1,200installs Agent Browser A skill that hands your agent a Rust-based headless browser: navigate, click, fill forms and snapshot pages through structured commands. CX Codex +1 1,200installs plan-harder Turns complex requests into structured sprint plans with atomic tasks. Triggers when you tell the agent to plan harder, focusing purely on architecture and risks. CX Codex +1 1,200installs read-github Lets the agent pull documentation and code from any GitHub repository through the gitmcp.io MCP service. Useful when you need to understand a project without cloning it. CX Codex +1 1,200installs planner Splits bug fixes and feature development into structured sprints and atomic tasks. It helps you design software changes before writing any code. CX Codex +1 1,200installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor