6 Ways to Get Dramatically Better Results From Claude A developer shares six techniques for getting better results from Claude, including writing specific prompts, using XML tags for context, asking for a plan before code, providing examples, splitting tasks into stages, and clearing context between tasks. The techniques aim to reduce ambiguity and improve output quality in API, Claude Code, or claude.ai. Some developers treat Claude like autocomplete: paste some code, get some code back, iterate blindly. The gap between a mediocre response and a genuinely great one usually isn't the model — it's how you're prompting it. Here are six concrete techniques, each with a real before/after you can use in the API, Claude Code, or claude.ai. Vague prompts get vague code, because Claude has to guess what "done" means — and it'll guess conservatively. Before: "Write a function to validate emails." After: Write a TypeScript function validateEmail input: string : boolean . Requirements: - RFC 5322-compatible, but reject addresses without a TLD - No external dependencies - Include 3 unit tests covering valid, invalid, and edge cases e.g. plus-addressing Now you get a function that matches your actual constraints instead of a generic regex you have to rewrite anyway. When a prompt mixes instructions with pasted source, Claude can blur which is which — especially in long files. Tags remove the ambiguity.