Skip to content

Commit efd2548

Browse files
committed
fix: add missing 4 SDS commands to generator
Bug: generator.py only registered 4 SDS commands, but we have 8 template files Fixed: - Added missing commands to sds_commands list: - plan (plan protocol architecture) - tasks (break down specification work) - implement (write spec documents) - checklist (quality checklist) - Updated comment: 4 commands → 8 commands - Updated meta/README.md command list Now metaspec init will generate all 19 commands: - 8 SDS commands ✅ - 8 SDD commands ✅ - 3 Evolution commands ✅ Files changed: - src/metaspec/generator.py - src/metaspec/templates/meta/README.md
1 parent 319b338 commit efd2548

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

src/metaspec/generator.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,16 +274,20 @@ def _select_templates(self, meta_spec: MetaSpecDefinition) -> dict[str, str]:
274274
# 3. MetaSpec commands and templates for speckit development → .metaspec/
275275
# These provide AI-assisted workflow for developing the speckit itself
276276
# Three-layer architecture:
277-
# - SDS (Spec-Driven Specification): 4 commands for protocol definition
277+
# - SDS (Spec-Driven Specification): 8 commands for protocol definition
278278
# - SDD (Spec-Driven Development): 8 commands for toolkit development
279279
# - Evolution: 3 shared commands for specification evolution
280280

281-
# SDS commands (4): Protocol specification definition
281+
# SDS commands (8): Protocol specification definition
282282
# File naming: metaspec.sds.{command}.md to use /metaspec.sds.{command} prefix
283283
sds_commands = [
284284
"constitution", # Define protocol principles
285-
"specify", # Define protocol entities
285+
"specify", # Define protocol entities and operations
286286
"clarify", # Resolve protocol ambiguities
287+
"plan", # Plan protocol architecture and sub-specifications
288+
"tasks", # Break down protocol specification work
289+
"implement", # Write protocol specification documents
290+
"checklist", # Generate quality checklist for protocol
287291
"analyze", # Check protocol consistency
288292
]
289293

src/metaspec/templates/meta/README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ meta/ adopts a clear three-layer architecture, separating commands at different
2929

3030
```
3131
meta/
32-
├── sds/ # Spec-Driven Specification (5 commands)
32+
├── sds/ # Spec-Driven Specification (8 commands)
3333
│ ├── commands/ # Protocol specification definition commands
3434
│ └── templates/ # (Current commands reference protocol templates under shared templates/)
3535
@@ -120,7 +120,7 @@ See: `/metaspec.sdd.specify`, `/metaspec.sdd.plan`, `/metaspec.sdd.implement`
120120

121121
## Command List
122122

123-
### SDS Commands (4) - Protocol Specification
123+
### SDS Commands (8) - Protocol Specification
124124

125125
Generated command prefix: `/metaspec.sds.*`
126126

@@ -129,10 +129,15 @@ Generated command prefix: `/metaspec.sds.*`
129129
| `constitution` | Define protocol design principles | memory/constitution.md |
130130
| `specify` | Define protocol entities and rules | specs/protocol/00X-name/spec.md |
131131
| `clarify` | Resolve protocol ambiguities | Update spec.md |
132+
| `plan` | Plan protocol architecture and sub-specifications | specs/protocol/00X-name/plan.md |
133+
| `tasks` | Break down protocol specification work | specs/protocol/00X-name/tasks.md |
134+
| `implement` | Write protocol specification documents | Create/update spec files |
135+
| `checklist` | Generate quality checklist for protocol | specs/protocol/00X-name/checklists/ |
132136
| `analyze` | Check protocol consistency | Analysis report |
133137

134138
**Use Cases**:
135139
- Define domain protocols (e.g., MCP, GraphQL)
140+
- Plan and implement complex protocol hierarchies
136141
- Define validation rules and constraints
137142
- Implementation-independent specifications
138143

0 commit comments

Comments
 (0)