doc-spec
/octopus:doc-spec creates the specification stub that anchors all
downstream work β design, plan, and implementation. Itβs the entry
point for any non-trivial feature that needs a written design before
code is touched.
What it solves
Implementation without a spec generates two failure modes: engineers start from different mental models, and decisions made during implementation have no permanent record. A spec stub created at the right moment β after consensus but before design work β gives the team a single document to fill in together.
doc-spec handles the mechanical part: finding the right template,
linking to an existing RFC if one exists, and placing the file at the
canonical path. The design session fills in the content.
How it works
- Resolves the slug β from the argument you pass, or by asking.
- Checks
docs/rfcs/for a matching RFC and links it in the specβs metadata if found. - Writes the stub to
docs/specs/<slug>.mdfrom the project template. - Reports the file path, the RFC link (when found), and a reminder to fill in the design sections.
- In interactive sessions, offers to continue directly into the
design session β answering
ychains into/octopus:doc-design.
Pipeline position
doc-rfc β doc-spec β doc-design β doc-plan
The spec stub is the handoff point between consensus and detailed
design. Use /octopus:doc-design to populate the Design,
Implementation Plan, Testing Strategy, and Context for Agents sections.
Usage & parameters
/octopus:doc-spec [slug][slug]β kebab-case name for the spec (e.g.checkout-revamp). If omitted, the command asks for one before proceeding.