ai
Mastering Claude Code: Real-World Projects, Prompts, and Workflows for AI-Powered Development
Kilian Voss 2025 14 references
Apply the prompting, debugging, refactoring, context-management, cost, and governance practices from Kilian Voss's Mastering Claude Code when working with an AI coding assistant.
ai-assisted-coding prompt-engineering code-review context-management ai-governance cost-optimization developer-workflows
Overview
The Core Framework
- Partner, not autocomplete. Treat the AI as a cooperative reasoning partner you steer — your framing caps the output quality, so the bottleneck is how you frame the problem, not the model's ceiling.
- Two levers run through everything: context richness = quality (rich, ordered intent + architecture + conventions) and human verification = safety ("trust, but verify").
- The AI cannot execute code and produces plausible-but-sometimes-wrong logic — humans remain the final gate.
- Workflow over artifact. The reusable asset is the repeatable method (the "Claude loop," prompt recipes, model-agnostic config), not any single generated file.
- Mastery through understanding — learn why prompt patterns work, not dependence on scripts.
Key Diagrams: The Claude Loop · Layered "Trust, but Verify" Review
Quick Lookup
| Situation | Do This | Avoid This |
|---|---|---|
| Writing a prompt | Context + Instruction + Constraint; answer what / how / what-format | Vague one-liners that broaden reasoning |
| Want complex code | Ask for reasoning first, then implementation | One-shot "just write it" |
| AI gave you code | Verify behavior; it can't run code | Trusting plausible output blindly |
| Refactoring | Preserve behavior first; simplify, then clarify | Over-optimizing for machine efficiency |
| Big repo | Feed context selectively, summarize, link sessions | Dumping the whole codebase into one prompt |
| Cost creeping up | Estimate before run; raise intent-density; trim/switch | Long, low-density prompts |
| Sensitive code | Redact, least-privilege, layered review | "Send what you wouldn't email a third party" |
The Key Insight
"[The discipline is to] steer Claude with rich, structured context, then validate everything through automated and human-in-the-loop gates." — the book's recurring "trust, but verify" operating discipline (Chapters 4, 11)
References
No references match your search.