Sub topic 1
What a feature spec is for
A feature spec turns a game design idea into a shared document that designers, engineers, artists, audio staff, and QA can build and test against. This chapter explains the problems a spec solves, what it contains at a high level, and how to judge whether a spec is doing its job.
Prerequisites
This chapter assumes you have:
- Basic familiarity with how a game team is organized (design, engineering, art, QA).
- Experience playing and analyzing games.
- Some exposure to a game production cycle such as sprints or milestones.
You do not need to have written a spec before. Later chapters cover structure, rules, edge cases, and acceptance criteria in detail.
The problem a spec solves
A design idea starts in one person's head. "The player can dash" sounds clear to the person who said it. Each reader will fill in the gaps differently:
- An engineer assumes the dash moves the player a fixed distance.
- An animator assumes the dash has a wind-up.
- A level designer assumes the dash crosses any gap in the level.
- A QA tester has no way to say what a correct dash looks like.
Each reading is reasonable, and the readings contradict each other. The team finds out when the pieces are put together, often late in the sprint, when changes are expensive. A spec moves that discovery to the start, when a conflict costs one edit to a document.
A spec has four jobs:
- Share one understanding. Everyone builds the same feature.
- Record decisions. The reasons for a choice stay available after the meeting ends and after people change teams.
- Define done. The team can say when the feature is finished and correct.
- Expose gaps early. Writing rules down forces you to notice what you haven't decided yet.
What a spec is not
Confusing a spec with nearby documents leads to specs that are too big or too vague.
| Document | Main question it answers | How it differs from a feature spec |
|---|---|---|
| Game design document (GDD) | What is the whole game? | Covers the full game and its pillars. A feature spec covers one feature in buildable detail. |
| Pitch or concept doc | Why is this idea worth doing? | Persuades. A spec assumes the decision to build has been made, or is close to it. |
| Technical design doc | How will the code be structured? | Written by engineers. A feature spec says what the player experiences and what the rules are, not which classes to write. |
| Task ticket | Who does which piece of work, and by when? | Tracks work. A spec describes the feature that the tickets deliver. |
| Test plan | How will we check it? | Written by QA. A spec supplies the acceptance criteria that the test plan builds on. |
A useful rule: the spec says what and why. Engineering decides how to build it, unless a technical constraint changes the design. When a spec begins dictating implementation, it takes decisions away from the people best placed to make them.
Anatomy at a glance
A feature spec answers a fixed set of questions. This chapter names them. Later chapters teach each one.
- Intent: What experience should the player have, and how will we judge success?
- Scope: What is included, and what is explicitly left out?
- Rules: What exactly happens, step by step?
- Edge cases: What happens when things go wrong or collide?
- Tuning: Which numbers can be adjusted without changing the rules?
- Acceptance criteria: What observable behaviors prove the feature works?
- Open questions: What is still undecided, and who will decide it?
Here is a short spec for a dash ability. It is deliberately compact so you can see all the sections in one place.
# Feature: Dash
## Status
Draft | Owner: Gameplay Design | Reviewers: Engineering, Animation, QA
## Design intent
Give the player a short burst of movement to avoid attacks and cross gaps, so that movement feels responsive and skillful.
## Scope
In: ground dash, air dash (one per jump).
Out: dash attacks, upgrades.
## Rules
1. Pressing the Dash button starts a dash in the direction of movement input.
2. If there is no movement input, the dash goes in the facing direction.
3. The player cannot dash while a dash cooldown is active.
## Edge cases
- Dashing into a wall ends the dash immediately.
- Taking damage during a dash cancels the dash.
## Tuning values
See dash_tuning.yaml.
## Acceptance criteria
See the scenarios below.
## Open questions
- Can the player dash while carrying an object?Look at what this short document already does. The Scope section removes dash attacks from the work, so nobody spends a day on them. The Rules answer the "no input" question that an engineer would otherwise guess at. The Open questions section admits a gap in public, which is better than letting each discipline settle it privately.
How the spec connects the team
The spec sits between the design idea and the finished feature. Each discipline reads it and produces something different from it.
The dotted arrows matter. A spec is not handed over once and forgotten. When an engineer asks "what happens if the player dashes while stunned?", the answer should go into the spec so the next person does not have to ask. Over time, the spec becomes the record of every question the team has already answered.
What a spec makes possible
Testable behavior
A spec lets QA check the feature without guessing. The dash spec's rules translate directly into scenarios:
Feature: Dash
Scenario: Dash in the input direction
Given the player is on the ground and the dash is not on cooldown
When the player presses Dash while holding right
Then the player moves right at the dash speed for the dash duration
Scenario: Dash is blocked during cooldown
Given the player has dashed less than the cooldown time ago
When the player presses Dash
Then no dash starts
Scenario: Damage cancels a dash
Given the player is dashing
When the player takes damage
Then the dash ends immediatelyEach scenario describes one behavior that a tester can observe and mark as pass or fail. Without the spec, "the dash works" is an opinion.
Adjustable numbers
A spec also separates what the feature does from how strongly it does it. The rule "the player cannot dash during cooldown" stays stable. The cooldown length changes often during playtesting. Keeping numbers in a separate file means a designer can tune them without reopening the rules:
# dash_tuning.yaml
dash:
speed: 18.0 # units per second
duration: 0.2 # seconds
cooldown: 0.8 # seconds
air_dashes_per_jump: 1Fewer surprises at integration
Because the spec names scope, dependencies, and open questions, the team sees conflicts before work starts. Two features that both claim the same button, or a dash that needs an animation state the character does not have, show up in review instead of in the build.
Common errors
These mistakes come up repeatedly. Later chapters return to them.
- Writing the idea instead of the rules. "The dash should feel snappy" is intent. It is not a rule. A spec needs both, and the rules must be specific enough to build.
- Leaving out scope. Without an "Out" list, every discipline invents extra work, or assumes someone else is doing it.
- Putting everything in one document. A spec that tries to hold the whole game design is never read in full. Keep it to one feature.
- Hiding unknowns. Gaps that are not listed as open questions get filled by whoever reaches them first.
- Treating the spec as finished. A spec that stops being updated becomes misleading. Out-of-date documentation is worse than none, because people trust it.
Judging a spec
Before sharing a draft, check it against these questions:
- Can an engineer who was not in the design meeting build the feature from this document alone?
- Can a tester write a pass/fail check for every rule?
- Does it say what is out of scope?
- Does it list what is still undecided and who will decide it?
- Could two readers reasonably build different features from the same text? If so, which sentence allows that?
A "no" to questions 1 through 4, or a "yes" to question 5, means the spec needs another pass.
Exercise
A designer writes this spec line: "The player can dash and it should feel good." Name two problems with this line as a spec, and say which jobs of a spec it fails.
Show answer
First, "feel good" is a goal, not a rule, so an engineer cannot build it and a tester cannot check it. Second, "can dash" leaves out the trigger, direction, duration, cooldown, and what happens in edge cases such as walls or damage, so each reader fills the gaps differently. The line fails the jobs of sharing one understanding and defining done. It also hides gaps instead of exposing them. A better version states the intent separately ("responsive, skillful movement") and lists rules and acceptance scenarios.
Exercise
An engineer asks whether the player can dash while carrying an object. The designers discuss it in chat and agree on "no". Where should that decision be recorded, and why?
Show answer
It belongs in the spec. If it was an open question, move it to Rules or Edge cases with the decision and update the Open questions list. Chat messages are hard to find later, so the next engineer, animator, or tester would ask the same question or build the opposite behavior. Recording it also gives QA a new scenario to test.