Spec Writing

Parent: Code Plan Writing · researched 2026-05-29T19:03:51.778Z· 7 sources · 10 concepts · skill spec-writing

An engineering spec is a contract. It says WHAT a system, component, endpoint, or message must do — independent of HOW it is implemented.

Overview

1. Spec says WHAT, not HOW

2. Contract-first design

3. OpenAPI 3.1 for HTTP APIs

4. AsyncAPI 3.0 for events

5. Gherkin / Given-When-Then for behavior specs

6. Spec-as-contract mindset

7. Versioning conventions

8. Examples are part of the spec

Anti-Patterns

References

Children

Frontier under this node: AsyncAPI 3.0, Contract-first design, Examples as part of spec, Gherkin / Given-When-Then, OpenAPI 3.1, Spec file vs code doc decision, Spec-as-contract mindset, Versioning conventions, WHAT not HOW (Spolsky)

← the whole tree · 3D view· how to read this page