Skip to content
Visual explainer 4h to learn 5 steps

Vibe coding capstone: feature brief and test plan

Write a feature brief with constraints, first prompt versions, expected behaviour, an acceptance matrix and a baseline test plan before any code.

By Invicly Tech, , in Prompt Engineering and Vibe Coding. About 8 minutes to read.

Topic 27 of 29

In short

The capstone has you ship a small notes feature with evidence. You start with no code at all: a feature brief, first prompt versions, an acceptance matrix, a baseline test plan and the first lines of a decision log.

Think of it like this: It is the blueprint and the inspection list written before the first brick, so you can tell later whether the house matches the plan.

Explained simply

A capstone is a project that pulls everything together. Here you build a small notes feature: a person can add, edit and delete short text notes. The feature is small on purpose, so you can focus on the way you work with an AI assistant, not on the feature.

Before you write any code, you write down what you are building. This is the feature brief. It says who the feature is for, what it must do, what it must not do and what tools you already use. A clear brief is the best prompt you can give.

Next you list the expected behaviours in a table, the acceptance matrix. Each row has one behaviour and one way to check it. When the feature is done, you tick the rows. If a row has no check, it is a wish, not a requirement.

You also run your existing tests once, to know what passes today. And you start a decision log. Every time the assistant suggests something, you note whether you took it, changed it or said no, and why.

Press Play on a diagram to walk through it one step at a time.

FlowCapstone artefacts, in order
  1. 1
    Feature brief

    Goal, users, constraints, out of scope.

  2. 2
    Prompt pack v1

    Plan, implement, test and review prompts.

  3. 3
    Acceptance matrix

    Each behaviour tied to a check.

  4. 4
    Baseline test plan

    What to run before any change.

  5. 5
    Decision log

    Started now, filled as you go.

CompareVague brief versus useful brief
Vague
  • Add notes to the app
  • No limits given
  • No definition of done
  • Assistant guesses the rest
Useful
  • Signed-in user adds, edits and deletes text notes
  • Max 2,000 characters, no HTML
  • Each behaviour has a check
  • Out of scope is written down
LayersTraceability from brief to proof
  1. 1
    Brief

    Constraint: max 2,000 characters.

  2. 2
    Acceptance row

    A2: longer note is rejected.

  3. 3
    Test

    validateNote rejects 2,001 characters.

  4. 4
    Prompt

    Implement validation to pass the test.

  5. 5
    Evidence

    Test output in the pull request.

In depth

The feature brief

Keep the brief to one page. Include the goal in one sentence, the user, the stack, the constraints and the non-goals. For a notes feature the constraints might be: signed-in users only, plain text up to 2,000 characters, each user sees only their own notes, and the existing database and auth are reused. Non-goals matter just as much: no sharing, no rich text, no sync. The assistant will happily add extras, and the non-goals list lets you say no with a reason.

  • Goal in one sentence.
  • Users and the main flow.
  • Constraints: limits, security, accessibility.
  • Non-goals: what you will not build.
  • Existing stack and conventions to follow.

First prompt versions and the prompt pack

Write prompts as files in your repository so they are versioned like code. With GitHub Copilot in VS Code, project-wide guidance can live in .github/copilot-instructions.md, and reusable task prompts can be prompt files, saved as .prompt.md files that you run from chat. Check the current GitHub and VS Code docs for exact locations, because these features change. The same templates work in any tool if you keep them plain: role, context, task, constraints, expected output. Name them plan, implement, debug, review and test.

MapA small prompt pack
prompts/
  • plan.md
    • Read brief
    • Output: ordered small steps
  • implement.md
    • One step only
    • Output: diff plus tests
  • review.md
    • Check ownership, limits, accessibility
  • test.md
    • Write failing test first

Acceptance matrix and baseline test plan

Turn the brief into rows. Each row has an id, a behaviour, a check and a status. Mix check types: unit tests for validation, API tests for ownership, an end-to-end test for the main flow and a manual keyboard check for accessibility. The baseline test plan says which commands you run before coding and what you expect to see, for example the type check, the unit tests and the build. Save the output. After coding, the same commands tell you what changed.

The decision log

The log is short and dated. Each entry has the suggestion, your decision and the reason. Decisions are accepted, revised or rejected. For example: the assistant suggested storing notes in local storage; revised to the database, because notes must be per user. This log is also useful evidence in the pull request, because it shows that a person made the choices, not the tool.

Learn it in 5 short steps

About 50m each. Track them with a timer in your plan.

  1. 1
    Write the feature brief and constraints~50m
  2. 2
    Draft the first prompt versions~50m
  3. 3
    Build the acceptance matrix~50m
  4. 4
    Write a baseline test plan~50m
  5. 5
    Start the decision log~50m

Key points

  • Write the brief first: goal, user, constraints, non-goals and the stack you already use.
  • Draft prompts as files in the repo with a role, context, task, constraints and expected output, so you can version them.
  • An acceptance matrix lists every expected behaviour, the check that proves it and its status.
  • Run the existing tests first to get a baseline. You cannot say you broke something if you never knew it passed.
  • Start the decision log now: date, suggestion, accepted or revised, and why.

Key terms

Tap a card to flip it. 0/5 known

Examples

text
ID  Behaviour                         Check                    Status
A1  Signed-in user can add a note     e2e: add-note.spec       todo
A2  Empty note is rejected (400)      unit: validateNote       todo
A3  Another user's note is not shown  api test: list-notes     todo

Two rows of an acceptance matrix.

A short feature brief

This brief fits on a screen. It names limits and non-goals. Every line can later become a matrix row.

text
Feature: personal notes
Goal: a signed-in user adds, edits and deletes text notes.
Stack: Next.js, TypeScript, existing Postgres and auth.
Constraints: plain text, max 2,000 chars, own notes only.
Accessible: labelled fields, keyboard operable.
Non-goals: sharing, rich text, offline sync.

Before and after a prompt

A first prompt was too open. The second names the files, the limits and the expected output. The second is easier to check.

text
v1: Add notes to my app.

v2: Following the brief, add a Note model with id, ownerId,
  body (max 2000 chars). Add POST /api/notes that rejects
  empty or long bodies with 400. Do not touch auth.
  Output a diff and a unit test for validation.

Quick reference

  • Brief: goal, users, stack, constraints, non-goals.
  • Every acceptance row needs a check you can run.
  • Run the baseline tests before you change anything and save the output.
  • Prompt template: role, context, task, constraints, expected output.
  • Store prompts as files in the repo and version them.
  • Decision log: date, suggestion, accepted or revised, reason.
  • Check current Copilot docs for instruction and prompt file locations.

Common mistakes

  • Starting to code before the brief, then writing the brief to match what the assistant built.
  • Writing acceptance rows that cannot be checked, such as 'works well'.
  • Skipping the baseline run and later blaming the assistant for an older failing test.

Quick quiz

Pick an answer to see if you're right and why.

Question 1

1What turns a wish into a requirement?

Question 2

2Why list non-goals?

Question 3

3What is the purpose of a baseline test run?

Question 4

4Where should reusable prompts live?

0/4 answered

Practice exercises

Try each one yourself first. Use the hint if you get stuck, then compare with the solution.

  1. Exercise 1easy

    Write a five-line brief for a notes feature with one constraint and one non-goal.

  2. Exercise 2medium

    Build an acceptance matrix with five rows, each with a different kind of check.

  3. Exercise 3hard

    Write four prompt files (plan, implement, test, review) with expected output, and run the baseline tests, saving the result.

Check yourself

Answer in your head, reveal, then be honest with yourself.

Feel confident about this topic?

Frequently asked questions

Do I need GitHub Copilot to do this capstone?
No. The templates are plain text and work with any assistant. Copilot in VS Code is used as one concrete example.
How long should the brief be?
About one page. If it needs more, the feature is too big for a capstone.
What if I do not know the stack yet?
Pick the stack you already use, and write it in the brief. The assistant should follow your conventions.

Go deeper

ShareXLinkedInWhatsApp