codex

Wraps OpenAI Codex CLI to run independent code reviews, adversarial challenges, and consult sessions.

Updated Aug 9, 2026
One-click install
npx skills add https://github.com/raghavbadhwar/rstack --skill codex-raghavbadhwar
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codex
Source: https://github.com/raghavbadhwar/rstack/tree/main/codex
Command: npx skills add https://github.com/raghavbadhwar/rstack --skill codex-raghavbadhwar

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Getting a trustworthy second opinion on code changes is hard when the same AI that wrote the code also reviews it. This Skill routes your diffs and questions through the OpenAI Codex CLI as an independent outside voice, so reviews and design decisions are challenged by a separate model before you ship. ## Core Features & Use Cases - Independent diff review: Runs codex review as a pass/fail gate on your changes, catching issues the authoring model may have missed. - Adversarial challenge mode: Actively tries to break your code and assumptions, stress-testing logic before release. - Consult with session continuity: Ask Codex anything and keep follow-up context across questions, useful for architecture debates and debugging. - Use Case: Before merging a feature branch, invoke the review mode to get a pass/fail verdict from Codex, then use challenge mode on any risky logic it flags, and finally consult on how to fix the findings. ## Quick Start Ask the agent to run a codex review of the current branch diff and report whether it passes or fails.

Frequently Asked Questions about codex

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

FAQPage Schema
How do I get a second opinion on a code diff with Codex?

Invoke the codex review mode, which runs the Codex CLI against your current diff and returns a pass/fail verdict. It acts as an independent reviewer separate from the model that wrote the code.

What is the difference between codex review, challenge, and consult modes?

Review mode performs a pass/fail diff review, challenge mode adversarially tries to break your code, and consult mode answers open questions with session continuity for follow-ups. Each mode wraps a different Codex CLI invocation.

Does the codex skill work in headless or CI sessions?

Yes, the preamble detects headless, spawned, and interactive session kinds. In headless runs it blocks instead of prompting, and in spawned sessions it auto-chooses recommended options without interactive questions.

Why does the codex skill ask telemetry and proactive prompts on first run?

The gstack preamble runs one-time onboarding prompts for telemetry, proactive suggestions, and routing rules. Each prompt writes a marker file so it only appears once per machine or project.

Can I use codex consult for follow-up questions in the same session?

Yes, consult mode maintains session continuity so follow-up questions retain prior context. This makes it suitable for multi-turn architecture discussions or iterative debugging.