Knowledges 15 min

VB-07 Claude Code Common Mistakes & “Production-ready” Projects

Vibe coding for fun is easy; vibe coding a production-ready product is a whole other story. Common Claude Code mistakes, the 3 principles YAGNI - KISS - DRY, context tricks, debugging with AI, and how to jump into a brownfield project.

Also in: Tiếng Việt · 中文 · 한국어 · 日本語

This is a very long post & definitely not for beginners. I crammed a ton of advanced techniques in here, I totally get that, but there's a reason for it.

VB-07 Claude Code Common Mistakes & “Production-ready” Projects

Key takeaways

  • Production-ready ≠ pure vibe coding
  • Claude Code common mistakes to avoid
  • Three survival principles: YAGNI - KISS - DRY
  • Context management strategies
  • Security audits and testing are non-negotiable
  • Debugging with AI needs a strategy too
  • Brownfield project approach (how do you use CC on large codebases?)

“Vibe coding” for fun is one thing, but vibe coding your way to a complete product that can scale up and stay maintainable later on is a completely different story.

So today I'll try to write down what I've learned from the experience and technical knowledge I've gathered over 18+ years in this craft, and apply it to the "vibe coding" process, with one goal: building a digital product that meets the PRODUCTION-READY standard.

Before getting into the details of how to build, I want to take a moment to talk about some common mistakes I've noticed while using CC so far.


Claude Code Common Mistakes

“Do one thing at a time”

  • Don't dump a giant to-do list on it and ask it to work through them one by one. I fooled myself into thinking it was smart enough to plan, break things into tasks, then grind through each until done, but in reality its analysis of each task is shallow, so the implementation or fix ends up half-baked.
  • Be patient: wait for CC to finish each task, verify it, clear the context, then jump to the next task.

Hopefully CC gets better at this in the future.

“It works on my machine”

Every dev knows this classic case, right? AI (CC) is just like people: it needs more context to make a call, for example:

  • Give CC your environment info (OS, version, device,...) so it understands better (Context Engineering)
  • Use the gh command to pull CI/CD logs, collect logs manually on the server, or use Sentry if you can.
  • Grab server logs to feed to CC (oh, there's a tip for this further down)

Planning is a crucial, mandatory phase, even for simple requests!

So here's an MCP I find pretty useful for planning or tackling hard cases: Sequential Thinking MCP - it trains the model to think more deeply and thoroughly during implementation.

VB-07 Claude Code Common Mistakes & “Production-ready” Projects

Document Everything

  • Product Development Requirements (PDRs)
  • Project Overview: description, features, tech stack,...
  • Codebase structure
  • Code standards: naming conventions for variables, databases, functions,...

Optimize the System Prompt

Development Rules: CC loves to trick me by “writing tests just to pass”, implementing simulated code or using fake data (mock data), so I need to add this rule:

text- **[IMPORTANT]** Do not just simulate the implementation or mocking them, always implement the real code.

Also, CC often forgets to update task status in the original plan, which makes it hard for us to keep track of development progress. So add these rules:

text**Task Completeness Verification**
- Verify all tasks in the TODO list of the given plan are completed
- Check for any remaining TODO comments
- Update the given plan file with task status and next steps

Our incurable disease: “Over-engineering”

If we became monks, our dharma name would probably be “Venerable Optimize”. And optimizing here also means: overthinking every night until we're miserable...

Claude Code itself suffers from “Over-engineering” too, it's obsessed with the term “Production-ready”.

On top of that, it caught one more “over” just like us devs: “Overthinking”.


The process for building a “Production-Ready” project

A so-called “production-ready” product demands careful calculation: you know exactly what the outcome will look like, how each feature works, all the way to user flows, project structure, processes, interaction experience, and the expected goals.

Even in regular "Vibe Coding", I already consider brainstorming and planning the most important part. But to build a “production-ready” product, you need a concrete Blueprint of what you're going to build.

Product Blueprint

A blueprint is a design, a technical drawing, a detailed plan, or an initial template that guides and provides specific information for carrying out a project, product, process, or strategy.

Use the Claude app or create a “System Architect” agent in Claude Code and brainstorm deeply with it, ask the AI to draw this blueprint (HTML or SVG) and keep refining until it shows exactly what you have in mind.

If editing with AI feels too time-consuming, it's best to try doing it by hand. You can use Excalidraw, a powerful and easy-to-use web app for this job.

Here's the blueprint I drew for DevPocket.app:

VB-07 Claude Code Common Mistakes & “Production-ready” Projects

Then I split it into smaller parts so Claude/Gemini can read it more easily (because huge images get resized and the text gets lost).

VB-07 Claude Code Common Mistakes & “Production-ready” Projects

I did the same thing with Gemini - asked it to write the PDR based on the Blueprint:

VB-07 Claude Code Common Mistakes & “Production-ready” Projects

A “production-ready” product is no longer a "toy": every step has to be carefully thought through, considering every angle when making a change: whether it creates tech debt, whether it breaks existing features, whether it affects the user experience,...

So once you've successfully bootstrapped the MVP, from this point on we call this phase “production-development”, and let me introduce the following famous software engineering principles you should get familiar with (unless you want your product to completely fall apart):

3 survival principles: YAGNI, KISS, DRY

VB-07 Claude Code Common Mistakes & “Production-ready” Projects

YAGNI - You Aren't Gonna Need It

This is a software development principle that reminds us to implement features only when they're actually needed, not when we think they might be needed in the future. The idea is to avoid over-design and keep things simple.

(Honestly, I often “forget” and make this mistake myself 😅) In short, focus only on what matters!

VB-07 Claude Code Common Mistakes & “Production-ready” Projects

KISS - Keep It Simple, Stupid

This is a software development principle that encourages simplicity in design and implementation. The idea is to avoid unnecessary complexity and make things as simple as possible.

Complex solutions can be hard to debug and extend, while simple solutions are more robust and flexible. By keeping things simple, you reduce the risk of bugs and make it easier for others (and your future self) to work with your code.

Locked section: DRY - Don't Repeat Yourself

Locked section: Context Engineering is everything!

Locked section: Run 2 Claude Code windows side by side: one for coding, one for asking

Locked section: /compact

Locked section: Test, Security & Human-in-the-loop

Locked section: Test - Test - Test (Test-Driven Development)

Locked section: Don't trust it!

Locked section: Security: the nightmare always lurking...

Locked section: Human-in-the-loop

Locked section: All of my debugging skills

Locked section: 1/ Providing logs is the best way for AI to debug

Locked section: 2/ The problem with Claude's "eyes"

Locked section: Human MCP: Bringing Human Capabilities to Coding Agents

Locked section: How do you jump into a brownfield production-ready project midway?

Locked section: 1/ Spec-driven Development (when starting out)

Locked section: 2/ Add rules to CLAUDE.md

Locked section: 3/ Spec-driven Development (during development)

Locked section: 4/ Test-driven Development

Locked section: 5/ Overthinking & over-engineering

Locked section: Final words

Locked section: References

The rest is for Knowledges members

Plus 21 more sections (about 10 min) for members

You are reading roughly the first third. Knowledges, Combo and Community plans unlock paid articles in full; the Zuey AI plan reads previews only.