Skip to content
cccskills
FreePublished on GitHub

omega-codex-cli

Shell out to OpenAI Codex CLI for headless code generation, analysis, and question-answering. Optimized for code tasks. Requires OPENAI_API_KEY env var.

The English summary is being prepared. Showing the original description.

Works withOpenAI
See how to install

Files included (14)

  • SKILL.md5.5 KB
  • commands/omega-codex-cli.md115 B
  • hooks/post-execute.cjs308 B
  • hooks/pre-execute.cjs425 B
  • references/research-requirements.md433 B
  • rules/omega-codex-cli.md1.1 KB
  • schemas/input.schema.json622 B
  • schemas/output.schema.json259 B
  • scripts/ask-codex.mjs7.5 KB
  • scripts/format-output.mjs851 B
  • scripts/main.cjs1.1 KB
  • scripts/parse-args.mjs2.1 KB
  • scripts/verify-setup.mjs1.7 KB
  • templates/implementation-template.md189 B

SKILL.md (original)

Review the instructions the agent will receive before you install.

Codex CLI Skill

Headless wrapper for OpenAI Codex CLI. Passes prompt as positional arg to codex exec "PROMPT". Optimized for code generation and analysis. Requires OPENAI_API_KEY.

When to Use

  • Code generation tasks needing OpenAI/GPT model perspective
  • Cross-validation of code solutions with a non-Claude model
  • Tasks benefiting from Codex's code optimization focus
  • Multi-LLM consultation workflows

Usage

Ask a question

node .claude/skills/omega-codex-cli/scripts/ask-codex.mjs "Implement a Redis caching layer for Express"

With timeout

node .claude/skills/omega-codex-cli/scripts/ask-codex.mjs "Refactor this module" --timeout-ms 120000

JSONL streaming output

node .claude/skills/omega-codex-cli/scripts/ask-codex.mjs "Generate unit tests" --json

Sandbox mode

node .claude/skills/omega-codex-cli/scripts/ask-codex.mjs "Write and test a sort algorithm" --sandbox

Availability Check

node .claude/skills/omega-codex-cli/scripts/verify-setup.mjs
# Exit 0 = available (CLI found + OPENAI_API_KEY set)
# Exit 1 = not available

Scripts

ScriptPurpose
ask-codex.mjsCore headless wrapper — prompt as positional arg
parse-args.mjsArgument parser (--model, --json, --sandbox, --timeout-ms)
verify-setup.mjsAvailability check (CLI + OPENAI_API_KEY)
format-output.mjsJSONL event stream normalization

Models

Model IDDescriptionWhen to Use
codex-mini-latestDefault. Fine-tuned o4-mini. Low-latency code Q&A. $1.50/$6 per 1M.Fast code questions, CI pipelines, high-volume calls
gpt-5.4Full GPT-5.4 (released ~2026-03-05). 1M context, computer-use, top coding perf.Complex multi-file tasks, computer-use agentic flows
gpt-5.4-proPro variant of GPT-5.4. Higher capacity, higher cost.State-of-the-art coding benchmarks, research tasks

Default model: codex-mini-latest — fine-tuned o4-mini optimized for low-latency code Q&A with a 75% caching discount. Do not override unless you need GPT-5.4's extended context or computer-use capability.

To use GPT-5.4:

node .claude/skills/omega-codex-cli/scripts/ask-codex.mjs "PROMPT" --model gpt-5.4

Pricing (codex-mini-latest): $1.50/1M input tokens · $6/1M output tokens · 75% caching discount

Flags

FlagDescription
--model MODELOverride model (default: codex-mini-latest). Use gpt-5.4 or gpt-5.4-pro for GPT-5.4.
--jsonJSONL event stream output
--sandboxWorkspace-write sandbox mode
--timeout-ms NTimeout in milliseconds (exit code 124 on expiry)

Exit Codes

CodeMeaning
0Success
1Error (CLI failure, auth issue, API error)
124Timeout (--timeout-ms exceeded)

Anti-Patterns & Iron Laws

  1. ALWAYS verify OPENAI_API_KEY is set before invocation
  2. NEVER use stdin for prompt delivery — Codex uses positional arg
  3. ALWAYS include --skip-git-repo-check (built into wrapper)
  4. ALWAYS set --timeout-ms for production usage
  5. NEVER assume --json output is standard JSON — it produces JSONL event stream

Integration Notes

  • API key: OPENAI_API_KEY env var required
  • Rate limits: OpenAI API rate limits apply
  • Platform: Full cross-platform (Windows uses cmd.exe /d /s /c wrapper)

Memory Protocol (MANDATORY)

Before starting: Read .claude/context/memory/learnings.md

After completing:

  • New pattern -> .claude/context/memory/learnings.md
  • Issue found -> .claude/context/memory/issues.md
  • Decision made -> .claude/context/memory/decisions.md

ASSUME INTERRUPTION: If it's not in memory, it didn't happen.

Note: Use pnpm search:code to discover references to this skill codebase-wide.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Ensure accessibility in UI components including semantic HTML, ARIA attributes, keyboard navigation, and WCAG 2.2 AA compliance.

The English summary is being prepared. Showing the original description.

oimiragieo/agent-studio42Updated Jul 14, 2026

Use when you want to improve response quality through meta-cognitive reasoning. Applies 15+ reasoning methods to reconsider and refine initial outputs.

The English summary is being prepared. Showing the original description.

oimiragieo/agent-studio42Updated Jul 14, 2026

N-round opposing-stance debates for trade-off analysis. Assigns pro/con roles to agents, runs structured debate rounds with quality scoring, and produces a moderator synthesis with confidence-rated recommendation. Generalizable to architecture, technology, security, and design decisions.

The English summary is being prepared. Showing the original description.

oimiragieo/agent-studio42Updated Jul 14, 2026

Force adversarial code review stance that eliminates confirmation bias — reviewer must find issues or re-analyze

The English summary is being prepared. Showing the original description.

oimiragieo/agent-studio42Updated Jul 14, 2026

Creates specialized AI agents on-demand when no existing agent matches a request. Use when the Router cannot find a suitable agent for a task. Enables self-evolution by generating persistent agents.

The English summary is being prepared. Showing the original description.

oimiragieo/agent-studio42Updated Jul 14, 2026

LLM-as-judge evaluation framework with 5-dimension rubric (accuracy, groundedness, coherence, completeness, helpfulness) for scoring AI-generated content quality with weighted composite scores and evidence citations

The English summary is being prepared. Showing the original description.

oimiragieo/agent-studio42Updated Jul 14, 2026

See all skills by oimiragieo

Report a problem with this skill