An app specification is the document everything else comes from: the estimate, the build and the tests. When the specification has gaps, everyone fills them in their own way, and the differences surface once there is already code. When AI agents write much of the code, this matters even more: the agent builds exactly what is written, and guesses the rest.
This guide explains what a specification document should contain, how to organise it so that both the client and the developers work from it, and shows a slice of a specification in the format we write for every client.
What a specification document is
A specification describes what the system has to do, not how to code it: which screens it has, which business rules it applies, what happens automatically, which data it keeps, and who is allowed to do what. The international standard for requirements engineering, ISO/IEC/IEEE 29148:2018, sets out the processes that lead to requirements for systems and software across their whole life cycle, and the required content of the documents those processes produce. In practice, a good requirement is one you can test.
An app specification and a system specification follow the same principle at a different scale. For a founder’s app the focus is usually on the screens and the user journey. A system for an organisation has more rules, connections to other systems, permissions, and data that moves over from an old system.
What a specification document should contain
- The screens, grouped into modules. Each screen states what it shows, which actions can be performed on it, and which screen each action leads to.
- Every calculation, condition and limit the system applies, with the actual numbers.
- Processes that run on their own, when each one runs, and what happens when it fails.
- The data the system keeps about each entity, and the rules that keep it valid.
- Who sees each piece of information, and who may perform each action.
- Outside systems the system connects to, such as payments, SMS or accounting.
- Assumptions made without the client’s approval, and questions not yet resolved.
Two versions of every requirement
The classic problem with specifications is that they are written for one audience. A document written for the client is not precise enough for the developers, and a document written for the developers is one the client does not really read before approving.
We keep every requirement as a work item in the project management system, which the client has access to as well. Each item has two faces: a non-technical title and description that the client reads and approves, and a developer title and description, always in English, that the development and QA team builds and tests against. Both describe the same item and are updated together, so the client knows the developers build exactly from what they approved.
How to organise a specification
- An Epic is a module, such as Rentals, Customers or Billing. It only groups items; it holds no requirements.
- A specific capability of the system is a Feature: a complex screen, such as a dashboard for the business owner; a process, such as producing Excel reports from templates the client created; or a group of similar resources, such as the system tables in the database. It also only groups the requirements beneath it.
- A User Story is the requirement itself. Every screen, rule, scheduled job and data entity is a separate story.
These are the terms used in Azure DevOps, the project management system we usually work in. The same hierarchy is common in other systems too, sometimes under slightly different names. We add a few rules of our own:
- Items reference each other by number. A screen that needs a business rule or a data definition links to the item that owns it, without copying it. A rule that changes, changes in one place.
- Every module has a main-screen story that defines the navigation and references every screen reachable from it.
- Anything we decided ourselves is marked
{ASSUMED}, so the client can confirm or correct it. Anything only the client can decide goes into one shared list of open questions. - Every story closes with the same footer: the rules from our development rule book that apply to it, its open questions, and where its data is stored.
A sample: a slice of a specification for a fictional system
The sample comes from a fictional system, ToolHub, a rental-management system for a tool-hire company. All names, numbers and rules are invented. The structure, conventions and level of detail are exactly what our clients receive.
The slice belongs to the Rentals module epic and the Rental return feature. We start with one business rule, the late-return fee, in both its versions:
How the late-return fee is calculated
A rental returned after its due time is charged a late fee. The first two hours after the due time are free, so a customer stuck in traffic is not penalised. After that, every started day of delay costs 1.5 times the daily rental price of the item. This is deliberately higher than renting for another day, so that customers extend in advance instead of simply returning late. The fee is capped at the item’s replacement value. The exact figures (free hours, multiplier, cap) are settings the branch manager can change without a software update.
Late-return fee rule: grace period, per-day multiplier, cap, and the settings that control them
Pure calculation rule, used by the return screen (#41243) and the overdue reminders job (#41352). No UI of its own; the settings are edited on the Pricing Settings screen (#41140).
Inputs: dueAt, returnedAt (both UTC), the item’s dailyRate at hand-over, the item’s replacementValue, and the settings lateGraceMinutes (default 120), lateDayMultiplier (default 1.5), lateFeeCapPercent (default 100).
Rule
delay = returnedAt - dueAt. Ifdelay <= lateGraceMinutes: fee = 0, chargeable days = 0.- Otherwise
chargeableDays = ceil((delay - lateGraceMinutes) / 24h): every started day counts. fee = chargeableDays x dailyRate x lateDayMultiplier.fee = min(fee, replacementValue x lateFeeCapPercent / 100).- Calculated per item and summed per rental; the breakdown per item is kept for the settlement document.
- Day boundaries are computed in the branch’s time zone, not UTC [I18N-5]; DST transitions must not produce a 23-hour or 25-hour “day”.
- Implemented as a pure function [TEST-7], with unit tests at: inside grace, grace + 1 minute, exactly 24h after grace, cap reached, DST change day.
Key reminders: [TEST-7] pure function; [TEST-9] clock abstraction; [DB-6] money in decimal; [I18N-5] branch time zone.
Open questions: none.
Data storage: settings in System Settings (#41130); computed values are stored on the Settlement Document (#41128) and never recomputed after closing.
The return screen does not define the calculation itself. It points to rule #41318, and so do the automatic reminders to customers who are late. Here is the screen story, with the full non-technical description and an excerpt of the developer description:
Returning a rental: the screen the branch employee uses when a customer brings equipment back
When a customer returns equipment, the employee opens the rental from the Rentals dashboard and records the return on this screen. The screen shows what was rented, when it was due, and what the customer owes or is owed. The employee ticks each item as returned, notes any damage, and the system works out the final amount by itself: the rental price, any late fee according to the late-return rule, and the deposit to refund.
Nothing is charged or refunded until the employee reviews the summary and confirms. If a card payment fails, the rental stays open and is marked “waiting for payment” so nobody forgets it. Once the return is confirmed the rental is closed and cannot be changed. A correction is done with a new credit note, so the history always stays true.
Return Rental screen: item check-in, damage capture, settlement calculation and closing of a rental
Confirm return
- Button
Confirm returnis enabled only when every row has a condition and the settlement is up to date. - The confirmation dialog shows the final amount and the payment method on file; per [UI-UX-16] the action requires explicit confirmation.
- On confirm, in one transaction: rental status becomes
Closed, every item’s availability becomesAvailable(In repairwhen damaged,Written offwhen missing), the settlement document is created, and the payment or refund is executed through the payment provider. - Payment failure: the transaction is rolled back except the item check-in, rental status becomes
Awaiting payment, the rental appears in the dashboard’s “Needs handling” list, and the overdue reminders job (#41352) stops sending reminders for it. - A closed rental is immutable; corrections are made by a credit note (#41260).
{ASSUMED}Credit notes are issued only by the branch manager role.
Key reminders: [UI-UX-1] dirty-state guard; [UI-UX-16] confirm irreversible action, then toast; [API/REST-10] idempotency key on the confirm call; [API/REST-11] optimistic concurrency; [DB-3] single transaction; [ERR-3] no technical details in messages.
Open questions: Q-17. Should a partial return (some items kept by the customer) be allowed, or must every item be returned to close the rental?
Data storage: Rental and RentalItem (#41122), Customer (#41105), Equipment Item (#41120), Settlement Document (#41128).
Note the two markers at the end. {ASSUMED} marks a decision we made ourselves, that only the branch manager issues credit notes, which the client will confirm or correct. Q-17 is an open question: may a customer return only some of the items? That is a business decision, so only the client decides it, and it enters the code after the client answers.
And a scheduled job from the same slice, as the client reads it:
Automatic reminders to customers whose rental is overdue
Every hour the system looks for rentals that are past their due time and have not been returned. The customer receives a first message two hours after the due time, when the free grace period ends, then one message per day, up to three. Each message states what is due, the late fee accumulated so far, and the branch phone number. Reminders stop automatically the moment the rental is returned or closed. The branch sees which reminders were sent on the rental itself, so an employee never calls a customer who was reminded ten minutes ago.
Common mistakes in a specification document
- Describing how a screen looks, but not what the system calculates in it and when.
- The same rule written in several places, slightly differently each time.
- Requirements nobody can test, such as “the system will be fast and user-friendly”.
- Only the happy path is written. There is not a word about what happens when a payment fails or when two employees edit the same record.
- A developer chose on their own, nobody marked the decision, and the client finds out about it only at delivery.
From specification to estimate
A binding time and budget estimate can only be given after the specification, because only then is it clear what is being built. That is why the specification is a separate, fixed-price phase with us, and it ends with both the specification and the estimate. The specification is yours, even if you decide to build elsewhere.
How the process works, from the intro call to delivery, is explained on how we work. Organisations that need a new system or a legacy replacement will find details on our page on custom software development for organizations, and founders on our page on app development for founders.
Frequently asked questions
What is the difference between an app specification and a system specification?
Who should write the specification document?
Can you start building without a specification?
What happens when requirements change mid-project?
Who owns the specification document?
Sources
- International standard: ISO/IEC/IEEE 29148:2018, Requirements engineering
- Microsoft documentation, May 2026: Define features and epics to organize backlog items
- ISO/IEC/IEEE 29148:2018: ISO/IEC/IEEE 29148:2018 Systems and software engineering – Life cycle processes – Requirements engineering
