Why good tools give bad results
Claude Code is capable of extraordinary things, but it only does what you actually ask. Most disappointing results come from the prompt, not the model.
"I used to think Claude just wasn't that good. Turns out I was prompting it like a search engine. Once I changed that, everything changed."
Developer, six weeks into their Claude Code practiceToo vague: Claude guesses what you mean and guesses wrong. "Fix this" with no context.
Too open-ended: Claude produces something technically correct but not what you needed. "Improve this function."
Missing constraints: Claude solves the problem in a way that creates new ones. "Refactor this" without saying what to preserve.
Anatomy of a strong prompt
Strong prompts aren't longer; they're more structured. Five components, use what's relevant.
src/api/payments.js, the chargeCard() function currently..." Context beats lengthy pasting.Six prompting patterns to memorize
These reusable patterns cover 80% of daily Claude Code interactions. Learn them once, apply them forever.
The iteration loop
The best prompt isn't the first one; it's the refined one. Here's the loop experienced Claude Code users run when a result misses the mark.
"That's close, but..." or "Focus only on X, ignore Y" or "Too long, summarize in 3 bullets". Claude holds context across turns."What could go wrong with this approach?" Claude's self-critique often surfaces edge cases it didn't account for the first time./clear and start over. Resist it. Claude holds context across the conversation. A correction in the same thread is almost always faster and gets better results than starting cold. Only clear when the conversation has genuinely gone in the wrong direction.Practice exercises & checklist
Apply each pattern to a real file in your current project. Ten minutes each.
- Rewrote a weak prompt using the five-component anatomy
- Used at least two of the six named patterns on real code
- Asked Claude to critique its own output at least once
- Refined a result without restarting the conversation
- Saved one strong prompt to my personal prompt library or CLAUDE.md
- Can name the five anatomy components from memory
Day 04 complete
You have a prompt framework that works. Tomorrow is Day 05: Making Real Edits. You'll use these prompting skills to make your first significant code changes with confidence.
Your prompt library is a long-term asset. Keep adding to it every day.