Knowledges 11 min

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.

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

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”

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

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):

textAct 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


BMAD Method

BMAD = Breakthrough Method for Agile AI-Driven Development

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

Locked section: Side notes

Locked section: A few other pretty good prompting techniques

Locked section: 0/ System prompt (CLAUDE.md)

Locked section: 1/ Write prompts like GitHub Issues tickets

Locked section: Bug report

Locked section: Feature request

Locked section: 2/ LAZY Mode: lazy prompts that still get the point across!

Locked section: New feature

Locked section: Fix bug

Locked section: Tips for using AI to bootstrap a new project

Locked section: Why?

Locked section: “GARBAGE IN - GARBAGE OUT”

Locked section: A few other small notes

Locked section: References

The rest is for Knowledges members

Plus 14 more sections (about 7 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.