skills/role-creator/SKILL.md
Create and update Codex custom agents using standalone custom-agent TOML files.
npx skillsauth add am-will/codex-skills role-creatorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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>.toml{"agent_type":"<name>","message":"<task>"}
# 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/development
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
testing
[EXPLICIT INVOCATION ONLY] Creates dependency-aware implementation plans optimized for parallel multi-agent execution.
testing
Only to be triggered by explicit super-swarm-spark commands.
tools
Read and search GitHub repository documentation via gitmcp.io MCP service. **WHEN TO USE:** - User provides a GitHub URL - User mentions a specific repo in owner/repo format - User asks "what does this repo do?", "read the docs for X repo", or similar - User wants to search code or docs within a repo