← Use spec sections guides

How to use the Platform section

How-To Use spec sections Beginner 1061001HOWTO-1061001

HOWTO-1061001Use spec sectionsBeginner

This guide shows you how to use the Platform section in a SpecDD .sdd file.

Platform describes implementation language, runtime, framework, tool stack, or environment when that information helps people and agents interpret the local contract.

Short answer

Use Platform only when platform context changes how the spec should be implemented or reviewed. Write it as a single inline value, usually with concise slash-separated labels such as Platform: TypeScript/Node/Express. Do not use Platform for project-wide commands, naming rules, or team conventions.

Syntax

Valid:

Spec: Itinerary Service
Platform: TypeScript/Node/Express

Invalid:

Platform:
  TypeScript

Rules:

Steps

1. Use it when platform affects work

Good uses:

Platform: JavaScript/ES6
Platform: Python/Django/5.2
Platform: TypeScript/Node/Express

This is useful when the spec governs an area where language, framework, runtime, or environment matters.

2. Omit it when it adds no local value

You do not need Platform in every file. If the project is already obviously one stack and the local spec does not need additional context, omit it.

SpecDD specs should include only sections that add useful local information.

3. Keep detailed conventions out of Platform

Do not use Platform for:

Put shared project-wide conventions in .specdd/bootstrap.project.md. Put personal working preferences in .specdd/bootstrap.local.md.

4. Avoid over-specific labels

Too noisy:

Platform: TypeScript/Node/Express/Jest/ESLint/Prettier/PostgreSQL/Docker/Linux

Better:

Platform: TypeScript/Node/Express

If a database, tool, or runtime matters as a dependency or boundary, use sections such as Depends on, Forbids, Accepts, Returns, or Handles instead.

Common mistakes

How to verify the result

The Platform section is useful when:

← Use spec sections guides