agentleFS
eugeniosegalaeugeniosegala/claude-connoisseur/skills/codex-review/SKILL.md

codex-review

Skill9 starsChanged 8 months agoMITView on GitHub

Send plans, code, or approaches to OpenAI Codex CLI for independent review.

48 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use addskill, advocate and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ryanportfolioSkill

    addskill

    Create, import, update, or install repository or personal skills; includes runtime ownership, resources, and discovery validation.

    Also in 3 projects that use this

  • ryanportfolioSkill

    advocate

    Use only when the user explicitly invokes $advocate to challenge a change just made before it lands. Do not trigger from natural-language requests.

    Also in 3 projects that use this

  • +10 more from ryanportfolio

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 42 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    When invoked, send the relevant context — plans, approaches, code, or any combination — to codex CLI for an independent review.

    line 13
  2. Distinctive:

    Run codex: Write the full prompt to a temporary file, then pipe it to the helper script:

    line 58
  3. Very specific:

    Always use echo "..." | skills/codex-review/run-codex.sh — never use heredocs (indentation causes hangs)

    line 83

“Common” is measured: kept by at least 6 in 10 of the 42 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Codex Review

When invoked, send the relevant context — plans, approaches, code, or any combination — to codex CLI for an independent review.

Files and instructions: $ARGUMENTS

What to review

This skill covers both code and plans/approaches:

  • Plans/Approaches: Architecture decisions, implementation strategies, proposed approaches before starting work
  • Code: Code you've written, modified, or are considering changing — diffs, file contents, implementation details, proposed changes
  • Both together: A plan alongside the code that implements it

Adapt what you send based on what the user asks Codex to review.

How to interpret arguments

The arguments are free-form and flexible. They may contain:

  • Natural language describing what to review: "review my current plan", "review the last commit"
  • File references alongside instructions: @auth.ts review this file for security issues
  • Scope instructions: "review the approach and the implementation together"

Parse the arguments to determine what context to gather and send to Codex.

Examples

  • /codex-review review my current plan — review the plan from the current conversation
  • /codex-review review the code I just wrote — review recent code changes
  • /codex-review review the approach and the implementation together — review both plan and code
  • /codex-review @auth.ts review this file for security issues — review a specific file with focus
  • /codex-review review the last commit — review the most recent commit diff

How to proceed

  1. Gather context: Collect the relevant material to send for review based on what the user asked. Match the scope of what you send to the scope of the ask — if the user points at a single function, send that function and its immediate dependencies, not the entire file history or conversation. A quick opinion needs adequate context; a full architecture review needs more.
    • For a targeted question (specific file, function, or snippet): Send only the relevant code and enough surrounding context for Codex to understand it (e.g. types, imports, direct callers). Skip git history, conversation recaps, and unrelated files
    • For plan/approach review: Include the plan text or approach description, plus the key files it affects (entry points, schemas, interfaces) — not the entire codebase it touches
    • For code review of recent changes: Include the diff (git diff) and a brief description of intent — not every file in the repo
    • For broad reviews ("review the architecture", "review everything I've done"): Include more context, but summarise where possible rather than dumping raw content
  2. Build the prompt: Construct a clear prompt for Codex that includes:
    • The context of the project and what the user is trying to achieve
    • The code, plan, approach, or combination thereof
    • A request to review, identify potential issues, suggest improvements, and flag anything missing
  3. Run codex: Write the full prompt to a temporary file, then pipe it to the helper script:

    echo "Review the following <code/plan/approach> for a software engineering task and provide feedback.
    
    ## Project Context
    <project context>
    
    ## What to Review
    <code, plan, approach, or combination>
    
    ## Please provide:
    1. Overall assessment
    2. Potential issues or risks
    3. Suggested improvements
    4. Anything missing or overlooked
    
    ## Output rules
    - Be concise
    - Do not echo back the entire code or plan you were given
    - Short code snippets are fine to illustrate a point, but never include entire files
    - If you explore the codebase, summarise what you found — do not paste what you read" | skills/codex-review/run-codex.sh

    Important:

    • Always use echo "..." | skills/codex-review/run-codex.sh — never use heredocs (indentation causes hangs)
    • The script checks that codex is installed and exits with a clear error if not
    • Set a reasonable timeout (use Bash timeout of 300000ms)
  4. Report back: Present the Codex feedback to the user clearly:
    • Codex's overall assessment
    • Any concerns or suggestions raised
    • Your own response to the feedback (agree, disagree, or need to discuss)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.