Writing Good Requirements

A good requirement says what the person deciding needs, in their own words, before any option is on the table.

A guide for people who write, review or approve the requirements of an Alternatives Analysis. The rules are the same ones in each variant of the specification (see "Requirements: Must-Haves and Wants" in General, Software and Storytelling). This page shows them at work, with a weak and a better version of each.

A requirement says what the person deciding needs from the choice, before any option is on the table. Everything later in the analysis rests on these sentences: must-haves screen options out, wants become the weighted criteria. A vague requirement gives a vague criterion, and a vague criterion cannot be ranked or scored honestly.

What a good requirement looks like

One sentence, in three parts, with two companions:

R5 When a site blocks saving, I can still get the post in by sharing a screenshot, so I never lose an idea.

Falling short: a blocked post is lost unless I retype it by hand.

How we tell: 5 one share saves it; 3 I save the picture and add it later; 1 no way in.

Part What it does Without it
The id (R5) Lets every later table, answer and score point back to this sentence Nobody can trace a weight to a need
The situation ("When a site blocks saving") Says when the need applies Two requirements overlap, and the owner cannot judge one apart from the other
What I can do ("I can still get the post in ...") States the need in the voice of whoever measures value It reads as a feature list item, and the owner has to translate it
The why ("so I never lose an idea") Says what the owner gets from it Nobody can tell a deal-breaker from a nice-to-have
Falling short Says what an option that misses it would cost The owner classifies it without knowing what they would lose
How we tell A pass test (must-have) or what 1, 3 and 5 look like (want) Two people score the same option differently

Before and after

Weak Better What changed
Source visibility R4 When I open a saved post, I can see what inspired me, so I can pick the idea back up A label became a sentence in the owner's voice, with its why
Has an export button R6 My captures can leave with me if I switch tools, so I am never locked in A solution became the need behind it
It is cheap and easy to use R9 It costs me under $5 a month, so I can keep it running without thinking about it. R10 Saving a post takes one tap, so I do it every time Two needs were split, and each vague word got a number
Screenshots work R5 When a site blocks saving, I can still get the post in by sharing a screenshot, so I never lose an idea The situation it applies in is now stated
The system shall support intake R2 A caseworker can finish an intake without retyping, so families wait less It is in the voice of the people the owner decides for

The seven rules

Each rule comes from established practice. The source is named beside it, and the full references are at the foot of the page.

1. Write it as a story, in the voice of whoever measures value

Use "When ___, I ___, so I ___" or "As a ___, I ___, so that ___" (the user story, first used at Connextra in 2001 and popularized by Cohn 2004; the job story, Klement).

People take in and recall a statement about themselves better than the same fact stated impersonally (the self-reference effect: Rogers, Kuiper and Kirker 1977). A requirement in the owner's voice can be classified and ranked at a glance. A label has to be decoded every time it is read.

When the owner decides for someone else, such as an employee for an organization or a team for its users, write in the voice of those people: "A caseworker can finish an intake without retyping, so families wait less".

2. End with the why

The "so I ___" clause says what the owner gets (the "reason" in Connextra's role, feature, reason; INCOSE asks for a rationale on every requirement).

If you cannot write the clause, you do not yet know the requirement. Go back and ask "Why does that matter to you?", and ask again of the answer, until the owner names something valued for its own sake (laddering: Reynolds and Gutman 1988). Turn the clause around and you have the Falling short sentence.

3. One requirement per sentence

If an "and" joins two needs, split it (ISO/IEC/IEEE 29148: a requirement is singular).

A joined requirement cannot be classified: one half may be a must-have and the other a want. It cannot be scored either, because an option can do well on one half and badly on the other.

4. Open with the situation when it only applies in one

"When ___" at the front (the event-driven form of EARS: Mavin et al. 2009; job stories: Klement).

A fallback only matters when the normal way fails. Without the two "When" clauses, the owner asked "which matters more?" cannot answer, because no believable option has one without the other.

5. No vague words

"Little", "easy", "fast", "simple", "flexible" and "user-friendly" mean different things to different readers (INCOSE). Give a number or define the level.

The test: could two people disagree about whether an option meets it? If so, it is still vague.

6. The need, not a solution

Say what the owner needs, and leave how to the options (Keeney 1992, fundamental versus means objectives; INCOSE).

A requirement that names a solution quietly rules out every option that meets the need another way. If a sentence names a product, a feature or a technology, ask why it matters and write down the answer.

7. Same word, same thing

Use one word for each thing throughout, and define any term a newcomer would not know (INCOSE).

A reader assumes a new word means a new thing.

Must-have or want

Once a requirement is written, it gets one of two classes (Kepner and Tregoe 1965: MUSTs and WANTs):

One question settles it: "If an option did everything else well but fell short on this, would you still consider it?"

The owner says It is a Example
"No" Must-have "If anyone else can read my captures, it's out"
"Yes, but I'd mind" Want "I'd still use it with two taps, but I'd mind"
"I can't say yet" Not sure, for now The analyst asks about a time it mattered, and rewords it if the words were the problem
"It doesn't matter" Not needed It is set aside, and stays in the record

A requirement can be both. Write the floor as a must-have ("My captures stay private to me") and what lies above the floor as a want ("The fewer services that can see them, the better").

Three signs that something was classified wrong: every requirement is a must-have, so nothing is left to weigh; only one option passes the must-haves, so they alone made the choice; or more than three wants come out "about the same" at the top of the ranking.

Where requirements come from

They come out of a conversation about real events, and never from a blank form:

  1. Who is affected? Beyond the owner: whoever pays, whoever keeps it going, whoever is affected without choosing it, whoever can say no, and the owner a year from now (stakeholder identification: ISO/IEC/IEEE 29148; Volere).
  2. "Tell me about the last time this went wrong." Real moments give sharper requirements than opinions do (the critical incident technique: Flanagan 1954).
  3. "Why does that matter to you?" Asked until the answer is something valued for its own sake (laddering: Reynolds and Gutman 1988).
  4. "Imagine we chose, and a year on it has gone badly. What went wrong?" Asked once, after classifying. Each failure is either covered already or is a new requirement (the premortem: Klein 2007).

A two-minute check

Read each requirement and ask:

What happens next

The draft requirements go to the decision owner on the Classify step of the Requirements Elicitation Tool, through a link the analyst prepares. The owner marks each one must-have, want, not sure or not needed, and can add one that is missing. The owner approves requirements there, on the page, and never as a list in a conversation. Then the owner ranks the wants by answering "which matters more?" two at a time, and that ranking sets the weights.

Sources