sdd-spec
Formal specification document authoring for spec-driven development
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Formal specification document authoring for spec-driven development
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Structured code review
Find and load available skills
PR description generation
Spec-faithful implementation for spec-driven development
Architecture and interface design for spec-driven development
Codebase analysis and context gathering for spec-driven development
| name | sdd-spec |
| description | Formal specification document authoring for spec-driven development |
| methodology | sdd |
Write a formal specification document that the Designer and Implementer will use as their source of truth. The spec must be complete enough that two different developers could implement the same behavior independently.
State the problem: Define what problem is being solved.
Define success criteria: List measurable acceptance tests.
Specify the interface contract: Define the public surface precisely.
Specify data structures: Define all types involved.
Specify behavior for edge cases: Cover boundary conditions explicitly.
Specify non-functional requirements: Add constraints beyond behavior.
## Specification: <feature name>
### Problem Statement
<1-3 sentences describing what problem this solves>
### Scope
**In scope**: <what this spec covers>
**Out of scope**: <explicit exclusions>
### Success Criteria
1. Given <precondition>, when <action>, then <expected outcome>
2. ...
### Interface Contract
#### <FunctionName>(params) (returnType, error)
- **Purpose**: <what it does>
- **Parameters**: <name type — description>
- **Returns**: <description of return value>
- **Errors**: <error type — when it is returned>
- **Side effects**: <what changes as a result>
- **Invariants**: <what must be true before/after>
### Data Structures
#### <TypeName>
| Field | Type | Required | Description |
|-------|------|----------|-------------|
### Edge Case Behavior
| Condition | Expected Behavior |
|-----------|------------------|
### Non-Functional Requirements
- **Performance**: <requirement>
- **Security**: <requirement>
- **Reliability**: <requirement>