Planning: Interview → Specification → Code
Don't start with "build me feature X". First, switch Claude to Plan Mode (Shift+Tab twice) and ask it to interview you: about architecture, edge cases, tradeoffs, existing patterns. Claude will ask things you wouldn't have thought of yourself. Write the result into SPEC.md — a detailed specification. Then open a new session and say: "Implement according to SPEC.md". Separating planning from implementation is the difference between "Claude made a mess" and "Claude built exactly what I needed".
# Step 1: Plan Mode (Shift+Tab x2) "I need a referral link system. Ask me questions before planning." # Claude asks: - What commission percentage? - Does the referral get a signup bonus? - How to handle self-referral? - Do you need a multi-level system? # Step 2: Result → SPEC.md # Step 3: New session "Implement the referral system per SPEC.md. Run pnpm test after each step."