§ 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 pile | Who controls it | Lever |
|---|---|---|
| System prompt | Fixed | None |
| Tool definitions, including every connected MCP server | You | /mcp, disable what you don't need |
| CLAUDE.md and memory files | You | Keep them short |
| Your messages and Claude's replies | You | /compact, /clear |
| Files Claude reads | Mostly you | Point at files, block junk folders |
| Command and log output | Mostly you | Paste the error, not the log |
The usual suspects
| What it looks like | What's really happening | Fix |
|---|---|---|
| One chat running for days | Huge history re-read every turn | Update NOTES.md, then /clear |
| Eight MCP servers "just in case" | Tool definitions loaded before you start | Connect only what this job needs |
| "Make it look better" rounds | Vague prompt, guessed output, redo | Name the file, section and exact change |
| Pasting whole files and logs | Thousands of tokens of noise | @file, or the error plus ~20 lines |
| Biggest model for everything | Premium price for a CSS tweak | /model down for simple work |
| Letting a wrong run finish | Paying to generate, then paying to undo | Esc early, /rewind |
| "Review the whole codebase" | Reads everything, finds vague things | Scope it to a folder or concern |
| Starting over after a mistake | Rebuilding what already worked | Git 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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
SmallerBlock junk folders
Keep node_modules, builds and big asset folders out of reach. See the settings example in section D.
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.
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.
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.
- Gather first. Logo, colours, fonts, real copy, photos, reference sites, the one action the page should drive. Missing pieces slow everything down later.
- Run the prompt builder in section A and answer Claude's questions until it presents a plan you'd sign off.
- 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.
- 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.
- Check at 375px and desktop. Most landing pages are opened on phones. Describe problems precisely, or attach a screenshot and point at the spot.
- Content pass. Swap placeholders for real copy and images. Keep headings short, one clear call to action, repeated.
- Pre-ship review. Use the review prompt in section F. Ask for a report first, fix second.
- 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.
| Command | What it does | Saves by |
|---|---|---|
/compact [focus] | Summarises the conversation | Shrinking the history |
/clear | Wipes context, starts fresh | Dropping irrelevant context |
/context | Shows what fills your window | Making the problem visible |
/cost · /usage | Spend or plan limits | Catching burn early |
/mcp | Manage MCP servers | Removing unused tool definitions |
/model | Switch model | Lighter model for easy work |
/resume · --continue | Reopen an earlier session | Skipping the re-explaining |
/rewind · Esc Esc | Roll back to an earlier point | Cheap undo |
Esc | Interrupt the current run | Stopping a wrong approach |
Shift+Tab | Cycle modes, including plan mode | Planning before building |
@file | Reference one file | Avoiding project-wide crawling |
/init | Draft a starter CLAUDE.md | Review and trim it afterwards |
§ H
Starter kit
Places worth sending a student. Third-party code runs on your machine with access to your files, so read before you install: check the repo, recent commits, and what permissions it asks for.
Claude Code docs
The official source for commands, settings, hooks and memory. Read the cost and memory pages first. If a link has moved, search the docs site.
docs.claude.comanthropics/claude-code
Official repo. Release notes and issues, handy when something changes or breaks.
github.com/anthropics/claude-codeanthropics/skills
Official example skills. Skills load when relevant, so they beat stuffing everything into CLAUDE.md.
github.com/anthropics/skillsccusage
Community tool that reads local logs and shows token usage and cost by day and session. Third party. Vet it.
github.com/ryoppippi/ccusageawesome-claude-code
Community-curated list of skills, hooks, commands and workflows. Browse freely. Treat everything in it as unreviewed.
github.com/hesreallyhim/awesome-claude-codePrompt engineering guide
Official guidance on writing clear prompts. Clear prompts mean fewer redo rounds, the cheapest saving there is.
docs.claude.com§ 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.