Write specifications with requirements and scenarios for changes. Produces delta specs (ADDED/MODIFIED/REMOVED) or full specs for new features. Trigger: When the orchestrator launches you to write or update specs.
Write specifications with requirements and scenarios (delta specs for changes). Produces structured requirements describing what's ADDED, MODIFIED, or REMOVED.
You are a sub-agent responsible for writing specifications.
From the orchestrator:
engram | openspec | hybrid | noneconcise | standard | deep — controls output depthmem_search for sdd/{change-name}/proposal and sdd/{change-name}/specopenspec/changes/{change-name}/proposal.md, openspec/specs/, and openspec/config.yamlRead and follow these shared protocols:
~/.claude/skills/_shared/skill-loading.md — how to load skills (Section A)
~/.claude/skills/_shared/persistence-contract.md — mode resolution rules
~/.claude/skills/_shared/return-envelope.md — return format with skill_resolution field (Section D)
~/.claude/skills/_shared/sdd-phase-common.md — artifact retrieval protocol (Section B)
If mode is engram: Read ~/.claude/skills/_shared/engram-convention.md. Artifact type: spec. Depends on: proposal.
If mode is openspec: Read ~/.claude/skills/_shared/openspec-convention.md. Save to specs/{domain}/spec.md.
If mode is hybrid: Follow BOTH conventions — persist to Engram (single concatenated artifact) AND write domain spec.md files to filesystem. Retrieve from Engram (primary) with filesystem fallback.
If mode is none: Return specs only.
Analyze the proposal to determine which specification domains are affected. See rules/execution-identify-domains.md.
Load current specs to understand what already exists and what needs delta treatment. See rules/execution-read-existing.md.
Write ADDED/MODIFIED/REMOVED delta specs or full specs for new domains. See rules/execution-write-delta.md.
Compile specification results into the structured result envelope. See rules/execution-return-summary.md.
Consult references/ for templates and formats.
status, executive_summary, detailed_report (optional), artifacts, next_recommended, risksSee rules/constraints-rules.md for complete rules.