← All guides

Guide · First project · ★☆☆☆☆

Claude Code for beginners: build your first project

This site started as one HTML page and a few prompts. Here are those first prompts, word for word, what came back, and the one thing I had to correct.

By Arthur Hsiao · Last updated · 7 min read

Before you start. You need Claude Code installed and signed in on a paid plan. If you haven't done that yet: which plan you need, then install Claude Code on Windows.

A few words first

  • Terminal: the text window where you type commands (PowerShell on Windows).
  • Project folder: the folder Claude Code works in. It reads and edits files there.
  • Prompt: what you type to Claude, in plain words.
  • Diff: a view of a change, with removed lines and added lines side by side or in red and green.

Why Claude Code, not Claude chat

Claude chat answers in a window and you move the code yourself. Claude Code runs in your project folder and edits the files, so every file it creates or changes shows up in the editor's file list and in the diff. Nothing happens somewhere you can't see.

That is the real benefit. With chat, a wrong answer is just text. With Claude Code, a wrong answer is a file in your project, so the check matters more, and it is also easier:

  • You spot a file you didn't ask for before it gets committed.
  • You catch code you don't understand while it is still one file, not twenty.
  • You can undo it with git, because the folder is a repository.

On this site my rule is: read every change before it lands. It is the third of my five steps. Chat is still fine for a quick question, a rough idea or a one-off snippet you will paste yourself. Once the work is a project with many files, move to Claude Code.

1Open a folder

Make an empty folder for the project and start Claude Code inside it:

mkdir C:\Users\you\Documents\my-site
cd C:\Users\you\Documents\my-site
claude

In VS Code, open the folder with File, then Open Folder, and click ✻ Claude Code in the bottom-right corner to open the Claude panel. Both read the same folder. More in Claude Code in VS Code.

2Type the first prompt

Say what the project is and what you want now. This is the very first prompt of this site, on 26 Oct 2026. The folder already had one page, guide.html:

this project will be main website for ah dev studio. but for now just likc a quick
access to the guide. this project will be deployed to cloudflare via github link

Typos are fine. Claude read the folder first, then replied:

No secrets in the guide, so it's safe to publish. I'll add a small landing page in the
same style. The guide is missing a mobile viewport tag, so I'll add that too.

It made a new index.html with one card linking to the guide, and fixed something I hadn't asked about: the guide was laid out for A4 printing, so on a screen the text ran to the edges. It explained both changes in its last message.

3Read the permission prompt

Before Claude runs a command or edits a file, Claude Code may stop and ask. A prompt for a command looks like this (the example from Anthropic's docs):

Bash command
  Run the test suite
  npm test
  This command requires approval

Do you want to proceed?
  1. Yes
  2. Yes, and don't ask again for: npm test *
  3. Yes, and switch to auto mode
  4. No

Read the command line before you answer. "Yes" allows it once. "Don't ask again" saves a rule so it won't ask next time. "No" stops it, and you can say why.

You may see fewer of these than you expect. Since Claude Code v2.1.283, new sessions start in auto mode, where a background check reviews commands instead of asking you each time. What each mode does, and when to say no, is in Claude Code permissions.

4Look at the diff

Don't keep a change you haven't looked at. Two ways:

  • In VS Code: in Manual mode, Claude shows the old and new file side by side and asks before saving. You accept, reject, or tell it what to do instead.
  • In the terminal: type /diff to see what changed in the folder, including Claude's edits.

You don't need to understand every line. Check that the files it touched are the ones you expected, and that nothing was deleted that you wanted.

5Run the result

A one-page site needs no build step. Double-click index.html and it opens in your browser. For a bigger project, ask Claude how to run it:

how do I run this on my PC?

Look at the result yourself. Claude often says so when it hasn't. After my second prompt it ended with:

I haven't opened the page in a browser to check how it looks. The card titles and
descriptions are placeholder text, so edit them to match what you actually plan to add.

That second prompt was short and vague:

make home page to be like will be more thing coming soon

It added two "coming soon" cards with made-up text. Vague in, guessed out. How to write prompts for Claude Code shows how to be clearer.

6Fix what it got wrong

Claude put the guide at the address /guide. It worked, but I wanted each guide at its own address. I'd already sent the /guide link to people, so I needed a redirect too:

only send one link out for guide. but a bit silly. routing should/guide/claude-gemini-mcp.
anyway to redeirct for now? after this fix

It moved the file to guide/claude-gemini-mcp.html, added a _redirects file so the old /guide link forwards to the new one, and updated the home page link. It also picked a temporary redirect and said why: browsers remember a permanent one for good.

That is the normal loop: prompt, read, run, correct. Expect to need a follow-up. One prompt rarely finishes the job.

7Save your work

Before the next big change, save a copy you can go back to. Claude Code can undo its own edits, but Git is the real safety net. Both are in how to undo in Claude Code.

Where to go next

In this order:

  1. Claude Code permissions: what to allow and what to refuse.
  2. How to undo in Claude Code: rewind, checkpoints and Git.
  3. How to save tokens in Claude Code: why it forgets, and /clear vs /compact.
  4. How to write prompts for Claude Code: real before and after pairs.
  5. Claude Code in VS Code: the panel I use every day.
  6. Claude Code cheat sheet: the commands on one page.

Then give Claude your project's rules in a CLAUDE.md file, and make it plan big changes first with plan mode.