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.
.claude/skills/williamzujkowski-codex-cli-delegation-code-generation-routing/SKILL.md| Model | Eval pass | Runs |
|---|---|---|
| gemini-3.6-flash | 100% | 1 |
| 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.toml| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 3,017 | 2,484 | -18% | 1 | 1 | 0% | 606 | 2,101 | +247% | 0 | 0 | — |
case-02 | fail→pass | 4,763 | 3,123 | -34% | 1 | 1 | 0% | 901 | 2,235 | +148% | 0 | 0 | — |
case-03 | fail→pass | 5,261 | 3,325 | -37% | 1 | 1 | 0% | 1,069 | 2,274 | +113% | 0 | 0 | — |
case-04 | fail→pass | 4,458 | 3,500 | -21% | 1 | 1 | 0% | 850 | 2,266 | +167% | 0 | 0 | — |
case-05 | fail→pass | 5,328 | 3,774 | -29% | 1 | 1 | 0% | 971 | 2,186 | +125% | 0 | 0 | — |
case-06 | pass→pass | 4,101 | 2,877 | -30% | 1 | 1 | 0% | 741 | 2,153 | +191% | 0 | 0 | — |
case-07 | fail→fail | 6,622 | 7,576 | +14% | 1 | 1 | 0% | 907 | 2,730 | +201% | 0 | 0 | — |
case-08 | fail→pass | 6,916 | 2,590 | -63% | 1 | 1 | 0% | 1,358 | 2,071 | +53% | 0 | 0 | — |
case-09 | fail→pass | 14,871 | 3,074 | -79% | 1 | 1 | 0% | 2,807 | 2,176 | -22% | 0 | 0 | — |
case-10 | fail→pass | 9,521 | 2,707 | -72% | 1 | 1 | 0% | 2,207 | 2,194 | -1% | 0 | 0 | — |
case-11 | fail→pass | 4,527 | 3,436 | -24% | 1 | 1 | 0% | 716 | 2,212 | +209% | 0 | 0 | — |
case-12 | fail→pass | 21,713 | 2,569 | -88% | 1 | 1 | 0% | 5,650 | 2,134 | -62% | 0 | 0 | — |
case-13 | pass→fail | 18,584 | 8,622 | -54% | 1 | 1 | 0% | 3,425 | 3,211 | -6% | 0 | 0 | — |
case-14 | fail→fail | 13,318 | 9,011 | -32% | 1 | 1 | 0% | 1,506 | 2,330 | +55% | 0 | 0 | — |
case-15 | pass→pass | 9,147 | 6,305 | -31% | 1 | 1 | 0% | 1,839 | 2,820 | +53% | 0 | 0 | — |
case-16 | fail→pass | 6,696 | 3,525 | -47% | 1 | 1 | 0% | 1,121 | 2,135 | +90% | 0 | 0 | — |
case-17 | fail→pass | 5,533 | 2,641 | -52% | 1 | 1 | 0% | 979 | 2,118 | +116% | 0 | 0 | — |
case-18 | fail→pass | 6,194 | 3,232 | -48% | 1 | 1 | 0% | 1,474 | 2,250 | +53% | 0 | 0 | — |
case-19 | fail→pass | 4,912 | 2,630 | -46% | 1 | 1 | 0% | 770 | 2,093 | +172% | 0 | 0 | — |
case-20 | fail→pass | 17,038 | 3,623 | -79% | 1 | 1 | 0% | 3,649 | 2,248 | -38% | 0 | 0 | — |
case-21 | fail→pass | 4,392 | 3,213 | -27% | 1 | 1 | 0% | 886 | 2,159 | +144% | 0 | 0 | — |
case-22 | fail→pass | 7,701 | 2,543 | -67% | 1 | 1 | 0% | 1,568 | 2,057 | +31% | 0 | 0 | — |
case-23 | fail→pass | 5,178 | 2,997 | -42% | 1 | 1 | 0% | 928 | 2,133 | +130% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 23 cases were attempted. The headline lift of +73 percentage points is the difference between those two pass rates over the 23 comparable cases. 2 cases got worse with the skill loaded, and they are included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.