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
Section titled “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
Section titled “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
Section titled “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
Section titled “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.

