Vibecoding: the four parts of a prompt
A prompt that works has a goal, context, limits and a check. Three prompts, from vague to full, and how many parts each carries. Vibecoding from zero, Prompting.
One prompt, four parts
- Goal: what to do
- Context: what the agent cannot see
- Limit: what not to touch
- Check: how you know it is done
| Prompt | Parts | Ready to run |
|---|---|---|
| Make it better | 0 of 4 | no |
| Add a total line to the cart page | 1 of 4: goal | no: no check |
| Add a total line to the cart page (goal). The page is cart.html (context). Do not touch the price code (limit). The test cart_total must pass (check). | 4 of 4 | yes |
The counts are the masks of the lesson spec: 0, 1 and 15.