Automated summary
This skill writes delta specifications with structured requirements and scenarios to describe what is added, modified, or removed from system behavior based on a proposal.
Strengths
- Clear structure with ADDED, MODIFIED, REMOVED sections.
- Enforces RFC 2119 keywords (MUST, SHALL, SHOULD) for requirement strength.
- Given/When/Then format ensures testable scenarios.
- Supports multiple persistence modes (engram, openspec, none).
Limitations
- Requires an existing or new domain to be defined.
- Scenario quality depends on the proposal's clarity.
- Does not handle cross-change dependency validation.
When you need to formally document behavioral changes before moving to design or implementation tasks.
When there are no functional changes (e.g., minor bug fixes with no spec impact) or when formal specs are overkill (e.g., exploratory projects).
Security analysis
SafeThe skill only defines structured writing of specification documents; it does not execute any system commands, access network, or perform potentially dangerous operations.
No concerns found
How this analysis is madeExamples
Write delta specs for the change 'add-oauth2-login' with artifact store mode 'openspec'. The proposal mentions affected areas: auth/ and ui/. Read existing specs if available and produce delta specs.Generate full specs for a new domain 'notifications' under change 'add-email-alerts' with mode 'engram'. The proposal describes requirements for sending email notifications on user events.name: sdd-spec description: > Write specifications with requirements and scenarios (delta specs for changes). Trigger: When the orchestrator launches you to write or update specs for a change. license: MIT metadata: author: gentleman-programming version: "2.0"
Purpose
You are a sub-agent responsible for writing SPECIFICATIONS. You take the proposal and produce delta specs — structured requirements and scenarios that describe what's being ADDED, MODIFIED, or REMOVED from the system's behavior.
What You Receive
From the orchestrator:
- Change name
- Artifact store mode (
engram | openspec | none)
Execution and Persistence Contract
Read and follow skills/_shared/persistence-contract.md for mode resolution rules.
- If mode is
engram: Read and followskills/_shared/engram-convention.md. Artifact type:spec. Retrieveproposalas dependency. If specs span multiple domains, concatenate into a single artifact with domain headers. - If mode is
openspec: Read and followskills/_shared/openspec-convention.md. - If mode is
none: Return result only. Never create or modify project files.
What to Do
Step 1: Identify Affected Domains
From the proposal's "Affected Areas", determine which spec domains are touched. Group changes by domain (e.g., auth/, payments/, ui/).
Step 2: Read Existing Specs
If openspec/specs/{domain}/spec.md exists, read it to understand CURRENT behavior. Your delta specs describe CHANGES to this behavior.
Step 3: Write Delta Specs
Create specs inside the change folder:
openspec/changes/{change-name}/
├── proposal.md ← (already exists)
└── specs/
└── {domain}/
└── spec.md ← Delta spec
Delta Spec Format
# Delta for {Domain}
## ADDED Requirements
### Requirement: {Requirement Name}
{Description using RFC 2119 keywords: MUST, SHALL, SHOULD, MAY}
The system {MUST/SHALL/SHOULD} {do something specific}.
#### Scenario: {Happy path scenario}
- GIVEN {precondition}
- WHEN {action}
- THEN {expected outcome}
- AND {additional outcome, if any}
#### Scenario: {Edge case scenario}
- GIVEN {precondition}
- WHEN {action}
- THEN {expected outcome}
## MODIFIED Requirements
### Requirement: {Existing Requirement Name}
{New description — replaces the existing one}
(Previously: {what it was before})
#### Scenario: {Updated scenario}
- GIVEN {updated precondition}
- WHEN {updated action}
- THEN {updated outcome}
## REMOVED Requirements
### Requirement: {Requirement Being Removed}
(Reason: {why this requirement is being deprecated/removed})
For NEW Specs (No Existing Spec)
If this is a completely new domain, create a FULL spec (not a delta):
# {Domain} Specification
## Purpose
{High-level description of this spec's domain.}
## Requirements
### Requirement: {Name}
The system {MUST/SHALL/SHOULD} {behavior}.
#### Scenario: {Name}
- GIVEN {precondition}
- WHEN {action}
- THEN {outcome}
Step 4: Return Summary
Return to the orchestrator:
## Specs Created
**Change**: {change-name}
### Specs Written
| Domain | Type | Requirements | Scenarios |
|--------|------|-------------|-----------|
| {domain} | Delta/New | {N added, M modified, K removed} | {total scenarios} |
### Coverage
- Happy paths: {covered/missing}
- Edge cases: {covered/missing}
- Error states: {covered/missing}
### Next Step
Ready for design (sdd-design). If design already exists, ready for tasks (sdd-tasks).
Rules
- ALWAYS use Given/When/Then format for scenarios
- ALWAYS use RFC 2119 keywords (MUST, SHALL, SHOULD, MAY) for requirement strength
- If existing specs exist, write DELTA specs (ADDED/MODIFIED/REMOVED sections)
- If NO existing specs exist for the domain, write a FULL spec
- Every requirement MUST have at least ONE scenario
- Include both happy path AND edge case scenarios
- Keep scenarios TESTABLE — someone should be able to write an automated test from each one
- DO NOT include implementation details in specs — specs describe WHAT, not HOW
- Apply any
rules.specsfromopenspec/config.yaml - Return a structured envelope with:
status,executive_summary,detailed_report(optional),artifacts,next_recommended, andrisks
RFC 2119 Keywords Quick Reference
| Keyword | Meaning | |---------|---------| | MUST / SHALL | Absolute requirement | | MUST NOT / SHALL NOT | Absolute prohibition | | SHOULD | Recommended, but exceptions may exist with justification | | SHOULD NOT | Not recommended, but may be acceptable with justification | | MAY | Optional |
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/specification-writing-with-requirements-and-scenarios-mmlj2noa/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/specification-writing-with-requirements-and-scenarios-mmlj2noa' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/specification-writing-with-requirements-and-scenarios-mmlj2noa/download' --output '.skill-downloads/specification-writing-with-requirements-and-scenarios-mmlj2noa/SKILL.md.part' && mv '.skill-downloads/specification-writing-with-requirements-and-scenarios-mmlj2noa/SKILL.md.part' '.skill-downloads/specification-writing-with-requirements-and-scenarios-mmlj2noa/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/specification-writing-with-requirements-and-scenarios-mmlj2noa/SKILL.md' && test -s '.skill-downloads/specification-writing-with-requirements-and-scenarios-mmlj2noa/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/sdd-spec' && cp -R '.skill-downloads/specification-writing-with-requirements-and-scenarios-mmlj2noa' '.claude/skills/sdd-spec'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/specification-writing-with-requirements-and-scenarios-mmlj2noa'openskills read 'specification-writing-with-requirements-and-scenarios-mmlj2noa'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/specification-writing-with-requirements-and-scenarios-mmlj2noa/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
Supabase Docs Authoring
Documentation
Write, edit, and review Supabase documentation content including guides, tutorials, reference docs, and partials. Follow style guides and MDX/TOML validation rules.
Create Architecture Decision Record
Documentation
Create a new Architecture Decision Record with sequential numbering, register it in the AgentDB graph, and link related ADRs.
Plan update with deep research
Documentation
Updates a plan document by launching parallel subagents to analyze a topic across all compiler passes, then consolidates findings into the plan doc.