skills/review-with-codex/SKILL.md
Run a second-opinion code review using the Codex CLI (`codex exec review`) in the background and surface the findings when it finishes. Use when the user says "review with codex", "second-opinion review", "what does codex think", or wants an outside model to look at local changes (uncommitted, current branch vs main, or a named commit). Also used as the review checkpoint inside the `executing-plans` skill.
npx skillsauth add abogoyavlensky/agents review-with-codexInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Delegates a code review to the Codex CLI, in the background, and brings the
report back into the current session. This is a second opinion from a
different model — useful alongside or in place of the inline code-review
skill when you want independent verification.
Announce at start: "I'm using the review-with-codex skill to get a second-opinion review."
Mirror the code-review skill's resolution so behavior stays consistent:
--commit <sha>.--base <branch>.--base <main-branch>.
git rev-parse --verify main, fallback to master.
If neither exists, ask.git diff HEAD --quiet || echo dirty) →
--uncommitted.--base <main-branch>.State the chosen scope to the user before invoking codex so they can correct a wrong guess.
Save locally in the .tmp dir in the current repo:
TS=$(date +%s)
OUT=.tmp/codex-review-${TS}.md # final review message
LOG=.tmp/codex-review-${TS}.log # full stdout/stderr for debugging
Run via the Bash tool with run_in_background: true. The harness will
notify you on completion — do not poll.
codex exec review \
--skip-git-repo-check \
--dangerously-bypass-approvals-and-sandbox \
<SCOPE_FLAG> \
-o "$OUT" \
> "$LOG" 2>&1
--dangerously-bypass-approvals-and-sandbox is what makes a background run
work: codex exec review is read-only, but without it codex can block on an
approval/sandbox prompt with no TTY and the background job hangs until timeout.
Safe here precisely because the review never writes.
Where <SCOPE_FLAG> is exactly one of:
--uncommitted--base <main-branch>--commit <sha>Optional positional prompt at the end for focused instructions, e.g.
"Pay special attention to the new auth middleware in pkg/auth/". Keep it
short; codex has a built-in review prompt. Caveat (see flag compatibility
below): some codex versions reject a positional PROMPT together with
--uncommitted. If you need a focused prompt, pair it with --base/--commit,
or drop the prompt and rely on codex's built-in review prompt for the
uncommitted case.
Flag compatibility — verify before assuming. Codex CLI flags vary by version (checked against
codex-cli 0.135.0). Two gotchas seen in practice:
--color neveris rejected (unexpected argument '--color'). Don't pass it.-oalready writes a clean final message; ANSI in$LOGis harmless.- A positional
PROMPTcannot be combined with--uncommitted(the argument '--uncommitted' cannot be used with '[PROMPT]').If a run fails with exit code 2 and an "unexpected/incompatible argument" message in
$LOG, runcodex exec review --help, drop or swap the offending flag, and re-invoke — don't keep retrying the same command.
Tell the user: "Codex review started in the background (scope: …). I'll surface findings when it finishes." Then continue with whatever's next — the caller decides whether to block or carry on.
When the background bash notifies completion:
$LOG, surface the error to the user, and
suggest a fix (most common causes: codex auth lapsed, wrong flag for the
installed codex version, repo not git-initialised).$OUT. That's codex's final review message.executing-plans, fold must-fix items into the current task before
moving on.Leave .tmp/codex-review-* files in place — they age out naturally and are
useful for debugging a bad review run.
--uncommitted — staged + unstaged + untracked changes. (Cannot be combined
with a positional PROMPT on some versions — see flag compatibility above.)--base <branch> — diff HEAD against the branch.--commit <sha> — review just that commit.--skip-git-repo-check — allow running outside a strict git check.--dangerously-bypass-approvals-and-sandbox — required for unattended
background runs (no TTY for approval prompts); safe because review is
read-only.-o <file> — write the agent's final message to a file.-m <model> — override the codex model. Leave unset by default;
codex uses what's configured in ~/.codex/config.toml. Only pass if the
user explicitly asks.--json — emit JSONL of events. Use only if you need streaming progress;
-o already captures the final report.code-review skill. That one runs inline in this
session. This delegates to a separate process and model.development
Review, edit, or draft technical articles, blog posts, tutorials, README-style walkthroughs, and documentation in Andrey Bogoyavlensky's practical technical writing voice. Use when asked to review or improve an article end to end (grammar, fluency, factual correctness, readability) and apply the fixes; improve grammar, fluency, structure, or style of technical prose; align a draft with "my style"; or write/rewrite articles for bogoyavlensky.com while preserving the author's voice.
documentation
Use when writing prose humans will read - documentation, commit messages, error messages, explanations, reports, or UI text. Applies Strunk's timeless rules for clearer, stronger, more professional writing.
documentation
Create structured implementation plan in docs/plans/
development
Review local code changes — uncommitted work, the current branch vs main, or a specific commit — for code quality, minimal implementation, basic security, and feature completeness. Use this skill whenever the user asks to review code, review changes, review a branch, review a commit, audit a diff, sanity-check what's about to be committed, or asks "is this ready to ship?" — even when they don't say the word "review" explicitly. This is a fast local review run inside the project, not the cloud-based /ultrareview. The output is a severity-grouped findings report with file:line citations.