MANUAL

From idea to spec

From idea to specification

Most problems with AI-generated software don’t arise in the code, but before that: the assistant didn’t know exactly what you wanted. A specification (spec) is a brief description of what you’re building, for whom, and when it will be ‘finished’.

01

What should a good specification include?

  1. Objective: What problem are you solving? One or two sentences.
  2. Users: Who uses it? (customer, employee, administrator)
  3. What it’s supposed to do: the functions, as a brief list.
  4. What it doesn’t do: just as important; this prevents your assistant from building too much.
  5. Acceptance criteria: specific scenarios in which you check whether it works.
  6. Open questions: What don’t you know yet?

02

Example

# Spec: Facturen downloaden in het klantportaal

03

Doel

Klanten kunnen zelf hun facturen downloaden, zodat wij minder mails krijgen.

04

Gebruikers

Ingelogde klanten.

05

Moet

06

Moet niet (nu)

07

Acceptatiecriteria

08

Open vragen


You can convert those acceptance criteria (“given… when… then…”) directly into tests (see *Testing your app with Pest*).

09

Working with OpenSpec

OpenSpec is an open-source tool that keeps track of specs and changes in your project, so that your AI assistant can read and follow them. You’ll need Node.js (see Node.js and JavaScript).

npm install -g @fission-ai/openspec@latest
cd jouw-project
openspec init

openspec init asks which AI assistant you’re using and installs the relevant skills. You can then ask your assistant for a proposal, for example using /openspec-propose (or, in plain language: “create an OpenSpec proposal for downloading invoices”).

A folder named openspec/changes/<naam>/ will then be created, containing, amongst other things:

You read through the proposal and make any necessary adjustments. Only once it is correct do you instruct the assistant to carry out the tasks. Once this is done, the change is archived and the specifications are updated.

10

Tips

11

Need help?

With OpenSpec (free), I’ll work with you to develop your idea into a specification that a developer or agent can use to build it. Would you like to have it built afterwards? Then Bespoke software and web applications is the next step.

12

Skills

13

Related services