← knowledge.oriz.in

Practical vibe coding — the middle way

rule agentphilosophypromptingworkflowpractical-vibe-coding

Practical vibe coding

The middle way

Two failure modes at the extremes:

Practical vibe coding sits in the middle. Keep the speed of AI, add just enough structure so:

  1. AI knows what it's working on (AGENTS.md at repo root, always read first).
  2. You don't lose track (feature-by-feature, verify each).
  3. Failures are localized (one change per prompt).

The four anchors

1. AGENTS.md at repo root (living doc)

Written once, updated as recurring issues surface. Every prompt starts with "read AGENTS.md first and follow it strictly."

See agents-md-living-doc for the update discipline.

2. 4-part prompt structure

Every non-trivial prompt has these four parts, in this order:

  1. Read AGENTS.md — "Read the AGENTS.md first and follow it strictly."
  2. One task — exactly one feature, one screen, one integration. Not three merged.
  3. Constraints that protect what works — behavior constraints, not code prescriptions. See icc-prompt-formula §"Constraints describe behavior."
  4. Design references — screenshots, images, docs pasted inline. AI reads layouts better than descriptions of layouts.

3. Feature isolation

One prompt = one feature. Never merge tasks like "set up NativeWind AND build onboarding AND add auth." If something breaks across 3 tasks, you can't tell which caused it.

4. Verify-then-move-on

After each feature: test on real device/simulator, review the diff, then move on. Don't stack unfinished features.

See session-hygiene for when to reset chat between features.

When to escalate to over-planning

Reach for full architecture docs ONLY when:

Everything else = practical vibe coding.

When to escalate to pure yolo

Never. Even a 5-line change gets an AGENTS.md read.

Anti-patterns

Composition with existing rules

Element Rule
Prompt structure icc-prompt-formula
Grounding before task ground-first-ask-second
Skill capture from iterations iterate-before-skill
Skill composition small-composable-skills
AGENTS.md updates agents-md-living-doc
Session breaks session-hygiene
Context gaps context-interview
Assumptions first karpathy-guidelines

Cross-refs