Skip to content

Claude Code Tutorial: How to Use Claude Code in 9 Steps

One weekend, nine steps and a one-page site for a dog-grooming salon, in the terminal, VS Code or the desktop app, plus 10 Claude Code tips and fixes for common problems.

By Yotam DahanUpdated 16 min readClaude Code

How to use Claude Code: the plan it wrote in plan mode for a dog grooming salon page, next to the finished page on a phone

Here is how to use Claude Code: start it in a project folder, describe the result you want in plain English, let it plan, approve or review what it changes, and check the result yourself before you move on. This Claude Code tutorial for beginners shows how to use Claude Code step by step on one small, real project you can finish over a weekend: a one-page website for a local business. You will see exactly what to type, how permissions and plan mode work, and how to undo a step that went wrong.

How to use Claude Code in five moves

The example business, Muddy Paws Grooming, a dog-grooming salon, is made up: swap in your own or a friend's and you finish with something useful.

The weekend at a glance
  1. Brief

    Describe the page in plan mode and answer Claude's questions

  2. Build

    Approve each file in Manual mode

  3. React

    Give short, specific feedback like a client would

  4. Undo

    Rewind any step that made things worse

  5. Review

    Ask for a check with evidence, then check it yourself

Where the evidence comes from: the screenshots are from our interactive session of October 20, 2026 (Claude Code 2.1.303 with Opus 5.5), and the questions, times and costs from logged runs on November 1 (English) and November 6, 2026 (Spanish, Portuguese, French). The Step 5 feedback exchange is an example, not a transcript, and every label and price was re-checked on November 6 for version 2.1.318.

What you need before you start

  • Claude Code installed and signed in. The official installer is curl -fsSL https://claude.ai/install.sh | bash in the Mac Terminal or irm https://claude.ai/install.ps1 | iex in Windows PowerShell; the steps to install Claude Code on Mac and Windows cover the desktop app and the usual errors.
  • A paid Claude plan, since the free plan doesn't include Claude Code. (If you're wondering how to use Claude Code for free, the FAQ below covers the open-model workaround and its limits.)
  • The business details: name, what it sells, three services with prices, opening hours, area, phone number, a booking link if there is one, and two or three real customer reviews.
  • A couple of focused sessions: one on Saturday to build, one on Sunday to polish.

I use the terminal below; the section after Step 9 shows the same controls in VS Code and the desktop app.

What this tutorial costs

What you usePriceWhat to know
Claude Free plan$0No Claude Code
Claude Pro$20 monthly, or $200 for a year (about $17 a month)The cheapest plan with Claude Code
Claude Max$100 a month5x Pro's usage
Claude Ultra$200 a month10x Pro's weekly usage, no 5-hour limit once verified
API billing (Claude Console)Per tokenOur plan and build steps: $0.61 at list prices

Prices from Claude's pricing page, before tax, checked on November 6, 2026.

Saturday morning: how do you set up a Claude Code project?

You set up a Claude Code project in three moves: start Claude Code in an empty folder, switch it to Manual mode, and write the brief in plan mode so Claude asks its questions before it touches a file.

Step 1: start Claude Code in a project folder

Claude Code can read everything inside the folder you start it in, so a clean folder keeps your other files out of reach. Here is how to use Claude Code in Terminal, the Mac's built-in command app:

Terminal
mkdir -p ~/claude-projects/muddy-paws
cd ~/claude-projects/muddy-paws
claude

On Windows, in PowerShell:

PowerShell
mkdir -Force "$HOME\claude-projects\muddy-paws"
cd "$HOME\claude-projects\muddy-paws"
claude

Step 2: pick a permission mode

Claude Code has permission modes: settings that decide which actions it can take without asking you. You cycle through them with Shift+Tab (Alt+M on some Windows setups), and the line under the prompt shows the current one. Current versions open each new terminal or VS Code session in auto mode, so switch before you build.

ModeThe status line showsWhat happensUse it when
Manual⏸ manual mode onReads freely, asks before every file edit and commandFirst projects, anything sensitive
Accept edits⏵⏵ accept edits onEdits files and runs file commands such as mkdir, mv and even rm without asking; asks for anything elseYou trust the direction and review after
Plan⏸ plan mode onExplores and writes a plan; your files stay untouched until you approveChanges you can't describe in one sentence
Auto⏵⏵ auto mode onA separate AI reviewer approves routine actions and blocks risky onesLonger tasks, once you know the ropes

The Claude Code accept edits vs auto mode difference is the one that matters: accept edits skips the questions only for file changes and simple file commands, while auto mode runs other commands too, after its safety check.

To never start in auto by accident, pick the mode at launch, as Claude Code's own help screen shows:

Terminal output of claude --help showing how to use Claude Code permission modes at startup and how to continue or resume a conversation
Start with claude --permission-mode manual while you learn; --continue and --resume reopen earlier conversations. Claude Code 2.1.303 on a Mac, October 2026.

When Claude Code needs your OK, it shows a prompt like this one, from a real session of ours:

Real Claude Code permission prompt asking to run a command, with options Yes, Yes and don't ask again, Yes and switch to auto mode, and No
Claude Code wanted to list the project's photos and check their sizes. The description under Bash command says what the command is for, in plain words.
  • Yes approves this one action.
  • Yes, and don't ask again saves a rule, so that command stops asking in this project (file-edit approvals last until the session ends).
  • Yes, and switch to auto mode hands routine approvals to the background reviewer.
  • No declines, like Esc; press Tab first to add a note such as "No: use the photos in the images folder".

Step 3: write the brief in plan mode

Press Shift+Tab until the status line reads ⏸ plan mode on, or type /plan at the start of your message. Then paste a brief like this one, with your details filled in:

The project brief
I want a one-page website for Muddy Paws Grooming, a dog-grooming salon in [TOWN].

Audience: busy dog owners who live nearby and mostly book from their phones.
Goal: get them to tap "Book a groom" ([BOOKING LINK]) or call [PHONE NUMBER].

Sections, in this order:
1. Headline saying what we do and where, with the booking button
2. Three services with prices: [SERVICE AND PRICE] x3
3. Opening hours and address
4. Two customer reviews: [PASTE REAL REVIEWS]
5. Contact: phone, email and a map link

Style: friendly and clean, lots of white space, large text, easy to use on a phone.
Constraints: one index.html file and one styles.css file. No frameworks. No photos I haven't approved.
Done means: I can open index.html in my browser and everything above is there and readable on a phone.

Before you write anything, ask me up to five questions about what's missing, then propose a plan.

In our logged re-run of November 1, 2026, Claude (Opus 5.5, the default model on paid plans) asked five questions: opening hours, the street address for the map link, the contact email, brand colours or a logo, and whether prices were fixed or "from" prices that change with the dog's size. Its plan listed both files, every section in order, a phone-width check and one extra: a Book and Call bar fixed to the bottom of the screen on phones.

In our October interactive session, the questions came as tabs with suggested answers:

Claude Code plan mode asking its first question about the salon's address and opening hours, with suggested answers and tabs for the other questions
Use the arrow keys to pick an answer, or choose Type something to write your own. Your project files stay untouched while plan mode is on.
Your three choices when the plan is ready

Yes, and use auto mode

Approve the plan and let the background reviewer handle routine actions.

Yes, manually approve edits

Approve the plan and review every edit yourself. Pick this one for your first project.

No, keep planning

Nothing gets built yet: type what Claude should revise in the plan first.

Saturday afternoon: how do you build the page and give feedback?

Build in Manual mode so you approve each file, open the page in your browser, then react like a client: one short, specific change per message, and rewind any change that makes things worse.

Step 4: approve the build step by step

Claude now creates index.html, then styles.css, and before each file it shows what it is about to write and waits for your answer. Approve when it matches the plan, and look closer at any command that deletes files or reaches outside the folder.

Claude Code in manual mode showing the end of index.html and asking Do you want to create index.html?
This is the moment to read before you answer. Option 2 lets the rest of the file edits through for this session.

When it finishes, double-click index.html to open the page, or on a Mac type ! open index.html in Claude Code: the ! runs it as a plain command instead of a request to Claude.

Our logged re-run, from the first prompt to two finished files with no approvals to wait for:

28s

in plan mode: five questions and a plan, with no project files touched

64s

to write index.html and styles.css, 436 lines in total

$0.61

for both steps at API list prices; on a paid plan it counts toward your usage instead

Our re-run, November 1, 2026: Claude Code 2.1.303 with Opus 5.5, unattended (plan mode, then Accept edits), times and cost from Claude Code's own run report. In Manual mode, add the time you spend reading and approving each file.

Every section, price, review and link matched the brief, and the page fit a 390-pixel phone screen without sideways scrolling. With nobody at the keyboard, though, Claude's request to screenshot the page at phone width never got its OK, so it skipped that check and said so.

In a normal session you approve that request. In our October interactive session we did, and Claude's closing message listed what was still placeholder:

Claude Code summary after building the dog grooming page: sections, a sticky booking bar on phones and four placeholders marked REPLACE
The finished page is the phone screen at the top of this guide. The four REPLACE markers are what's left for you.

The result held when we changed the business and the language: same brief and model, local salons and prices, logged on November 6, 2026.

Logged run, November 6, 2026Guadalajara, SpanishCuritiba, PortugueseNantes, French
Questions before the plan555
Prices and reviews kept word for wordYesYesYes
Page language set without being askedes-MXpt-BRfr
No sideways scroll at 360 to 390 pxYesYesYes
Booking buttonWhatsApp link with a ready messageWhatsApp link with a ready messageThe booking link
Both steps at API list prices$0.42$0.43$0.39

None of the three added a legal notice, which French law requires on a business site (French administration's list): check your own country's rules before you publish.

Step 5: give feedback like a client

This is where most of the value comes from. React like a picky client: short, specific, one thing at a time. The exchange below is an example of that style, written for this guide, not a logged session:

Example feedback, one change at a time
  1. You:

    The booking button disappears under the photo on my phone. Move it directly under the headline and make it full width on small screens.

  2. Claude Code:

    I'll move the button below the headline in index.html and add a rule to styles.css so it spans the full width on narrow screens.

  3. You:

    Good. Now make each price bold and line them up on the right of each service name.

  4. Claude Code:

    Updated the services list: names on the left, bold prices on the right. Refresh the page and check it at phone width.

Type @ and a file name, such as @brand.txt, to point Claude at that file, or paste a screenshot (Ctrl+V in most terminals) to show a problem. A correction typed mid-task is read after the current step; Esc stops it at once.

Step 6: undo the last change with rewind

Sooner or later a change makes things worse. You have three ways back:

  1. Ask. "Undo that last change" works for simple cases.
  2. Rewind. Press Esc twice while the prompt is empty, or type /rewind (/undo does the same), pick the message from before things went wrong, and choose what to restore.
  3. Go back to a saved version, if you use git, a free tool that stores named snapshots of a project.

Here is the Claude Code rewind screen from another practice project, after picking a message:

Claude Code rewind confirmation offering Restore code and conversation, Restore conversation, Restore code, or summarize
Restore code undoes the files and keeps the chat, which is usually what you want. Note the warning at the bottom about changes made by commands.

For a proper safety net, ask for one. Most Macs include git already; on Windows, install Git for Windows first.

Save a version you can return to
Turn this folder into a git repository and save the current version with a clear description of what works.

Sunday: how do you make the page solid before it goes live?

Make it solid with three habits: write your decisions into CLAUDE.md, ask Claude for a review with evidence and then check the page yourself, and decide where it will be published.

Step 7: write down what you agreed on

Save the decisions you made about colors, tone and "always check phone width" so you never repeat them:

Turn decisions into standing rules
Create a CLAUDE.md file for this project with the business details, the style rules we settled on, and a rule to check the page at phone width before saying you're done.

CLAUDE.md is a plain text file of standing instructions that Claude Code loads whenever a session opens in this folder (edits made mid-session apply after /clear or in the next session). The built-in /init command drafts one from your files, but only the prompt above captures the decisions you made together; the guide to the CLAUDE.md file has templates.

Step 8: ask for a review with evidence

The picky-client review
Review the page like a picky client. Check that every section in my brief is there, every link and the phone number work, text is readable at phone width, images have alt text, and no name, price or time differs from my brief. Fix what you can, then list what you changed and what you still need from me.

Then check it yourself: click every link, narrow the window to phone width and compare every price with your list. With git set up, /diff shows what changed since the last saved version.

Step 9: decide where it goes live

Publishing is its own job: a domain, hosting, a privacy notice where the law asks for one, and settings so search engines find the page. The landing-page module of our Claude Code course (early access, open for pre-order) covers it, with lessons on accessibility and privacy and on publishing on Vercel.

How to use Claude Code in VS Code or the desktop app

The nine steps work the same outside the terminal; only these controls move, per Anthropic's VS Code docs and desktop quickstart (checked November 1, 2026):

What you doDesktop app (Code tab)VS Code extension
Switch to Manual or PlanMode selector under the prompt boxThe mode label in the prompt box's bottom row (Accept edits is called Edit automatically there)
Approve an editIn Manual, a diff with approve and decline buttonsIn Manual, a side-by-side diff: accept, reject or say what to do instead
Undo a stepAsk Claude to undo it, or go back to your git versionHover over a message and click the rewind button

10 Claude Code tips for beginners

  1. One outcome per message. "Make the booking button full width on phones" beats five wishes in one paragraph.
  2. Point, don't describe. @styles.css makes Claude read the right file instead of searching.
  3. Let it interview you. For anything bigger than a tweak, end with "ask me questions until you have what you need".
  4. Plan what you can't say in one sentence. For small fixes, planning only adds steps.
  5. Stop early. Press Esc the moment it heads the wrong way.
  6. Two strikes, fresh start. Corrected the same thing twice? Run /clear and write a better first prompt.
  7. One task per session. /clear between unrelated jobs; /resume finds old conversations.
  8. Ask for evidence. "List the files you changed" beats "is it done?".
  9. Keep side questions aside. /btw answers without adding to the main conversation.
  10. Let the tool teach you. /powerup runs short lessons, and our Claude Code cheat sheet lists the shortcuts, plus the commands for skills, MCP, hooks and subagents.

Common problems and fixes

The snags beginners hit most, worded as in Anthropic's error reference:

What you seeWhat it meansFix
Esc twice clears your text instead of opening rewindDouble Esc only opens the menu on an empty promptPress Esc twice again, or type /rewind; Up brings your text back
A file is still gone after you rewoundA command such as rm changed it; rewind only tracks file editsRestore it from git or your copy
Context limit reached · /compact or /clear to continueThe conversation is too long/compact, or /clear and restart from CLAUDE.md
You've hit your 5-hour limit (session limit before version 2.1.312)This window's share of your plan is usedWait for the reset time; /usage shows your limits

Once the loop feels routine, add one feature at a time, when a real task asks for it: a skill for a procedure you repeat, an MCP connection to an app such as Notion, a hook that runs a check after every edit, or a subagent for a side job such as checking every link.

Quick check0 of 3 correct

Which mode lets Claude explore and propose a plan without editing your files?

A change made things worse. What opens the rewind menu?

What is the best kind of feedback to give?

What to do next

Run the loop once more this month on a second small job you would otherwise pay for or keep postponing: brief in plan mode, build in Manual, review with evidence, save what you learned in CLAUDE.md. Pick one from our Claude Code project ideas, sized from one hour to one weekend, and start from the weekend worksheet below this guide: the blank brief, the prompts in order and the 15-point review checklist. If you would rather be walked through it, the Claude Code course takes the same loop to a published landing page, an AI video and an invoice agent, and our roundup of the best Claude Code courses compares free and paid options.

Weekend project worksheet

A fill-in project brief, the full prompt sequence from this tutorial, a 15-point review checklist and an approve-or-stop table for permission prompts, ready for your next small build.

Enter your email and the full section opens right here.

No spam. One click to unsubscribe. We use your email to send you this bonus, new guides and news about our courses.

Frequently asked questions

How long until I can build something useful with Claude Code?

About one weekend for a first small project like this one. In our logged run Claude needed 28 seconds to plan and 64 seconds to write the files; the rest of the time goes into your brief, your feedback and your own checks. Skills, connectors and automation are easier to pick up later, one at a time, when a real task needs them.

What happens if I close the terminal in the middle of a task?

The task stops, because a normal local session only runs while Claude Code is open, but the conversation is saved on your computer. Open a terminal in the same folder and run claude --continue to pick up the most recent conversation, or claude --resume to choose an older one.

Does Claude Code remember what we did in an earlier session?

Not by default: every new session starts with a fresh context. Knowledge carries over through your CLAUDE.md file and the auto memory notes Claude Code keeps, and you can reopen an old conversation with /resume.

Where do I get the Claude Code extension for VS Code?

In VS Code's Extensions panel, look up Claude Code and pick the one published by Anthropic. It requires VS Code 1.94 or newer, and the same extension installs in Cursor. Open it with the Spark icon and sign in with your Claude account. JetBrains editors such as IntelliJ and PyCharm have a plugin too.

Can I run two Claude Code sessions at the same time?

Yes. You can open Claude Code in two terminal windows, or run sessions side by side from the desktop app's sidebar. If both work on the same files at once, give each its own folder or git worktree so their edits don't collide.

Can I use Claude Code for free?

Not with Claude's own models: the free Claude plan doesn't include Claude Code, so you need a paid plan or API credits. Ollama can connect Claude Code to free open models running on your own computer, but they are weaker than Claude and need a powerful machine, so treat that as an experiment rather than the same tool.

Keep reading