Airbrowser-mcp codex-review
Run OpenAI Codex code review on current changes or review a plan/design. Use when user asks to review code, review implementation, or run codex review.
git clone https://github.com/ifokeev/airbrowser-mcp
T=$(mktemp -d) && git clone --depth=1 https://github.com/ifokeev/airbrowser-mcp "$T" && mkdir -p ~/.claude/skills && cp -r "$T/.claude/skills/codex-review" ~/.claude/skills/ifokeev-airbrowser-mcp-codex-review && rm -rf "$T"
.claude/skills/codex-review/SKILL.mdCodex Code Review
Run OpenAI Codex CLI to review code changes or implementation plans.
Mode Detection
Determine which mode to use based on what the user wants reviewed:
Mode A — Code Diff Review (codex review
)
codex reviewUse when the user wants to review actual code changes (committed or uncommitted).
Indicators: "review my changes", "review this PR", "review the diff", or no specific context (default).
Mode B — Plan / Design Review (codex exec
)
codex execUse when the user wants to review a plan, design, or suggested implementation that exists in conversation context — NOT as code diffs.
Indicators: "review the suggested implementation", "review this plan", "review the design", "review what was proposed", or when there are no relevant code changes on the branch.
Compact Prompt
Always pass a compact-output instruction via heredoc stdin to reduce context window usage.
codex review does NOT accept a prompt as a positional argument alongside flags, but it does read from stdin via heredoc.
COMPACT_PROMPT="Be concise. For each finding output ONLY: severity (critical/warning/info), file:line, and a one-line description. Group by severity. No code snippets unless critical. No preamble or summary paragraph."
Mode A — Code Diff Review
-
Run
to check for uncommitted changesgit status -
Choose the appropriate review target:
Uncommitted changes (staged, unstaged, or untracked):
codex review --uncommitted <<'EOF' $COMPACT_PROMPT EOFSpecific commit SHA:
codex review --commit <SHA> <<'EOF' $COMPACT_PROMPT EOFBase branch comparison:
codex review --base <BRANCH> <<'EOF' $COMPACT_PROMPT EOFNo uncommitted changes — review latest commit:
codex review --commit HEAD <<'EOF' $COMPACT_PROMPT EOF -
Present the output and offer to help fix issues
Mode B — Plan / Design Review
Use
codex exec in read-only sandbox mode. Pipe the plan text via stdin.
-
Collect the plan/design text from the conversation context
-
Write it to a temp file, then run:
codex exec --sandbox read-only -o /dev/stdout - <<'PLAN_EOF' Review the following implementation plan for a codebase at $PWD. Identify issues, missing edge cases, security concerns, and incorrect assumptions. Be concise. List issues as bullet points with severity (critical/warning/info). --- PLAN --- <paste plan text here> PLAN_EOFOr if the plan references files that already exist, let codex read them:
codex exec --sandbox read-only "$REVIEW_PROMPT"Where
includes the plan text and instructions to read relevant files.$REVIEW_PROMPT -
Present the output and offer to help address issues
Custom Instructions
If the user provides arguments (e.g. "focus on security"), prepend them to the compact prompt in the heredoc:
# Mode A codex review --uncommitted <<'EOF' Focus on security. $COMPACT_PROMPT EOF # Mode B codex exec --sandbox read-only "focus on security. $REVIEW_PROMPT"
Notes
- The
CLI must be installed and authenticated (codex
)codex login - Timeout should be generous (up to 5 minutes) as reviews can take time
- The compact prompt keeps output short; if the user wants full verbose output, they can say
and you should omit the heredoc/codex-review --verbose - For Mode B, always use
since no writes are needed--sandbox read-only