Skip to content

Codex Prompts

One-Liner

Codex Prompts is the prompt template system used by Codex CLI — standardized prompt formats ensure consistent code quality and review effectiveness.

Core Concepts

ConceptDescriptionUse Cases
Prep PromptsProject context preparation promptsAnalyze project structure, extract relevant files
Review PromptsCode review promptsMulti-dimensional code quality checks

Prompt List

Prep Series

PromptFunctionUse Cases
memory:prepareProject context preparationPrepare structured project context for tasks

Review Series

PromptFunctionUse Cases
codex-reviewInteractive code reviewCode review using Codex CLI

Prompt Template Format

All Codex Prompts follow the standard CCW CLI prompt template:

PURPOSE: [objective] + [reason] + [success criteria] + [constraints/scope]
TASK: • [step 1] • [step 2] • [step 3]
MODE: review
CONTEXT: [review target description] | Memory: [relevant context]
EXPECTED: [deliverable format] + [quality criteria]
CONSTRAINTS: [focus constraints]

Field Descriptions

FieldDescriptionExample
PURPOSEObjective and reason"Identify security vulnerabilities to ensure code safety"
TASKSpecific steps"• Scan for injection vulnerabilities • Check authentication logic"
MODEExecution modeanalysis, write, review
CONTEXTContext information"@CLAUDE.md @src/auth/**"
EXPECTEDOutput format"Structured report with severity levels"
CONSTRAINTSConstraint conditions"Focus on actionable suggestions"

Released under the MIT License.