← Use spec sections guides

How to use metadata or frontmatter in SpecDD files

How-To Use spec sections Beginner 1061021HOWTO-1061021

HOWTO-1061021Use spec sectionsBeginner

This guide explains how to handle metadata or frontmatter in SpecDD .sdd files.

SpecDD .sdd files are line-oriented spec files. The language does not define YAML frontmatter or a metadata block as part of .sdd syntax.

Short answer

Do not add YAML frontmatter to .sdd files. A complete .sdd file starts with Spec, with only blank lines or whole-line comments allowed before it. Put real contract information in normal sections such as Platform, Purpose, Owns, Must, Tasks, or Done when. Put project-wide conventions in .specdd/bootstrap.project.md.

What not to write

Do not write:

---
owner: trips-team
status: draft
---

Spec: Itinerary

The frontmatter lines are not a supported .sdd metadata format.

What to write instead

Use supported sections:

Spec: Itinerary
Platform: TypeScript/Node

Purpose:
  Keep trip itinerary items organized by day.

Owns:
  ./itinerary.ts
  ./itinerary.test.ts

Tasks:
  [?] Confirm whether duplicate places are allowed.

Use .specdd/bootstrap.project.md for project-wide conventions, such as where team ownership, CODEOWNERS, commands, or architecture docs live.

When comments are acceptable

Whole-line comments are supported:

# Draft reviewed by Trips maintainers on 2026-06-05.
Spec: Itinerary

Comments are ignored as spec content. They do not create requirements, constraints, tasks, references, or write authority. Use them only for non-contract notes.

If the note affects behavior or review, put it in a real section.

Common replacements

For human owner:

Use CODEOWNERS, team docs, or project process.

For platform:

Platform: TypeScript/Node

For status:

Tasks:
  [?] Confirm storage failure behavior.

For project conventions:

.specdd/bootstrap.project.md

For external docs:

References:
  /docs/adr/storage-boundary.md

Common mistakes

How to verify the result

The file is correct when:

← Use spec sections guides