@ktpartners/dgs-platform 2.8.0 → 2.9.0

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/CHANGELOG.md CHANGED
@@ -8,6 +8,20 @@ Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
8
8
 
9
9
  ## [Unreleased]
10
10
 
11
+ ## [2.9.0] - 2026-03-25
12
+
13
+ ### Changed
14
+ - **new-project/new-milestone split** — `/dgs:new-project` now only handles questioning and PROJECT.md creation; all milestone-scoped work (research, requirements, roadmap, STATE.md) moves to `/dgs:new-milestone`, which now handles both first and subsequent milestones
15
+ - **Codereview gate moved to orchestrator** — code review execution moved from `dgs-executor` (which lacks Task tool) to `execute-phase` orchestrator where Task spawning is available; skips in non-interactive/job mode with log message
16
+ - **Map-codebase staleness gate** — in `--auto` mode (job runs), checks git history since last map; skips if no changes, narrows to single repo if only one changed; `--force` flag bypasses
17
+
18
+ ### Added
19
+ - **Job file commit+push on status changes** — `run-job` now commits and pushes the job file after every step status update (in-progress, completed, failed, move operations), making job progress visible on remote in real time
20
+ - **First-milestone guards in new-milestone** — handles missing MILESTONES.md/STATE.md gracefully with v1.0 default, phase-1 numbering, greenfield research framing, and STATE.md creation
21
+
22
+ ### Fixed
23
+ - **Codereview silent failure in job mode** — codereview was silently skipped in job mode because the executor agent lacked Task/Agent tools needed to spawn the 9 review subagents
24
+
11
25
  ## [2.8.0] - 2026-03-25
12
26
 
13
27
  ### Changed
package/README.md CHANGED
@@ -194,7 +194,7 @@ If you prefer not to use that flag, add this to your project's `.claude/settings
194
194
 
195
195
  DGS operates at the **product** level. A product contains one or more **projects**, each with its own milestones and phases. Ideas and specs live at the product level and feed into project or milestone creation.
196
196
 
197
- > **Already have code?** Run `/dgs:map-codebase` first. It spawns parallel agents per registered repo to analyze stack, architecture, structure, conventions, testing, integrations, and concerns. Per-repo maps are synthesized into unified top-level files. Then `/dgs:new-project` knows your codebasequestions focus on what you're adding, and planning automatically loads your patterns. Update a single repo after changes with `/dgs:map-codebase <repo-name>`.
197
+ > **Already have code?** Run `/dgs:map-codebase` first. It spawns parallel agents per registered repo to analyze stack, architecture, structure, conventions, testing, integrations, and concerns. Per-repo maps are synthesized into unified top-level files. Then `/dgs:new-project` captures your project identity goals, constraints, and scope. `/dgs:new-milestone` takes it from there with research, requirements, and roadmap. Update a single repo after changes with `/dgs:map-codebase <repo-name>`.
198
198
 
199
199
  ### 1. Set Up Product
200
200
 
@@ -236,18 +236,21 @@ If you have OpenAI or Gemini API keys configured, the spec goes through a **cros
236
236
 
237
237
  ```
238
238
  /dgs:new-project
239
+ /dgs:new-milestone
239
240
  ```
240
241
 
241
- One command, one flow. The system:
242
+ Two commands, one setup. First, `/dgs:new-project` asks questions until it understands your idea completely — goals, constraints, tech preferences, edge cases — then creates `PROJECT.md`.
243
+
244
+ Then `/dgs:new-milestone` takes over:
242
245
 
243
- 1. **Questions** — Asks until it understands your idea completely (goals, constraints, tech preferences, edge cases)
244
- 2. **Research** — Spawns parallel agents to investigate the domain (optional but recommended)
245
- 3. **Requirements** — Extracts what's v1, v2, and out of scope
246
- 4. **Roadmap** — Creates phases mapped to requirements
246
+ 1. **Research** — Spawns parallel agents to investigate the domain (optional but recommended)
247
+ 2. **Requirements** — Extracts what's v1, v2, and out of scope
248
+ 3. **Roadmap** — Creates phases mapped to requirements
247
249
 
248
250
  You approve the roadmap. Now you're ready to build.
249
251
 
250
- **Creates:** `PROJECT.md`, `REQUIREMENTS.md`, `ROADMAP.md`, `STATE.md`, `.planning/research/`
252
+ **`new-project` creates:** `PROJECT.md`
253
+ **`new-milestone` creates:** `REQUIREMENTS.md`, `ROADMAP.md`, `STATE.md`, `research/`
251
254
 
252
255
  ---
253
256
 
@@ -393,7 +396,7 @@ When all phases are done, `/dgs:complete-milestone` archives the milestone and t
393
396
 
394
397
  **Automated alternative:** Instead of running each phase command manually, use `/dgs:create-milestone-job` to generate a build job and `/dgs:run-job` to execute the entire milestone pipeline automatically with subagent isolation per step. See the [User Guide](docs/USER-GUIDE.md#milestone-jobs) for details.
395
398
 
396
- Then `/dgs:new-milestone` starts the next version same flow as `new-project` but for your existing codebase. You describe what you want to build next, the system researches the domain, you scope requirements, and it creates a fresh roadmap. Each milestone is a clean cycle: define → build → ship.
399
+ Then `/dgs:new-milestone` starts the next cycle. This is the same command used after `new-project` it handles research, requirements, and roadmap for each version. You describe what you want to build next, it researches the domain, you scope requirements, and it creates a fresh roadmap. Each milestone is a clean cycle: define → build → ship.
397
400
 
398
401
  ---
399
402
 
@@ -460,7 +463,7 @@ DGS handles it for you:
460
463
  | `REQUIREMENTS.md` | Scoped v1/v2 requirements with phase traceability |
461
464
  | `ROADMAP.md` | Where you're going, what's done |
462
465
  | `STATE.md` | Decisions, blockers, position — memory across sessions |
463
- | `docs/product/` | Product-level documents (architecture, summary) — loaded as context by write-spec, plan-phase, new-project, new-milestone |
466
+ | `docs/product/` | Product-level documents (architecture, summary) — loaded as context by write-spec, plan-phase, new-milestone |
464
467
  | `codebase/` | Per-repo maps + unified synthesis from `/dgs:map-codebase` |
465
468
  | `research/` | Ecosystem knowledge (stack, features, architecture, pitfalls) |
466
469
  | `PLAN.md` | Atomic task with XML structure, verification steps |
@@ -554,7 +557,7 @@ See the [User Guide](docs/USER-GUIDE.md#context-tiers) for the complete command-
554
557
 
555
558
  | Command | What it does |
556
559
  |---------|--------------|
557
- | `/dgs:new-project [--auto]` | Full initialization: questionsresearch → requirements → roadmap |
560
+ | `/dgs:new-project [--auto]` | Project identity: questioningPROJECT.md |
558
561
  | `/dgs:discuss-phase [N] [--auto]` | Capture implementation decisions before planning |
559
562
  | `/dgs:plan-phase [N] [--auto]` | Research + plan + verify for a phase |
560
563
  | `/dgs:execute-phase <N>` | Execute all plans in parallel waves, verify when complete |
@@ -562,7 +565,7 @@ See the [User Guide](docs/USER-GUIDE.md#context-tiers) for the complete command-
562
565
  | `/dgs:audit-phase <phase> [--rerun-failed]` | Automated phase verification: test execution + structural inspection |
563
566
  | `/dgs:audit-milestone` | Verify milestone achieved its definition of done |
564
567
  | `/dgs:complete-milestone` | Archive milestone, tag release |
565
- | `/dgs:new-milestone [name]` | Start next version: questions → research → requirements → roadmap |
568
+ | `/dgs:new-milestone [name]` | Start milestone: research → requirements → roadmap (first or subsequent) |
566
569
 
567
570
  ### Navigation
568
571
 
@@ -665,7 +668,7 @@ See the [User Guide](docs/USER-GUIDE.md#context-tiers) for the complete command-
665
668
 
666
669
  ## Configuration
667
670
 
668
- DGS stores product-level settings in `.planning/config.json`. This file is shared across all projects in the product. Configure during `/dgs:init-product` or `/dgs:new-project`, and update later with `/dgs:settings`. For the full config schema, workflow toggles, git branching options, and per-agent model breakdown, see the [User Guide](docs/USER-GUIDE.md#configuration-reference).
671
+ DGS stores product-level settings in `.planning/config.json`. This file is shared across all projects in the product. Configure during `/dgs:init-product`, and update later with `/dgs:settings`. For the full config schema, workflow toggles, git branching options, and per-agent model breakdown, see the [User Guide](docs/USER-GUIDE.md#configuration-reference).
669
672
 
670
673
  ### Core Settings
671
674
 
@@ -12,15 +12,17 @@ Display the complete DGS command reference. Output ONLY the reference content. D
12
12
  ## Quick Start
13
13
 
14
14
  **Single-project (v1):**
15
- 1. `/dgs:new-project` - Initialize project (includes research, requirements, roadmap)
16
- 2. `/dgs:plan-phase 1` - Create detailed plan for first phase
17
- 3. `/dgs:execute-phase 1` - Execute the phase
15
+ 1. `/dgs:new-project` - Create project (questioning + PROJECT.md)
16
+ 2. `/dgs:new-milestone` - First milestone (research, requirements, roadmap)
17
+ 3. `/dgs:plan-phase 1` - Create detailed plan for first phase
18
+ 4. `/dgs:execute-phase 1` - Execute the phase
18
19
 
19
20
  **Multi-project / multi-repo (v2):**
20
21
  1. `/dgs:init-product` - Set up product folder and register repos
21
- 2. `/dgs:new-project` - Create a project (prompts for name and repos)
22
- 3. `/dgs:plan-phase 1` - Plan first phase (repos tracked per task)
23
- 4. `/dgs:execute-phase 1` - Execute (commits per-repo automatically)
22
+ 2. `/dgs:new-project` - Create a project (questioning + PROJECT.md)
23
+ 3. `/dgs:new-milestone` - First milestone (research, requirements, roadmap)
24
+ 4. `/dgs:plan-phase 1` - Plan first phase (repos tracked per task)
25
+ 5. `/dgs:execute-phase 1` - Execute (commits per-repo automatically)
24
26
 
25
27
  ## Project Structure
26
28
 
@@ -54,7 +56,7 @@ Each command loads a specific tier of project context. Higher tiers include all
54
56
  ## Core Workflow
55
57
 
56
58
  ```
57
- /dgs:new-project → /dgs:plan-phase → /dgs:execute-phase → repeat
59
+ /dgs:new-project → /dgs:new-milestone → /dgs:plan-phase → /dgs:execute-phase → repeat
58
60
  ```
59
61
 
60
62
  ### Product Setup (v2)
@@ -72,23 +74,19 @@ Usage: `/dgs:init-product`
72
74
  ### Project Initialization
73
75
 
74
76
  **`/dgs:new-project`**
75
- Initialize new project through unified flow. *(Tier 2: planning)*
77
+ Initialize new project through deep questioning. *(Tier 2: planning)*
76
78
 
77
- One command takes you from idea to ready-for-planning:
79
+ One command takes you from idea to project identity:
78
80
  - Deep questioning to understand what you're building
79
- - Optional domain research (spawns 4 parallel researcher agents)
80
- - Requirements definition with v1/v2/out-of-scope scoping
81
- - Roadmap creation with phase breakdown and success criteria
81
+ - Optional brownfield mapping for existing codebases
82
+ - PROJECT.md creation with vision, requirements hypotheses, and key decisions
82
83
 
83
84
  Creates project artifacts:
84
85
  - `PROJECT.md` — vision and requirements
85
- - `config.json` — workflow mode (interactive/yolo)
86
- - `research/` — domain research (if selected)
87
- - `REQUIREMENTS.md` — scoped requirements with REQ-IDs
88
- - `ROADMAP.md` — phases mapped to requirements
89
- - `STATE.md` — project memory
90
86
 
91
- **v2 additions:** Prompts for project name (used as folder slug), prompts for which repos this project touches (from REPOS.md), checks for overlap with other active projects. Artifacts are created under `projects/<project-slug>/`.
87
+ **v2 additions:** Prompts for project name (used as folder slug), prompts for which repos this project touches (from REPOS.md). Artifacts are created under `projects/<project-slug>/`.
88
+
89
+ After completion, run `/dgs:new-milestone` to start your first milestone.
92
90
 
93
91
  Usage: `/dgs:new-project`
94
92
 
@@ -186,7 +184,7 @@ Show which repos are touched by multiple active projects. *(Tier 1: lite)*
186
184
 
187
185
  - Scans plan files across all active projects for repo references
188
186
  - Highlights specific file-level overlaps
189
- - Runs automatically during `/dgs:new-project` and `/dgs:new-milestone`
187
+ - Runs automatically during `/dgs:new-milestone`
190
188
 
191
189
  Usage: `/dgs:overlap-check`
192
190
 
@@ -307,14 +305,14 @@ Result: Phase 17 deleted, phases 18-20 become 17-19
307
305
  ### Milestone Management
308
306
 
309
307
  **`/dgs:new-milestone <name>`**
310
- Start a new milestone through unified flow. *(Tier 2: planning)*
308
+ Start a new milestone (or the first milestone after `/dgs:new-project`). *(Tier 2: planning)*
311
309
 
312
- - Deep questioning to understand what you're building next
310
+ - Gathers milestone goals (interactive or from spec via --auto)
313
311
  - Optional domain research (spawns 4 parallel researcher agents)
314
312
  - Requirements definition with scoping
315
313
  - Roadmap creation with phase breakdown
316
314
 
317
- Mirrors `/dgs:new-project` flow for brownfield projects (existing PROJECT.md).
315
+ Handles both first milestones (creates STATE.md, defaults to v1.0) and subsequent milestones (continues from MILESTONES.md).
318
316
 
319
317
  Usage: `/dgs:new-milestone "v2.0 Features"`
320
318
 
@@ -408,7 +406,7 @@ Usage: `/dgs:check-todos api`
408
406
 
409
407
  ### Ideas & Specs
410
408
 
411
- `capture ideas → develop idea → write spec → new-project --auto`
409
+ `capture ideas → develop idea → write spec → new-project --auto → new-milestone --auto`
412
410
 
413
411
  #### Ideas
414
412
 
@@ -812,7 +810,7 @@ my-product/ # Product folder (git repo)
812
810
 
813
811
  ## Workflow Modes
814
812
 
815
- Set during `/dgs:new-project`:
813
+ Set during `/dgs:init-product`:
816
814
 
817
815
  **Interactive Mode**
818
816
 
@@ -868,7 +866,9 @@ Example config:
868
866
  **Starting a new project (v1):**
869
867
 
870
868
  ```
871
- /dgs:new-project # Unified flow: questioning -> research -> requirements -> roadmap
869
+ /dgs:new-project # Questioning -> PROJECT.md
870
+ /clear
871
+ /dgs:new-milestone # Research -> requirements -> roadmap
872
872
  /clear
873
873
  /dgs:plan-phase 1 # Create plans for first phase
874
874
  /clear
@@ -879,7 +879,9 @@ Example config:
879
879
 
880
880
  ```
881
881
  /dgs:init-product # One-time: register repos, create product structure
882
- /dgs:new-project # Create project (picks name, selects repos)
882
+ /dgs:new-project # Questioning -> PROJECT.md
883
+ /clear
884
+ /dgs:new-milestone # Research -> requirements -> roadmap
883
885
  /clear
884
886
  /dgs:plan-phase 1 # Plan with per-repo task tracking
885
887
  /clear
@@ -942,7 +944,9 @@ Example config:
942
944
  # /dgs:research-idea # Investigate feasibility
943
945
  /dgs:write-spec # Turn ideas into structured spec
944
946
  /clear
945
- /dgs:new-project --auto @spec.md # Create project directly from spec
947
+ /dgs:new-project --auto @spec.md # Create project from spec
948
+ /clear
949
+ /dgs:new-milestone --auto <spec-id> # First milestone from spec
946
950
  ```
947
951
 
948
952
  **Debugging an issue:**
@@ -1,6 +1,6 @@
1
1
  <purpose>
2
2
 
3
- Start a new milestone cycle for an existing project. Loads project context, gathers milestone goals (from MILESTONE-CONTEXT.md, conversation, or a finalized spec via --auto), updates PROJECT.md and STATE.md, optionally runs parallel research, defines scoped requirements with REQ-IDs, spawns the roadmapper to create phased execution plan, and commits all artifacts. Brownfield equivalent of new-project. In --auto mode, derives everything from a finalized spec without interactive questioning.
3
+ Start a new milestone cycle for an existing project, or the first milestone after /dgs:new-project. Loads project context, gathers milestone goals (from MILESTONE-CONTEXT.md, conversation, or a finalized spec via --auto), updates PROJECT.md and STATE.md, optionally runs parallel research, defines scoped requirements with REQ-IDs, spawns the roadmapper to create phased execution plan, and commits all artifacts. In --auto mode, derives everything from a finalized spec without interactive questioning.
4
4
 
5
5
  </purpose>
6
6
 
@@ -47,8 +47,8 @@ The spec must have status: final.
47
47
  ## 1. Load Context
48
48
 
49
49
  - Read PROJECT.md (existing project, validated requirements, decisions)
50
- - Read MILESTONES.md (what shipped previously)
51
- - Read STATE.md (pending todos, blockers)
50
+ - Read MILESTONES.md (what shipped previously) — if file does not exist, this is the first milestone; skip and use defaults
51
+ - Read STATE.md (pending todos, blockers) — if file does not exist, will be created in Step 5
52
52
  - Check for MILESTONE-CONTEXT.md (from /dgs:discuss-milestone)
53
53
 
54
54
  ## 1b. Spec-Driven Milestone (auto mode only)
@@ -67,7 +67,7 @@ Read the spec file and extract:
67
67
 
68
68
  ### Determine Milestone Version
69
69
 
70
- Parse MILESTONES.md for last version. Suggest next version automatically (e.g., v1.0 → v1.1, or v2.0 for major). In auto mode, use the minor bump without asking.
70
+ Parse MILESTONES.md for last version. If no MILESTONES.md exists (first milestone): default to v1.0 (auto mode: use v1.0 without asking). Suggest next version automatically (e.g., v1.0 → v1.1, or v2.0 for major). In auto mode, use the minor bump without asking.
71
71
 
72
72
  ### Repo Cross-Check (v2 only)
73
73
 
@@ -178,6 +178,7 @@ Skip Steps 2-6 (questioning, version determination, update, cleanup, context loa
178
178
  ## 3. Determine Milestone Version
179
179
 
180
180
  - Parse last version from MILESTONES.md
181
+ - If no MILESTONES.md exists (first milestone): default to v1.0 and suggest it to user
181
182
  - Suggest next version (v1.0 → v1.1, or v2.0 for major)
182
183
  - Confirm with user
183
184
 
@@ -200,6 +201,9 @@ Update Active requirements section and "Last updated" footer.
200
201
 
201
202
  ## 5. Update STATE.md
202
203
 
204
+ **If STATE.md does not exist (first milestone):** Create it with the structure below.
205
+ **If STATE.md exists:** Update the Current Position section.
206
+
203
207
  ```markdown
204
208
  ## Current Position
205
209
 
@@ -264,6 +268,12 @@ node ~/.claude/deliver-great-systems/bin/dgs-tools.cjs config-set workflow.resea
264
268
  mkdir -p ${project_root}/research
265
269
  ```
266
270
 
271
+ **Determine milestone context for researchers:**
272
+ - If MILESTONES.md does not exist (first milestone): Use greenfield framing:
273
+ `NEW PROJECT — Building [target features] from scratch.`
274
+ - If MILESTONES.md exists (subsequent milestone): Use existing framing:
275
+ `SUBSEQUENT MILESTONE — Adding [target features] to existing app.`
276
+
267
277
  Spawn 4 parallel dgs-project-researcher agents. Each uses this template with dimension-specific fields:
268
278
 
269
279
  **Common structure for all 4 researchers:**
@@ -272,7 +282,7 @@ Task(prompt="
272
282
  <research_type>Project Research — {DIMENSION} for [new features].</research_type>
273
283
 
274
284
  <milestone_context>
275
- SUBSEQUENT MILESTONE — Adding [target features] to existing app.
285
+ {MILESTONE_FRAMING}
276
286
  {EXISTING_CONTEXT}
277
287
  Focus ONLY on what's needed for the NEW features.
278
288
  </milestone_context>
@@ -419,7 +429,7 @@ node ~/.claude/deliver-great-systems/bin/dgs-tools.cjs commit "docs: define mile
419
429
  ◆ Spawning roadmapper...
420
430
  ```
421
431
 
422
- **Starting phase number:** Read MILESTONES.md for last phase number. Continue from there (v1.0 ended at phase 5 → v1.1 starts at phase 6).
432
+ **Starting phase number:** Read MILESTONES.md for last phase number. Continue from there (v1.0 ended at phase 5 → v1.1 starts at phase 6). If no MILESTONES.md exists (first milestone): start phase numbering at 1.
423
433
 
424
434
  ```
425
435
  Task(prompt="
@@ -1,5 +1,5 @@
1
1
  <purpose>
2
- Initialize a new project through unified flow: questioning, research (optional), requirements, roadmap. This is the most leveraged moment in any project — deep questioning here means better plans, better execution, better outcomes. One workflow takes you from idea to ready-for-planning.
2
+ Initialize a new project through questioning and PROJECT.md creation. This is the most leveraged moment in any project — deep questioning here means better plans, better execution, better outcomes. Run /dgs:new-milestone after to start your first milestone.
3
3
  </purpose>
4
4
 
5
5
  <context_tier>planning</context_tier>
@@ -16,12 +16,9 @@ Check if `--auto` flag is present in $ARGUMENTS.
16
16
  **If auto mode:**
17
17
  - Skip brownfield mapping offer (assume greenfield)
18
18
  - Skip deep questioning (extract context from provided document)
19
- - Config: Use existing product config from init-product (Step 2a sets auto_advance only)
20
- - After config: run Steps 6-9 automatically with smart defaults:
21
- - Research: Always yes
22
- - Requirements: Include all table stakes + features from provided document
23
- - Requirements approval: Auto-approve
24
- - Roadmap approval: Auto-approve
19
+ - Config: Use existing product config from init-product
20
+ - After config: run Step 2b (parse spec), Step 2c (repo cross-check), write PROJECT.md
21
+ - End with completion output directing to `/dgs:new-milestone --auto <spec-id>`
25
22
 
26
23
  **Document requirement:**
27
24
  Auto mode requires an idea document or spec reference — either:
@@ -64,7 +61,7 @@ If the `--auto` argument references a spec file path or spec ID:
64
61
  INIT=$(node ~/.claude/deliver-great-systems/bin/dgs-tools.cjs init new-project)
65
62
  ```
66
63
 
67
- Parse JSON for: `researcher_model`, `synthesizer_model`, `roadmapper_model`, `commit_docs`, `project_exists`, `has_codebase_map`, `planning_exists`, `has_existing_code`, `has_package_file`, `is_brownfield`, `needs_codebase_map`, `has_git`, `project_path`, `state_path`, `roadmap_path`, `requirements_path`, `research_dir`, `milestone_version`, `milestone_name`.
64
+ Parse JSON for: `commit_docs`, `project_exists`, `has_codebase_map`, `planning_exists`, `has_existing_code`, `has_package_file`, `is_brownfield`, `needs_codebase_map`, `has_git`, `project_path`, `state_path`.
68
65
 
69
66
  Load planning-tier context files:
70
67
 
@@ -116,12 +113,6 @@ Exit command.
116
113
 
117
114
  **If auto mode:** Use existing product config (set during `/dgs:init-product`). No config questions needed here.
118
115
 
119
- **Persist auto-advance to config (survives context compaction):**
120
-
121
- ```bash
122
- node ~/.claude/deliver-great-systems/bin/dgs-tools.cjs config-set workflow.auto_advance true
123
- ```
124
-
125
116
  Proceed to Step 4 (skip Step 3).
126
117
 
127
118
  ## 2b. Spec-Driven Project Creation (spec-driven auto mode only)
@@ -135,7 +126,7 @@ Read the spec file and extract:
135
126
  - **Problem** section → project description / core value
136
127
  - **Goals** section → project goals
137
128
  - **Non-Goals** section → out of scope
138
- - **Requirements** (P0/P1/P2) → v1 requirements (P0 + P1) and future requirements (P2)
129
+ - **Requirements** (P0/P1/P2) → requirements hypotheses for PROJECT.md
139
130
  - **User Stories** → inform requirement specificity
140
131
  - **Technical Considerations** → inform research/architecture
141
132
  - **"Repos likely touched"** or similar section → repos for cross-checking (Step 2c)
@@ -190,27 +181,16 @@ Create `${project_path}` with standard template structure, but derived entirely
190
181
  - Do NOT copy verbatim — restructure for project planning context
191
182
  - Add a `Source spec: [path]` line to PROJECT.md (per user decision — reference, not copy)
192
183
 
193
- ### Write REQUIREMENTS.md
194
-
195
- Generate `${requirements_path}` with:
196
- - REQ-IDs in `[CATEGORY]-[NUMBER]` format (e.g., AUTH-01, UI-02)
197
- - P0 requirements → v1 (must have)
198
- - P1 requirements → v1 (should have)
199
- - P2 requirements → Future
200
- - Non-Goals → Out of Scope with reasoning
201
-
202
- The requirements must be user-centric and atomic (one capability per requirement), following the quality criteria in the existing new-project workflow.
203
-
204
184
  ### Commit and Continue
205
185
 
206
- Commit PROJECT.md and REQUIREMENTS.md, then continue to Step 5 (Resolve Model Profile) — skip Steps 3 (Deep Questioning) and 4 (Write PROJECT.md) since they're replaced by spec-driven derivation.
186
+ Commit PROJECT.md, then proceed to Done.
207
187
 
208
188
  **Branch name preview:** After the project folder is created, if `branching_strategy` is not `"none"`, show:
209
189
  ```
210
190
  Branch names will look like: dgs/{project-slug}/phase-03-auth
211
191
  ```
212
192
 
213
- After model profile resolution, proceed to Step 6, 7 (if research selected, auto-default yes), 8 (Create Roadmap), 8.5 (Overlap Check), 9 (Done).
193
+ After PROJECT.md is committed, proceed to Step 5 (Done).
214
194
 
215
195
  ## 2c. Repo Cross-Check (spec-driven mode, v2 only)
216
196
 
@@ -422,595 +402,13 @@ Do not compress. Capture everything gathered.
422
402
  node ~/.claude/deliver-great-systems/bin/dgs-tools.cjs commit "docs: initialize project" --push --files ${project_path}
423
403
  ```
424
404
 
425
- ## 5. Resolve Model Profile
426
-
427
- Use models from init: `researcher_model`, `synthesizer_model`, `roadmapper_model`.
428
-
429
- ## 6. Research Decision
430
-
431
- **If auto mode:** Default to "Research first" without asking.
432
-
433
- Use AskUserQuestion:
434
- - header: "Research"
435
- - question: "Research the domain ecosystem before defining requirements?"
436
- - options:
437
- - "Research first (Recommended)" — Discover standard stacks, expected features, architecture patterns
438
- - "Skip research" — I know this domain well, go straight to requirements
439
-
440
- **If "Research first":**
441
-
442
- Display stage banner:
443
- ```
444
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
445
- DGS ► RESEARCHING
446
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
447
-
448
- Researching [domain] ecosystem...
449
- ```
450
-
451
- Create research directory:
452
- ```bash
453
- mkdir -p ${research_dir}
454
- ```
455
-
456
- **Determine milestone context:**
457
-
458
- Check if this is greenfield or subsequent milestone:
459
- - If no "Validated" requirements in PROJECT.md → Greenfield (building from scratch)
460
- - If "Validated" requirements exist → Subsequent milestone (adding to existing app)
461
-
462
- **Discover product-level documents:**
463
-
464
- Before spawning researchers, check for product-level documents that should inform research:
465
-
466
- ```bash
467
- ls ${project_root}/docs/product/ 2>/dev/null
468
- ```
469
-
470
- If the directory exists and contains files, store the list of file paths as `$product_doc_files`. For each file, format as a `<files_to_read>` entry: `- ${project_root}/docs/product/{filename} (Product doc)`. If the directory does not exist or is empty, set `$product_doc_files` to empty string.
471
-
472
- Display spawning indicator:
473
- ```
474
- ◆ Spawning 4 researchers in parallel...
475
- → Stack research
476
- → Features research
477
- → Architecture research
478
- → Pitfalls research
479
- ```
480
-
481
- Spawn 4 parallel dgs-project-researcher agents with path references:
482
-
483
- ```
484
- Task(prompt="First, read ~/.claude/agents/dgs-project-researcher.md for your role and instructions.
485
-
486
- <research_type>
487
- Project Research — Stack dimension for [domain].
488
- </research_type>
489
-
490
- <milestone_context>
491
- [greenfield OR subsequent]
492
-
493
- Greenfield: Research the standard stack for building [domain] from scratch.
494
- Subsequent: Research what's needed to add [target features] to an existing [domain] app. Don't re-research the existing system.
495
- </milestone_context>
496
-
497
- <question>
498
- What's the standard 2025 stack for [domain]?
499
- </question>
500
-
501
- <files_to_read>
502
- - {project_path} (Project context and goals)
503
- ${product_doc_files}
504
- </files_to_read>
505
-
506
- <downstream_consumer>
507
- Your STACK.md feeds into roadmap creation. Be prescriptive:
508
- - Specific libraries with versions
509
- - Clear rationale for each choice
510
- - What NOT to use and why
511
- </downstream_consumer>
512
-
513
- <quality_gate>
514
- - [ ] Versions are current (verify with Context7/official docs, not training data)
515
- - [ ] Rationale explains WHY, not just WHAT
516
- - [ ] Confidence levels assigned to each recommendation
517
- </quality_gate>
518
-
519
- <output>
520
- Write to: ${research_dir}/STACK.md
521
- Use template: ~/.claude/deliver-great-systems/templates/research-project/STACK.md
522
- </output>
523
- ", subagent_type="general-purpose", model="{researcher_model}", description="Stack research")
524
-
525
- Task(prompt="First, read ~/.claude/agents/dgs-project-researcher.md for your role and instructions.
526
-
527
- <research_type>
528
- Project Research — Features dimension for [domain].
529
- </research_type>
530
-
531
- <milestone_context>
532
- [greenfield OR subsequent]
533
-
534
- Greenfield: What features do [domain] products have? What's table stakes vs differentiating?
535
- Subsequent: How do [target features] typically work? What's expected behavior?
536
- </milestone_context>
537
-
538
- <question>
539
- What features do [domain] products have? What's table stakes vs differentiating?
540
- </question>
541
-
542
- <files_to_read>
543
- - {project_path} (Project context)
544
- ${product_doc_files}
545
- </files_to_read>
546
-
547
- <downstream_consumer>
548
- Your FEATURES.md feeds into requirements definition. Categorize clearly:
549
- - Table stakes (must have or users leave)
550
- - Differentiators (competitive advantage)
551
- - Anti-features (things to deliberately NOT build)
552
- </downstream_consumer>
553
-
554
- <quality_gate>
555
- - [ ] Categories are clear (table stakes vs differentiators vs anti-features)
556
- - [ ] Complexity noted for each feature
557
- - [ ] Dependencies between features identified
558
- </quality_gate>
559
-
560
- <output>
561
- Write to: ${research_dir}/FEATURES.md
562
- Use template: ~/.claude/deliver-great-systems/templates/research-project/FEATURES.md
563
- </output>
564
- ", subagent_type="general-purpose", model="{researcher_model}", description="Features research")
565
-
566
- Task(prompt="First, read ~/.claude/agents/dgs-project-researcher.md for your role and instructions.
567
-
568
- <research_type>
569
- Project Research — Architecture dimension for [domain].
570
- </research_type>
571
-
572
- <milestone_context>
573
- [greenfield OR subsequent]
574
-
575
- Greenfield: How are [domain] systems typically structured? What are major components?
576
- Subsequent: How do [target features] integrate with existing [domain] architecture?
577
- </milestone_context>
578
-
579
- <question>
580
- How are [domain] systems typically structured? What are major components?
581
- </question>
582
-
583
- <files_to_read>
584
- - {project_path} (Project context)
585
- ${product_doc_files}
586
- </files_to_read>
587
-
588
- <downstream_consumer>
589
- Your ARCHITECTURE.md informs phase structure in roadmap. Include:
590
- - Component boundaries (what talks to what)
591
- - Data flow (how information moves)
592
- - Suggested build order (dependencies between components)
593
- </downstream_consumer>
594
-
595
- <quality_gate>
596
- - [ ] Components clearly defined with boundaries
597
- - [ ] Data flow direction explicit
598
- - [ ] Build order implications noted
599
- </quality_gate>
600
-
601
- <output>
602
- Write to: ${research_dir}/ARCHITECTURE.md
603
- Use template: ~/.claude/deliver-great-systems/templates/research-project/ARCHITECTURE.md
604
- </output>
605
- ", subagent_type="general-purpose", model="{researcher_model}", description="Architecture research")
606
-
607
- Task(prompt="First, read ~/.claude/agents/dgs-project-researcher.md for your role and instructions.
608
-
609
- <research_type>
610
- Project Research — Pitfalls dimension for [domain].
611
- </research_type>
612
-
613
- <milestone_context>
614
- [greenfield OR subsequent]
615
-
616
- Greenfield: What do [domain] projects commonly get wrong? Critical mistakes?
617
- Subsequent: What are common mistakes when adding [target features] to [domain]?
618
- </milestone_context>
619
-
620
- <question>
621
- What do [domain] projects commonly get wrong? Critical mistakes?
622
- </question>
623
-
624
- <files_to_read>
625
- - {project_path} (Project context)
626
- ${product_doc_files}
627
- </files_to_read>
628
-
629
- <downstream_consumer>
630
- Your PITFALLS.md prevents mistakes in roadmap/planning. For each pitfall:
631
- - Warning signs (how to detect early)
632
- - Prevention strategy (how to avoid)
633
- - Which phase should address it
634
- </downstream_consumer>
635
-
636
- <quality_gate>
637
- - [ ] Pitfalls are specific to this domain (not generic advice)
638
- - [ ] Prevention strategies are actionable
639
- - [ ] Phase mapping included where relevant
640
- </quality_gate>
641
-
642
- <output>
643
- Write to: ${research_dir}/PITFALLS.md
644
- Use template: ~/.claude/deliver-great-systems/templates/research-project/PITFALLS.md
645
- </output>
646
- ", subagent_type="general-purpose", model="{researcher_model}", description="Pitfalls research")
647
- ```
648
-
649
- After all 4 agents complete, spawn synthesizer to create SUMMARY.md:
650
-
651
- ```
652
- Task(prompt="
653
- <task>
654
- Synthesize research outputs into SUMMARY.md.
655
- </task>
656
-
657
- <files_to_read>
658
- - ${research_dir}/STACK.md
659
- - ${research_dir}/FEATURES.md
660
- - ${research_dir}/ARCHITECTURE.md
661
- - ${research_dir}/PITFALLS.md
662
- </files_to_read>
663
-
664
- <output>
665
- Write to: ${research_dir}/SUMMARY.md
666
- Use template: ~/.claude/deliver-great-systems/templates/research-project/SUMMARY.md
667
- Commit after writing.
668
- </output>
669
- ", subagent_type="dgs-research-synthesizer", model="{synthesizer_model}", description="Synthesize research")
670
- ```
671
-
672
- Display research complete banner and key findings:
673
- ```
674
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
675
- DGS ► RESEARCH COMPLETE ✓
676
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
677
-
678
- ## Key Findings
679
-
680
- **Stack:** [from SUMMARY.md]
681
- **Table Stakes:** [from SUMMARY.md]
682
- **Watch Out For:** [from SUMMARY.md]
683
-
684
- Files: `${research_dir}/`
685
- ```
686
-
687
- **If "Skip research":** Continue to Step 7.
688
-
689
- ## 7. Define Requirements
690
-
691
- Display stage banner:
692
- ```
693
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
694
- DGS ► DEFINING REQUIREMENTS
695
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
696
- ```
697
-
698
- **Load context:**
699
-
700
- Read PROJECT.md and extract:
701
- - Core value (the ONE thing that must work)
702
- - Stated constraints (budget, timeline, tech limitations)
703
- - Any explicit scope boundaries
704
-
705
- **If research exists:** Read research/FEATURES.md and extract feature categories.
706
-
707
- **If auto mode:**
708
- - Auto-include all table stakes features (users expect these)
709
- - Include features explicitly mentioned in provided document
710
- - Auto-defer differentiators not mentioned in document
711
- - Skip per-category AskUserQuestion loops
712
- - Skip "Any additions?" question
713
- - Skip requirements approval gate
714
- - Generate REQUIREMENTS.md and commit directly
715
-
716
- **Present features by category (interactive mode only):**
717
-
718
- ```
719
- Here are the features for [domain]:
720
-
721
- ## Authentication
722
- **Table stakes:**
723
- - Sign up with email/password
724
- - Email verification
725
- - Password reset
726
- - Session management
727
-
728
- **Differentiators:**
729
- - Magic link login
730
- - OAuth (Google, GitHub)
731
- - 2FA
732
-
733
- **Research notes:** [any relevant notes]
734
-
735
- ---
736
-
737
- ## [Next Category]
738
- ...
739
- ```
740
-
741
- **If no research:** Gather requirements through conversation instead.
742
-
743
- Ask: "What are the main things users need to be able to do?"
744
-
745
- For each capability mentioned:
746
- - Ask clarifying questions to make it specific
747
- - Probe for related capabilities
748
- - Group into categories
749
-
750
- **Scope each category:**
751
-
752
- For each category, use AskUserQuestion:
753
-
754
- - header: "[Category]" (max 12 chars)
755
- - question: "Which [category] features are in v1?"
756
- - multiSelect: true
757
- - options:
758
- - "[Feature 1]" — [brief description]
759
- - "[Feature 2]" — [brief description]
760
- - "[Feature 3]" — [brief description]
761
- - "None for v1" — Defer entire category
762
-
763
- Track responses:
764
- - Selected features → v1 requirements
765
- - Unselected table stakes → v2 (users expect these)
766
- - Unselected differentiators → out of scope
767
-
768
- **Identify gaps:**
769
-
770
- Use AskUserQuestion:
771
- - header: "Additions"
772
- - question: "Any requirements research missed? (Features specific to your vision)"
773
- - options:
774
- - "No, research covered it" — Proceed
775
- - "Yes, let me add some" — Capture additions
776
-
777
- **Validate core value:**
778
-
779
- Cross-check requirements against Core Value from PROJECT.md. If gaps detected, surface them.
780
-
781
- **Generate REQUIREMENTS.md:**
782
-
783
- Create `${requirements_path}` with:
784
- - v1 Requirements grouped by category (checkboxes, REQ-IDs)
785
- - v2 Requirements (deferred)
786
- - Out of Scope (explicit exclusions with reasoning)
787
- - Traceability section (empty, filled by roadmap)
788
-
789
- **REQ-ID format:** `[CATEGORY]-[NUMBER]` (AUTH-01, CONTENT-02)
790
-
791
- **Requirement quality criteria:**
792
-
793
- Good requirements are:
794
- - **Specific and testable:** "User can reset password via email link" (not "Handle password reset")
795
- - **User-centric:** "User can X" (not "System does Y")
796
- - **Atomic:** One capability per requirement (not "User can login and manage profile")
797
- - **Independent:** Minimal dependencies on other requirements
798
-
799
- Reject vague requirements. Push for specificity:
800
- - "Handle authentication" → "User can log in with email/password and stay logged in across sessions"
801
- - "Support sharing" → "User can share post via link that opens in recipient's browser"
802
-
803
- **Present full requirements list (interactive mode only):**
804
-
805
- Show every requirement (not counts) for user confirmation:
806
-
807
- ```
808
- ## v1 Requirements
809
-
810
- ### Authentication
811
- - [ ] **AUTH-01**: User can create account with email/password
812
- - [ ] **AUTH-02**: User can log in and stay logged in across sessions
813
- - [ ] **AUTH-03**: User can log out from any page
814
-
815
- ### Content
816
- - [ ] **CONT-01**: User can create posts with text
817
- - [ ] **CONT-02**: User can edit their own posts
818
-
819
- [... full list ...]
820
-
821
- ---
822
-
823
- Does this capture what you're building? (yes / adjust)
824
- ```
825
-
826
- If "adjust": Return to scoping.
827
-
828
- **Commit requirements:**
829
-
830
- ```bash
831
- node ~/.claude/deliver-great-systems/bin/dgs-tools.cjs commit "docs: define v1 requirements" --push --files ${requirements_path}
832
- ```
833
-
834
- ## 8. Create Roadmap
835
-
836
- Display stage banner:
837
- ```
838
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
839
- DGS ► CREATING ROADMAP
840
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
841
-
842
- ◆ Spawning roadmapper...
843
- ```
844
-
845
- Spawn dgs-roadmapper agent with path references:
846
-
847
- ```
848
- Task(prompt="
849
- <planning_context>
850
-
851
- <files_to_read>
852
- - ${project_path} (Project context)
853
- - ${requirements_path} (v1 Requirements)
854
- - ${research_dir}/SUMMARY.md (Research findings - if exists)
855
- - ${config_path} (Depth and mode settings)
856
- ${product_doc_files}
857
- </files_to_read>
858
-
859
- <milestone>
860
- version: ${milestone_version}
861
- name: ${milestone_name}
862
- </milestone>
863
-
864
- </planning_context>
865
-
866
- <instructions>
867
- Create roadmap:
868
- 1. Derive phases from requirements (don't impose structure)
869
- 2. Map every v1 requirement to exactly one phase
870
- 3. Derive 2-5 success criteria per phase (observable user behaviors)
871
- Use the milestone version from <milestone> when writing STATE.md frontmatter and ROADMAP.md headings.
872
- 4. Validate 100% coverage
873
- 5. Write files immediately (ROADMAP.md, STATE.md, update REQUIREMENTS.md traceability)
874
- 6. Return ROADMAP CREATED with summary
875
-
876
- Write files first, then return. This ensures artifacts persist even if context is lost.
877
- </instructions>
878
- ", subagent_type="dgs-roadmapper", model="{roadmapper_model}", description="Create roadmap")
879
- ```
880
-
881
- **Handle roadmapper return:**
882
-
883
- **If `## ROADMAP BLOCKED`:**
884
- - Present blocker information
885
- - Work with user to resolve
886
- - Re-spawn when resolved
887
-
888
- **If `## ROADMAP CREATED`:**
889
-
890
- Read the created ROADMAP.md and present it nicely inline:
891
-
892
- ```
893
- ---
894
-
895
- ## Proposed Roadmap
896
-
897
- **[N] phases** | **[X] requirements mapped** | All v1 requirements covered ✓
898
-
899
- | # | Phase | Goal | Requirements | Success Criteria |
900
- |---|-------|------|--------------|------------------|
901
- | 1 | [Name] | [Goal] | [REQ-IDs] | [count] |
902
- | 2 | [Name] | [Goal] | [REQ-IDs] | [count] |
903
- | 3 | [Name] | [Goal] | [REQ-IDs] | [count] |
904
- ...
905
-
906
- ### Phase Details
907
-
908
- **Phase 1: [Name]**
909
- Goal: [goal]
910
- Requirements: [REQ-IDs]
911
- Success criteria:
912
- 1. [criterion]
913
- 2. [criterion]
914
- 3. [criterion]
915
-
916
- **Phase 2: [Name]**
917
- Goal: [goal]
918
- Requirements: [REQ-IDs]
919
- Success criteria:
920
- 1. [criterion]
921
- 2. [criterion]
922
-
923
- [... continue for all phases ...]
924
-
925
- ---
926
- ```
927
-
928
- **If auto mode:** Skip approval gate — auto-approve and commit directly.
929
-
930
- **CRITICAL: Ask for approval before committing (interactive mode only):**
931
-
932
- Use AskUserQuestion:
933
- - header: "Roadmap"
934
- - question: "Does this roadmap structure work for you?"
935
- - options:
936
- - "Approve" — Commit and continue
937
- - "Adjust phases" — Tell me what to change
938
- - "Review full file" — Show raw ROADMAP.md
939
-
940
- **If "Approve":** Continue to commit.
941
-
942
- **If "Adjust phases":**
943
- - Get user's adjustment notes
944
- - Re-spawn roadmapper with revision context:
945
- ```
946
- Task(prompt="
947
- <revision>
948
- User feedback on roadmap:
949
- [user's notes]
950
-
951
- <files_to_read>
952
- - ${roadmap_path} (Current roadmap to revise)
953
- </files_to_read>
954
-
955
- Update the roadmap based on feedback. Edit files in place.
956
- Return ROADMAP REVISED with changes made.
957
- </revision>
958
- ", subagent_type="dgs-roadmapper", model="{roadmapper_model}", description="Revise roadmap")
959
- ```
960
- - Present revised roadmap
961
- - Loop until user approves
962
-
963
- **If "Review full file":** Display raw `cat ${roadmap_path}`, then re-ask.
964
-
965
- **Commit roadmap (after approval or auto mode):**
966
-
967
- ```bash
968
- node ~/.claude/deliver-great-systems/bin/dgs-tools.cjs commit "docs: create roadmap ([N] phases)" --push --files ${roadmap_path} ${state_path} ${requirements_path}
969
- ```
970
-
971
- ### Link Spec to Milestone (spec-driven mode only)
972
-
973
- If this project was created from a spec (spec-driven auto mode), update the spec's milestones frontmatter to record the bidirectional link:
974
-
975
- ```bash
976
- node ~/.claude/deliver-great-systems/bin/dgs-tools.cjs specs link-milestone --id "$SPEC_ID" --milestone "v1.0"
977
- ```
978
-
979
- Include the updated spec file in a commit:
980
-
981
- ```bash
982
- node ~/.claude/deliver-great-systems/bin/dgs-tools.cjs commit "specs: link $SPEC_ID to v1.0" --push --files $SPEC_PATH
983
- ```
984
-
985
- ## 8.5. Overlap Check (v2 only)
986
-
987
- If v2 install (PROJECTS.md or REPOS.md exists in the planning root):
988
-
989
- ```bash
990
- OVERLAP=$(node ~/.claude/deliver-great-systems/bin/dgs-tools.cjs overlap check --raw 2>/dev/null)
991
- ```
992
-
993
- Parse JSON. If `overlapping_repos` array is non-empty, display warning:
994
-
995
- ```
996
- ⚠ Cross-project overlap detected:
997
-
998
- | Repo | Also touched by |
999
- |------|----------------|
1000
- | {repo} | {other-project} |
1001
-
1002
- This is informational — work can proceed.
1003
- ```
1004
-
1005
- If no overlaps or not v2: skip silently.
1006
-
1007
- ## 9. Done
405
+ ## 5. Done
1008
406
 
1009
407
  Present completion summary:
1010
408
 
1011
409
  ```
1012
410
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1013
- DGS ► PROJECT INITIALIZED
411
+ DGS ► PROJECT CREATED
1014
412
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1015
413
 
1016
414
  **[Project Name]**
@@ -1018,60 +416,24 @@ Present completion summary:
1018
416
  | Artifact | Location |
1019
417
  |----------------|-----------------------------|
1020
418
  | Project | `${project_path}` |
1021
- | Config | `${config_path}` |
1022
- | Research | `${research_dir}/` |
1023
- | Requirements | `${requirements_path}` |
1024
- | Roadmap | `${roadmap_path}` |
1025
419
 
1026
- **[N] phases** | **[X] requirements** | Ready to build ✓
1027
- ```
420
+ ## Next Up
1028
421
 
1029
- **If spec-driven mode**, add to the summary table:
422
+ **Start your first milestone:**
1030
423
 
1031
- ```
1032
- **Source:** `[spec path]`
1033
- **Created from spec:** {spec_id} — "{spec_title}"
1034
- ```
424
+ `/dgs:new-milestone`
1035
425
 
1036
- **If auto mode (spec-driven):**
1037
-
1038
- ```
1039
- **Created from spec:** {spec_id} — "{spec_title}"
1040
-
1041
- ╔══════════════════════════════════════════╗
1042
- ║ AUTO-ADVANCING → DISCUSS PHASE 1 ║
1043
- ╚══════════════════════════════════════════╝
1044
- ```
1045
-
1046
- **If auto mode (idea-driven):**
1047
-
1048
- ```
1049
- ╔══════════════════════════════════════════╗
1050
- ║ AUTO-ADVANCING → DISCUSS PHASE 1 ║
1051
- ╚══════════════════════════════════════════╝
426
+ <sub>`/clear` first - fresh context window</sub>
1052
427
  ```
1053
428
 
1054
- Exit skill and invoke SlashCommand("/dgs:discuss-phase 1 --auto")
1055
-
1056
- **If interactive mode:**
429
+ **If spec-driven mode**, add:
1057
430
 
1058
431
  ```
1059
- ───────────────────────────────────────────────────────────────
1060
-
1061
- ## ▶ Next Up
1062
-
1063
- **Phase 1: [Phase Name]** — [Goal from ROADMAP.md]
1064
-
1065
- /dgs:discuss-phase 1 — gather context and clarify approach
1066
-
1067
- <sub>/clear first → fresh context window</sub>
1068
-
1069
- ---
432
+ **Created from spec:** {spec_id} -- "{spec_title}"
1070
433
 
1071
- **Also available:**
1072
- - /dgs:plan-phase 1 — skip discussion, plan directly
434
+ **Start first milestone from this spec:**
1073
435
 
1074
- ───────────────────────────────────────────────────────────────
436
+ `/dgs:new-milestone --auto <spec-id>`
1075
437
  ```
1076
438
 
1077
439
  </process>
@@ -1079,16 +441,7 @@ Exit skill and invoke SlashCommand("/dgs:discuss-phase 1 --auto")
1079
441
  <output>
1080
442
 
1081
443
  - `${project_path}`
1082
- - `${config_path}`
1083
- - `${research_dir}/` (if research selected)
1084
- - `STACK.md`
1085
- - `FEATURES.md`
1086
- - `ARCHITECTURE.md`
1087
- - `PITFALLS.md`
1088
- - `SUMMARY.md`
1089
- - `${requirements_path}`
1090
- - `${roadmap_path}`
1091
- - `${state_path}`
444
+ - `${config_path}` (from init-product, not created here)
1092
445
 
1093
446
  </output>
1094
447
 
@@ -1098,20 +451,9 @@ Exit skill and invoke SlashCommand("/dgs:discuss-phase 1 --auto")
1098
451
  - [ ] Git repo initialized
1099
452
  - [ ] Brownfield detection completed
1100
453
  - [ ] Deep questioning completed (threads followed, not rushed)
1101
- - [ ] PROJECT.md captures full context **committed**
1102
- - [ ] Product config validated (mode, depth, workflow settings from init-product)
1103
- - [ ] Research completed (if selected) 4 parallel agents spawned → **committed**
1104
- - [ ] Requirements gathered (from research or conversation)
1105
- - [ ] User scoped each category (v1/v2/out of scope)
1106
- - [ ] REQUIREMENTS.md created with REQ-IDs → **committed**
1107
- - [ ] dgs-roadmapper spawned with context
1108
- - [ ] Roadmap files written immediately (not draft)
1109
- - [ ] User feedback incorporated (if any)
1110
- - [ ] ROADMAP.md created with phases, requirement mappings, success criteria
1111
- - [ ] STATE.md initialized
1112
- - [ ] REQUIREMENTS.md traceability updated
1113
- - [ ] Spec-driven mode: spec milestones field updated with link-milestone call
1114
- - [ ] User knows next step is `/dgs:discuss-phase 1`
454
+ - [ ] PROJECT.md captures full context -- **committed**
455
+ - [ ] Product config validated
456
+ - [ ] User knows next step is `/dgs:new-milestone`
1115
457
 
1116
458
  **Atomic commits:** Each phase commits its artifacts immediately. If context is lost, artifacts persist.
1117
459
 
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "bugs": {
9
9
  "url": "https://github.com/KT-Partners-Ltd/dgs-platform-docs/issues"
10
10
  },
11
- "version": "2.8.0",
11
+ "version": "2.9.0",
12
12
  "description": "Deliver Great Systems Platform — A meta-prompting, context engineering and spec-driven development system for Claude Code and Gemini by KT Partners.",
13
13
  "bin": {
14
14
  "dgs": "bin/install.js"