Spec Authoring
Overview
This skill is the agent-facing entry point to the Engineering Spec Authoring Standard:
how to write engineering specifications in docs/specs/. A spec is a behavior contract
(testable WHAT + WHY, linked to implementing modules), owned by Engineering / Architecture.
It has two distinct companions — keep the roles separate:
spec-authoring(this skill) = authoring engineering specs. Scope a subsystem into a
file, assign stable IDs, structure a behavior-contract document, decide granularity, run
pre-spec technical research, and move a spec through its lifecycle.
spec-linked-docs(SLD) = traceability. Keep source code in sync with the spec via
docstring References and a CI checker.
prd-authoring= product PRDs (a separate, product-owned standard —docs/prd/).
SPEC ≠ PRD. A SPEC is an engineering contract (
SPEC-{SUBSYSTEM}-{NN}~{rev}, in
docs/specs/, owned by Engineering). A PRD is a product requirements doc
(
PRD-{AREA}-{NN}, indocs/prd/, owned by Product). A spec implements a PRD
requirement and cites it; product framing (problem, users, acceptance criteria, metrics)
stays in the PRD. Do not put PRD content in a spec.