OpenAI’s prompting guide asks a larger task for four parts: the goal, the context, the output, and the boundaries, meaning what must stay unchanged. Use only the parts that help.
In Codex, /plan turns on plan mode for work in several steps, /review reviews your uncommitted changes or compares against a base branch, and /goal sets a goal it works toward until it finishes, pauses or needs you (slash commands). Custom prompts saved in ~/.codex/prompts are deprecated; OpenAI points to skills for instructions you reuse.
Before it implements on a guess: repo read, goal restated, assumptions and plan listed, then a stop for your approval.
Work like a contractor who pays for rework. Catch wrong assumptions early, and don't make me answer questions the repository already answers.
1. Investigate before asking
Read the relevant code, tests, configs, dependency manifests, and documentation first. Search the repository and use the available tools before asking me anything. If the answer is discoverable in under a minute, invest…
Before a task goes to Codex: GPT-6 Pro finds what you haven’t thought through and writes a brief an engineer could take.
I want to do this: [DESCRIBE WHAT YOU WANT TO DO IN ONE SENTENCE].
Assume an engineer who can solve problems independently will take over, but they haven’t seen our conversation. Using the materials I’ve provided, first help me clarify what problem I’m trying to solve, whether any requirements conflict, and what missing information could affect the approach. Ask me about decisions I need to make. Don’t turn assumptions into…
Half your quota left at reset: dead code, duplicates and unneeded dependencies cut; scheduled tasks and old worktrees sorted.
/goal Find the code in this repo that nothing uses anymore, and prove it's really unused before you delete it.
→ Functions, classes, components and exports that nothing calls→ Files and directories that no entry point references→ Branches that can never run, feature flags hard-coded off, and whole blocks of commented-out code
Months of vibe coding left the code in knots: an HTML wiring diagram, the worst numbered in red, then fixes tested one by one.
/goal Untangle the knotted code in this repo: leaky abstractions, copy-paste that has drifted apart, temporary workarounds that never got deleted, and empty wrappers. First, draw a wiring diagram that fits on one screen, as an HTML page: a line from each feature to every file it touches, with the worst knots marked in red and numbered. For each one, give the file, the line and how to untangle it.
Then, on a new branch, untangle them starting with the worst. After each one, run…
Quota unused before it resets: a UI/UX audit, a clickable code map, measurable speedups, a workspace and a Codex cleanup.
/goal Launch the real site for this project and use the three skills below to audit and improve it:
→ `$ux-audit`: click, type, and complete the core flows like a real user. Find anything confusing, hard to use, or simply broken.→ `$impeccable`: review the visual hierarchy, typography, spacing, component consistency, mobile experience, and every important UI state.→ `$transitions-dev`: review the existing motion and add the right transitions wherever feedb…
Code too complicated, or busy a long time with no clear direction: one finds what needn’t exist, one rechecks the direction.
Review this implementation from first principles. Start with the goal and the constraints it must satisfy. Don’t assume the existing design is correct.
Which parts are unnecessarily complex? Which decisions rely on untested assumptions? What can be removed without losing required behavior, and what could be simplified afterward?
List up to 5 changes worth making. For each, include the code location, supporting evidence, what we would lose by changing or removing it, and how to…
‘Fix this bug’ hands you defaults: what your diff touches, an end-to-end goal, a red-teamed plan, a user walk, a thinking budget.
i'm about to change [file/module]. don't write any code yet.
use codebase memory to map the repo into one graph, read my uncommitted diff, map every change to the functions it touches, and return: each function, its downstream blast radius, and a risk level.
once it's ranked by risk, act at three levels of authority:
L1 low risk, just do it: local, covered by…
Ten questions at once get ignored: assumptions, missing info, the usual mistake, then the one question that changes its approach.
Do not answer my question yet.
Before answering:
1. List the assumptions I haven’t stated but you’re about to make.2. Tell me what key information is missing and how it could change your answer.
Sample data proves little: the real component rendered in every state that matters, fixed only where a failure reproduces.
/goal Check [COMPONENT NAME OR PATH] and make sure it survives the content and states it will encounter in real use.
INSPECT ONLY THIS COMPONENT.
Do not modify it yet. Read its actual props, slots, states, data sources, and where it is used. Based on what it really accepts, select the stress cases that apply.
TEST THESE WHEN RELEVANT:
Maxing out Astra when Sol would do: model, effort, subagent and AGENTS.md problems found, each with a config fix to paste.
Read these two pages. If you can't get the actual text, stop and tell me:
https://developers.openai.com/codex/models
https://learn.chatgpt.com/guides/prompting-gpt-6-2-astra
Then review my Codex setup against them: ~/.codex/config.toml, ~/.codex/AGENTS.md, and the AGENTS.md files and skills in…
A cleanup that could delete your chats: items sorted Keep, History, Work, Clearable or Unknown, each command approved by you.
Disk audit: ~/.codex and ~/.claude
Report first. Change nothing until I approve.
1. Measure: du -sh both folders, the 20 biggest items in each, and Codex sessions/ + archived_sessions/ by month. Sizes, counts and dates only. Never open auth, config or chat files.2. Sort every item into one bucket:
Codebase·
Paste it where your agent reads it. Copybook in your agent can look up tips like this mid task.Send it to your computer for later.Add to your agentEmail me
Copybook Pro: line-by-line review of your CLAUDE.md or AGENTS.md, and tip lookups from your agent with no daily limit. Early bird: $59 for the 1-year pass. The price rises as Pro grows.See Pro