Codex prompts

18 prompts

Prompts for Codex, OpenAI's coding agent. Each one is a task brief: what to change, where, which checks must pass and what to report back, so Codex can work through it and show you the result.

5 results

  • Codex Characterization-Test-First Refactor with Verification Handoff

    Runs a behavior-preserving refactor in Codex exec. It pins current behavior with characterization tests, refactors in small verified steps inside an allowed scope, and ends with an evidence-based handoff for the merge decision.

  • Codex Pre-Merge Diff Review with Severity-Ranked Findings

    Has Codex review a branch diff against a base ref in read-only mode. It checks correctness, tests, security, and maintainability, and returns evidence-backed findings with severity and a merge recommendation.

  • Research, Writer and Editor Agent Pipeline With a Handoff Schema

    Designs a three-agent content pipeline where a researcher, writer and editor pass structured handoffs, with the exact fields each agent receives and returns and checks between stages.

  • Codex Exec CI Fixer: Diagnose, Minimal Fix, Rerun, Stop After 3 Attempts

    Gives codex exec a non-interactive procedure to diagnose a failing CI output, apply a minimal fix, rerun the checks and stop after three attempts with a clear report.

  • Pre-Merge Code Review Checklist Skill (SKILL.md)

    A save-ready SKILL.md that has your coding agent review a branch before merge: correctness, security, tests and migrations, with findings ranked by severity and no style nitpicks.

About Codex prompts

Where do I run a Codex prompt?

Paste it as the task in the Codex CLI, the IDE extension or Codex in ChatGPT, pointed at the repository the task is about, so the agent can read the code first.

What is AGENTS.md, and do I need one?

AGENTS.md is a file in your repository that tells coding agents how to build, test and style the code. Codex reads it before it starts, so a task prompt only needs the task.

How do I check what Codex changed?

Ask for a summary of the files it changed and the commands it ran, then read the diff before you merge. Run the tests yourself if the prompt touches anything critical.