← Back to all free guides

How Anthropic
Uses Claude Code

The real practices from the team that built Claude Code. 8 tips most people have no idea exist, with the exact commands and copy-paste prompts for each.

Most "Claude Code tips" online are guesses. These come from Anthropic’s own write-up on how its teams use Claude Code and the official best practices. I checked every command against the current docs.

Tip 1: Their #1 Rule

01

Give it a check to run

Claude stops when the work looks done. If it has nothing to run that says whether it actually is done, the docs put it plainly: you become the test suite.

So give it something that comes back pass or fail, like a test file, a build, a linter or a browser screenshot next to the mockup. Then Claude closes the loop itself. It makes the change, runs the check, reads the output and fixes it until it passes. And always ask for evidence, because "all tests pass" on its own tells you very little.

A prompt with a built-in check
Write a validateEmail function. Test cases: user@example.com is true, "invalid" is false, user@.com is false. Write the tests first, run them after you implement it, and keep fixing until they all pass. When you're done, show me the exact command you ran and its output as proof. Don't just tell me it works.

For long runs, /goal sets a condition a separate model checks after every turn, and Claude keeps going until it’s met.

Tip 2: Plan Before You Build

02

Explore, then plan, then code

Letting Claude jump straight to code is how you get a beautiful solution to the wrong problem. Press Shift+Tab to cycle into plan mode, or start a message with /plan. In plan mode Claude reads files and explores, then writes a plan without editing your code until you approve it.

Put your effort into that plan. If something goes sideways mid-build, go back and re-plan instead of patching. My rule of thumb: if you can describe the change in one sentence, skip planning and just ask.

Start plan mode with exploration
/plan Read the files involved in [what you want to change] and explain how it works today. Then write a step-by-step plan: which files change, in what order, what could break, and how we'll check it worked (the test or command to run). Ask me about anything you're unsure of before finalizing. Don't edit any code yet.

Tip inside the tip: press Ctrl+G to open the plan in your text editor and tighten it before Claude runs.

Tip 3: Make It Correct Itself

03

Turn mistakes into memory

Claude loads a file called CLAUDE.md into every session. It’s your project’s standing instructions. So when Claude gets something wrong, don’t just fix it this once. Ask it to add a rule.

If you just say "remember that", Claude saves it to its own auto memory. To put it in CLAUDE.md, say so directly, or edit the file with /memory. Keep the file lean. Anthropic recommends under 200 lines, and every line costs a little attention on every task.

After any mistake, paste this
That wasn't what I wanted. Here's what I expected instead: [what you wanted]. Add a one-line rule to CLAUDE.md so this doesn't happen again. Keep it short and specific, and only add it if you couldn't have figured it out from the code. Show me the line you added.
Tip 4: Never Accept The First Answer

04

Push it

Working isn’t the same as best. Treat the first version as a draft and push with these.

Make it prove it
Prove this works. Show me the command you ran and its output, or a screenshot. Then tell me the weakest part of this solution and what you'd change about it.
Make it rebuild it better
Knowing everything you know now, scrap this and build the version you'd build if you were starting fresh. Be ambitious: handle the edge cases and error states, and include the natural next pieces, not just the minimum I asked for.

The docs call out be ambitious as a phrase that still helps, because Claude tends to build the smallest thing that satisfies your request.

Tip 5: A One-Tap Quality Pass

05

Ship something tighter

After you’ve made changes, type /simplify. Four review agents run in parallel, checking reuse of existing code, simplification, efficiency and whether the change sits at the right level, then apply the fixes. (Commands reference)

/simplify doesn’t hunt for bugs. Its sibling /code-review does, in a fresh subagent that never saw your conversation. Add --fix to have Claude apply what it finds. One pass for quality, one for correctness.

Run both
/simplify /code-review --fix
Tip 6: Split Hard Work Up

06

Use subagents

For big jobs, ask for subagents. Each helper works in its own context and reports back only the answer, so your main conversation doesn’t fill up with everything it read.

Anthropic’s Growth Marketing team built a workflow with two specialized subagents, and it "generates hundreds of new ads in minutes instead of hours." One honest note from the docs. Subagents shine for parallel work and independent review, but each one costs extra usage, and handing the same task to a subagent doesn’t make the answer better.

Parallel research
Use subagents to investigate this in parallel. Have one dig into [part A] and another into [part B]. Each should report back only its findings, with file paths, not everything it read. Then combine them into one short summary and tell me what you'd do first.
Tip 7: Put Busywork On A Loop

07

Use /loop and /schedule

/loop reruns a prompt on an interval while your session stays open, like /loop 15m check CI and fix anything red. /schedule sets up a cloud scheduled task that keeps running with your laptop closed. It needs a claude.ai login, not an API key.

Anthropic’s Product Design team feeds Figma files to Claude Code and sets up autonomous loops where Claude writes the feature, runs the tests and keeps iterating, then they review. Watch the first few runs of anything new before you trust it alone.

A morning report on autopilot
/schedule every weekday at 8am, check [the repo or folder], pull together [the report you want, e.g. open issues and failing tests from yesterday] in [your usual format], and leave it ready for me to review. Don't change any code.
Tip 8: Talk Instead Of Type

08

Use /voice

Claude Code has voice dictation built in. Run /voice, then hold Space and talk. Your words show up in the prompt live, so you can say the big picture and type exact file names in the same message. Prefer not to hold? /voice tap starts and sends with a tap. (Voice docs)

It needs a claude.ai sign-in and a local microphone, and transcription doesn’t count toward your usage. In my experience, prompts I say out loud come out more detailed than ones I type, which is exactly what Claude needs.

Turn it on
/voice
3 More The Team Swears By

01

Let Claude interview you

For anything big, don’t write the perfect prompt. Let Claude pull it out of you, then start a fresh session to build from the spec.

Interview me, then write SPEC.md
I want to build [brief description] but haven't thought it all through yet. Interview me until you could write the spec. Ask about technical choices, edge cases, what's out of scope and tradeoffs I might not have considered. Then write the complete spec to SPEC.md, including a definition of done and the checks that prove it.

02

The writer and reviewer split

Have one session build it and a fresh one review it against your spec. A clean context isn’t swayed by the reasoning that produced the code.

Review against the spec
Use a subagent to review this diff against SPEC.md. Check that every requirement is implemented and the listed edge cases have tests. Report gaps that affect correctness and skip style.

03

Clear context between tasks

Most current models have a 1M-token window and compact on their own, so running out is rare now. /clear between unrelated tasks still gets you better answers and costs less. And if you’ve corrected the same thing twice, /clear and write one better prompt instead of a third correction.

The Idea Under All Of It

Anthropic’s own conclusion is that the most successful teams "treat Claude Code as a thought partner rather than a code generator." Give it a way to check itself, plan with it, correct it, push it and keep the context clean. Do that, and it starts to feel like a teammate.