Skip to the workspace
Pebellslearn by building
Plan Before You Prompt  ›  Lesson

Write a One-Page Spec

Plan before you Code 12 minA short spec with who, must, won't and done-when replaces the assistant's guesses with your decisions before any code is written.

vibe coding / Write a One-Page Spec

Explore each scene at your own pace.

01 · The rule

The rule

Write a One-Page Spec

"Build me an app to split bills" is a wish, not a plan. An assistant will happily turn that wish into code, filling every gap with its own guesses: accounts or no accounts, even or uneven splits, rupees or dollars. You then spend your evenings undoing guesses. Ten minutes of planning on one page saves most of that.

The rule

Decide what done looks like before asking for any code.

A spec (short for specification) is a short written description of what you are building. For a vibe coder it does two jobs: it forces you to decide, and it gives the assistant something firmer than a wish. One page is enough for Kitty:

# Kitty: spec

## Who
Three flatmates (Asha, Ravi, Meera) who share rent, groceries and bills.

## Must do
- Log an expense: who paid, amount, short note, date.
- Split each expense evenly among everyone in the flat.
- Show who owes whom.
- Record a "settle up" payment between two flatmates.

## Won't do (yet)
- No bank connections. No uneven splits. No phone app.

## Done when
- Asha pays ₹900 for groceries: Ravi and Meera each owe her ₹300.
- A negative or zero amount is refused with a clear message.

Each heading earns its place:

  • Who keeps the scale honest. Three flatmates do not need what a bank needs.
  • Must do is the smallest set of features that makes the app useful.
  • Won't do (yet) stops scope creep: you can point to it when an assistant starts adding extras.
  • Done when gives concrete examples you can try by hand, and later turn into tests.
Scene 1 of 5
Hover to wake the cannons. Drag to move, or use arrow keys when focused. Press Enter to fire a shot.