Skip to content
Agentmart
Submit a tool

codex

Consult OpenAI Codex CLI for a second opinion on plans, tests, code review, and more.

Skill by DevChiniwala

IndexedMIT★ 1
Write a review

Chalk Labs

Need help deploying codex?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/devchiniwala-codex

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

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.

Use cases: testing, agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/codex

Tools it pre-approves 4

From allowed-tools in SKILL.md: the agent may use these without asking you each time.

  • Bash(codex
  • *),
  • exec
  • *)

What's inside

Skill name
codex
Description
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.
License
MIT
Allowed tools
Bash(codex, *),, Bash(codex, exec, *)
Instructions
129 lines in SKILL.md · view on GitHub

Before installing

  • Pre-approves some shell commands

Files (1)

  • SKILL.md

SKILL.md (first lines)

## 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)

| Flag | Description |
|------|-------------|
| `-s read-only` | Read-only sandbox — can read files but not modify |
| `-s workspace-write` | Can write to workspace |
| `-C /path` | Set working directory |
| `-m MODEL` | Override model (e.g. `-m o3`) |
| `--json` | Output events as JSONL |
| `--ephemeral` | Don't persist session files |
| `-o FILE` | Write last message to file |
| `-c key=value` | Override config (e.g. `-c model="o3"`) |
| `--full-auto` | Convenience 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

From DevChiniwala/HeyClara, MIT.

More from DevChiniwala/HeyClara

Signals

Stars
1
Forks
0
Open issues
0
Last commit (this folder)
Jul 5, 2026 (3 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from DevChiniwala

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get codex running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying codex?

CallGet help
Cite this page

codex skill. Agent Mart. https://agentmart.dev/skills/devchiniwala-codex (last updated 2026-10-24)