Most Claude Code builds fail the same way. One giant prompt — "build me a whole app" — and you get a pile of code you cannot review, cannot test, and cannot fix when it breaks.
I build systems for real businesses at Erudience. The test for every system I ship is simple: it has to survive real use, and it has to still run in real use.
Claude Code is no different. The method that works for me is boring: plan first, build in small slices, test every slice by hand, commit every slice. I used it to build a Quote Calculator + Enquiry Form for a small service business — Node.js + Express, plain HTML/CSS/JS, no build step, Git from the start.
The full 20-page guide, with all 9 copy-and-use prompts, is free at the end of this post. This article is the working version: the files, the commands, and the four slices.
The project
One page, three parts. A visitor picks a service, gets an instant estimate, and sends an enquiry. The owner sees it on a simple admin list.
In the worked example the services are Website Fix (from £150), Landing Page (from £300), and Automation Setup (from £400). Extra pages are +£50 each. Rush is +25%. Those prices are illustrative only — change them to your business.
The visitor sees one number, labelled "Estimate only — final quote confirmed after review."
Behind the scenes, enquiries are saved in data/enquiries.json. No accounts, no payment, no database server in v1. The admin page at /admin lists enquiries newest first, protected by a password you set in .env.
The rule for the whole build:
Claude writes. You decide and you verify.
Claude Code can read files, edit files, and run commands in the folder you start it in. Work inside one project folder, read the changes, and approve commands you do not understand instead of waving them through. Never paste passwords, API keys, or payment details into a prompt. Secrets go in .env, and .env must be in .gitignore before your first commit.
Before you start
A computer with a terminal. A Claude account that includes Claude Code access — the free plan does not include it, so check your plan first. Node.js (long-term support) and Git, both from their official sites. VS Code is a good default.
node --version git --version Each one should print a version number. If one says "command not found", install it from its official site first, by hand. Do not ask Claude Code to fix your machine setup.
Install commands change, so verify them in the official Claude Code docs (https://code.claude.com/docs) before you run them. The guide is an independent tutorial — it is not affiliated with or endorsed by Anthropic.
Step 1: Install and run your first session
mkdir quote-calculator cd quote-calculator git init claude On first run, follow the browser sign-in prompts. Claude Code will ask whether you trust this folder. Only say yes for a folder you created or a project you know.
Then run this first prompt. Do not write any code yet:
"This is an empty new project. Do not write any code yet. Tell me: 1) what files exist here now, 2) what you would need to know from me before building a small web app here, in a short list."
That prompt does two jobs: it proves the session works, and it teaches the habit for the whole guide — ask first, build second.
Commands you will use in almost every session: /init, /plan, /diff, /clear, /compact, /config. /plan plans without editing. /diff shows what changed so you can review before accepting. /clear starts a new task cleanly. /compact summarises a long conversation while keeping the key points.
My first-session routine, every time: open the terminal inside the project folder, run git status first, start claude, state the one job for the session, work on that one job only, and end by running the app, reviewing /diff, and committing. A session that ends without a commit is unfinished work.
Step 2: Set up the project so Claude understands it
A short, specific CLAUDE.md is the highest-value file in the project. Run /init for a starter, then replace it with a version like this:
# Quote Calculator + Enquiry Form ## What this is A one-page quote calculator and enquiry form for a small service business. Visitors get an instant estimate and send an enquiry. Enquiries are saved and listed on an admin page. ## Stack - Node.js + Express, plain HTML/CSS/JavaScript - File-based storage in data/enquiries.json - No build step, no frontend framework ## Commands - Run the app: npm start - Run checks: npm test ## Rules - Keep it simple. No new dependency without asking me. - Never store secrets in code. Use .env, never commit it. - Change one slice at a time. Run the app after each slice. - Prices live in ONE place: config/prices.js - Every form field must be validated on the server. Keep it short — about one page. If CLAUDE.md grows into an essay, Claude starts ignoring parts of it and you stop updating it. Put repeat tasks in prompts, not in this file.
Set .gitignore before the first commit:
.env node_modules/ data/*.tmp Run git status and read the list before every commit for the first week. If .env ever appears in that list, stop — fix .gitignore first, commit second.
Step 3: Plan before you code
Write the spec in plain words in SPEC.md first. Services, options, what the visitor can do, what the owner can do, and the rules: server validates every field, enquiries saved to data/enquiries.json, no accounts, no payments, no email sending in v1, app runs with npm start.
Then run /plan and send:
"Read SPEC.md and CLAUDE.md. Make a step-by-step build plan in 4 slices. For each slice, list: the files you will create or change, what the user will be able to do when it is done, and how we will test it by hand. Do not write code yet. Flag anything in the spec that is unclear or risky."
Read the plan like an owner. Does slice 1 give you something you can see on screen? Is any slice doing three jobs at once? Ask Claude to split it. Did it add anything not in the spec — a login system, a database server, a design library? Say no and keep v1 small.
Approve the plan only when you could explain it to someone else in one minute.
Step 4: Build in 4 slices
Never ask for all four at once. One slice, hand-test it, commit it.
Slice 1 — the page
Build the Express server and the one-page form: service choices, options, name, email, message, and an estimate box with placeholder text for now. No calculation, no saving yet.
Test: run npm start, open the page, check every field is visible and readable at phone width.
Commit: Slice 1: page and form.
Slice 2 — the maths
Put all prices in config/prices.js as the only source of prices. Calculate in the browser as the visitor changes choices: base price, +£50 per extra page, +25% if rush is selected. Show one number, labelled "Estimate only — final quote confirmed after review."
Test: work through three worked examples yourself with a calculator. Try the edges — no service picked, rush with the cheapest service, maximum options. The number must never be zero, negative, or blank.
Commit: Slice 2: calculator with prices in one config file.
Slice 3 — submit, validate, save
On submit, validate on the server: name required, email must be a valid format, message required, service must be one of the three in prices.js. If validation fails, show a clear message and save nothing. If it passes, save the enquiry with date, service, estimate and a reference number like Q-1001 to data/enquiries.json, and show a thank-you with that reference. No email in this version.
Test: one good enquiry, then three bad ones — empty name, broken email, no service — each rejected politely and none saved. Open the JSON file and read the one good record yourself.
Commit: Slice 3: validated submit and saved enquiries.
Slice 4 — admin list and polish
Add /admin protected by a password read from ADMIN_PASSWORD in .env — never hard-code it, never commit .env. The admin page lists enquiries newest first: date, reference, name, service, estimate, message. Then polish: page title, one clear heading, estimate disclaimer, phone-width check.
Test: wrong password must fail, right password must list.
Commit: Slice 4: admin list and polish.
Stop rule: if a slice fails its hand test twice after fixes, stop adding features. Fix that slice first. New features on a broken base is how projects die.
Prompts that work
A good prompt names the file or feature, the exact behaviour, the limits, and how to prove it worked. Four parts: where, what, limits, proof.
Prompts I keep and reuse:
- Explain before editing: "Before changing anything, explain in plain words what causes [the problem] and which files you would change. Wait for my go-ahead."
- Small change only: "Change only [one thing] in [file]. Nothing else. Show me the diff when done."
- Review your own work: "Review the changes in this slice as a careful reviewer. List bugs, missing validation, and anything that could break with real user input. Do not fix yet — list first."
- Write the test first: "Write a failing test for [behaviour] first, show me it fails, then make the smallest change that passes it."
Prompts that cause trouble: "Build the whole app." "Make it better / modern / professional." "Fix everything you find." Pasting an error with no context. Always add: what you did, what you expected, what happened instead.
One bug, one fix, one test. If you report three bugs in one prompt, you get three half-fixes you cannot separate when one of them breaks something else.
Step 5: Test, review, fix — then ship
The 15-minute final test: stop the app, start it again with npm start — it must start cleanly, first try. Calculate an estimate, submit a good enquiry, note the reference. Submit a bad enquiry on purpose — it must be rejected and not saved. Open /admin, find the good enquiry at the top. Resize to phone width. Restart the app — the enquiry must still be there.
Run /diff after each slice and actually read it. Look for files changed that should not have been, prices or rules changed without you asking, and any secret written into code.
Then write the README with this prompt:
"Write README.md for this project for a non-expert owner. Include: what it does in three lines, how to install and run it step by step, how to set the admin password in .env, how to change prices in config/prices.js, where enquiries are stored, and the known limits of v1. Keep it short enough to read in five minutes."
Read the README yourself. Every command in it must be one you have actually run.
Final commit and tag:
git add . git commit -m "v1 complete: calculator, enquiries, admin" git tag v1.0 Then the fresh-start test: copy the project folder to a new name, leave out .env and node_modules, and follow only the README — install, set a new admin password, run, submit a test enquiry, check /admin. Write down every step where the README failed you, and fix the README or the project until a clean copy works. Demos work on the builder's machine, with the builder's memory filling the gaps. Real systems have to survive a fresh start, a different day, and a person who was not in the room.
The loop, for your next project
- Folder + Git + CLAUDE.md.
- SPEC.md, then plan mode — approve the plan before code.
- Slices: build, hand-test, commit. Repeat.
- /diff, bug-report prompts, one fix at a time.
- README, tag v1.0, fresh-start test.
That loop works for a booking form, an internal tracker, a small API, or a tool for one client. The project changes. The loop does not.
Free resource: the full 20-page guide
The full guide has everything above in order, with all 9 copy-and-use prompts, the prompt library, the test/review/fix workflow, and the troubleshooting table — the five mistakes that cause most failed first builds, and what to do when the app worked and then broke after a "small fix".
Get it free here: Claude Code — Build a Real Project End to End (free PDF) — https://automatewithbishal.gumroad.com/l/claude-code-tutorial
Pick the real version of this project for your business — your services, your prices, your name on it — and run the loop once, this week, while the steps are fresh. One finished small system teaches more than ten planned big ones.
I run Erudience, an AI automation agency. I write about the method behind that work at Automate with Bishal (https://automationwithbishal.substack.com).
Erudience (https://erudience.com) · bishal-paul.com (https://bishal-paul.com) · LinkedIn (https://www.linkedin.com/in/bishal-paul)
Drafted with AI assistance, reviewed and edited by Bishal Paul. This is an independent tutorial, not affiliated with or endorsed by Anthropic. Claude Code is a product of Anthropic — verify install commands in the official Claude Code docs.