Free template

Technical specification template

A technical specification explains how a feature or system will be built before the code is written, so other developers can spot problems while they are still cheap to fix. This template follows the order reviewers read it in.

  • Written by engineers, for engineers
  • Alternatives considered on record
  • Security and rollout included

Template

Technical specification

ProjectPrepared byDateVersion

01Summary

  • Title
  • Author and reviewers
  • Status (draft, in review, approved)
  • Links to the requirements, designs and tickets
  • One-paragraph summary of the proposal

02Context and goals

  • What exists today
  • The problem this solves
  • Goals
  • Non-goals

03Proposed design

Describe components and how they interact. A simple diagram helps.

  • Components and responsibilities
  • Main flows, step by step
  • Third-party services used
  • Configuration and feature flags

04Data

Entity or tableKey fieldsChange (newalteredremoved)Migration needed

05Interfaces

Endpoint or eventMethod or triggerRequestResponse or effectErrors

06Alternatives considered

OptionAdvantagesDisadvantagesWhy not chosen

07Security, privacy and performance

  • Who can access what, and how it is enforced
  • Personal or sensitive data involved
  • Expected load and performance targets
  • Failure modes and how the system recovers

08Testing and rollout

  • Unit, integration and end-to-end tests planned
  • How it is released (all at once, flag, percentage)
  • Monitoring and alerts
  • Rollback plan

09Open questions

QuestionOwnerDue

Free template from Stegnor · stegnor.com/templates

How to use it

Three steps to a finished document

  1. 01

    Write context and goals first

    Reviewers need to agree on the problem before they can judge the solution.

  2. 02

    Propose one design and record the others

    Describe the chosen approach in detail and explain briefly why the alternatives lost.

  3. 03

    Review before building

    Share the draft, resolve comments and open questions, then mark it approved.

Requirements say what, specs say how

Requirements documents, product briefs and user stories describe what the software must do. A technical specification describes how it will do it: which components change, how data is stored, which APIs are called, how failures are handled. Writing it down before coding exposes design mistakes when they cost an afternoon instead of a rewrite.

A filled-in example

A fictional spec summary: "Add online deposit payment to bookings. Today bookings are created without payment. Proposed: create a payment intent with the provider when a booking is confirmed, hold the slot for fifteen minutes, confirm the booking on the provider's webhook, release the slot if payment fails or times out. New fields on the booking: payment status and provider reference. Alternative considered: charge after the appointment. Rejected because the goal is to reduce no-shows. Rollout behind a per-clinic flag, starting with two clinics. Rollback: switch the flag off; unpaid bookings continue to work as today."

How long should it be

As long as the risk demands. A small change may need one page; a new payment system or data model change deserves several. The sections that most often prevent problems are alternatives considered, failure modes and rollback, because they force the author to think beyond the happy path.

Mistakes to avoid

  • Writing after the code. A spec written afterwards is documentation, which is useful, but it prevents nothing.
  • No non-goals. Reviewers then argue about things the change was never meant to do.
  • Ignoring migration. Changing a data model on a live system needs a plan for existing data.
  • No rollback. Every release should have a way back, written before it is needed.

Terms used: Software requirements specification (SRS) · Schema migration · OpenAPI specification · Code review

Questions, answered

The engineer leading the work, with review from other engineers and, for risky changes, someone responsible for security or operations.

For small stories, no. For changes that touch architecture, data or several teams, a short spec saves time even in agile teams.

An SRS states what the system must do, in testable requirements. A technical specification explains how one part of the system will be designed and built.

Keep exploring

Where to go next.

  1. 01Software requirements specification (SRS) templatePurpose, scope, functional and non-functional requirements, acceptance
  2. 02API documentation templateAuthentication, endpoints, errors, limits, webhooks and versioning
  3. 03Code review checklistCorrectness, tests, security, performance and readability
  4. 04Software test plan templateScope, test types, environments, exit criteria and a test case table
  5. 05CRM requirements templatePipeline, data, integrations, automation, reports and migration
  6. 06Online store requirements templateCatalogue, checkout, payments, shipping, tax and integrations
  7. 07Booking system requirements templateServices, availability rules, payments, reminders and calendars
  8. 08Project discovery questionnaireThe questions to answer before a software project is scoped

By the Stegnor team · Updated