create-sdd-project 0.16.0 → 0.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -42,6 +42,7 @@ The interactive wizard asks about your stack, AI tools, and autonomy level:
|
|
|
42
42
|
2) L2 Trusted — Human reviews plans + merges only ← default
|
|
43
43
|
3) L3 Autopilot — Human only approves merges
|
|
44
44
|
4) L4 Full Auto — No human checkpoints, CI/CD gates only
|
|
45
|
+
5) L5 PM Autonomous — PM Agent orchestrates features end-to-end
|
|
45
46
|
```
|
|
46
47
|
|
|
47
48
|
For defaults (fullstack Express+Next.js, L2 autonomy):
|
|
@@ -243,21 +244,19 @@ Customize the generated workflow as your project grows.
|
|
|
243
244
|
|
|
244
245
|
Open your project in Claude Code or Gemini and start building:
|
|
245
246
|
|
|
246
|
-
**
|
|
247
|
+
**Single feature (L1-L4):**
|
|
247
248
|
```
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
249
|
+
add feature "user authentication with JWT"
|
|
250
|
+
start task F001
|
|
251
|
+
show progress
|
|
252
|
+
next task
|
|
252
253
|
```
|
|
253
254
|
|
|
254
|
-
**
|
|
255
|
+
**Autonomous multi-feature (L5):**
|
|
255
256
|
```
|
|
256
|
-
|
|
257
|
-
/start-task F001
|
|
258
|
-
/show-progress
|
|
259
|
-
/next-task
|
|
257
|
+
start pm
|
|
260
258
|
```
|
|
259
|
+
The PM Orchestrator reads your product tracker, presents features for batch classification, then develops them sequentially — spec, plan, implement, review, merge — with all quality gates enforced.
|
|
261
260
|
|
|
262
261
|
The workflow skill guides you through each step — from spec writing to implementation to code review — with checkpoints based on your autonomy level.
|
|
263
262
|
|
|
@@ -295,7 +294,7 @@ SDD DevFlow combines three proven practices:
|
|
|
295
294
|
| `qa-engineer` | Edge cases, spec verification | 5 |
|
|
296
295
|
| `database-architect` | Schema design, optimization | Any |
|
|
297
296
|
|
|
298
|
-
###
|
|
297
|
+
### 5 Skills (Workflow Orchestration)
|
|
299
298
|
|
|
300
299
|
| Skill | Trigger | What it does |
|
|
301
300
|
|-------|---------|-------------|
|
|
@@ -303,8 +302,9 @@ SDD DevFlow combines three proven practices:
|
|
|
303
302
|
| `bug-workflow` | `report bug`, `fix bug`, `hotfix needed` | Bug triage, investigation, and resolution |
|
|
304
303
|
| `project-memory` | `set up project memory`, `log a bug fix` | Maintains institutional knowledge |
|
|
305
304
|
| `health-check` | `health check`, `project health` | Quick scan: tests, build, specs sync, secrets, docs freshness |
|
|
305
|
+
| `pm-orchestrator` | `start pm`, `continue pm`, `stop pm` | **L5**: Autonomous sequential multi-feature execution with guardrails |
|
|
306
306
|
|
|
307
|
-
###
|
|
307
|
+
### 5 Custom Commands
|
|
308
308
|
|
|
309
309
|
| Command | What it does |
|
|
310
310
|
|---------|-------------|
|
|
@@ -312,6 +312,7 @@ SDD DevFlow combines three proven practices:
|
|
|
312
312
|
| `/review-plan` | Cross-model plan review — runs automatically after plan self-review when external CLIs are available; catches implementation blind spots |
|
|
313
313
|
| `/context-prompt` | Generates a context recovery prompt after `/compact` with Workflow Recovery to prevent checkpoint skipping |
|
|
314
314
|
| `/review-project` | Comprehensive project-level review using up to 3 AI models in parallel — 6 domains, audit context, consolidated report with action plan |
|
|
315
|
+
| `/audit-merge` | Automated compliance audit — 11 pre-merge checks (ticket, tracker, evidence, merge base, working tree, data files). Auto-fixes issues. |
|
|
315
316
|
|
|
316
317
|
### Spec & Plan Quality
|
|
317
318
|
|
|
@@ -350,6 +351,31 @@ Cross-model reviews only trigger when at least one external CLI is available (Ge
|
|
|
350
351
|
|
|
351
352
|
Quality gates (tests, lint, build, validators) **always run** regardless of level.
|
|
352
353
|
|
|
354
|
+
### PM Orchestrator (L5 — Autonomous Multi-Feature)
|
|
355
|
+
|
|
356
|
+
At L5, the PM Orchestrator skill develops multiple features sequentially without manual intervention:
|
|
357
|
+
|
|
358
|
+
```
|
|
359
|
+
> start pm
|
|
360
|
+
|
|
361
|
+
PM Orchestrator — Batch Classification
|
|
362
|
+
|
|
363
|
+
These features are ready to develop:
|
|
364
|
+
|
|
365
|
+
| # | Feature | Type | Priority | Dependencies |
|
|
366
|
+
|---|----------------------|---------|----------|----------------|
|
|
367
|
+
| 1 | F014 — User Roles | backend | High | F006 (done) |
|
|
368
|
+
| 2 | F015 — Email Alerts | backend | Medium | none |
|
|
369
|
+
|
|
370
|
+
Classify complexity for each (Simple / Standard / Complex):
|
|
371
|
+
```
|
|
372
|
+
|
|
373
|
+
After classification, the loop runs autonomously: spec → plan → implement → review → merge for each feature, with all quality gates enforced.
|
|
374
|
+
|
|
375
|
+
**9 guardrails** prevent runaway execution: max 5 features/session, circuit breaker (3 failures → stop), kill switch (`stop pm`), session lock, post-merge sanity check (`npm test`), rolling batch (1-3 features at a time), clean workspace validation, quality gates always on, `/audit-merge` auto-execution.
|
|
376
|
+
|
|
377
|
+
**Recovery**: after `/compact` or terminal restart, run `continue pm` — the session state in `pm-session.md` tracks exactly where you left off.
|
|
378
|
+
|
|
353
379
|
### Merge Checklist (B+D Mechanism)
|
|
354
380
|
|
|
355
381
|
Every ticket includes a `## Merge Checklist Evidence` table that the agent must fill before requesting merge approval. This mechanism:
|
|
@@ -424,12 +450,14 @@ project/
|
|
|
424
450
|
│ │ │ └── references/ # Templates, guides, examples
|
|
425
451
|
│ │ ├── bug-workflow/ # Bug triage and resolution
|
|
426
452
|
│ │ ├── health-check/ # Project health diagnostics
|
|
453
|
+
│ │ ├── pm-orchestrator/ # L5: Autonomous multi-feature loop
|
|
427
454
|
│ │ └── project-memory/ # Memory system setup
|
|
428
455
|
│ ├── commands/ # Custom slash commands
|
|
429
456
|
│ │ ├── review-spec.md # Cross-model spec review (pre-plan)
|
|
430
457
|
│ │ ├── review-plan.md # Cross-model plan review
|
|
431
458
|
│ │ ├── context-prompt.md # Post-compact context recovery
|
|
432
|
-
│ │
|
|
459
|
+
│ │ ├── review-project.md # Multi-model project review
|
|
460
|
+
│ │ └── audit-merge.md # Pre-merge compliance audit
|
|
433
461
|
│ ├── hooks/quick-scan.sh # Post-developer quality scan
|
|
434
462
|
│ └── settings.json # Shared hooks (git-tracked)
|
|
435
463
|
│
|
|
@@ -493,10 +521,10 @@ cp -r node_modules/create-sdd-project/template/ /path/to/your-project/
|
|
|
493
521
|
|
|
494
522
|
## Roadmap
|
|
495
523
|
|
|
496
|
-
- **
|
|
524
|
+
- **Agent Teams**: Intra-feature parallelism (e.g., spec review + plan review in parallel)
|
|
497
525
|
- **Monorepo improvements**: Better support for pnpm workspaces and Turbo
|
|
498
526
|
- **Retrofit Testing**: Automated test generation for existing projects with low coverage
|
|
499
|
-
- **
|
|
527
|
+
- **Plugin system**: Custom agents and skills marketplace
|
|
500
528
|
|
|
501
529
|
## Contributing
|
|
502
530
|
|
package/package.json
CHANGED
|
@@ -73,21 +73,33 @@ For each feature in the batch:
|
|
|
73
73
|
|
|
74
74
|
#### b. Start Feature
|
|
75
75
|
|
|
76
|
-
1. Update `pm-session.md`:
|
|
77
|
-
|
|
76
|
+
1. Update `pm-session.md`:
|
|
77
|
+
- Set current feature status to `in-progress`, note step 0/6.
|
|
78
|
+
- Update **Recovery Instructions**: set **Current feature**, **Branch** (once created), and current step.
|
|
79
|
+
2. **Print progress**: `[PM] Starting FXXX — Step 0: Spec`
|
|
80
|
+
3. Invoke the `development-workflow` skill:
|
|
78
81
|
- Command: `start task FXXX as [Simple|Standard|Complex]`
|
|
79
82
|
- The development-workflow reads L5 → all checkpoints auto-approve.
|
|
80
83
|
- All quality gates run as normal (tests, lint, build, validators, code review, QA).
|
|
81
84
|
- At Step 5 (Review): execute `/audit-merge` before the merge checklist evidence.
|
|
85
|
+
4. **During the feature lifecycle**, keep `pm-session.md` up to date:
|
|
86
|
+
- Update the **Notes** column with current step (e.g., "Step 3/6 — Implementation").
|
|
87
|
+
- Update **Recovery Instructions** with the current step and branch after each step transition.
|
|
88
|
+
- Print a one-liner when entering each step: `[PM] FXXX | Step N/6 | StepName`
|
|
89
|
+
- Print when a quality gate passes/fails: `[PM] FXXX | Step 4 | tests: PASS (133/133)`
|
|
82
90
|
|
|
83
91
|
#### c. Feature Completed (Step 6 done)
|
|
84
92
|
|
|
85
93
|
1. Verify `docs/project_notes/product-tracker.md` shows the feature at step 6/6 with status `done`.
|
|
86
94
|
2. **Post-merge sanity check**: Run `npm test` (or the project's test command) on the target branch.
|
|
87
95
|
- If tests **fail** → STOP immediately. The merged feature broke the target branch. Report to user.
|
|
88
|
-
- If tests **pass** →
|
|
89
|
-
3. Update `pm-session.md`:
|
|
90
|
-
|
|
96
|
+
- If tests **pass** → print: `[PM] FXXX | Post-merge sanity: PASS`
|
|
97
|
+
3. Update `pm-session.md`:
|
|
98
|
+
- Move the feature row from **Current Batch** to **Completed Features**.
|
|
99
|
+
- Record approximate duration in the Duration column.
|
|
100
|
+
- Clear **Recovery Instructions** current feature (or set to next feature).
|
|
101
|
+
4. Print: `[PM] FXXX | DONE (~Xmin) | Moving to next feature`
|
|
102
|
+
5. Reset consecutive failure counter to 0.
|
|
91
103
|
|
|
92
104
|
#### d. Feature Failed
|
|
93
105
|
|
|
@@ -73,21 +73,33 @@ For each feature in the batch:
|
|
|
73
73
|
|
|
74
74
|
#### b. Start Feature
|
|
75
75
|
|
|
76
|
-
1. Update `pm-session.md`:
|
|
77
|
-
|
|
76
|
+
1. Update `pm-session.md`:
|
|
77
|
+
- Set current feature status to `in-progress`, note step 0/6.
|
|
78
|
+
- Update **Recovery Instructions**: set **Current feature**, **Branch** (once created), and current step.
|
|
79
|
+
2. **Print progress**: `[PM] Starting FXXX — Step 0: Spec`
|
|
80
|
+
3. Invoke the `development-workflow` skill:
|
|
78
81
|
- Command: `start task FXXX as [Simple|Standard|Complex]`
|
|
79
82
|
- The development-workflow reads L5 → all checkpoints auto-approve.
|
|
80
83
|
- All quality gates run as normal (tests, lint, build, validators, code review, QA).
|
|
81
84
|
- At Step 5 (Review): execute `/audit-merge` before the merge checklist evidence.
|
|
85
|
+
4. **During the feature lifecycle**, keep `pm-session.md` up to date:
|
|
86
|
+
- Update the **Notes** column with current step (e.g., "Step 3/6 — Implementation").
|
|
87
|
+
- Update **Recovery Instructions** with the current step and branch after each step transition.
|
|
88
|
+
- Print a one-liner when entering each step: `[PM] FXXX | Step N/6 | StepName`
|
|
89
|
+
- Print when a quality gate passes/fails: `[PM] FXXX | Step 4 | tests: PASS (133/133)`
|
|
82
90
|
|
|
83
91
|
#### c. Feature Completed (Step 6 done)
|
|
84
92
|
|
|
85
93
|
1. Verify `docs/project_notes/product-tracker.md` shows the feature at step 6/6 with status `done`.
|
|
86
94
|
2. **Post-merge sanity check**: Run `npm test` (or the project's test command) on the target branch.
|
|
87
95
|
- If tests **fail** → STOP immediately. The merged feature broke the target branch. Report to user.
|
|
88
|
-
- If tests **pass** →
|
|
89
|
-
3. Update `pm-session.md`:
|
|
90
|
-
|
|
96
|
+
- If tests **pass** → print: `[PM] FXXX | Post-merge sanity: PASS`
|
|
97
|
+
3. Update `pm-session.md`:
|
|
98
|
+
- Move the feature row from **Current Batch** to **Completed Features**.
|
|
99
|
+
- Record approximate duration in the Duration column.
|
|
100
|
+
- Clear **Recovery Instructions** current feature (or set to next feature).
|
|
101
|
+
4. Print: `[PM] FXXX | DONE (~Xmin) | Moving to next feature`
|
|
102
|
+
5. Reset consecutive failure counter to 0.
|
|
91
103
|
|
|
92
104
|
#### d. Feature Failed
|
|
93
105
|
|