codex

Delegate user requests to the OpenAI Codex CLI via the codex exec command.

28|6|Updated Dec 27, 2025
One-click install
npx skills add https://github.com/johnlindquist/script-kit-next --skill codex-johnlindquist
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: codex
Source: https://github.com/johnlindquist/script-kit-next/tree/main/.opencode/skill/codex
Command: npx skills add https://github.com/johnlindquist/script-kit-next --skill codex-johnlindquist

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill acts as a secure proxy to execute tasks using OpenAI's Codex, preventing direct interaction and ensuring all operations are mediated through a controlled command-line interface.

Core Features & Use Cases

  • Task Delegation: Offloads complex or potentially risky tasks to a powerful AI model (Codex).
  • Controlled Execution: Ensures all commands are run via codex exec, maintaining a strict operational boundary.
  • Use Case: You need to generate a complex SQL query or write a piece of code. Instead of writing it yourself, you can ask Codex to generate it for you by describing the task.

Quick Start

Use codex exec to generate a python script that sorts a list of numbers.

Frequently Asked Questions about codex

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I delegate code generation tasks to OpenAI Codex via CLI?▼

To delegate code generation to OpenAI Codex via CLI, you route your requests through a secure proxy that executes the `codex exec` command. This ensures the AI instructs Codex to generate the code rather than performing the task directly.

Why use a proxy to run codex exec instead of direct AI interaction?▼

Using a proxy to run `codex exec` maintains a strict separation of concerns and adheres to safety protocols. It prevents direct interaction with powerful AI models by mediating all operations through a controlled command-line interface.

Can I use this to generate complex SQL queries through OpenAI Codex?▼

Yes, you can generate complex SQL queries through OpenAI Codex by describing the task. The Skill offloads the request to Codex, which acts as a secure intermediary to produce the query without direct AI execution.

What is the best way to offload risky code tasks to an AI model?▼

The best way to offload risky code tasks to an AI model is delegating them via `codex exec`. This controlled execution ensures all commands are mediated through a command-line interface, maintaining operational boundaries for safety.

Do I need a specific environment setup to execute tasks with the Codex CLI?▼

Executing tasks with the Codex CLI requires an environment that supports the `codex exec` command. The Skill acts purely as an intermediary, so the CLI must be present to receive the delegated instructions and generate the requested output.