Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Intelligently delegate code generation, boilerplate creation, and automation tasks to OpenAI Codex CLI for rapid prototyping and development.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 247% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 148% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 113% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 167% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 125% | 0% |
Trigger this skill when:
Do NOT trigger when:
Time normalization:
NOW_ET = 2025-10-26T01:18:52-04:00Input validation:
task_description is non-empty and specifictask_type is one of: generation, modification, analysis, testingexisting_files list for valid paths if task_type = modificationwhich codex returns valid path~/.codex/config.toml exists or user is authenticatedSource freshness:
Steps:
resources/delegation-decision-matrix.md):codex exec --prompt "<task_description>" commandreview_required = true for all Codex delegationsToken budget: ≤2k
Note: For complex validation workflows with scoring matrices, use a separate validation agent. This skill focuses on fast, simple routing decisions.
Required fields:
typescriptinterface DelegationResult { delegation_decision: "codex" | "claude"; rationale: string; // ≤160 chars codex_command?: string; // required if delegation_decision = codex review_required: boolean; // always true for codex delegations }
Validation rules:
codex_command required if delegation_decision = "codex"rationale must be ≤160 charactersreview_required = true for all Codex delegationsExample 1: Delegate to Codex (new scaffold)
yamlinput: task_description: "Create a REST API for user management with CRUD operations" task_type: generation existing_files: [] output: delegation_decision: codex rationale: "New boilerplate generation from scratch" codex_command: "codex exec --prompt 'Generate REST API for user management with CREATE, READ, UPDATE, DELETE endpoints using Express.js and TypeScript'" review_required: true
Example 2: Keep in Claude (existing code modification)
yamlinput: task_description: "Fix authentication bug in login.py" task_type: modification existing_files: ["src/auth/login.py"] output: delegation_decision: claude rationale: "Debugging existing code with security implications" review_required: false
Token budgets (enforced):
Delegation quality:
review_required = true)Safety:
Official documentation:
Local resources:
resources/delegation-decision-matrix.md (for detailed scoring; use separate agent for complex validation)resources/codex-commands.mdresources/codex-config-template.tomlOther measured skills in the registry, with their headline benchmark lift.