HL

Build with Claude

A prompt that makes Claude interview you before it builds, plus the habits that stop you running out of credits halfway through a project.

Commands and limits change between versions of Claude Code. Treat the specifics below as a working guide and check /help and the official docs in your own install.

~12 min readInteractive prompt builderBuilt for landing pages

No email capture, no upsell, nothing tracked. Anything you type into the builder stays in your browser.

§ A

The 95% prompt builder

Most wasted credits come from Claude guessing, building the wrong thing, then rebuilding it. Fill in what you know and leave the rest blank. The prompt tells Claude to interview you about the gaps before it writes a line.

Fill in what you know and press Generate. Blank fields are flagged to Claude as "ask me".

How to use it. Paste the result as the first message of a fresh session. Answer in batches. When Claude reaches its confidence threshold it gives you a plan. Read the plan properly, fix what's wrong, then say "go". Ten minutes of questions is cheaper than three rebuilds.

About the "95%". It isn't a measured number. Claude's confidence is a judgement, not a calculation. The value is the stopping rule: it has to name what it still doesn't know, ask about it, and show you a plan before building. If the plan has an assumption you don't like, that's the questions working.

§ B

Why credits vanish

A long chat isn't one long chat. Each reply is generated from everything in the session so far, so the pile you're working from keeps growing. Caching makes the repeated parts cheaper, but a heavy context still eats your limits faster and gives Claude more to lose track of.

Before you type a word, a session already carries some weight. Then your conversation, every file Claude reads and every command output gets added on top.

What's in the pileWho controls itLever
System promptFixedNone
Tool definitions, including every connected MCP serverYou/mcp, disable what you don't need
CLAUDE.md and memory filesYouKeep them short
Your messages and Claude's repliesYou/compact, /clear
Files Claude readsMostly youPoint at files, block junk folders
Command and log outputMostly youPaste the error, not the log

The usual suspects

What it looks likeWhat's really happeningFix
One chat running for daysHuge history re-read every turnUpdate NOTES.md, then /clear
Eight MCP servers "just in case"Tool definitions loaded before you startConnect only what this job needs
"Make it look better" roundsVague prompt, guessed output, redoName the file, section and exact change
Pasting whole files and logsThousands of tokens of noise@file, or the error plus ~20 lines
Biggest model for everythingPremium price for a CSS tweak/model down for simple work
Letting a wrong run finishPaying to generate, then paying to undoEsc early, /rewind
"Review the whole codebase"Reads everything, finds vague thingsScope it to a folder or concern
Starting over after a mistakeRebuilding what already workedGit checkpoints, /rewind

§ C

The habits, ranked by impact

If someone burned through their credits twice, start at the top and work down. It is almost always habits, not plan size.

1

BiggestCompact long sessions

Run /compact at a natural break. It summarises the history so you stop hauling every old message forward. Steer it: /compact keep the file structure, design decisions and open bugs. Compacting is lossy, so anything vital belongs in NOTES.md too.

2

BiggestClear between unrelated tasks

Finished the hero and moving to something unrelated? /clear. Context from a different task is dead weight and can muddy the answers. One task, one session.

3

BiggestLook at the numbers

/context shows what's filling the window. /cost or /usage shows spend or plan limits, depending on how you're signed in. If you're guessing, you're wasting money.

4

BiggestTrim your MCP servers

Every connected server adds tool definitions to the context. Design tools, payments, databases, video, email, all live at once, is a heavy tax before you've asked anything. Run /mcp at the start of each session and switch off what today's job doesn't need. Newer versions defer some tool loading, but it's still worth checking what /context says.

5

BiggestMatch the model to the job

Use /model. Save the strongest model for planning, architecture and hard debugging. Use a lighter one for copy tweaks, renaming, spacing and boilerplate.

6

MediumBe specific

"Make the hero better" takes three rounds. "Hero heading 64px, 24px gap under it, button uses the apricot accent" takes one. Name the file, the section and the change.

7

MediumPlan before building

Plan mode (Shift+Tab cycles modes) or just ask for a plan and approve it. Catching a bad assumption in a ten-line plan beats catching it after forty files changed.

8

MediumKeep CLAUDE.md lean

It loads every session. Stack, commands, conventions, the "never do this" list. Anything rarely needed belongs in a skill, which loads only when relevant.

9

MediumPoint, don't dump

@path/to/file beats pasting a whole file or letting Claude crawl the project. For errors, paste the message and the lines around it.

10

MediumInterrupt early

Esc the moment it heads the wrong way. Double-tap Esc or use /rewind to go back instead of arguing your way out of a bad turn.

11

SmallerBlock junk folders

Keep node_modules, builds and big asset folders out of reach. See the settings example in section D.

12

SmallerUse subagents sparingly

They work in their own context and hand back a summary, which keeps big searches out of your main session. Each one starts cold and has its own cost, so use them for genuine side-quests.

13

SmallerResume, don't re-explain

claude --continue or /resume picks an earlier session back up. For long projects a short NOTES.md gets a fresh session up to speed in one read.

14

SmallerWatch spend over time

Check your usage page regularly rather than finding out at zero. Community tools such as ccusage read your local logs and break usage down by day and session. Vet anything third-party before installing it.

Session-start checklist

Run through this at the start of every session. Ticks are saved in your browser.

0 / 7

§ D

Setup that saves tokens for you

Ten minutes of setup per project pays back every session.

1. Lean CLAUDE.md

Short on purpose. Every line is carried into every session.

# Project: [name]
Goal: [one sentence]

## Stack
- [e.g. static HTML/CSS/JS, no frameworks]
- Deploy: [e.g. Netlify, push to main]

## Rules
- Ask before installing packages or deleting files.
- Edit existing files in place. Don't re-output whole files.
- Mobile first. Keep pages under [X] KB.
- Never touch: [list]

## Design tokens
- Colours: [hex values]
- Fonts: [names]
- Tone: [e.g. confident, direct]

## Status
See NOTES.md for progress and next steps.

2. NOTES.md handoff file

This is what lets you /clear without fear. Have Claude update it before you wipe a session.

# NOTES
## Done
- 

## In progress
- 

## Decisions (and why)
- 

## Open bugs
- 

## Next 3 steps
1. 
2. 
3. 

## Files that matter
- 

3. Keep junk and secrets out of reach

In .claude/settings.json, deny rules stop Claude reading folders that only burn tokens, or files that should never enter a chat. Adjust the paths to your project.

{
  "permissions": {
    "deny": [
      "Read(./.env)",
      "Read(./.env.*)",
      "Read(./node_modules/**)",
      "Read(./dist/**)",
      "Read(./build/**)"
    ]
  }
}

Never paste secrets into a chat. API keys, passwords, tokens, customer data. If a key ends up in a conversation, treat it as leaked and rotate it. Deny-listing .env is a safety net, not a substitute for care.

4. Git is your free undo button

Commit after every section that works. When Claude takes a wrong turn you roll back to the last good commit for zero tokens, instead of paying to explain and repair the mess. If your protege doesn't use git yet, teaching them this is worth more than any other tip here.

§ E

A landing page workflow that doesn't waste credits

Eight steps, in order. The expensive mistakes happen when people skip straight to step four.

  1. Gather first. Logo, colours, fonts, real copy, photos, reference sites, the one action the page should drive. Missing pieces slow everything down later.
  2. Run the prompt builder in section A and answer Claude's questions until it presents a plan you'd sign off.
  3. Lock the design tokens. Ask Claude to put colours, fonts, spacing and radii into CSS variables at the top of the file before building anything. Restyling later becomes a one-line change.
  4. Build one section at a time. Hero first. Look at it in a browser, fix it, commit, then move on. Never ask for the whole page in one go.
  5. Check at 375px and desktop. Most landing pages are opened on phones. Describe problems precisely, or attach a screenshot and point at the spot.
  6. Content pass. Swap placeholders for real copy and images. Keep headings short, one clear call to action, repeated.
  7. Pre-ship review. Use the review prompt in section F. Ask for a report first, fix second.
  8. Deploy, then update NOTES.md and clear the session.

Copying a look you admire? Ask Claude to list the design tokens it detects (colours, type scale, spacing, border style) before it changes anything. Match the system, not the pixels. And never lift another site's copy or imagery.

§ F

Prompt library

Short, specific prompts for the moments that usually cost the most. Replace the [brackets].

Compact with instructions

/compact Keep: design tokens, file structure, decisions and the reasons for them, open bugs. Drop: exploration, dead ends, old diffs.

Handoff before you clear

Before I /clear, update NOTES.md: what's done, what's in progress, decisions and why, open bugs, next 3 steps, and the files that matter. 40 lines maximum.

Fix a bug without a rewrite

Bug: [what happens]. Expected: [what should happen]. Where: [file or section]. Already tried: [list].
Find the cause first and explain it in two sentences. Then fix it with the smallest possible change. Don't refactor or touch anything else.

Scope a change before it happens

I want to change [one thing]. Before editing, list the files you plan to touch and why. Wait for my OK.

Pull design tokens from a reference

Look at [URL or screenshot]. Don't change anything yet. List the design tokens you detect: colours with hex values, fonts, type scale, spacing rhythm, border and button styles. Then propose how to apply them as CSS variables in my page.

Pre-ship review

Review [file] for: layout at 375px and 1440px, broken links, missing alt text, missing title and meta description, colour contrast, console errors, and page weight. Report as a prioritised list. Don't change anything yet.

Make Claude challenge you

Before you build this, tell me what's wrong with my approach. Name anything that will hurt conversions, speed, accessibility or maintainability, and what you'd do instead. Be direct.

§ G

Command cheatsheet

Type /help in your own install. Commands shift between versions.

CommandWhat it doesSaves by
/compact [focus]Summarises the conversationShrinking the history
/clearWipes context, starts freshDropping irrelevant context
/contextShows what fills your windowMaking the problem visible
/cost · /usageSpend or plan limitsCatching burn early
/mcpManage MCP serversRemoving unused tool definitions
/modelSwitch modelLighter model for easy work
/resume · --continueReopen an earlier sessionSkipping the re-explaining
/rewind · Esc EscRoll back to an earlier pointCheap undo
EscInterrupt the current runStopping a wrong approach
Shift+TabCycle modes, including plan modePlanning before building
@fileReference one fileAvoiding project-wide crawling
/initDraft a starter CLAUDE.mdReview and trim it afterwards

§ I

Straight answers

Will compacting lose things?

Yes. It's a summary, and summaries drop detail. That's why you steer it with instructions and keep anything important in NOTES.md and your code, not only in the chat.

Is a bigger plan the answer to running out?

Rarely. If the habits in section C are in place and you still hit limits, then look at plan size. Upgrading first just means burning through a bigger allowance the same way.

Do I really need to plan first?

For anything bigger than a small tweak, yes. A wrong plan costs a few lines to fix. A wrong build costs the build, plus the rebuild.

Should I use many MCP servers and skills?

Connect what the current job needs and nothing else. Treat each one as a recurring cost, not a free option.

Can I trust what Claude builds?

Trust it the way you'd trust a fast, capable junior. Look at the result, test it in a browser, read the diff for anything touching forms, payments or user data, and keep your commits tidy so you can undo.

Copied