---
title: "VB-03 How to Write Prompts When “Vibe Coding”"
url: "https://zuey.me/articles/vb-03-viet-prompt-nhu-the-nao-khi-vibe-coding?lang=en"
locale: en
access: members
full_text: false
published_at: "2025-07-29T03:26:10.000Z"
tags: ["Claude Code", "Vibe Coding", "AI", "SaaS", "Startup"]
translations:
  vi: "https://zuey.me/articles/vb-03-viet-prompt-nhu-the-nao-khi-vibe-coding.md?lang=vi"
  zh: "https://zuey.me/articles/vb-03-viet-prompt-nhu-the-nao-khi-vibe-coding.md?lang=zh"
  ko: "https://zuey.me/articles/vb-03-viet-prompt-nhu-the-nao-khi-vibe-coding.md?lang=ko"
  ja: "https://zuey.me/articles/vb-03-viet-prompt-nhu-the-nao-khi-vibe-coding.md?lang=ja"
---
# VB-03 How to Write Prompts When “Vibe Coding”

> Context > Prompt. Every prompting technique I actually use when vibe coding with Claude Code: Meta prompts, BMAD, CLAUDE.md, writing prompts like GitHub Issues, LAZY mode and tips for bootstrapping new projects.

> **INFO:** Post 03 in the **“Vibe-coding with Claude Code”** series. It's based on Claude Code, but you can apply it to any AI coding tool (even general-purpose AI tools like ChatGPT).

I'm planning to document and share everything I've learned using Claude Code while “vibe coding” the DevPocket.app app. The series should have 8 posts; the first 2 covered Subagents and Tools, and today I'm spilling every last prompting technique I regularly use:

- Fundamentals - the foundation of prompting
- My prompting secret
- A few popular techniques: Meta Prompting, BMAD,...
- System prompt (CLAUDE.md)
- Prompt templates I use a lot
- Tips for using AI to bootstrap a new project
- A few silly tricks and other notes on writing prompts

![VB-03 How to write prompts when “Vibe Coding”](https://media.zuey.me/blog/2025/25b5d6e5-mastering-prompt-technique.png)

> **TIP:** **TL;DR:** Context > Prompt. The more carefully you write your prompt and the more context you give, the better the output. Fix the input (the prompt), don't try to fix the output (the code). And avoid falling into “brain off, AI on” mode.

**Disclaimer:**

- Everyone already preaches that prompt writing is one of the most important skills when using AI, so no need for a long intro. But in this post I will **NOT** talk about the prompt engineering techniques the experts came up with (don’t get me wrong, those techniques work, they just feel a bit too “academic” for me, and everyone's situation is different).
- Instead, I'm sharing the techniques I PERSONALLY distilled from actual use - they might be right (at least for me) or wrong (not giving you the best results) - so feel free to adapt them to fit you.

---

### Fundamentals

In every training session I run, I keep repeating the same thing: THE FUNDAMENTALS - boring and sleep-inducing as they are, if you understand 80% of them you can pretty much take charge of learning and using AI on your own without diving into advanced technical theory.

There are 3 core fundamentals of AI (or LLMs):

- **How it works:** statistical probability driven by algorithms
- **Context:** the AI's memory
- **Prompt:** instructions guiding the AI toward your end goal

Understand these 3 things and apply them well, and the quality of the responses will be good. It's that simple.

---

### So what's the secret?

There's no secret at all.

**Context > Prompt.**

Technically context is also just prompt, but we'll focus on what information to give the AI rather than on writing instructions.

![Context matters more than the prompt](https://media.zuey.me/blog/2025/61bac268-hinh-anh.png)

> **TIP:** Whenever you write a prompt, treat the AI like a stranger you just met and chant this to yourself: **“Is this enough for it to understand?”**

The truth is: the more carefully you write the prompt, the more precisely you describe what you want, the more detail you give about the environment (full context), the better the output. It's that simple.

Sometimes I spend 45-60 minutes writing a single prompt.

And whoever says prompt writing doesn't matter anymore because AI is smarter now and understands everything is talking NONSENSE!

Even in the future I don't believe AI stands a chance of doing that, unless it can read your mind (and even if it could, there's no guarantee your mind has enough context either).

---

### Meta prompt

Not “mega prompt” (I never use those, ugh, who writes rambling prompts that span several A4 pages) - and not a prompt from the guys at “Meta” (Facebook) either 😅

#### What is a meta prompt?

It just has a fancy name; it's simply “using AI to generate prompts for AI” 😁

If you've noticed, Claude Code's own subagent creation uses this “Meta Prompting” technique: you only describe the agent's main tasks, and CC generates the entire system prompt for that agent (this technique is also called the “Prompt Agent Method”).

One huge benefit I've noticed with this approach is: **“Overcome Biases”** - well, we don’t know what we don’t know - so when you use AI to create prompts for AI, you'll discover new approaches you'd never have thought of!

The Meta-Prompt template I use (or more precisely, “borrowed” straight from Claude Code):

```text
Act as an expert prompt engineer. I need you to create a detailed prompt for [TASK].

The prompt should include:
1. **Persona/Role**: Clear role definition
2. **Context**: Background information needed
3. **Task**: Specific instructions
4. **Format**: Output structure (markdown, JSON, etc.)
5. **Examples**: 1-2 concrete examples
6. **Constraints**: Limitations and requirements

Make sure the prompt is:
- Token-efficient
- Unambiguous
- Actionable
- Testable
- Formatted in Markdown

Output the prompt in a code block for easy copy-paste.
```

Paper on Meta Prompting: [arxiv.org/pdf/2401.12954](https://arxiv.org/pdf/2401.12954)

---

### BMAD Method

BMAD = **B**reakthrough **M**ethod for **A**gile AI-Driven **D**evelopment

Anyone who develops with AI knows these problems:

- **Context loss:** the prompt gets too long and the AI forgets the original requirements
- **Inconsistency:** today it codes one way, tomorrow another
- **No planning:** jumps straight into code without any design or architecture
- **Single role limitation:** the AI is the BA, the dev and the tester all at once... “jack of all trades, master of none”

BMAD solves this by:

- **Separating roles:** each AI agent focuses on a single specialty
- **Structured workflow:** a clear process from planning to development
- **Context preservation:** information is passed along through proper documents

---

*Phần còn lại dành cho thành viên có quyền đọc toàn bài (Knowledges, Kết hợp, Cộng đồng) — see plans at https://zuey.me/pricing*
