with one click
codex
Delegate coding tasks to OpenAI Codex CLI
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Delegate coding tasks to OpenAI Codex CLI
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
| name | codex |
| description | Delegate coding tasks to OpenAI Codex CLI |
| category | agent-bridge |
| version | 1.0.0 |
| origin | aiden |
| license | Apache-2.0 |
| tags | openai, codex, cli, code-generation, agent-bridge, gpt, automation, coding, delegation |
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.
# Requires Node.js 18+
npm install -g @openai/codex
# Verify
codex --version
# Set API key
$env:OPENAI_API_KEY = "sk-..."
Set-Location "C:\Users\<you>\myproject"
codex "Add input validation to all form fields in the React components"
# 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"
# 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"
# Question mode — returns explanation only
codex --question "What does the middleware chain in src/app.ts do?"
# 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"
codex "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 commandsSearch and download arXiv papers (no API key needed)
Delegate coding and file edits to Anthropic Claude Code CLI
Read/write Windows clipboard text, HTML, images, history (PowerShell)
Running scripts and code on Windows
Windows Defender: scans, threat history, signatures (PowerShell)
File creation and management on Windows