Every command generates two files:Prompt (~/.codex/prompts/command-name.md):
---description: Turn feature ideas into detailed plansargument-hint: <feature description>---Use the $command-name skill for this command and follow its instructions.Original command body here...
Skill (~/.codex/skills/command-name/SKILL.md):
---name: command-namedescription: Turn feature ideas into detailed plans---## Arguments<feature description>## Allowed tools- Read- Write- BashOriginal command body here...
{ "name": "workflows:plan", "description": "Create implementation plan", "argumentHint": "<feature description>", "allowedTools": ["Read", "Write"], "body": "You are a planning agent. Task repo-research-analyst(research the feature)."}
Output (~/.codex/prompts/workflows-plan.md):
---description: Create implementation planargument-hint: <feature description>---Use the $workflows-plan skill for this command and follow its instructions.You are a planning agent. Use the $repo-research-analyst skill to: research the feature.
Output (~/.codex/skills/workflows-plan/SKILL.md):
---name: workflows-plandescription: Create implementation plan---## Arguments<feature description>## Allowed tools- Read- WriteYou are a planning agent. Use the $repo-research-analyst skill to: research the feature.