Sub topic 2
Who reads the spec and what it covers
This chapter assumes you know how a game team is split into design, engineering, art, audio, and QA. It also assumes you have seen a sprint or milestone cycle. Here you will learn who reads a feature spec, what each reader needs from it, and how to set the scope so the document stays useful.
Why the audience shapes the document
A spec is read by people with different jobs. Each reader opens it with a question in mind. If you write for only one of them, the others fill the gaps with guesses, and those guesses become bugs or rework.
Before you write, list the readers. Then check that the spec answers each reader's main question. The sections you choose, the detail you give, and the words you use all follow from this list.
The readers and what each one needs
| Reader | Main question | What they look for in the spec |
|---|---|---|
| Engineer | What exactly should the code do? | Rules, states, transitions, edge cases, constraints |
| Animator and artist | What must I make, and when is it seen? | States that need visuals, timing values, content list |
| Audio designer | Which moments need sound? | Triggers, states, feedback events |
| UI designer | What does the player see and press? | Controls, prompts, screen flow |
| QA | How do I know it works? | Acceptance criteria, edge cases, tuning ranges |
| Producer | How big is this, and what does it depend on? | Scope, dependencies, open questions, priority |
| Other designers | Does this clash with my feature? | Intent, rules, interactions with other systems |
The same sentence can serve several readers. "Taking damage during a dash cancels the dash" tells the engineer a transition, tells the animator that a cancel animation or blend is needed, and gives QA a test. A vague sentence fails all three at once.
Writing for several readers at once
You do not write one document per discipline. You write one document that each reader can use without reading everything.
Three habits make this work:
- Put shared meaning first. The intent and scope go at the top. Every reader needs them, and they take little time.
- Give each fact one home. State a rule once, in the rules section. Other sections refer to it. If the dash duration appears in three places, the three copies will drift apart.
- Use the team's own words. If the team calls it "air dash" in the code and the animation list, call it that in the spec. Do not switch to "aerial dash" in one paragraph.
Headings help readers skip. An audio designer should be able to find the feedback events and stop reading there. Name sections by what they contain, not by how you thought of them.
Detail level: enough to build, not enough to dictate
Intermediate writers often err in one of two ways.
- Too thin: "The player can dash." An engineer cannot build this without asking five questions.
- Too prescriptive: "Use a coroutine to move the rigidbody for 12 frames." This decides implementation, which belongs to engineering.
A good rule is to describe observable behavior and leave out how the code achieves it. "The player moves in the dash direction at dash speed for the dash duration" is observable. Which class owns the timer is not your decision, unless a real constraint forces it. In that case, record it in the constraints section with the reason.
The reader should be able to answer "what happens when…" for any situation in scope. If they cannot, the spec is missing a rule.
Scope: what the spec covers and what it does not
The audience tells you who reads. Scope tells you what they read about. A scope statement lists what is in and what is out. It is short, but it prevents the most expensive kind of misunderstanding: two people assuming different feature sizes.
Here is the scope section from the dash example:
## Scope
In: ground dash, air dash (one per jump).
Out: dash attacks, upgrades.This tells the animator not to prepare attack variants. It tells QA not to test upgrades. It tells the producer the feature is smaller than "the full dash system".
Rules for writing scope
- Name the exclusions. Writing only what is in leaves readers to guess about everything else. "Out" items that people might reasonably expect are the most useful ones.
- Be concrete. "Basic movement" is not a scope item. "Ground dash and air dash" is.
- Cover adjacent systems. If the dash interacts with the damage system, say whether this spec changes the damage rules or only uses them.
- Mark future work as future. If dash attacks come later, write "Out (planned for a later spec)". Do not leave half-described rules in the body, because someone will build them.
Where the boundary sits
Features touch each other. Taking damage cancels the dash, but the damage system's rules are not part of the dash spec. Treat the boundary like this:
| Question | Where it goes |
|---|---|
| Does this feature change how another system behaves? | In scope. Describe the change and notify that system's owner. |
| Does this feature only react to another system's events? | In scope as a rule ("damage cancels dash"). Do not redescribe the other system. |
| Is the behavior defined in another spec? | Link to that spec. Do not copy it. |
Linking instead of copying keeps one source of truth. When the damage rules change, only one document needs an update.
Common errors with audience and scope
- Writing only for designers. The spec reads well as a design pitch but has no states or edge cases, so engineers must ask about everything.
- Writing only for engineers. The spec is precise but never says why the feature exists, so artists and audio cannot judge what feels right.
- Missing readers. Audio and localization are often forgotten until late. Ask "who else touches this?" before finishing.
- Unstated exclusions. A reader assumes dash upgrades are included, and builds them.
- Scope creep inside the document. New ideas appear in the rules section during writing. Move them to open questions or to a separate "out" item.
A quick audit you can run
Read your draft once per reader. Each pass takes a few minutes.
- As the engineer, mark every place you would need to ask a question.
- As QA, try to write one test per rule. Mark rules you cannot test.
- As the producer, read only the intent and scope. Can you estimate the size?
- As an outsider on another feature, check whether any rule affects your area.
Each mark is a gap. Fix the gap in the spec rather than answering the question in chat, so the answer stays with the document.
Exercise
A spec for a "grappling hook" feature has a scope section that says only "In: grappling hook." The animator asks whether to make a swing animation, and the QA lead asks whether to test hooking onto moving platforms. What is wrong with the scope, and how would you rewrite it?
Show answer
The scope names the feature but not its boundaries, so each reader guesses. Rewrite it with concrete in and out items. For example: "In: hook onto fixed anchor points, pull the player to the anchor. Out: swinging, hooking moving platforms, hooking enemies (planned for a later spec)." This answers the animator (no swing animation) and QA (no moving platform tests), and it lets the producer size the work.
Exercise
Why should the dash duration appear in only one place in the spec, and where should that place be?
Show answer
If the value appears in several places, the copies can drift apart when someone edits one of them, and readers will not know which is correct. Keep it in one location, the tuning values file (dash_tuning.yaml), and have the rules refer to "the dash duration" without repeating the number.