Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Delegate coding tasks to OpenAI Codex CLI
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 8% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -4% | 0% |
| case-05 | ✗→✓ | ▲ Improved | -16% | 0% |
| case-06 | ✗→✓ | ▲ Improved | 36% | 0% |
| case-08 | ✗→✓ | ▲ Improved | -22% | 0% |
Delegate code generation, editing, and explanation tasks to the OpenAI Codex CLI. Codex CLI runs GPT-4o in an agentic coding loop with sandboxed code execution.
powershell# Requires Node.js 18+ npm install -g @openai/codex # Verify codex --version # Set API key $env:OPENAI_API_KEY = "sk-..."
powershellSet-Location "C:\Users\<you>\myproject" codex "Add input validation to all form fields in the React components"
powershell# Auto-approve all edits (use with caution) codex --approval-mode auto-edit "Add JSDoc comments to all exported functions in src/" # Full auto mode (applies changes without confirmation) codex --approval-mode full-auto "Fix all ESLint errors in the project"
powershell# Use GPT-4o (default) codex --model gpt-4o "Optimize the database query in src/db.js" # Use GPT-4o-mini for faster, cheaper tasks codex --model gpt-4o-mini "Add error handling to the fetch calls"
powershell# Question mode — returns explanation only codex --question "What does the middleware chain in src/app.ts do?"
powershell# Create a new file/module codex "Create a TypeScript utility module with functions for: - Formatting currency (Indian Rupee) - Parsing date strings to Date objects - Debouncing function calls Save to src/utils/format.ts"
powershellcodex "Explain what the agentLoop.ts file does, focusing on the tool execution flow"
"Generate a REST API client for the GitHub API in TypeScript" → Use step 6: codex "Create a TypeScript GitHub API client with methods for: list repos, create issue, get PR. Save to src/github-client.ts".
"Fix all TypeScript compilation errors in the project" → Use step 3 with --approval-mode auto-edit after reviewing what changes will be made.
"Explain how the authentication middleware works" → Use step 5 or 7 in question mode — returns an explanation without modifying files.
--approval-mode full-auto applies all changes without confirmation — always run on a clean git branchOPENAI_API_KEY must be set in the environment before running any commandsOther measured skills in the registry, with their headline benchmark lift.