Look it up
The commands worth knowing in Claude Code, Codex and Antigravity, with our own advice, checked against each tool's docs on Nov 14, 2026.
Using ChatGPT, Claude or Gemini in a browser? Your reference is the prompt library. Below is Claude Code until you pick a tool, which sets it for the whole site.
These work in Claude Code in your terminal, and most work in the Code tab of the Claude desktop app too. Not set up yet? Getting started walks you through it.
Five habits, the same in every tool: write down your rules, plan before it builds, make mistakes cheap, start fresh, check the work. Each comes with our take.
Writes a first CLAUDE.md, the rules file Claude reads at the start of every session in this folder.
Our take It only writes what it can see, so ask it to add who the work is for and what it must never touch. Ask it to keep the file under 100 lines: it's read every session, and every line costs tokens (the units your plan counts). For a brand-new project, our minting-projects skill (a saved set of instructions) sets up the whole folder on day one.
Add who this work is for and what you must never touch. Keep the file under 100 lines.Turns on plan mode: Claude reads your files, then shows a plan before it changes any of them. Approving the plan turns it off. Pressing Shift+Tab until it says plan gets you there too.
/plan add a contact form to the home pageOur take A plan fills the gaps you left with guesses, so on a big job have it grill you first with the line below. For work in several parts, our writing-plans skill breaks it into small tested steps.
Before you plan, ask me your questions in one numbered list, each with the answer you'd suggest. Then wait.Takes the conversation, your files or both back to an earlier point. Pressing Esc twice on an empty prompt opens it too.
Our take It only undoes Claude's own edits. A file that only a terminal command or a background helper changed stays changed, so ask Claude to save your work in git (a history of every change) before a big job.
Commit everything before you start.Starts a new conversation. Nothing from this chat comes with it, but your rules file and saved memory stay. /new does the same.
Our take Start fresh between unrelated jobs. The old conversation costs tokens (the units your plan counts) and pulls the next job off course.
Reviews your latest changes for real mistakes and lists what it finds. /review does the same.
Our take Ask Claude to fix the ones that matter in the chat, so /rewind can still undo them. If you also use Codex, open it in the same folder and type /review for a second opinion: two models miss different things.
Press these in Claude Code instead of typing.
A skill is a saved set of instructions you run by name. You don't write it yourself. Ask your tool to make one.
.claude/skills/<name>/SKILL.md. For every project: ~/.claude/skills/<name>/SKILL.md (~ is your home folder). Each skill is a folder with a SKILL.md file inside..claude/commands still work. Make new ones as skills.---name: handoffdescription: Write a hand-off note so a fresh session can pick up this work. Use when I say hand off.--- Write a short hand-off note for a fresh session.Say what we're doing and why, in two lines.List what's done and what's left, numbered.Name the files that matter and any decision a new session shouldn't undo.Save it as handoff.md in this folder, then tell me to start fresh and type: "Read handoff.md and carry on."
It writes a hand-off note when a session gets long. Paste it into Claude Code and say “Save this as a skill in this project.” It should land in .claude/skills/handoff/SKILL.md, and the same file works in all three tools.
The ones worth knowing, grouped by the job you're doing. Type / in Claude Code to see the full list.
/clearStarts a new conversation. Nothing from this chat comes with it, but your rules file and saved memory stay. /new does the same.
/resumeReopens an earlier conversation, from a list or by its name.
/renameNames this conversation so you can find it later. Leave the name off and Claude picks one.
/rename contact-form/compactShrinks the conversation into a summary to free up room. Add what to keep.
/compact keep the design decisionsOur take Past about 60% full (type /context to see), a fresh session with a hand-off note beats squeezing the old one. Ask for the note with the line below, copy it, type /clear and paste it in. Or save the hand-off skill under Make your own commands.
Write a hand-off note: what we're doing, what's done, what's next and which files matter./btwAsks a quick side question without adding it to the main conversation.
/btw what does this error mean?/branchSplits the conversation here so you can try a different direction. The original stays in /resume.
/branch try-a-simpler-layout/forkCopies the conversation into a new session that works in the background, while you keep working here.
/fork check the other pages for the same bug/recapWrites a one-line summary of the session so far.
/exitCloses Claude Code. /quit does the same.
/planTurns on plan mode: Claude reads your files, then shows a plan before it changes any of them. Approving the plan turns it off. Pressing Shift+Tab until it says plan gets you there too.
/plan add a contact form to the home page/goalKeeps Claude working, turn after turn, until the condition you set is met.
/goal every link on the home page opens a real page, listed one by one, or stop after 20 turns/rewindTakes the conversation, your files or both back to an earlier point. Pressing Esc twice on an empty prompt opens it too.
/code-reviewReviews your latest changes for real mistakes and lists what it finds. /review does the same.
/diffShows every change in your project folder, including Claude's edits.
/security-reviewChecks your changes that aren't in your project's main copy yet for security problems, like private data left exposed. Your project needs a copy on GitHub or a similar site.
/simplifyFour helpers look over your latest changes for repeated or overbuilt code, then tidy it. It doesn't hunt for bugs; /code-review does.
/contextShows what fills Claude's working memory as a coloured grid, with tips to free up room.
/initWrites a first CLAUDE.md, the rules file Claude reads at the start of every session in this folder.
/memoryOpens your CLAUDE.md rules files to edit, and turns auto memory (notes Claude keeps for itself) on or off.
/add-dirLets this session work in one more folder.
/add-dir ../brand-assets/skillsLists your skills: saved instructions you run by typing / and the name.
Our take When you explain the same thing a third time, make it a skill. Our minting-skills skill keeps new ones short and makes sure they run when they should.
/agentsExplains how to add helpers (subagents: extra Claude workers with their own working memory). Ask Claude to make one for you.
/mcpConnects outside tools and services (MCP servers) and manages their sign-ins.
/pluginAdds and manages plugins: bundles of skills, helpers and connections.
/hooksShows your hooks: small scripts that run on their own before or after Claude acts.
/loopRepeats a request on a timer while this session stays open. Leave the timer off and Claude sets its own pace.
/loop 10m check whether the build passed/batchPlans one big change for you to approve, then splits it into 5 to 30 parts and runs a helper on each in its own copy of the project. Each helper opens a pull request (a change waiting for your OK) or reports back, so the project needs a copy on GitHub or a similar site.
/batch add alt text to every image on every page/modelSwitches the model and remembers it. With no name, a picker opens, and the left and right arrows set how hard it thinks.
/model opus/effortSets how hard Claude thinks: low, medium, high, xhigh, max, or auto.
/effort high/fastTurns fast mode on or off: quicker answers at a higher price. On a Claude plan it's paid from usage credits (extra spending you switch on), even if your plan has use left.
/fast on/usageShows what this session cost, your plan's limits and your activity. /cost and /stats open it too.
/permissionsSets what Claude may do without asking, and which folders it can reach.
/configOpens Settings.
/themeChanges the colour theme, including a colour-blind-friendly one.
/terminal-setupMakes Shift+Enter type a new line in editors like VS Code, Cursor and Zed.
/keybindingsOpens your keyboard shortcuts file, so you can change keys.
/helpLists the commands you can use right now.
/doctorChecks your setup, suggests fixes and applies them once you say yes.
/powerupOpens short lessons with demos, inside Claude Code.
/feedbackSends feedback or a bug report to Anthropic. /bug opens the same form.
/release-notesShows what changed in each version.
/desktopMoves this session into the Claude desktop app, on Mac or Windows. /app does the same.
/remote-controlLets you steer this session from claude.ai or the Claude phone app. /rc for short.
/rc/scheduleSets up tasks that run in the cloud on a schedule.
/schedule every Monday at 9, sum up last week's issues/chromeSets up Claude in Chrome, so Claude can use your browser.
/backgroundSends this session to the background, so it keeps working while you do something else. /bg for short.
/bg/tasksLists the work running in the background.
claudeStarts Claude Code in the folder your terminal is in.
claude -cPicks up your last conversation in this folder.
claude -rOpens a list of earlier conversations to pick up.
claude --permission-mode planStarts straight in plan mode.
claude -wStarts in a separate copy of your project (a worktree), so this work can't clash with other work.
claude -w new-headerclaude -pAnswers one request, prints the answer and stops.
claude -p "sum up README.md in three lines"Checked against Anthropic's Claude Code docs on Nov 14, 2026. Open Anthropic's command list.