@jakkrichm/create-nexus-devflow 2.0.15 → 2.0.18

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.
Files changed (82) hide show
  1. package/dist/bin/create-nexus-devflow.d.ts +15 -1
  2. package/dist/bin/create-nexus-devflow.js +125 -9
  3. package/dist/bin/create-nexus-devflow.js.map +1 -1
  4. package/dist/lib/current-work.d.ts +29 -0
  5. package/dist/lib/current-work.js +235 -0
  6. package/dist/lib/current-work.js.map +1 -0
  7. package/dist/lib/findings.d.ts +26 -0
  8. package/dist/lib/findings.js +110 -0
  9. package/dist/lib/findings.js.map +1 -0
  10. package/dist/lib/git-status.d.ts +13 -0
  11. package/dist/lib/git-status.js +98 -0
  12. package/dist/lib/git-status.js.map +1 -0
  13. package/dist/lib/project-metadata.d.ts +22 -0
  14. package/dist/lib/project-metadata.js +84 -0
  15. package/dist/lib/project-metadata.js.map +1 -0
  16. package/dist/lib/project-root.d.ts +3 -0
  17. package/dist/lib/project-root.js +76 -0
  18. package/dist/lib/project-root.js.map +1 -0
  19. package/dist/lib/status.d.ts +62 -0
  20. package/dist/lib/status.js +273 -0
  21. package/dist/lib/status.js.map +1 -0
  22. package/dist/lib/uninstall.d.ts +20 -0
  23. package/dist/lib/uninstall.js +129 -0
  24. package/dist/lib/uninstall.js.map +1 -0
  25. package/dist/scripts/prepare-template.js +120 -10
  26. package/dist/scripts/prepare-template.js.map +1 -1
  27. package/package.json +4 -3
  28. package/template/.agents/skills/00-discover/SKILL.md +2 -2
  29. package/template/.agents/skills/10-define/SKILL.md +24 -140
  30. package/template/.agents/skills/20-spec/SKILL.md +2 -2
  31. package/template/.agents/skills/30-plan/SKILL.md +2 -2
  32. package/template/.agents/skills/50-verify/SKILL.md +2 -2
  33. package/template/.agents/skills/60-report/SKILL.md +1 -1
  34. package/template/.agents/skills/70-release/SKILL.md +19 -143
  35. package/template/.agents/skills/check/SKILL.md +10 -10
  36. package/template/.agents/skills/ci/SKILL.md +1 -1
  37. package/template/.agents/skills/complete/SKILL.md +49 -28
  38. package/template/.agents/skills/deploy/SKILL.md +1 -1
  39. package/template/.agents/skills/devflow/SKILL.md +5 -5
  40. package/template/.agents/skills/feature/SKILL.md +25 -20
  41. package/template/.agents/skills/fix/SKILL.md +25 -19
  42. package/template/.agents/skills/implement/SKILL.md +10 -10
  43. package/template/.agents/skills/insight/SKILL.md +1 -1
  44. package/template/.agents/skills/overview/SKILL.md +3 -3
  45. package/template/.agents/skills/report-html/SKILL.md +3 -3
  46. package/template/.agents/skills/security-review/SKILL.md +1 -1
  47. package/template/.agents/skills/spec/SKILL.md +7 -6
  48. package/template/.agents/skills/spec-driven-development/SKILL.md +2 -2
  49. package/template/.agents/skills/test/SKILL.md +1 -1
  50. package/template/.claude/skills/00-discover/SKILL.md +2 -2
  51. package/template/.claude/skills/10-define/SKILL.md +24 -140
  52. package/template/.claude/skills/20-spec/SKILL.md +2 -2
  53. package/template/.claude/skills/30-plan/SKILL.md +2 -2
  54. package/template/.claude/skills/50-verify/SKILL.md +2 -2
  55. package/template/.claude/skills/60-report/SKILL.md +1 -1
  56. package/template/.claude/skills/70-release/SKILL.md +19 -143
  57. package/template/.claude/skills/check/SKILL.md +10 -10
  58. package/template/.claude/skills/ci/SKILL.md +1 -1
  59. package/template/.claude/skills/complete/SKILL.md +49 -28
  60. package/template/.claude/skills/deploy/SKILL.md +1 -1
  61. package/template/.claude/skills/devflow/SKILL.md +5 -5
  62. package/template/.claude/skills/feature/SKILL.md +25 -20
  63. package/template/.claude/skills/fix/SKILL.md +25 -19
  64. package/template/.claude/skills/implement/SKILL.md +10 -10
  65. package/template/.claude/skills/insight/SKILL.md +1 -1
  66. package/template/.claude/skills/overview/SKILL.md +3 -3
  67. package/template/.claude/skills/report-html/SKILL.md +3 -3
  68. package/template/.claude/skills/security-review/SKILL.md +1 -1
  69. package/template/.claude/skills/spec/SKILL.md +7 -6
  70. package/template/.claude/skills/spec-driven-development/SKILL.md +2 -2
  71. package/template/.claude/skills/test/SKILL.md +1 -1
  72. package/template/AGENTS.md +15 -59
  73. package/template/devflow/context/ai-interaction.md +110 -23
  74. package/template/devflow/context/coding-standards.md +123 -32
  75. package/template/devflow/context/current-feature.md +3 -0
  76. package/template/devflow/context/current-stage.md +6 -6
  77. package/template/devflow/context/findings.md +10 -10
  78. package/template/devflow/context/project-overview.md +18 -32
  79. package/template/devflow/history/HISTORY.md +10 -24
  80. package/template/devflow/ideas.md +9 -5
  81. package/template/devflow/reference/running-id-contract.md +39 -39
  82. package/template/devflow/runs/.gitkeep +0 -0
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: deploy
3
- description: "[Devflow] Production deployment pre-flight checks, launch readiness, smoke validation, and deployment execution."
3
+ description: "[Devflow] Production deployment pre-flight checks, smoke validation, and deployment execution."
4
4
  ---
5
5
 
6
6
  # Production Deployment & Launch Readiness
@@ -16,7 +16,7 @@ Use this skill to guide the user on what to do next, inspect current workspace s
16
16
 
17
17
  Nexus-DevFlow supports two seamless workflow tracks:
18
18
  1. **🏎️ Fast-Track (Blueprint Mode - 4 Steps)**: `/spec` ➔ `/implement` ➔ `/check` ➔ `/complete`
19
- *Driven by a **Single Living Spec (`spec.md`)** for fast, high-velocity daily development and bugfixes (85% of tasks).*
19
+ *Driven by a **Single Living Spec (`current-feature.md`)** for fast, high-velocity daily development and bugfixes (85% of tasks).*
20
20
  2. **🏗️ Deep-Track (Architect Mode - 8 Steps)**: `00-discover` ➔ `10-define` ➔ `20-spec` ➔ `30-plan` ➔ `40-execute` ➔ `50-verify` ➔ `60-report` ➔ `70-release`
21
21
  *Driven by modular separate stage files for large, high-stakes architectural epics and multi-agent coordination.*
22
22
 
@@ -28,8 +28,8 @@ When invoked without an argument (or when determining the next step), inspect:
28
28
 
29
29
  1. **Project Setup Baseline**: Read `devflow/context/project-overview.md` and `devflow/context/coding-standards.md`. If empty or default placeholders, recommend `onboard` (for fresh projects) or `adopt` (for existing codebases).
30
30
  2. **Active Delivery Run**: Read `devflow/context/current-stage.md` and check `devflow/runs/{RUNNING_ID}/`.
31
- - **If Fast-Track (`spec.md` or `blueprint.md` present)**:
32
- - If `spec.md` has incomplete checklist items -> Recommend `/implement` (or `implement {RUNNING_ID}`).
31
+ - **If Fast-Track (`current-feature.md`, `spec.md`, or `blueprint.md` present)**:
32
+ - If `current-feature.md` (or `spec.md`) has incomplete checklist items -> Recommend `/implement` (or `implement {RUNNING_ID}`).
33
33
  - If all tasks done but no passing verification evidence -> Recommend `/check` (or `check {RUNNING_ID}`).
34
34
  - If verification evidence passed -> Recommend `/complete` (or `complete {RUNNING_ID}`).
35
35
  - **If Deep-Track (numbered stage files present)**:
@@ -61,7 +61,7 @@ When invoked without an argument (or when determining the next step), inspect:
61
61
  | **"Execute implementation tasks"** | `implement` | `/implement` | **Fast-Track**: `/implement` -> `/check` |
62
62
  | **"Run QA verification & check"** | `check` | `/check` | **Fast-Track**: `/check` -> `/complete` |
63
63
  | **"Complete run & git merge"** | `complete` | `/complete` | **Fast-Track**: `/complete` |
64
- | **"Generate HTML dashboard report"**| `report-html` | `/report:html` | **Standalone**: Converts `spec.md` / `60-report.md` to HTML |
64
+ | **"Generate HTML dashboard report"**| `report-html` | `/report:html` | **Standalone**: Converts `current-feature.md` / `60-report.md` to HTML |
65
65
  | "Setup DevFlow on fresh/new project" | `onboard` | `onboard` / `setup` | `onboard` -> `/spec` or `10-define` |
66
66
  | "Adopt DevFlow on existing codebase" | `adopt` | `adopt` / `bootstrap` | `adopt` -> `/spec` or `10-define` |
67
67
  | "Check setup health & diagnostics" | `doctor` | `doctor` / `health` | `doctor` |
@@ -85,7 +85,7 @@ When invoked without an argument (or when determining the next step), inspect:
85
85
  ## Available Skills Sitemap
86
86
 
87
87
  ### 1. Fast-Track (Blueprint Mode - 4 Steps)
88
- - `spec` (`/spec`, `/feature`, `/fix`, `$spec`) - Define, spec, plan, and create `spec.md`
88
+ - `spec` (`/spec`, `/feature`, `/fix`, `$spec`) - Define, spec, plan, and create `current-feature.md`
89
89
  - `implement` (`/implement`, `$implement`) - Execute planned checklist tasks with TDD
90
90
  - `check` (`/check`, `$check`) - Senior QA review, multi-lane verification, record evidence
91
91
  - `complete` (`/complete`, `$complete`) - Safety pass, release digest, git merge, close run
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: feature
3
- description: "[Devflow] Fast-Track Feature stage in DevFlow (Blueprint Mode) - define, spec, plan, and create the living spec.md contract for new features."
3
+ description: "[Devflow] Fast-Track Feature stage in DevFlow (Blueprint Mode) - define, spec, plan, and create the living current-feature.md contract in context for new features."
4
4
  argument-hint: "{feature title, IDEA-xxx, or feature description}"
5
5
  ---
6
6
 
@@ -8,7 +8,7 @@ argument-hint: "{feature title, IDEA-xxx, or feature description}"
8
8
 
9
9
  $ARGUMENTS
10
10
 
11
- Fast-Track entry point combining Discovery, Definition, Specification, and Implementation Planning into one streamlined, review-gated step for **new features or enhancements**. Creates and maintains the **Single Living Spec (`spec.md`)** for the feature run. Supports intake from Idea Inbox (`IDEA-xxx`).
11
+ Fast-Track entry point combining Discovery, Definition, Specification, and Implementation Planning into one streamlined, review-gated step for **new features or enhancements**. Creates and maintains the **Single Living Spec (`devflow/context/current-feature.md`)** for the feature run. Supports intake from Idea Inbox (`IDEA-xxx`).
12
12
 
13
13
  ## Invocations & Aliases
14
14
 
@@ -26,25 +26,31 @@ Fast-Track entry point combining Discovery, Definition, Specification, and Imple
26
26
 
27
27
  When invoked:
28
28
 
29
- ### 1. Work Identity & Idea Intake
30
- 1. Inspect `devflow/context/current-stage.md` and `devflow/runs/`.
31
- 2. **Idea Inbox Intake**: If the argument is an idea identifier (e.g. `IDEA-001`):
29
+ ### 1. Single Active Run Guardrail (One Thing at a Time)
30
+ 1. Inspect `devflow/context/current-stage.md` and `devflow/context/current-feature.md`.
31
+ 2. If `Active Running ID` is not `None` and `Current Stage` is not `Idle`, or if `current-feature.md` contains an active uncompleted spec:
32
+ - **HALT and reject opening a new feature**.
33
+ - Explain to the user that an active run is currently in progress:
34
+ > ⚠️ *"มีงาน `{active_id}` กำลังดำเนินการอยู่ กรุณาปิดงานเดิมด้วย `/complete` หรือ `70-release` (หรือสั่ง `/rollback`) ก่อนเริ่มงานใหม่"*
35
+
36
+ ### 2. Work Identity & Idea Intake
37
+ 1. **Idea Inbox Intake**: If the argument is an idea identifier (e.g. `IDEA-001`):
32
38
  - Read `devflow/ideas.md` and extract the idea's title, raw problem statement, AI Feasibility notes, and Quick Seed points.
33
39
  - Use these details as the primary input for Specification & Scope.
34
- - In `devflow/ideas.md`, update the item's status to `[x] Claimed ({RUNNING_ID})` and move it under `## 📦 Archived / Shipped Ideas`.
35
- 3. Determine or allocate the sequential Running ID (e.g. `RUN-018-{slug}`).
36
- 4. Identify Git branch naming:
37
- - `feature/{slug}-{RUNNING_ID}`
38
- 5. Create directory `devflow/runs/{RUNNING_ID}/`.
40
+ - In `devflow/ideas.md`, update the item's status to `[x] Claimed ({ID})` and move it under `## 📦 Archived / Shipped Ideas`.
41
+ 2. Inspect `devflow/history/HISTORY.md` and determine the next sequential ID without prefix (e.g. `022-{slug}`).
42
+ 3. Identify Git branch naming:
43
+ - `feature/{xxx-slug}`
39
44
 
40
- ### 2. Generate the Single Living Spec (`spec.md`)
41
- Write `devflow/runs/{RUNNING_ID}/spec.md` using the structured template below in **Thai (`th`)**:
45
+ ### 3. Generate the Living Spec (`devflow/context/current-feature.md`)
46
+ Write `devflow/context/current-feature.md` using the structured template below in **Thai (`th`)**:
42
47
 
43
48
  ```markdown
44
- # 📐 [{RUNNING_ID}] {Feature Title} (Living Spec)
49
+ # 📐 [{ID}] {Feature Title} (Living Spec)
45
50
 
46
51
  > **Status**: In-Progress
47
52
  > **Track**: Fast-Track (Blueprint Mode - Feature)
53
+ > **Category**: Feature
48
54
  > **Branch**: `{branch_name}`
49
55
  > **Created Date**: {YYYY-MM-DD}
50
56
  > **Owner**: {Contributor or Team}
@@ -87,17 +93,16 @@ Write `devflow/runs/{RUNNING_ID}/spec.md` using the structured template below in
87
93
  - *(จะถูกบันทึกเมื่อรัน /complete)*
88
94
  ```
89
95
 
90
- ### 3. Update Workspace Status
96
+ ### 4. Update Workspace Status
91
97
  Update `devflow/context/current-stage.md`:
92
- - `Active Running ID`: `{RUNNING_ID}`
98
+ - `Active Discovery ID`: `None`
99
+ - `Active Running ID`: `{ID}`
93
100
  - `Current Stage`: `feature (Fast-Track -> Ready for /implement)`
94
- - `Living Spec`: `devflow/runs/{RUNNING_ID}/spec.md`
101
+ - `Living Spec`: `devflow/context/current-feature.md`
95
102
  - `Last Updated`: `{YYYY-MM-DD}`
96
103
 
97
- ### 4. Output Summary & Next Step
104
+ ### 5. Output Summary & Next Step
98
105
  Report to the user:
99
106
  - Running ID and allocated branch
100
107
  - Summary of Scope and Acceptance Criteria
101
- - Living Spec path: `devflow/runs/{RUNNING_ID}/spec.md`
102
- - If promoted from `IDEA-xxx`, confirm status update in `devflow/ideas.md`
103
- - **Next Command**: `/implement` (or `/implement {RUNNING_ID}`)
108
+ - Explicit next step: `/implement`
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: fix
3
- description: "[Devflow] Fast-Track Fix stage in DevFlow (Blueprint Mode) - define, spec, plan, and create the living spec.md contract for bug fixes."
3
+ description: "[Devflow] Fast-Track Fix stage in DevFlow (Blueprint Mode) - define, spec, plan, and create the living current-feature.md contract in context for bug fixes."
4
4
  argument-hint: "{bug description, issue ID, or IDEA-xxx}"
5
5
  ---
6
6
 
@@ -8,7 +8,7 @@ argument-hint: "{bug description, issue ID, or IDEA-xxx}"
8
8
 
9
9
  $ARGUMENTS
10
10
 
11
- Fast-Track entry point combining Bug Triage, Root Cause Isolation, Specification, and Implementation Planning into one streamlined, review-gated step for **bug fixes and hotfixes**. Creates and maintains the **Single Living Spec (`spec.md`)** for the fix run.
11
+ Fast-Track entry point combining Bug Triage, Root Cause Isolation, Specification, and Implementation Planning into one streamlined, review-gated step for **bug fixes and hotfixes**. Creates and maintains the **Single Living Spec (`devflow/context/current-feature.md`)** for the fix run.
12
12
 
13
13
  ## Invocations & Aliases
14
14
 
@@ -26,24 +26,30 @@ Fast-Track entry point combining Bug Triage, Root Cause Isolation, Specification
26
26
 
27
27
  When invoked:
28
28
 
29
- ### 1. Work Identity & Issue Intake
30
- 1. Inspect `devflow/context/current-stage.md` and `devflow/runs/`.
31
- 2. **Idea / Issue Inbox Intake**: If the argument is an identifier (e.g. `IDEA-001`):
29
+ ### 1. Single Active Run Guardrail (One Thing at a Time)
30
+ 1. Inspect `devflow/context/current-stage.md` and `devflow/context/current-feature.md`.
31
+ 2. If `Active Running ID` is not `None` and `Current Stage` is not `Idle`, or if `current-feature.md` contains an active uncompleted spec:
32
+ - **HALT and reject opening a new fix**.
33
+ - Explain to the user that an active run is currently in progress:
34
+ > ⚠️ *"มีงาน `{active_id}` กำลังดำเนินการอยู่ กรุณาปิดงานเดิมด้วย `/complete` หรือ `70-release` (หรือสั่ง `/rollback`) ก่อนเริ่มงานใหม่"*
35
+
36
+ ### 2. Work Identity & Issue Intake
37
+ 1. **Idea / Issue Inbox Intake**: If the argument is an identifier (e.g. `IDEA-001`):
32
38
  - Read `devflow/ideas.md` or issue notes and extract problem statement and root cause hints.
33
- - In `devflow/ideas.md`, update status to `[x] Claimed ({RUNNING_ID})` and move under `## 📦 Archived / Shipped Ideas`.
34
- 3. Determine or allocate the sequential Running ID (e.g. `RUN-018-{slug}`).
35
- 4. Identify Git branch naming:
36
- - `fix/{slug}-{RUNNING_ID}`
37
- 5. Create directory `devflow/runs/{RUNNING_ID}/`.
39
+ - In `devflow/ideas.md`, update status to `[x] Claimed ({ID})` and move under `## 📦 Archived / Shipped Ideas`.
40
+ 2. Inspect `devflow/history/HISTORY.md` and determine the next sequential ID without prefix (e.g. `022-{slug}`).
41
+ 3. Identify Git branch naming:
42
+ - `fix/{xxx-slug}`
38
43
 
39
- ### 2. Generate the Single Living Spec (`spec.md`)
40
- Write `devflow/runs/{RUNNING_ID}/spec.md` using the structured template below in **Thai (`th`)**:
44
+ ### 3. Generate the Living Spec (`devflow/context/current-feature.md`)
45
+ Write `devflow/context/current-feature.md` using the structured template below in **Thai (`th`)**:
41
46
 
42
47
  ```markdown
43
- # 📐 [{RUNNING_ID}] {Bug/Fix Title} (Living Spec)
48
+ # 📐 [{ID}] {Bug/Fix Title} (Living Spec)
44
49
 
45
50
  > **Status**: In-Progress
46
51
  > **Track**: Fast-Track (Blueprint Mode - Fix)
52
+ > **Category**: Fix
47
53
  > **Branch**: `{branch_name}`
48
54
  > **Created Date**: {YYYY-MM-DD}
49
55
  > **Owner**: {Contributor or Team}
@@ -87,16 +93,16 @@ Write `devflow/runs/{RUNNING_ID}/spec.md` using the structured template below in
87
93
  - *(จะถูกบันทึกเมื่อรัน /complete)*
88
94
  ```
89
95
 
90
- ### 3. Update Workspace Status
96
+ ### 4. Update Workspace Status
91
97
  Update `devflow/context/current-stage.md`:
92
- - `Active Running ID`: `{RUNNING_ID}`
98
+ - `Active Discovery ID`: `None`
99
+ - `Active Running ID`: `{ID}`
93
100
  - `Current Stage`: `fix (Fast-Track -> Ready for /implement)`
94
- - `Living Spec`: `devflow/runs/{RUNNING_ID}/spec.md`
101
+ - `Living Spec`: `devflow/context/current-feature.md`
95
102
  - `Last Updated`: `{YYYY-MM-DD}`
96
103
 
97
- ### 4. Output Summary & Next Step
104
+ ### 5. Output Summary & Next Step
98
105
  Report to the user:
99
106
  - Running ID and allocated branch
100
107
  - Summary of Scope, Reproduction, and Acceptance Criteria
101
- - Living Spec path: `devflow/runs/{RUNNING_ID}/spec.md`
102
- - **Next Command**: `/implement` (or `/implement {RUNNING_ID}`)
108
+ - Explicit next step: `/implement`
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: implement
3
- description: "[Devflow] Fast-Track Implement stage in DevFlow (Blueprint Mode) - execute checklist tasks incrementally with TDD and update spec.md."
3
+ description: "[Devflow] Fast-Track Implement stage in DevFlow (Blueprint Mode) - execute checklist tasks incrementally with TDD and update current-feature.md in context."
4
4
  argument-hint: "{running-id or workspace path}"
5
5
  ---
6
6
 
@@ -8,18 +8,18 @@ argument-hint: "{running-id or workspace path}"
8
8
 
9
9
  $ARGUMENTS
10
10
 
11
- Incremental code execution stage in Fast-Track. Reads the Single Living Spec (`spec.md`), executes checklist tasks, implements tests (TDD), and updates the implementation record.
11
+ Incremental code execution stage in Fast-Track. Reads the Single Living Spec (`devflow/context/current-feature.md`), executes checklist tasks, implements tests (TDD), and updates the implementation record.
12
12
 
13
13
  ## Invocations & Aliases
14
14
 
15
15
  - `/implement`: Run implementation on current active run
16
- - `/implement {running-id}`: Run implementation on specified running ID
16
+ - `/implement {id}`: Run implementation on specified ID
17
17
  - `$implement`: Codex CLI invocation
18
18
 
19
19
  ## Fast-Track Mainline Workflow
20
20
 
21
21
  ```text
22
- /spec ──▶ /implement ──▶ /check ──▶ /complete
22
+ /feature (หรือ /fix) ──▶ /implement ──▶ /check ──▶ /complete
23
23
  ```
24
24
 
25
25
  ## Behavior & Contract
@@ -27,8 +27,8 @@ Incremental code execution stage in Fast-Track. Reads the Single Living Spec (`s
27
27
  When invoked:
28
28
 
29
29
  ### 1. Load Active Context
30
- 1. Identify active Running ID from `devflow/context/current-stage.md` or argument.
31
- 2. Read `devflow/runs/{RUNNING_ID}/spec.md`.
30
+ 1. Identify active Running ID from `devflow/context/current-stage.md` or `devflow/context/current-feature.md`.
31
+ 2. Read `devflow/context/current-feature.md`.
32
32
  3. Locate `## 2. Plan & Test Strategy` and `## 3. Implementation Checklist`.
33
33
 
34
34
  ### 2. Incremental Execution with TDD
@@ -37,10 +37,10 @@ When invoked:
37
37
  - **TDD (Red-Green-Refactor)**: When `Test Decision: Required`, create or update unit tests first.
38
38
  - Implement the minimal, clean code change satisfying the task.
39
39
  - Run localized verification (e.g. `npm test`, linter).
40
- - Mark the item as `- [x]` in `spec.md`.
40
+ - Mark the item as `- [x]` in `current-feature.md`.
41
41
 
42
- ### 3. Update Living Spec (`spec.md`)
43
- Append or update `## 4. Implementation Record` in `spec.md` with:
42
+ ### 3. Update Living Spec (`current-feature.md`)
43
+ Append or update `## 4. Implementation Record` in `devflow/context/current-feature.md` with:
44
44
  - Summary of completed tasks and modified files
45
45
  - Key architectural observations or notes
46
46
  - Status of checklist items
@@ -61,4 +61,4 @@ Update `devflow/context/current-stage.md`:
61
61
  Report to the user:
62
62
  - Completed checklist items and modified files
63
63
  - Local verification results
64
- - **Next Command**: `/check` (or `/check {RUNNING_ID}`)
64
+ - **Next Command**: `/check` (or `/check {ID}`)
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: insight
3
- description: "[Devflow] Extract reusable lessons, architectural patterns, post-mortem incident learning, and token optimizations from completed work."
3
+ description: "[Devflow] Extract reusable lessons, patterns, file insights, and post-mortem learning from completed work."
4
4
  ---
5
5
 
6
6
  # Insight Extraction & Post-Mortem Learning
@@ -13,7 +13,7 @@ codebase + devflow/history/HISTORY.md -> [overview] -> devflow/context/proje
13
13
  synthesize)
14
14
  ```
15
15
 
16
- `overview` is the context synchronization and synthesis engine for Nexus-DevFlow. It inspects the actual codebase (manifest, dependencies, directory layout, models/schemas, entry points) along with the completed delivery history (`devflow/history/HISTORY.md` and `devflow/runs/`) to build or refresh `devflow/context/project-overview.md`.
16
+ `overview` is the context synchronization and synthesis engine for Nexus-DevFlow. It inspects the actual codebase (manifest, dependencies, directory layout, models/schemas, entry points) along with the completed delivery history (`devflow/history/HISTORY.md` and `devflow/history/`) to build or refresh `devflow/context/project-overview.md`.
17
17
 
18
18
  It ensures that `project-overview.md` remains a **Living Source of Truth** that evolves alongside your software, rather than a stale artifact left behind after onboarding.
19
19
 
@@ -26,7 +26,7 @@ overview
26
26
  ```
27
27
 
28
28
  Use this when:
29
- - Multiple delivery runs (`RUN-xxx`) have shipped and `project-overview.md` needs to reflect newly added capabilities.
29
+ - Multiple delivery runs (`xxx-slug`) have shipped and `project-overview.md` needs to reflect newly added capabilities.
30
30
  - New database schemas, ORM models, or API boundaries were introduced.
31
31
  - Major dependencies or architectural patterns were added or modified.
32
32
  - After completing `70-release` to keep project context perfectly aligned.
@@ -59,7 +59,7 @@ Inspect the actual codebase to establish hard facts:
59
59
  Inspect DevFlow history records:
60
60
 
61
61
  1. Read `devflow/history/HISTORY.md` for completed and released milestones.
62
- 2. Scan completed delivery runs in `devflow/runs/` to extract shipped user-visible capabilities and core system features.
62
+ 2. Scan completed delivery runs in `devflow/history/features/`, `devflow/history/fixes/`, and `devflow/history/rollbacks/` to extract shipped user-visible capabilities and core system features.
63
63
 
64
64
  ---
65
65
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: report-html
3
- description: "[Devflow] Standalone HTML Report Generator - render an interactive standalone HTML dashboard from spec.md or 60-report.md on demand."
3
+ description: "[Devflow] Standalone HTML Report Generator - render an interactive standalone HTML dashboard from current-feature.md or 60-report.md on demand."
4
4
  argument-hint: "{running-id or workspace path}"
5
5
  ---
6
6
 
@@ -8,7 +8,7 @@ argument-hint: "{running-id or workspace path}"
8
8
 
9
9
  $ARGUMENTS
10
10
 
11
- Standalone companion command to generate an interactive, self-contained HTML report dashboard on demand from either a Fast-Track `spec.md` or a Deep-Track `60-report.md`.
11
+ Standalone companion command to generate an interactive, self-contained HTML report dashboard on demand from either a Fast-Track `current-feature.md` or a Deep-Track `60-report.md`.
12
12
 
13
13
  > [!NOTE]
14
14
  > HTML reports are **never automatically generated** during normal mainline stages (`/complete` or `60-report`). Use this command whenever you or stakeholders wish to view or share an interactive web report.
@@ -27,7 +27,7 @@ When invoked:
27
27
  ### 1. Identify Target Run
28
28
  1. Locate target run directory in `devflow/runs/{running-id}` from argument or `devflow/context/current-stage.md`.
29
29
  2. Check for either:
30
- - Fast-Track Living Spec: `devflow/runs/{RUNNING_ID}/spec.md` (or `blueprint.md`)
30
+ - Fast-Track Living Spec: `devflow/runs/{RUNNING_ID}/current-feature.md` (or `spec.md` / `blueprint.md`)
31
31
  - Deep-Track Report Digest: `devflow/runs/{RUNNING_ID}/60-report.md`
32
32
 
33
33
  ### 2. Render Interactive HTML Dashboard
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: security-review
3
- description: "[Devflow] Security review, vulnerability scanner, and code hardening. Audits for OWASP vulnerabilities, secrets, injections, and auth flaws."
3
+ description: "[Devflow] High-severity security code review and vulnerability audit for folders, projects, files, or diffs."
4
4
  ---
5
5
 
6
6
  # Security Review, Hardening & Vulnerability Audit
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: spec
3
- description: "[Devflow] Fast-Track Spec router in DevFlow (Blueprint Mode) - aliases and routes to /feature or /fix to create the single living spec.md contract."
3
+ description: "[Devflow] Fast-Track Spec router in DevFlow (Blueprint Mode) - aliases and routes to /feature or /fix to create the living current-feature.md contract in context."
4
4
  argument-hint: "{feature title, bug description, IDEA-xxx, or running-id}"
5
5
  ---
6
6
 
@@ -8,7 +8,7 @@ argument-hint: "{feature title, bug description, IDEA-xxx, or running-id}"
8
8
 
9
9
  $ARGUMENTS
10
10
 
11
- Unified Fast-Track entry point that routes to `/feature` or `/fix` to create and maintain the **Single Living Spec (`spec.md`)**.
11
+ Unified Fast-Track entry point that routes to `/feature` or `/fix` to create and maintain the **Single Living Spec (`devflow/context/current-feature.md`)**.
12
12
 
13
13
  > [!TIP]
14
14
  > **Preferred Commands**:
@@ -32,7 +32,8 @@ Unified Fast-Track entry point that routes to `/feature` or `/fix` to create and
32
32
 
33
33
  When invoked:
34
34
 
35
- 1. If the input describes a bug or hotfix, routes to `/fix` behavior.
36
- 2. Otherwise, routes to `/feature` behavior.
37
- 3. Allocates sequential Running ID (`RUN-xxx`), creates directory `devflow/runs/{RUNNING_ID}/`, and generates `spec.md` in **Thai (`th`)**.
38
- 4. Updates `devflow/context/current-stage.md` and reports next step: `/implement`.
35
+ 1. Checks Single Active Run Guardrail: rejects if an uncompleted active run already exists in `devflow/context/current-stage.md` or `devflow/context/current-feature.md`.
36
+ 2. If the input describes a bug or hotfix, routes to `/fix` behavior.
37
+ 3. Otherwise, routes to `/feature` behavior.
38
+ 4. Allocates sequential ID without prefix (`xxx-slug`), generates `devflow/context/current-feature.md` in **Thai (`th`)**.
39
+ 5. Updates `devflow/context/current-stage.md` and reports next step: `/implement`.
@@ -83,8 +83,8 @@ Don't silently fill in ambiguous requirements. The spec's entire purpose is to s
83
83
 
84
84
  Every specification must stand on its own in markdown under `devflow/runs/{ID}-*/`:
85
85
 
86
- 1. **`define.md`**: Decision and scope framing when the problem still needs clarification.
87
- 2. **`spec.md`**: The delivery contract following the template below.
86
+ 1. **`current-feature.md`**: Fast-Track Single Living Spec delivery contract.
87
+ 2. **`20-spec.md`**: Deep-Track formal specification delivery contract.
88
88
 
89
89
  **Spec template:**
90
90
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: test
3
- description: "[Devflow] Test-driven development, test generation, test execution, and coverage analysis across unit, integration, and smoke test suites."
3
+ description: "[Devflow] Test execution, missing test generation, and coverage analysis across unit, integration, and smoke test suites."
4
4
  ---
5
5
 
6
6
  # Test-Driven Development, Generation & Execution
@@ -1,5 +1,5 @@
1
- ---name: 00-discover
2
-
1
+ ---
2
+ name: 00-discover
3
3
  description: "[Devflow] Discover stage in DevFlow 2.0 - explore a request, route supporting inquiry, and decide whether delivery work should begin without allocating a running ID."
4
4
  argument-hint: "{title, request, or discovery-id}"
5
5
  ---
@@ -1,6 +1,6 @@
1
- ---name: 10-define
2
-
3
- description: "[Devflow] Define stage in DevFlow 2.0 - turn an approved discovery into one or more bounded delivery runs with stable scope."
1
+ ---
2
+ name: 10-define
3
+ description: "[Devflow] Define stage in DevFlow 2.0 - turn an approved discovery into a bounded delivery run in context/current-run with stable scope."
4
4
  argument-hint: "{approved discovery-id, discovery path, running-id, or run path}"
5
5
  ---
6
6
 
@@ -8,23 +8,21 @@ argument-hint: "{approved discovery-id, discovery path, running-id, or run path}
8
8
 
9
9
  $ARGUMENTS
10
10
 
11
- Convert an approved `Proceed` discovery into bounded delivery slices. Allocate one Running ID per independently specifiable and reviewable slice, then write one `10-define.md` contract per generated run. This is the first stage that creates Running IDs.
11
+ Convert an approved `Proceed` discovery into a bounded delivery run. Checks the Single Active Run Guardrail, allocates a sequential ID without prefix (`xxx-slug`), and writes `devflow/context/current-run/10-define.md`.
12
12
 
13
13
  ## Usage
14
14
 
15
15
  ```text
16
16
  10-define {discovery-id or discovery path}
17
- 10-define {running-id or run path}
17
+ 10-define {id or run path}
18
18
  ```
19
19
 
20
- Use a Discovery ID to materialize new delivery runs. Use an existing Running ID only to revise or split a definition that already exists.
21
-
22
20
  ## Markdown-First Contract
23
21
 
24
- For every approved delivery slice, write:
22
+ For the active delivery run, write:
25
23
 
26
24
  ```text
27
- devflow/runs/{ID}-{slug}10-define.md
25
+ devflow/context/current-run/10-define.md
28
26
  ```
29
27
 
30
28
  using:
@@ -33,138 +31,24 @@ using:
33
31
  .agent/resources/schemas/define.template.md
34
32
  ```
35
33
 
36
- Before writing any `10-define.md`, read `artifact_language` from `define.template.md` and produce every generated artifact in that language.
37
-
38
- ## Required Section Content
39
-
40
- Before completing any generated artifact:
41
-
42
- - preserve every heading required by the selected template
43
- - write concrete information under every heading
44
- - when no information exists or the section does not apply, write exactly `-`
45
- - never leave a heading immediately followed by another heading with no body content
46
- - remove template placeholders from the final artifact
47
- - do not invent facts merely to avoid using `-`
48
- - re-read the saved artifact and verify every heading satisfies this rule
49
-
50
- ## Process
51
-
52
- ### Loop Contract
53
-
54
- Run definition as a scope-stabilization and run-allocation loop.
55
-
56
- - **Intent**: turn an approved discovery into the smallest coherent set of delivery runs that can each be specified, planned, implemented, and verified without carrying the entire initiative context.
57
- - **Context**: read the approved `00-discover.md`, linked Brainstorm/PRD/Research/Debug outputs, project-wide rules, existing run IDs, and dependencies between candidate slices.
58
- - **Action**: lock initiative and scope boundaries, decompose delivery slices, review the run map, allocate collision-free Running IDs, and write one `10-define.md` per slice.
59
- - **Observation**: use independent acceptance boundaries, release boundaries, ownership, dependencies, context size, cross-domain coupling, and reviewability as evidence for splitting or combining slices.
60
- - **Adjustment**: merge slices that are only implementation tasks; split slices that require separate specs, releases, ownership, or large independent context; return to `00-discover` if the decision or product direction is still unstable.
61
- - **Stop Condition**: stop when the run map is approved, IDs are materialized without collision, each run has stable in/out scope, and every generated run can proceed independently to `20-spec {running_id}`.
62
- - **Handoff**: each `10-define.md` must identify its source Discovery ID, sibling runs, dependencies, scope, non-goals, and exact next command.
63
-
64
- ### 1. Validate The Discovery Gate
34
+ ## Process & Quality Gates
65
35
 
66
- For new delivery work, require:
36
+ ### 1. Single Active Run Guardrail (One Thing at a Time)
37
+ 1. Inspect `devflow/context/current-stage.md`, `devflow/context/current-feature.md`, and `devflow/context/current-run/`.
38
+ 2. If an active uncompleted run exists:
39
+ - **HALT and reject opening a new define stage**.
40
+ - Warn the user to complete or close the active run with `/complete` or `70-release` first.
67
41
 
42
+ ### 2. Validate The Discovery Gate
43
+ Require:
68
44
  - `Decision: Proceed`
69
45
  - `Approval Status: Approved`
70
- - a resolvable Discovery ID and `00-discover.md`
71
-
72
- If either gate is missing, do not create a Running ID. Return to `00-discover {discovery_id}`.
73
-
74
- ### 2. Build The Delivery Run Map
75
-
76
- Define candidate slices around coherent delivery outcomes, not small tasks.
77
-
78
- Create separate runs when work has materially independent:
79
-
80
- - acceptance or verification boundaries
81
- - release or rollback boundaries
82
- - domain context or ownership
83
- - dependency sequencing
84
- - implementation context large enough to threaten reliable planning or review
85
-
86
- Keep ordinary subtasks inside `30-plan` and checklists.
87
-
88
- For every slice record:
89
-
90
- - title and slug
91
- - outcome and scope boundary
92
- - exclusions
93
- - dependencies
94
- - shared project constraints
95
- - reason it deserves one Running ID
96
-
97
- ### 3. Review Before Allocation
98
-
99
- Present the proposed run map for human review before consuming numeric IDs when the split is large, disputed, or high risk. A single clear slice may proceed directly when approval is already explicit.
100
-
101
- ### 4. Allocate Running IDs
102
-
103
- - inspect `devflow/runs/` immediately before allocation
104
- - choose sequential IDs after the highest existing numeric Running ID
105
- - never reuse a gap merely because it is available
106
- - create each target directory immediately to reserve it
107
- - recheck for collisions before writing artifacts
108
- - if any collision occurs, stop, rescan, and allocate a fresh contiguous range
109
-
110
- One invocation may create one or many Running IDs. Record the complete allocation back into the source discovery's `related_runs` and allocated-run section.
111
-
112
- ### 5. Write One `10-define.md` Per Run
113
-
114
- - preserve template headings
115
- - set `source_discovery`
116
- - identify sibling runs and dependencies
117
- - carry forward only the project context needed by this slice
118
- - make scope, non-goals, assumptions, and success criteria explicit
119
- - keep implementation tasks out of Define
120
-
121
- ### 6. Split An Existing Run When Necessary
122
-
123
- If an existing definition is too broad:
124
-
125
- - propose a replacement run map
126
- - preserve traceability to the original run and discovery
127
- - allocate new IDs only after approval
128
- - mark the old definition as `Superseded` and list its replacement runs
129
- - do not silently fork scope during `20-spec`
130
-
131
- ### 7. Manual Review Gate
132
-
133
- Before recommending `20-spec`, confirm each generated definition independently. Approval of one run must not imply approval of every sibling run.
134
-
135
- ## Output
136
-
137
- Report:
138
-
139
- - source Discovery ID
140
- - proposed and allocated run map
141
- - workspace path for every generated run
142
- - scope and dependency summary per run
143
- - any superseded run
144
- - exact `20-spec {running_id}` commands for approved runs
145
-
146
- ## Relationship To DevFlow 2.0
147
-
148
- - Classification: Mainline workflow and Running ID creation boundary
149
- - Previous state: approved `00-discover`
150
- - Next state: `20-spec {running_id}` per generated run
151
- - Running ID lifecycle: starts here
152
-
153
- ## Sources
154
-
155
- - `AGENTS.md`
156
- - `docs/workspace-artifacts.md`
157
- - `.agent/resources/schemas/define.template.md`
158
-
159
- ## Next Workflow Recommendation
160
-
161
- - **Primary**: `20-spec {running_id}` for each approved run
162
- - **Alternatives**:
163
- - `00-discover {discovery_id}` when the go/no-go decision or direction is unstable
164
- - `Research {discovery_id}` when evidence still blocks a reliable split
165
- - `grill-with-docs` when boundaries or terminology remain ambiguous
166
-
167
- ## Nexus Event
168
-
169
- - Use `domain-modeling` when sibling runs need shared language or durable architectural decisions.
170
- - Use `planning-and-task-breakdown` only after the delivery boundary is stable; small tasks belong in `30-plan`, not separate Running IDs.
46
+ - A resolvable Discovery ID and `00-discover.md`
47
+
48
+ ### 3. Allocate Sequential ID
49
+ - Inspect `devflow/history/HISTORY.md` and allocate sequential ID without prefix (e.g. `022-{slug}`).
50
+ - Create directory `devflow/context/current-run/` if it does not exist.
51
+ - Write `devflow/context/current-run/10-define.md`.
52
+ - Update `devflow/context/current-stage.md`:
53
+ - `Active Running ID`: `{ID}`
54
+ - `Current Stage`: `10-define (Completed -> Ready for 20-spec)`
@@ -1,5 +1,5 @@
1
- ---name: 20-spec
2
-
1
+ ---
2
+ name: 20-spec
3
3
  description: "[Devflow] Spec stage in DevFlow 2.0 - write the formal markdown-first specification from a stable definition."
4
4
  argument-hint: "{running-id or workspace path}"
5
5
  ---
@@ -1,5 +1,5 @@
1
- ---name: 30-plan
2
-
1
+ ---
2
+ name: 30-plan
3
3
  description: "[Devflow] Plan stage in DevFlow 2.0 - transform 20-spec.md into an executable task breakdown with test decisions."
4
4
  ---
5
5
  # Phase 30: Plan Implementation
@@ -1,5 +1,5 @@
1
- ---name: 50-verify
2
-
1
+ ---
2
+ name: 50-verify
3
3
  description: "[Devflow] Verify stage in DevFlow 2.0 - perform senior QA review, record evidence, and decide pass or return-to-implement."
4
4
  ---
5
5
  # Phase 50: Verify Quality
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: 60-report
3
- description: "[Devflow] Report stage in DevFlow 2.0 - produce standardized markdown summary report for the completed run."
3
+ description: "[Devflow] Report stage in DevFlow 2.0 - produce standardized markdown and HTML summary report for the completed run."
4
4
  argument-hint: "{running-id or workspace path}"
5
5
  ---
6
6