Software specification template: structure and sections

A good specification is not the longest one. It is the one a developer can build from without guessing, and a client can check against without arguing. Here is the structure we use, section by section, with what to write in each.

In short

The structure follows the accepted layout of requirements documents (IEEE 830 and ISO/IEC/IEEE 29148): introduction and scope, overall description, specific requirements, and verification. We add three things that real projects most often lack: a roles and permissions table, a list of what is out of scope, and acceptance criteria for every requirement in a testable form. A specification without acceptance criteria is a statement of intent, not a specification.

What sections does a specification document have?

Ten sections: purpose and scope, terms, users and roles, processes, functional requirements, data model, integrations, non-functional requirements, verification, and appendices. The table shows what goes into each.

#SectionWhat goes in it
1Purpose and scopeThe business problem in a sentence or two, who the users are, what this version includes, and what it does not
2TermsEvery business term in the document, each with a single definition. If the team uses two names for the same thing, choose one here.
3Users and rolesA table: role, what it can see, what it can change, and what it may not do
4ProcessesThe main business processes, step by step, including what happens when something goes wrong
5Functional requirementsA user story for each capability, and acceptance criteria for each story
6Data modelEntities, important fields, relations, and which system is the source of each field
7IntegrationsExternal systems, what passes, in which direction, and what happens when they are unavailable
8Non-functional requirementsPerformance, availability, security, privacy, accessibility, and languages
9VerificationHow each requirement is checked: scenarios, test data, who signs off
10AppendicesSample screens, existing reports, and sample files

Section 1: what is out of scope

The list of what is out of scope matters as much as the list of what is in. Without it each side fills the gap with its own expectation: the client assumes there is an app, the developer assumes there is only a website. A short list of what this version does not include removes most of the arguments at the end of a project.

Section 2: terms

Half of the arguments in a project are about words. If the client says order and means a quote, while the developer hears a paid order, both are right and the system is wrong. One table with a single definition for each term removes this.

TermDefinitionNot to be confused with
OrderA customer request that has been paid or approved for paymentQuote: a price offer without a commitment
CustomerA business or person with an account in the systemContact: a person on the customer's side, without an account of their own
Open orderAn order that has been neither delivered nor cancelledDraft: an order not yet submitted

If the system has a Hebrew and an English interface, add a column with the term in each language. The words on screen and in the code then match the document.

Section 3: roles and permissions

This is the section most specifications skip, and it is exactly where vulnerabilities are born. A sample structure:

RoleSeesChangesForbidden
CustomerTheir own ordersTheir own detailsViewing other customers' orders
Support agentTheir customers' ordersOrder statusDeleting an order, changing a price
ManagerEverythingEverything except payment historyChanging a completed payment

For every row in the forbidden column, write a test scenario in section 9. Without a scenario, there is no way to know whether the restriction actually works.

Section 4: processes

Processes are written before the requirements, because they show the work, not the screens. For each main process, describe the steps, who performs each one, and what happens when a step fails.

Example. Order intake: 1. The customer submits an order. 2. The system checks stock. 3. If an item is out of stock, the customer sees a delivery date and chooses whether to wait or remove the item. 4. The order goes to the warehouse. 5. If payment fails, the order stays a draft for 24 hours and the customer gets a link to pay again.

Most of the cost of a system sits in the failure branches: no stock, no payment, an external system that does not respond. A process without them describes only the day when everything works.

Section 5: requirements you can test

Each requirement is written as a user story and as an acceptance criterion. The common form is: given a state, when an action happens, then the system responds like this.

Example. Given a signed-in customer with two open orders, when they open the orders list, then they see only their own two orders, newest first.

The system shall be user friendly is not a requirement, because it cannot be tested. An order can be submitted in no more than three taps from the home screen is a requirement.

Section 6: data model

A full database diagram is not needed here. What is needed is a list of entities, their important fields, the relations between them, and the source of every field: entered by a user, received from another system, or calculated.

EntityImportant fieldsSource
Customername, company number or ID number, email, languageentered by the customer, checked against the ERP
Ordernumber, date, status, totalcreated by the system; the total is calculated from the lines
Order lineproduct, quantity, pricethe price comes from the ERP price list, not from the screen

Check the model against the reports: if management needs sales by region, the region has to be stored somewhere. A report that does not follow from the stored data will not appear by itself.

Section 7: integrations

For each external system, write down four things: what passes, in which direction, how often, and what happens when the system is unavailable.

SystemWhat passesDirectionHow oftenWhen it is unavailable
ERPcustomers, price list, ordersboth waysprice list nightly, orders immediatelyorders wait in a queue and are sent when it is back
Payment gatewaythe payment request and its resultout and backwith every paymentthe order stays unpaid, and the customer gets a link to pay again
Invoicing systemorder data out, the invoice with its allocation number backboth wayswhen an order is paidthe invoice is issued once the system is back, and the customer is notified

The unavailability column is the one most often left empty. Without it, the developer decides alone what to do when the ERP does not answer, and the client finds out in production.

Section 8: what gets forgotten for Israel

  • Hebrew and right-to-left text, including fields that mix Hebrew and English, and numbers within Hebrew text.
  • The Israeli ID number with its check digit, and the VAT dealer number.
  • VAT and invoices, including the allocation number (מספר הקצאה) on invoices above the threshold.
  • A Sunday to Thursday work week and holidays, if the system has times, queues or shifts.
  • Amendment 13 to the Privacy Protection Law: which personal data is kept, who can access it, and how access is logged.
  • Accessibility under the Israeli standard, if the system is public-facing.

If the team is outside Israel, this section grows into a chapter of its own: writing a specification for an offshore team.

How do you use the template?

  1. Start with sections 1 and 3: what we build, what we do not, and who may do what.
  2. Write the processes before the requirements. Requirements written without a process describe screens, not work.
  3. Add the acceptance criterion to each requirement immediately, not at the end.
  4. Check the data model against the reports the business needs: every report should follow from the data being kept.
  5. When the document is ready, run the one-hour test on it: give it to a developer who was not at any meeting and ask them to write down every question they need answered before they can start.

If development uses AI tools, the same document works as the tool's specification. Just make sure it is explicit about everything a person would normally infer from context.

What else a spec for an AI tool needs: specifications before building with AI.

Frequently asked questions

What should a software specification contain?

Purpose and scope, terms, users and roles with permissions, processes, functional requirements with acceptance criteria, a data model, integrations, non-functional requirements, and a verification plan.

What is the difference between a specification and a requirements document?

In everyday practice, they are usually the same document. Standards distinguish between business requirements, system requirements, and a software specification, but for a mid-sized project one well-structured document is enough.

Is there a standard for a specification document?

Yes. ISO/IEC/IEEE 29148, which replaced IEEE 830, sets the accepted structure of a requirements document: introduction and scope, overall description, specific requirements, and verification. This template follows it and adds a permissions table, an out-of-scope list, and an acceptance criterion for every requirement.

How long should a specification be?

Long enough for a developer to build without guessing and a client to check without arguing. The page count matters less than every requirement having an acceptance criterion and the permissions being written down.

What is the most common mistake in specifications?

Requirements that cannot be tested, no list of what is out of scope, and no permissions table. All three surface only at the end of the project, when fixing them costs the most.

Can this specification be used with AI coding tools?

Yes. A document with scope, acceptance criteria, a data model, and permissions is exactly what tools like Claude Code and Lovable need, so they do not fill gaps with guesses.

Where to start

Fill in sections 1 and 3 yourself: what we build, what we do not, and who may do what. Send them to us and we will continue from there to processes and requirements.

Talk to us

Related: Systems requirements analysis, Specification for an offshore team, Specifications before building with AI

SLAtech LTD