CtrlK
BlogDocsLog inGet started
Tessl Logo

finsi/codex-review

Use when the user wants a local second-opinion code review via OpenAI Codex CLI — on the current branch, staged changes, a single file, or a piped diff. Triggers include "codex review", "review with codex", "run codex on this diff", "second opinion from codex", or pre-commit / pre-PR review requests that ask for codex specifically.

90

2.25x
Quality

97%

Does it follow best practices?

Impact

97%

2.25x

Average score across 2 eval scenarios

SecuritybySnyk

Passed

No known issues

Overview
Quality
Evals
Security
Files

task.mdevals/scenario-1/

Pre-Commit Safety Check

Problem/Feature Description

You are working on a multi-tenant ecommerce analytics platform. A colleague has finished adding a new API route and has staged their changes for commit. Before the commit lands in version control, the team wants an independent second-opinion review to catch security issues, multi-tenant leaks, or broken invariants that the author might have missed.

The project uses the Codex CLI for these local pre-commit reviews. Your job is to invoke the review correctly so that Codex sees only the staged changes, with the right system prompt encoding the project invariants.

Output Specification

Write a shell script named review.sh that performs the pre-commit review using the Codex CLI. The script should:

  1. Be executable and runnable directly.
  2. Capture any review output to a file for later inspection.
  3. Include comments explaining each major step.

Assume:

  • The Codex CLI is already installed and authenticated.
  • The .claude/skills/codex-review/resources/PROMPT.md file exists in the current working directory and contains the system prompt with repo invariants.

evals

scenario-1

criteria.json

task.md

SKILL.md

tile.json