بنقرة واحدة
sdd-planning
Spec-Driven Development: Implementation planning format, constitution check gates, and Weave plan bridge
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Spec-Driven Development: Implementation planning format, constitution check gates, and Weave plan bridge
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Spec-Driven Development: Cross-artifact consistency analysis — semantic model building, 6 detection passes, severity assignment
Spec-Driven Development: Ambiguity detection taxonomy, prioritization heuristic, and sequential questioning protocol
Spec-Driven Development: Constitution format, versioning rules, and governance methodology
Spec-Driven Development: Orchestration protocol — working-spec.json lifecycle, phase management, initialization, and delegation guidance for SDD workflows
Spec-Driven Development: Feature specification format, quality validation checklist, and requirement writing rules
| name | sdd-planning |
| description | Spec-Driven Development: Implementation planning format, constitution check gates, and Weave plan bridge |
Planning in Spec-Driven Development produces two complementary artifacts:
.specify/features/{slug}/plan.md — the technical design document.weave/plans/{slug}.md — the Tapestry-executable task checklistBoth must be created. The Weave plan bridges SDD methodology with Weave's execution engine.
.specify/features/{slug}/plan.md)# Implementation Plan: [Feature Name]
**Feature**: [{slug}](./)
**Status**: Draft | Approved
**Spec**: [spec.md](./spec.md)
## Technical Context
- **Stack**: [languages, frameworks, databases, runtimes]
- **Architecture pattern**: [MVC / layered / event-driven / etc.]
- **Key dependencies**: [list any new dependencies required]
- **Unknowns**: [mark as UNKNOWN — resolved in Phase 0]
## Constitution Check
| Principle | Status | Notes |
|-----------|--------|-------|
| [Principle Name] | ✅ Complies | [how] |
| [Principle Name] | ⚠ Partial | [gap and mitigation] |
| [Principle Name] | ❌ Violation | [BLOCKING — must resolve before proceeding] |
**Rule**: Any ❌ violation blocks the plan. Fix the violation or amend the constitution before continuing.
## Phase 0: Research
*Resolve all UNKNOWN items from Technical Context before designing.*
- [ ] Research [UNKNOWN item] → output findings to `./research.md`
- [ ] Investigate [integration point] → document API/contract details
- [ ] Spike [technical uncertainty] → prototype approach, document decision
## Phase 1: Design
### Data Model (`./data-model.md`)
For each entity:
Entity: [Name]
### API Contracts (if applicable)
For each endpoint:
[METHOD] /path/{param} Request: { field: type } Response 200: { field: type } Response 4xx: { error: string, code: string } Auth: required / none
.weave/plans/{slug}.md)The Weave plan is the Tapestry-executable version. It must follow Weave's standard plan structure:
# [Feature Name] — Implementation Plan
## TL;DR
> [One sentence summary of what will be built and why]
## Context
### Feature
[Brief description of the feature and its goal]
### Spec reference
[Link to spec: `.specify/features/{slug}/spec.md`]
### Key technical decisions
[1-3 bullets on the key architectural decisions from the SDD plan]
## Objectives
- [ ] [Deliverable 1]
- [ ] [Deliverable 2]
- [ ] [Deliverable 3]
## TODOs
### Phase 0: Setup
- [ ] T001 [P1] [US0] Scaffold directory structure and dependencies
### Phase 1: Foundation
- [ ] T002 [P1] [US1] Create [core entity] data model
### Phase 2: User Stories
- [ ] T003 [P1] [US1] Implement [user story 1 behavior]
- [ ] T004 [P2] [US2] Implement [user story 2 behavior]
### Phase 3: Polish
- [ ] T005 [P1] [US1] Handle [edge case from spec]
- [ ] T006 [P2] [US2] Add error messages per spec SC-003
## Verification
- [ ] All FRs in spec.md have corresponding passing tests
- [ ] All SCs in spec.md are verifiable
- [ ] Constitution compliance confirmed
Tasks in the Weave plan follow this format:
- [ ] T### [P1/P2/P3] [US#] Task description
T###: Sequential number (T001, T002, ...)[P1/P2/P3]: Priority (P1 = must-have FR, P2 = should-have, P3 = nice-to-have)[US#]: User story reference from the spec (US1, US2, ...)| Phase | Purpose |
|---|---|
| Setup (T001–T010) | Scaffolding, dependencies, project config, directory structure |
| Foundation (T011–T030) | Core data models, base components, shared utilities, DB migrations |
| User Stories (T031–T080) | One group per user story — grouped by US1, US2, ... |
| Polish (T081–T099) | Error handling, edge cases, performance, documentation, cleanup |
Before writing any plan tasks, read the constitution and check each principle:
If a violation is found, report it clearly:
## ❌ CONSTITUTIONAL VIOLATION DETECTED
**Principle**: [Principle Name]
**Violation**: [What the planned implementation would do that violates this principle]
**Resolution options**:
1. Change the implementation approach to [alternative]
2. Amend the constitution to allow [exception] (requires ratification)
3. Defer this feature until the violation is resolved