# Codex task prompt patterns

Reusable prompts for exploration, implementation, debugging, and review.

Independent HybridGenAI learning guide. Reviewed October 25, 2026. These are suggested exercises, not official OpenAI courses or credentials. Setup examples have not been executed in every environment.

## Explore

Read the applicable instructions and map the execution path for [feature]. Identify its inputs, outputs, tests, and risks. Report findings before changing code.

## Implement

Implement [specific behavior] in [scope]. Preserve [constraints]. Reuse existing components. Acceptance: [observable result]. Run [documented checks] and explain any verification gap.

## Debug

Reproduce [failure] using [steps and sanitized sample]. Find the cause before editing. Add a regression check where useful, make the smallest complete fix, and show the before/after behavior.

## Review

Review this diff for correctness, security, and regressions. Prioritize actionable issues with file locations, impact, and a reproduction or test. Do not change files during the review.

## Improve your context

Attach relevant files, exact errors with secrets removed, and expected behavior. Split unrelated tasks. Say which actions are authorized and whether external publishing is included.

## Official references

- https://learn.chatgpt.com/docs/codex/cli
- https://learn.chatgpt.com/docs/agent-configuration/agents-md
