cmd-codex-review-unstaged
Get a second opinion on what Claude just implemented from Codex (codex exec headless mode).
Skill by Olshansk
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/olshansk-cmd-codex-review-unstaged
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.
About
Use cases: testing, agent-building
Reviews
Write a reviewNo 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/cmd-codex-review-unstaged
What's inside
- Skill name
cmd-codex-review-unstaged- Description
- Get a second opinion on what Claude just implemented from Codex (codex exec headless mode). Pipes Claude's summary plus the working-tree diff to codex, asks codex to leverage cmd-pr-follow-up and cmd-pr-edgecase methodology to surface bugs, test gaps, edge cases, and simplification opportunities, then synthesizes a prioritized iteration plan from the feedback. Triggers on "/cmd-codex-review-unstaged", "review my changes with codex", "have codex review what I just did", or after a non-trivial implementation pass before commit.
- License
- MIT
- Instructions
- 216 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Codex Review Unstaged <!-- omit in toc --> Use `codex exec` as an independent reviewer on the working-tree changes Claude just made. Codex sees only the summary + diff (no conversation history), so its critique catches things Claude rationalized into "good enough" during implementation. The output is a prioritized iteration plan — what to fix now, what to defer, what to reject. - [When to use](#when-to-use) - [Instructions](#instructions) - [Codex prompt](#codex-prompt) - [Output format](#output-format) - [Notes](#notes) ## When to use - After Claude finishes a non-trivial implementation pass and before commit - When the user says "review my changes with codex", "have codex check what I just did", or `/cmd-codex-review-unstaged` - As an outside cross-check before opening a PR — complements `cmd-pr-follow-up` (Claude self-review) and `cmd-pr-edgecase` (edge-case sweep) by adding a fresh pair of eyes that didn't write the code ## Instructions ### 1. Build Claude's implementation summary Write a short summary of what was just implemented. Keep it **factual, not promotional**: - What was the goal? - What files changed and why? - What design decisions were made (and what was rejected)? - What was deliberately deferred (TODOs, follow-ups, scope cuts)? - What was tested manually vs. covered by automated tests? This summary anchors codex's review — without it, codex will judge the diff against a generic standard instead of the actual intent. ### 2. Capture the diff Default scope: **`git diff HEAD`** — captures both staged and unstaged working-tree changes since the last commit. ```bash DIFF_FILE=$(mktemp -t codex-diff.XXXXXX.patch) SUMMARY_FILE=$(mktemp -t codex-summary.XXXXXX.md) OUT_FILE=$(mktemp -t codex-review.XXXXXX.md) git diff HEAD > "$DIFF_FILE" git status --short >> "$DIFF_FILE" ``` If the user explicitly asks for unstaged-only or branch diff, swap in: - Unstaged only: `git diff` - Branch vs main: `git diff main...HEAD` - Include untracked: append `git ls-files --others --exclude-standard` separately Write the summary from step 1 verbatim to `$SUMMARY_FILE` using the Write tool. **Sanity check before invoking codex:** - If `$DIFF_FILE` is empty (no changes), tell the user there's nothing to review and stop. - If the diff is enormous (>50k lines), warn the user — codex will still run but the review quality drops on huge surfaces. Suggest narrowing scope (e.g., per-file or per-phase review). ### 3. Run codex in headless review mode ```bash codex exec \ --sandbox read-only \ --skip-git-repo-check \ --color never \ --output-last-message "$OUT_FILE" \ "$(cat <<PROMPT You are reviewing a working-tree diff produced by another coding agent (Claude). You will receive two files: - $SUMMARY_FILE — Claude's own summary of what it implemented and why - $DIFF_FILE — the raw \`git diff HEAD\` output plus \`git status --short\` Read both before reviewing. You also have access to two skill methodology references (read them before forming your review — they describe what to look for): - ~/.codex/skills/cmd-pr-follow-up/SKILL.md — post-implementation reflection methodology (incomplete tasks, idiomatic concerns, modularity, simplification, comments/prose) - ~/.codex/skills/cmd-pr-edgecase/SKILL.md — edge case and failure mode methodology (test gaps, malformed inputs, integration risks) Apply BOTH methodologies to this diff. Then go further: look for issues those skills do not cover. Your job: 1. **Correctness bugs** — logic errors, off-by-ones, wrong conditionals, race conditions, incorrect API usage. Cite file:line. 2. **Test gaps** — code paths added without tests, edge cases not covered, regression risks. Cite which test file should exist or be extended. 3. **Edge cases & failure modes** — what happens with empty input, null, concurrent calls, malformed data, network failure, partial state. 4. **Adjacent improvements** — things the diff touches that could be cleaned up in the same pass (dead code nearby, stale comments, naming inconsistencies). 5. **Simplification opportunities** — over-engineering, premature abstraction, defensive code for impossible states, dead branches. 6. **Idiomatic / convention violations** — where the diff diverges from the project's patterns (look at surrounding files in the diff for the local convention). 7. **What Claude likely missed** — read the summary critically. Did Claude defer something that actually matters? Claim test coverage that isn't there? Skip a constraint? 8. **What's good** — 1-3 honest bullets on what the implementation gets right. No flattery. Constraints: - Do NOT modify files. This is a read-only review. - Be specific: cite \`file_path:line_number\` for every finding. Vague critique is useless. - Rank findings by severity (critical / high / medium / low). - If the implementation is solid, say so. Do not invent issues. Output format (markdown): ## Verdict One sentence: ship-as-is | minor-tweaks | needs-rework | blocked ## Critical / High [bullets — bugs, missing tests for risky paths, broken invariants — with file:line] ## Medium [bullets — edge cases, simplification opportunities, idiomatic concerns — with file:line] ## Low / Adjacent [bullets — nice-to-haves, follow-up TODOs, stale-comment cleanup — with file:line] ## What Claude Likely Missed [bullets called out from reading the summary against the diff] ## What's Good [1-3 honest bullets] PROMPT )" < /dev/null ``` Stream codex's progress to the user as it runs. Capture the final review from `$OUT_FILE`. > **Note:** the prompt references `$SUMMARY_FILE` and `$DIFF_FILE` by absolute path. Since codex runs read-only in the same working directory, it will read those tempfiles when instructed. Use full paths in the heredoc (substituted by the shell) so codex can locate them without ambiguity.
From Olshansk/agent-skills, MIT.
More from Olshansk/agent-skills
- 0.584score
cmd-makefile-improve
Olshansk
Review a repository's Makefile foundation and propose approval-gated improvements to its helpers, templates, tests, and documentation.
SkillBFreshness: B★ 9Claude Code +9 - 0.572score
cmd-makefile
Olshansk
Create or improve Makefiles with minimal complexity.
SkillBFreshness: B★ 9Claude Code +9 - 0.543score
cmd-mermaid-render
Olshansk
Render and display Mermaid diagrams inline in iTerm2 or Ghostty.
SkillCFreshness: C★ 9Claude Code +9 - 0.538score
cmd-code-what
Olshansk
Catch the user up on what the agent has been doing in the current session with 3-5 ultra-tight bullet points.
SkillCFreshness: C★ 9Claude Code +9 - 0.538score
cmd-plan-store
Olshansk
Capture the current conversation's plan, decisions, and action items into a structured markdown file in the project's plans/ directory.
SkillCFreshness: C★ 9Claude Code +9 - 0.535score
cmd-done-check
Olshansk
Ask the agent whether it finished everything or has more to do — a lightweight completeness gate for the end of any task
SkillCFreshness: C★ 9Claude Code +9 - 0.532score
cmd-agent-persona-set
Olshansk
Prime the agent with a behavioral persona for the conversation
SkillCFreshness: C★ 9Claude Code +9 - 0.532score
cmd-pr-description
Olshansk
Generate a PR title and description, then commit, create/update the PR on approval
SkillCFreshness: C★ 9Claude Code +9 - 0.532score
cmd-pr-conflict-resolver
Olshansk
Resolve merge conflicts systematically with context-aware 3-tier classification and escalation protocol
SkillCFreshness: C★ 9Claude Code +9 - 0.532score
cmd-pr-edgecase
Olshansk
Review branch changes for test gaps, logic edge cases, failure modes, and integration risks
SkillCFreshness: C★ 9Claude Code +9 - 0.532score
cmd-docs-idiot-proof
Olshansk
Simplify documentation for clarity and scannability with approval-gated edits
SkillCFreshness: C★ 9Claude Code +9 - 0.532score
cmd-pr-build-context
Olshansk
Build high-signal PR context for review with diff analysis, risk assessment, and discussion questions
SkillCFreshness: C★ 9Claude Code +9
Signals
- Stars
- 9
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- May 3, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/Olshansk/agent-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Olshansk
- 0.584score
cmd-makefile-improve
Olshansk
Review a repository's Makefile foundation and propose approval-gated improvements to its helpers, templates, tests, and documentation.
SkillBFreshness: B★ 9Claude Code +9 - 0.572score
cmd-makefile
Olshansk
Create or improve Makefiles with minimal complexity.
SkillBFreshness: B★ 9Claude Code +9 - 0.543score
cmd-mermaid-render
Olshansk
Render and display Mermaid diagrams inline in iTerm2 or Ghostty.
SkillCFreshness: C★ 9Claude Code +9 - 0.538score
cmd-code-what
Olshansk
Catch the user up on what the agent has been doing in the current session with 3-5 ultra-tight bullet points.
SkillCFreshness: C★ 9Claude Code +9 - 0.538score
cmd-plan-store
Olshansk
Capture the current conversation's plan, decisions, and action items into a structured markdown file in the project's plans/ directory.
SkillCFreshness: C★ 9Claude Code +9 - 0.535score
cmd-done-check
Olshansk
Ask the agent whether it finished everything or has more to do — a lightweight completeness gate for the end of any task
SkillCFreshness: C★ 9Claude Code +9
Cite this page
cmd-codex-review-unstaged skill. Agent Mart. https://agentmart.dev/skills/olshansk-cmd-codex-review-unstaged (last updated 2026-10-24)