devchiniwala/heyclara/codex

Claude Code and agent skill by devchiniwala/heyclara

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Consult OpenAI Codex CLI for a second opinion on plans, tests, code review, and more. Use this skill automatically whenever a second perspective would strengthen your output — especially for architectural plans, code review, test strategy, and debugging.

Install

npx vskill@latest install devchiniwala/heyclara/codex

SKILL.md

The same SKILL.md was published earlier as devchiniwala/heyclara/codex.

Runtime Scope

  • Use this skill in Claude Code workflows.
  • If the active assistant is Codex and this skill is referenced, do not invoke Codex CLI directly; use a subagent for the second-opinion task instead.

Consult the OpenAI Codex CLI as a second-opinion advisor. Use its output to compare, validate, or enrich your own analysis.

User request: $ARGUMENTS

Instructions

Step 1: Determine the consultation type

Based on the user's request, determine which mode applies:

  • plan — Ask Codex to propose an implementation plan or architecture
  • review — Ask Codex to review specific code for bugs, style, and improvements
  • test — Ask Codex to suggest test cases or generate tests for specific code
  • explain — Ask Codex to explain how specific code works
  • debug — Ask Codex to analyze a bug or error and suggest fixes
  • general — Any other consultation
Step 2: Gather context

Before calling Codex, gather relevant context so you can craft a focused prompt:

  • Read the files relevant to the user's request
  • Check git diff --stat or git log --oneline -10 if the request involves recent changes
  • Understand what specific question or area the user wants Codex's perspective on
Step 3: Call Codex

Run Codex via codex exec in non-interactive mode. Always pass -C with the project directory.

For read-only consultation (review, explain, debug):

bash
codex exec -s read-only "YOUR_PROMPT" -C /path/to/project

For code generation (test, plan with output):

bash
codex exec -s workspace-write "YOUR_PROMPT" -C /path/to/project

For code review specifically:

bash
codex exec review -C /path/to/project
CLI Reference (codex-cli v0.114.0)
FlagDescription
-s read-onlyRead-only sandbox — can read files but not modify
-s workspace-writeCan write to workspace
-C /pathSet working directory
-m MODELOverride model (e.g. -m o3)
--jsonOutput events as JSONL
--ephemeralDon't persist session files
-o FILEWrite last message to file
-c key=valueOverride config (e.g. -c model="o3")
--full-autoConvenience alias for sandboxed auto-execution

Do NOT use these (they don't exist):

  • --quiet — not a valid flag
  • --approval-mode — not a valid flag
  • Top-level codex "prompt" for non-interactive — use codex exec instead
Prompt crafting rules
  • Include the specific file paths and relevant code context
  • Be explicit about what you want: "Review this code for bugs", "Propose a plan to implement X", "Write unit tests for Y"
  • Include constraints: "This project uses [framework/language]. Follow existing patterns."
  • Keep it focused — one clear ask per invocation

If the output is too large or Codex needs to examine many files, break it into multiple focused calls.

If codex is not installed, tell the user:

Codex CLI is not installed. Install it with: npm install -g @openai/codex
Make sure your OPENAI_API_KEY environment variable is set.

Then stop.

Step 4: Synthesize

Do NOT just dump Codex's raw output. Instead:

  1. Present Codex's perspective — summarize its key points clearly
  2. Add your own analysis — where do you agree or disagree? What did it miss? What did it catch that you wouldn't have?
  3. Highlight conflicts — if Codex's suggestion contradicts the project's existing patterns or the user's preferences, flag it
  4. Give a recommendation — a clear, unified recommendation combining the best of both perspectives

Format the output as:


Codex Consultation

Query: (what was asked)

Codex's Take

(summarized key points from Codex output)

My Analysis

(where you agree, disagree, or would extend Codex's suggestions)

Conflicts & Caveats

(any contradictions with existing codebase patterns, CLAUDE.md rules, or project conventions)

Recommendation

(unified recommendation — the best path forward considering both perspectives)


Step 5: Offer next steps

Ask the user if they want to:

  • Act on the recommendation
  • Ask Codex a follow-up question
  • Get deeper analysis on a specific point

Keeping This Skill Up To Date

This skill was last verified against codex-cli v0.114.0. If Codex CLI is updated and commands fail, run codex exec --help to check current flags and update this skill accordingly. Common things that change between versions:

  • Flag names and aliases
  • Sandbox mode values
  • Subcommands (e.g. exec review was added later)
  • Default model names

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/devchiniwala/heyclara/codex/badge)](https://verified-skill.com/skills/devchiniwala/heyclara/codex)

Something wrong with this skill or its page? Tell us.