role-creator
Skill11 starsChanged 9 months agoApache-2.0View on GitHub
Create and install Codex custom agent roles in ~/.codex/config.toml, generate role config files, enforce supported keys, and guide users through required role inputs (model, reasoning effort, developer_instructions).
2 other projects use a version of this.
Adopted by
Most recently taken up by
- ukeSJTU/agentstheir own version, first seen Jul 14, 2026
- am-will/codex-skillstheir own version, first seen Jan 17, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- am-will/codex-skills★ 1ksame name
- ukeSJTU/agents★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository1,129 other files it gives its agents.
- userinterface-wiki/AGENTS.mdAGENTS.md
- aaronontheweb-dotnet-skillsSkill
- ab-test-setupSkill
- acquiring-disk-image-with-dd-and-dcflddSkill
- Agent BrowserSkill
- agent-browserSkill
- agent-browserSkill
- agent-configurationSkill
- agent-email-cliSkill
- agent-evaluationSkill
- agentic-development-principlesSkill
- agentic-workflowSkill
- agent-toolsSkill
- ai-image-generationSkill
- ai-video-generationSkill
- algorithmic-artSkill
- analytics-trackingSkill
- analyzing-active-directory-acl-abuseSkill
- analyzing-android-malware-with-apktoolSkill
- analyzing-api-gateway-access-logsSkill
- analyzing-apt-group-with-mitre-navigatorSkill
- analyzing-azure-activity-logs-for-threatsSkill
- analyzing-bootkit-and-rootkit-samplesSkill
- analyzing-browser-forensics-with-hindsightSkill
- analyzing-campaign-attribution-evidenceSkill
- analyzing-certificate-transparency-for-phishingSkill
- analyzing-cloud-storage-access-patternsSkill
- analyzing-cobalt-strike-beacon-configurationSkill
- analyzing-cobaltstrike-malleable-c2-profilesSkill
- analyzing-cobalt-strike-malleable-profilesSkill
- analyzing-command-and-control-communicationSkill
- analyzing-cyber-kill-chainSkill
- analyzing-disk-image-with-autopsySkill
- analyzing-dns-logs-for-exfiltrationSkill
- analyzing-docker-container-forensicsSkill
- analyzing-email-headers-for-phishing-investigationSkill
- analyzing-ethereum-smart-contract-vulnerabilitiesSkill
- analyzing-golang-malware-with-ghidraSkill
- analyzing-heap-spray-exploitationSkill
- analyzing-indicators-of-compromiseSkill
- analyzing-ios-app-security-with-objectionSkill
- analyzing-kubernetes-audit-logsSkill
- analyzing-linux-audit-logs-for-intrusionSkill
- analyzing-linux-elf-malwareSkill
- analyzing-linux-kernel-rootkitsSkill
- analyzing-linux-system-artifactsSkill
- analyzing-lnk-file-and-jump-list-artifactsSkill
- analyzing-macro-malware-in-office-documentsSkill
- analyzing-malicious-pdf-with-peepdfSkill
- analyzing-malicious-url-with-urlscanSkill
- analyzing-malware-behavior-with-cuckoo-sandboxSkill
- analyzing-malware-family-relationships-with-malpediaSkill
- analyzing-malware-persistence-with-autorunsSkill
- analyzing-malware-sandbox-evasion-techniquesSkill
- analyzing-memory-dumps-with-volatilitySkill
- analyzing-memory-forensics-with-lime-and-volatilitySkill
- analyzing-mft-for-deleted-file-recoverySkill
- analyzing-network-covert-channels-in-malwareSkill
- analyzing-network-flow-data-with-netflowSkill
- analyzing-network-packets-with-scapySkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
26 rules. About 0 are common, 15 are distinctive, and 11 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈15
Distinctive · estimate
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Use this skill when the user wants to create, update, or troubleshoot custom subagent roles backed by [agents.<role>] and a role …
- Very specific: line 14
Default behavior is strict-minimal: configure only model, model_reasoning_effort, and developer_instructions unless the user explicitly …
- Very specific: line 16
Default location is ~/.codex/config.toml however, if the user asks for a project scoped role, the role will be installed in the project's …
- Distinctive: line 41
Do not infer missing required values.
- Distinctive: line 42
Do not start Step 2 (writing files) until all required inputs above are explicitly provided or explicitly accepted as defaults by the user.
- Distinctive: line 48
Do not set sandbox flags unless explicitly requested.
- Very specific: line 49
Do not set web_search unless explicitly requested.
- Distinctive: line 50
Do not set MCP flags/entries unless explicitly requested.
- Very specific: line 51
Do not add any other optional config_file keys unless explicitly requested.
- Distinctive: line 52
If user intent is ambiguous, ask a short clarification question before adding optional keys.
- Distinctive: line 61
Keep generated config minimal by default.
- Distinctive: line 62
Add optional keys only with explicit user request.
- Distinctive: line 63
If user says "keep defaults/inherit", omit optional keys rather than setting explicit values.
- Distinctive: line 89
When user asks for advanced role controls, use concrete examples from:
- Very specific: line 103
Do not add anything else under [agents.<role_name>].
- Distinctive: line 108
Ask for model, reasoning, developer instructions, install scope, role name, description, and role config file path.
- Distinctive: line 110
Do not write files in this step.
- Very specific: line 113
Ensure repo schema exists: codex-rs/core/config.schema.json
- Distinctive: line 118
Create or update role config file.
- Very specific: line 119
Use scripts/write_role_config.sh to write required fields.
- Distinctive: line 120
Add optional controls only if the user explicitly requested them.
- Very specific: line 125
If user wants options beyond script flags (for example model_reasoning_summary, features, apps, rich MCP server definitions), start from a …
- Very specific: line 198
If runtime returns unknown agent_type, verify role exists in active config and config_file path exists/readable.
- Very specific: line 199
If runtime returns agent type is currently not available, inspect role file TOML validity and unsupported keys.
- Distinctive: line 200
Keep instructions role-specific and operational (scope, do/don't, deliverable format).
- Distinctive: line 201
Do not claim success without running validation.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Role Creator
Overview
Use this skill when the user wants to create, update, or troubleshoot custom subagent roles backed by [agents.<role>] and a role config_file.
This skill installs the role into ~/.codex/config.toml (or a user-selected project config), writes the role-specific config file, and validates key support against codex-rs/core/config.schema.json.
Default behavior is strict-minimal: configure only model, model_reasoning_effort, and developer_instructions unless the user explicitly asks for additional parameters.
Default location is ~/.codex/config.toml however, if the user asks for a project scoped role, the role will be installed in the project's .codex/config.toml. Can also be installed to subfolders in a repo.
Non-Negotiable Inputs
Step 1 must always be input collection. Before running any write/install/validate command, collect and confirm:
modelmodel_reasoning_effortdeveloper_instructions- install scope (
globalorproject) role_namedescriptionrole_config_file(absolute path preferred)
Ask concise questions:
Which model should this role use?(recommend:gpt-5.3-codex)What reasoning effort should it use?(recommend:medium; optionsmedium|high|xhigh)What should the role's developer instructions prioritize?(goal, boundaries, success criteria)Do you want this installed globally (~/.codex/config.toml) or in a project (.codex/config.toml)?Do you want any sandboxing, web_search, MCP, or other restrictions?What role name and description should be shown in spawn_agent?
Execution gate:
- Do not infer missing required values.
- Do not start Step 2 (writing files) until all required inputs above are explicitly provided or explicitly accepted as defaults by the user.
Default Policy For Optional Parameters
- Do not set sandbox flags unless explicitly requested.
- Do not set
web_searchunless explicitly requested. - Do not set MCP flags/entries unless explicitly requested.
- Do not add any other optional
config_filekeys unless explicitly requested. - If user intent is ambiguous, ask a short clarification question before adding optional keys.
Knowledge vs Application Rule
The role creator must know the full configuration surface area, but must only apply keys the user asked for.
- Required behavior:
- Explain available optional categories when helpful.
- Provide specific examples/templates when user asks what is possible.
- Keep generated config minimal by default.
- Add optional keys only with explicit user request.
- If user says "keep defaults/inherit", omit optional keys rather than setting explicit values.
Role Config Surface Area (What Can Be Customized)
Role config_file is parsed as a full config layer. If a key is omitted, it generally inherits from the parent.
- Model and reasoning:
modelmodel_reasoning_effortmodel_reasoning_summarymodel_verbositypersonality- Core behavior:
developer_instructions- Sandboxing and permissions:
sandbox_mode[sandbox_workspace_write]fields likenetwork_access,writable_roots- Web search:
web_search(disabled|cached|live)- Feature toggles:
[features]keys such asmemory_tool,shell_tool- MCP servers:
[mcp_servers.<name>]entries (enabled,required,command,args,env_vars)- Apps/connectors:
[apps.<name>]entries (enabled)
When user asks for advanced role controls, use concrete examples from:
templates/minimal-role-config.tomltemplates/restricted-role-config.tomltemplates/full-role-config.tomltemplates/frontend-architecture-role.toml
Supported Role Declaration Keys
For [agents.<role_name>], only these keys are supported:
descriptionconfig_file
Do not add anything else under [agents.<role_name>].
Workflow
- Collect and confirm required inputs (hard gate).
- Ask for model, reasoning, developer instructions, install scope, role name, description, and role config file path.
- Confirm whether to use defaults only if user explicitly agrees.
- Do not write files in this step.
- Validate environment and resolved paths.
- Ensure repo schema exists:
codex-rs/core/config.schema.json - Resolve config target from scope:
global->~/.codex/config.tomlproject-><project>/.codex/config.toml
- Create or update role config file.
- Use
scripts/write_role_config.shto write required fields. - Add optional controls only if the user explicitly requested them.
- Optional controls supported by script:
sandbox_mode+ workspace-write settingsweb_searchmode (set todisabledto prevent web search)- MCP controls (
mcp_clear,mcp_enable,mcp_disable) - If user wants options beyond script flags (for example
model_reasoning_summary,features,apps, rich MCP server definitions), start from a template undertemplates/and edit manually, then run validation. - Communicate clearly in output:
Configured now:keys that were writtenAvailable but not set:relevant optional keys left to inherit
- Install role in main config.
- Use
scripts/install_role.sh. - This writes/updates:
features.multi_agent = true[agents.<role_name>] description/config_file- Additive safety:
- Installer only mutates role-related keys and keeps the rest of
config.tomlintact. - Installer always creates a timestamped backup of the target
config.tomlbefore writing. - Existing role definitions are not overwritten unless
--update-existingis passed.
- Validate before reporting success.
- Use
scripts/validate_role.sh. - Confirm required role-config fields are present.
- Confirm role declaration keys are only
description/config_file. - Confirm top-level role config keys are valid against schema.
- Share runnable spawn example.
- Example:
{"agent_type":"<role_name>","message":"<task>"}Commands
# 1) Write role config file (required fields only; default behavior)
.codex/skills/role-creator/scripts/write_role_config.sh \
--output ~/.codex/agents/researcher.toml \
--role-name researcher \
--model gpt-5.3-codex \
--reasoning medium \
--developer-instructions "Research code and docs only; no edits; return file:line evidence."
# 1b) Optional controls (only when explicitly requested)
.codex/skills/role-creator/scripts/write_role_config.sh \
--output ~/.codex/agents/researcher.toml \
--role-name researcher \
--model gpt-5.3-codex \
--reasoning medium \
--developer-instructions "Research code and docs only; no edits; return file:line evidence." \
--sandbox-mode workspace-write \
--network-access false \
--writable-roots "/home/willr/Applications/codex1" \
--web-search disabled
# 2) Register role in ~/.codex/config.toml
.codex/skills/role-creator/scripts/install_role.sh \
--role-name researcher \
--description "Read-only codebase research specialist" \
--role-config-file ~/.codex/agents/researcher.toml
# 2b) Intentionally update an existing role definition
.codex/skills/role-creator/scripts/install_role.sh \
--role-name researcher \
--description "Updated role description" \
--role-config-file ~/.codex/agents/researcher.toml \
--update-existing
# 3) Validate role config and declaration keys
.codex/skills/role-creator/scripts/validate_role.sh \
--role-name researcher \
--config ~/.codex/config.toml \
--role-config ~/.codex/agents/researcher.toml \
--schema /home/willr/Applications/codex1/codex-rs/core/config.schema.jsonGuardrails
- If runtime returns
unknown agent_type, verify role exists in active config andconfig_filepath exists/readable. - If runtime returns
agent type is currently not available, inspect role file TOML validity and unsupported keys. - Keep instructions role-specific and operational (scope, do/don't, deliverable format).
- Do not claim success without running validation.
References
- Role key matrix and runtime behavior:
references/role-config-reference.md - Reusable templates:
templates/
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

