Reference

spec new

Create the next specification document under dirs.specs (numbered Markdown with YAML frontmatter). The frontmatter is filled from the spec-metadata schema defaults; the spec id and creation date are set automatically from the next number in the sequence and today's date. Flags override individual fields, and on an interactive terminal any field left unset is collected through an inline themed form that includes a multi-line body editor. With --yes (or when there is no terminal) the file is written from defaults plus flags, --title is required, and the starter skeleton body is used unless --body is given.

Optional

--title

string default ""

Spec title; also the source of the filename slug unless --slug is given.

--slug

string default ""

Filename slug (overrides the title-derived slug); must match ^[a-z0-9][a-z0-9-]*$.

--description

string default ""

One-paragraph summary of the spec.

--parent

string default ""

Parent spec id like #0002; repeatable.

--tag

string default ""

Lowercase topic tag; repeatable.

--target-dir

string default ""

Advisory repository-relative directory this spec targets.

--body

string default ""

Markdown body written below the frontmatter (default: skeleton template).

--yes

boolean default false

Non-interactive: never prompt (requires --title).

internal/cli/speccmd.go