@jakkrichm/create-nexus-devflow 2.2.1 → 2.5.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.
Files changed (61) hide show
  1. package/dist/bin/create-nexus-devflow.js +9 -1
  2. package/dist/bin/create-nexus-devflow.js.map +1 -1
  3. package/dist/lib/command-catalog.js +1 -1
  4. package/dist/lib/command-catalog.js.map +1 -1
  5. package/dist/lib/dashboard-page.d.ts +1 -1
  6. package/dist/lib/dashboard-page.js +42 -20
  7. package/dist/lib/dashboard-page.js.map +1 -1
  8. package/dist/lib/dashboard-snapshot.js +16 -12
  9. package/dist/lib/dashboard-snapshot.js.map +1 -1
  10. package/dist/lib/dashboard.js +10 -1
  11. package/dist/lib/dashboard.js.map +1 -1
  12. package/dist/lib/doctor.js +1 -1
  13. package/dist/lib/gatekeeper.d.ts +8 -0
  14. package/dist/lib/gatekeeper.js +15 -3
  15. package/dist/lib/gatekeeper.js.map +1 -1
  16. package/dist/lib/git-status.d.ts +10 -2
  17. package/dist/lib/git-status.js +57 -29
  18. package/dist/lib/git-status.js.map +1 -1
  19. package/dist/lib/swarm-orchestrator.d.ts +4 -1
  20. package/dist/lib/swarm-orchestrator.js +2 -2
  21. package/dist/lib/swarm-orchestrator.js.map +1 -1
  22. package/dist/lib/version-check.js +1 -1
  23. package/dist/lib/workflow-state.js +19 -32
  24. package/dist/lib/workflow-state.js.map +1 -1
  25. package/package.json +1 -1
  26. package/template/.agents/skills/check/SKILL.md +19 -11
  27. package/template/.agents/skills/complete/SKILL.md +47 -36
  28. package/template/.agents/skills/debug/SKILL.md +4 -8
  29. package/template/.agents/skills/devflow/SKILL.md +51 -79
  30. package/template/.agents/skills/feature/SKILL.md +8 -4
  31. package/template/.agents/skills/implement/SKILL.md +12 -8
  32. package/template/.claude/skills/check/SKILL.md +19 -11
  33. package/template/.claude/skills/complete/SKILL.md +47 -36
  34. package/template/.claude/skills/debug/SKILL.md +4 -8
  35. package/template/.claude/skills/devflow/SKILL.md +51 -79
  36. package/template/.claude/skills/feature/SKILL.md +8 -4
  37. package/template/.claude/skills/implement/SKILL.md +12 -8
  38. package/template/AGENTS.md +21 -30
  39. package/template/devflow/build-plan.md +19 -0
  40. package/template/devflow/context/ai-interaction.md +54 -39
  41. package/template/devflow/context/coding-standards.md +17 -6
  42. package/template/devflow/context/findings.md +8 -11
  43. package/template/devflow/context/glossary.md +31 -0
  44. package/template/devflow/reference/build-plan-template.md +65 -0
  45. package/template/devflow/reference/feature-spec-template.md +110 -0
  46. package/template/devflow/reference/project-plan-template.md +128 -0
  47. package/template/devflow/reference/running-id-contract.md +12 -11
  48. package/template/.agents/skills/10-define/SKILL.md +0 -54
  49. package/template/.agents/skills/20-spec/SKILL.md +0 -155
  50. package/template/.agents/skills/30-plan/SKILL.md +0 -220
  51. package/template/.agents/skills/40-execute/SKILL.md +0 -161
  52. package/template/.agents/skills/50-verify/SKILL.md +0 -55
  53. package/template/.agents/skills/60-report/SKILL.md +0 -57
  54. package/template/.agents/skills/70-deliver/SKILL.md +0 -72
  55. package/template/.claude/skills/10-define/SKILL.md +0 -54
  56. package/template/.claude/skills/20-spec/SKILL.md +0 -155
  57. package/template/.claude/skills/30-plan/SKILL.md +0 -220
  58. package/template/.claude/skills/40-execute/SKILL.md +0 -161
  59. package/template/.claude/skills/50-verify/SKILL.md +0 -55
  60. package/template/.claude/skills/60-report/SKILL.md +0 -57
  61. package/template/.claude/skills/70-deliver/SKILL.md +0 -72
@@ -88,19 +88,23 @@ broad checkout. Ask whether to resolve only the conflict allowed by the approved
88
88
  spec or abandon the attempt. A cascade into another completed feature needs a
89
89
  new rollback plan.
90
90
 
91
- ## Step 2 - build one step, review, iterate, checkpoint
91
+ ## Step 2 - build one step, review, iterate, checkpoint (Strict TDD)
92
92
 
93
93
  Work through the spec's build steps in order, one at a time. For each step:
94
94
 
95
- 1. Implement just that step: the smallest change that satisfies its "done when."
96
- 2. Show the **diff**, not whole files.
97
- 3. **Explain it, and prove it.** Give a short summary: what the step delivered,
95
+ 1. **Strict TDD Cycle (for logic & behavior changes)**:
96
+ - **🔴 RED**: Write the unit test first in the relevant test file. Execute the test command and show the failing assertion output.
97
+ - **🟢 GREEN**: Implement only the minimal code in the source file necessary to make the test pass. Re-run test and show passing output.
98
+ - **🔵 REFACTOR**: Refactor and format cleanly, verifying that 100% of tests remain green.
99
+ - *Code Reversion Rule*: If production code is written without a prior test for behavior changes, revert it and write the test first.
100
+ 2. Implement just that step: the smallest change that satisfies its "done when."
101
+ 3. Show the **diff**, not whole files.
102
+ 4. **Explain it, and prove it.** Give a short summary: what the step delivered,
98
103
  one line per changed file on what it does and why, then confirm the step's
99
- "done when" is met with evidence (build output, a screenshot, a passing
100
- assertion). This summary is the comprehension gate, so keep it concrete, not
101
- ceremonial. Include a short **How to try it** note when the step has a manual
104
+ "done when" is met with empirical evidence (test pass output, build output, or screenshot). This summary is the comprehension gate, so keep it concrete, not
105
+ vague. Include a short **How to try it** note when the step has a manual
102
106
  path: the command, URL, click, endpoint, or output the user can check.
103
- 4. **Verify the step.** If `AGENTS.md` declares a `Verify` command, run that exact
107
+ 5. **Verify the step.** If `AGENTS.md` declares a `Verify` command, run that exact
104
108
  command as the automated gate. It is only an umbrella for checks the project
105
109
  actually has, so do not invent tests or other checks to satisfy it. If no
106
110
  `Verify` command exists, run the documented build command and the test command
@@ -66,21 +66,29 @@ Drive the app to each checklist item and capture evidence as you go:
66
66
  - Watch for **console errors and failed network requests**; a clean-looking screen
67
67
  with errors in the console is not a pass.
68
68
 
69
- ## Step 4 - report
69
+ ## Step 4 - report (Two-Stage Review Pattern)
70
70
 
71
- Give a short, honest verdict, one line per checklist item:
71
+ Format the verification report into two explicit review stages:
72
72
 
73
- [pass] Download PDF saves certificate-<slug>.pdf - file downloaded, opened to the cert
74
- [pass] Both buttons show a loading state - screenshot: loading-state.png
75
- [fail] PDF border missing - printBackground not set; screenshot: pdf-no-border.png
76
- [skip] Vercel render - can't verify locally (feature 9)
73
+ ### Stage 1: Spec Fidelity & Acceptance Gate
74
+ Give a line-by-line verdict for each Acceptance Criterion and "done when" item:
77
75
 
78
- Then state the bottom line: are all the feature's done-whens proven, or not yet.
76
+ [pass] AC-1: Download PDF saves certificate-<slug>.pdf - file downloaded, opened to cert
77
+ [pass] AC-2: Both buttons show a loading state - screenshot: loading-state.png
78
+ [fail] AC-3: PDF border missing - printBackground not set; screenshot: pdf-no-border.png
79
+ [skip] AC-4: Vercel deploy smoke test - can't verify locally (pending staging)
79
80
 
80
- - All proven -> say it's ready for `/complete`.
81
- - Anything failed -> hand back to `/implement` to fix; name what to fix. Don't fix
82
- it here.
83
- - Anything unverifiable -> say so plainly and why; never report it as a pass.
81
+ ### Stage 2: Code Quality, Security & Architecture Gate
82
+ Report the multi-lane technical verification results:
83
+ - **Type & Syntax**: `tsc --noEmit` (0 errors)
84
+ - **Automated Tests**: Unit & integration tests (100% pass)
85
+ - **Security & Hygiene**: Zero secrets, sanitized inputs
86
+ - **Findings Ledger**: 0 blockers (P0/P1) in `devflow/context/findings.md`
87
+
88
+ ### Final Verdict & Route
89
+ - **All Passed**: State that the feature is verified and ready for `/complete`.
90
+ - **Any Failure**: Hand back to `/implement` with exact failure evidence and reproduction steps. Never fix issues inside `/check`.
91
+ - **Unverifiable**: Clearly state reasons and residual risk. Never fabricate a pass.
84
92
 
85
93
  ## Rules
86
94
 
@@ -1,18 +1,18 @@
1
1
  ---
2
2
  name: complete
3
- description: "[devflow][F] Wrap up a finished feature, fix, or rollback. Runs a final safety pass, archives its spec to devflow/history/features/, devflow/history/fixes/, or devflow/history/rollbacks/, updates the build plan for features and rollbacks, resets devflow/context/current-feature.md to its stub, makes one work-level commit, then squash-merges the branch to main and deletes it. Merges only with explicit approval, then asks separately before pushing main. Use when the user runs /complete, or asks to finish, wrap up, merge, or close out the current feature, fix, or rollback after it is built and reviewed."
3
+ description: "[devflow][F] Wrap up a finished feature, fix, or rollback. Runs a final safety pass, archives its spec to devflow/history/features/, devflow/history/fixes/, or devflow/history/rollbacks/, updates the build plan for features and rollbacks, resets devflow/context/current-feature.md to its stub, and makes the work commit. Enforces a mandatory user gate: asks whether to squash-merge to main/master OR pull latest main/master into the feature/dev branch and push to remote for Merge Request (MR / PR) creation. Never merges into main/master without explicit user instruction."
4
4
  ---
5
5
 
6
- # complete - log the finished work, make the work commit, and merge
6
+ # complete - log the finished work, make the work commit, and deliver
7
7
 
8
8
  Where this sits in the workflow:
9
9
 
10
10
  /feature, /fix, or /rollback -> /implement -> [complete] -> next
11
- (the spec) (build it) (commit + merge + log)
11
+ (the spec) (build it) (commit + delivery gate)
12
12
 
13
13
  `/implement` built the feature, fix, or rollback on its branch, with optional per-step commit
14
14
  checkpoints. This skill closes it out: it logs the work, makes the single
15
- work-level commit, and squash-merges. Run it only when the work is done,
15
+ work-level commit, and guides the delivery through a **Mandatory User Delivery Gate**. Run it only when the work is done,
16
16
  reviewed, and the documented `Verify` command, or the fallback build and tests,
17
17
  passes.
18
18
 
@@ -22,7 +22,7 @@ Confirm the work is actually finished: `devflow/context/current-feature.md`
22
22
  holds a real spec, its steps are built on a branch, and `Verify`, or the fallback
23
23
  build and tests, passes. If any of the
24
24
  spec's done-whens are behavioral, `/check` should have proven them against the
25
- running app first - don't merge on an unverified claim. Uncommitted step work is
25
+ running app first - don't merge or complete on an unverified claim. Uncommitted step work is
26
26
  expected (per-step checkpoints are optional); this skill commits it. Don't require
27
27
  the steps to be pre-committed.
28
28
 
@@ -30,7 +30,7 @@ the steps to be pre-committed.
30
30
 
31
31
  Before logging or committing, run a short safety pass and report blockers only:
32
32
 
33
- - active spec exists and the work is not being completed from `main` or `master`
33
+ - active spec exists and the work is not being completed directly from `main` or `master`
34
34
  - changed files are tied to the active spec, with no unrelated dirty work mixed
35
35
  in (a dirty `devflow/context/findings.md` is expected, since `/audit` writes it)
36
36
  - the exact `Verify` command from `AGENTS.md` passed in this session, when one is
@@ -107,25 +107,47 @@ into the app - delete the `prototypes/` folder now. The tokens live in the real
107
107
  stylesheet and the HTML mockups were always throwaway; fold the deletion into this
108
108
  feature's commit. Skip this if the feature didn't consume prototypes.
109
109
 
110
- ## Step 2 - make the work commit
110
+ ## Step 2 - make the work commit on feature branch
111
111
 
112
112
  Stage everything on the branch (any uncommitted step work plus the Step 1 logging
113
- changes) and make one conventional work commit (for example `feat: <feature>`,
113
+ changes) and make one conventional work commit on the active branch (for example `feat: <feature>`,
114
114
  `fix: <name>`, or `revert: roll back <feature>`). `Verify`, or the fallback build
115
115
  and tests, must pass first.
116
116
 
117
- ## Step 3 - merge
117
+ ## Step 3 - Mandatory Delivery Gate (Ask User First)
118
+
119
+ > [!IMPORTANT]
120
+ > **MANDATORY USER SELECTION**: In real-world engineering teams, developers often do NOT have direct merge/push access to `main` or `master` (protected branches).
121
+ > Therefore, you **MUST STOP AND ASK** the user to choose their desired delivery flow. **NEVER automatically merge into `main` or `master` without explicit user choice.**
122
+
123
+ Present the user with two clear delivery options:
124
+
125
+ ### 🔀 Option 1: Team MR / PR Flow (Pull latest main/master & Push dev branch) [Default for Teams]
126
+ - **When to choose**: When working in a team where code reviews happen via GitLab Merge Request (MR) or GitHub Pull Request (PR), or where developers lack direct write access to protected `main`/`master` branches.
127
+ - **Execution Actions**:
128
+ 1. Detect default base branch name (`main` or `master`).
129
+ 2. Run `git pull origin <main/master>` (or `git fetch origin <main/master> && git merge origin/<main/master>`) to bring the latest upstream changes into the active feature/dev branch.
130
+ 3. If merge conflicts occur, highlight them clearly and help the user resolve them.
131
+ 4. Run `Verify` (or build & tests) to ensure integrity after the merge.
132
+ 5. Run `git push origin <current-feature-branch>` to push the up-to-date branch to the remote repository.
133
+ 6. Stop and inform the user that the branch is synchronized and pushed, ready for them to open a Merge Request (MR / PR) on GitLab/GitHub.
134
+ 7. **Do NOT merge into local `main`/`master` and do NOT delete the branch.**
135
+
136
+ ### 🔀 Option 2: Direct Local Squash-Merge (Solo / Direct Access Mode)
137
+ - **When to choose**: Only when the user explicitly instructs that they want to merge directly into `main` or `master` locally now (e.g. solo projects or Tech Leads with merge privileges).
138
+ - **Execution Actions**:
139
+ 1. Switch to `main` or `master`: `git checkout <main/master>`.
140
+ 2. Squash-merge the branch: `git merge --squash <feature-branch>`.
141
+ 3. Commit the squash-merge.
142
+ 4. Delete the local feature branch only with the user's explicit consent.
143
+ 5. **Stop and ask separately** before pushing local `main`/`master` to remote upstream. The merge approval does NOT count as push approval.
144
+ 6. Run `git push origin <main/master>` only after separate explicit confirmation.
118
145
 
119
- 1. Squash-merge the branch into main, only with the user's explicit go-ahead, so
120
- the feature lands as one clean commit regardless of how many checkpoints the
121
- branch carried.
122
- 2. Delete the branch after a clean merge.
123
- 3. Stop and ask whether to push local `main` to its upstream. The merge approval
124
- does not count as push approval.
125
- 4. Push main only after a separate explicit yes to push main in the current chat.
126
- If the repo has no remote or upstream, say so instead of guessing.
146
+ ---
147
+
148
+ ## Step 4 - Finish & Try Path
127
149
 
128
- Then point the user at `/feature`, `/fix`, or `/rollback` for the next thing.
150
+ Point the user at `/feature`, `/fix`, or `/rollback` for the next task.
129
151
 
130
152
  Finish with a concise **How to try it** note for the completed work. For a
131
153
  rollback, explain how to confirm the removed behavior is gone and name one
@@ -135,26 +157,15 @@ that command can read the archived feature after `current-feature.md` is reset.
135
157
 
136
158
  ## Rules
137
159
 
160
+ - **Mandatory User Confirmation Gate**: Always ask before choosing between Team MR/PR Push vs Direct Squash-Merge.
161
+ - **Never auto-merge into main/master**: The decision to merge into `main` or `master` belongs strictly to the user.
138
162
  - The work item is the unit of history: one squashed feature, fix, or rollback
139
- commit on main, even if the branch carried several checkpoint commits.
163
+ commit, even if the branch carried several checkpoint commits.
140
164
  - A rollback preserves the original feature archive and adds a separate rollback
141
165
  archive. Never rewrite history to make the feature look as if it never existed.
142
- - Don't merge unfinished or failing work. The documented `Verify` command, or
166
+ - Don't merge or push unfinished or failing work. The documented `Verify` command, or
143
167
  the fallback build and tests, must pass first.
144
- - Never merge while a P0 or P1 finding is `open` or `fixed` in the ledger. The
145
- recorded ways past the gate without code are `accepted` (only by the user's
146
- explicit decision, with their reason) or `invalid` (only from re-examination
147
- evidence or the user's explicit call); both travel into the archive, never a
148
- silent drop.
149
- - Merging and pushing are the user's calls: get an explicit yes for the merge,
150
- then ask whether to push main. Do not treat merge approval, `/complete`, or
151
- "looks good" as permission to push.
152
- - Push main only after a separate explicit yes to push main in the current chat.
168
+ - Never merge or push while a P0 or P1 finding is `open` or `fixed` in the ledger.
169
+ - Pushing to remote is always explicit: confirm before running `git push`.
153
170
  - One item per completion. If a parent feature still has unchecked sub-features,
154
- leave the parent unchecked.
155
-
156
- ## Formatting
157
-
158
- Format the output to match the project's conventions in
159
- `devflow/context/ai-interaction.md`: concise, scannable markdown, with lists for
160
- enumerations and tables for matrices rather than dense paragraphs.
171
+ leave the parent unchecked.
@@ -117,14 +117,10 @@ Give a concise debug report:
117
117
 
118
118
  Choose the next action without writing files:
119
119
 
120
- - Active feature or fix caused the failure -> return the diagnosis to
121
- `/implement`.
122
- - No active work item and the bug is confirmed -> recommend
123
- `/fix "<concise bug and confirmed cause>"`.
124
- - Cause is only likely or blocked -> recommend the next diagnostic evidence, not
125
- a speculative repair.
126
- - The issue is planned product work rather than a defect -> point to
127
- `/feature`.
120
+ - Active feature or fix caused the failure -> return the diagnosis to `/implement` with instructions to write a failing reproduction test ([TDD-Red]) first.
121
+ - No active work item and the bug is confirmed -> recommend `/fix "<concise bug and confirmed cause>"` (which will write a failing test first before fixing).
122
+ - Cause is only likely or blocked -> recommend the next diagnostic evidence, not a speculative repair.
123
+ - The issue is planned product work rather than a defect -> point to `/feature`.
128
124
 
129
125
  ## Rules
130
126
 
@@ -5,26 +5,19 @@ description: "[devflow][B] Flagship interactive guide, state inspector, and inte
5
5
 
6
6
  # devflow - Interactive Workflow Guide & Intent Router for Nexus-DevFlow
7
7
 
8
- ## Command Track Policy
9
- - [F] Fast-Track only
10
- - [D] Deep-Track only
11
- - [B] Available in both tracks (Track-agnostic)
12
-
13
-
14
- Use this skill to guide the user on what to do next, inspect current workspace state, map their natural language intent to the right Nexus-DevFlow track (Fast-Track or Deep-Track) or companion command, or display a sitemap of available DevFlow skills.
8
+ Use this skill to guide the user on what to do next, inspect current workspace state, map their natural language intent to the matching Nexus-DevFlow stage or companion command, or display a sitemap of available DevFlow skills.
15
9
 
16
10
  ## Input
17
11
 
18
- - **No argument (`devflow`, `devflow`, `$devflow`, or `status`)**: Inspect current workspace state (active run in `devflow/runs/` or `devflow/context/current-stage.md`, active discovery in `devflow/discoveries/`, pending ideas in `devflow/ideas.md`, open findings in `devflow/context/findings.md`, and project overview in `devflow/context/project-overview.md`) and recommend the exact next action.
19
- - **With user request (`devflow "<request>"`)**: Classify the user's intent and guide them to the matching DevFlow workflow track or companion command path.
12
+ - **No argument (`devflow`, `/devflow`, `$devflow`, or `status`)**: Inspect current workspace state (active run in `devflow/context/current-stage.md`, active living spec in `devflow/context/current-feature.md`, active discovery in `devflow/discoveries/`, pending ideas in `devflow/ideas.md`, open findings in `devflow/context/findings.md`, and project overview in `devflow/context/project-overview.md`) and recommend the exact next action.
13
+ - **With user request (`devflow "<request>"`)**: Classify the user's intent and guide them to the matching DevFlow workflow stage or companion command path.
20
14
 
21
- ## Dual-Track Architecture
15
+ ## The Unified Living Spec Architecture (DevFlow 2.5.0)
22
16
 
23
- Nexus-DevFlow supports two seamless workflow tracks:
24
- 1. **🏎️ Fast-Track (Blueprint Mode - 4 Steps)**: `/spec` ➔ `/implement` ➔ `/check` ➔ `/complete`
25
- *Driven by a **Single Living Spec (`current-feature.md`)** for fast, high-velocity daily development and bugfixes (85% of tasks).*
26
- 2. **🏗️ Deep-Track (Architect Mode - 8 Steps)**: `discovery` `10-define` `20-spec` `30-plan` `40-execute` `50-verify` ➔ `60-report` ➔ `70-deliver`
27
- *Driven by modular separate stage files for large, high-stakes architectural epics and multi-agent coordination.*
17
+ Nexus-DevFlow uses a **Single Unified Living Spec Model**:
18
+ - **The 4-Stage Lifecycle**: `/feature` (or `/fix`) ➔ `/implement` ➔ `/check` ➔ `/complete`
19
+ - Driven by a **Single Living Spec (`devflow/context/current-feature.md`)** that integrates architectural depth (Define, Spec, Plan, Execution Log, Multi-Lane QA, and Release Digest) into one clear living document.
20
+ - **Pre-Flight Inception Engine**: Companion skills (`/discovery`, `/idea`, `/grill`, `/brainstorm`) feed directly into `/feature`.
28
21
 
29
22
  ---
30
23
 
@@ -33,93 +26,72 @@ Nexus-DevFlow supports two seamless workflow tracks:
33
26
  When invoked without an argument (or when determining the next step), inspect:
34
27
 
35
28
  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).
36
- 2. **Active Delivery Run**: Read `devflow/context/current-stage.md` and check `devflow/runs/{RUNNING_ID}/`.
37
- - **If Fast-Track (`current-feature.md`, `spec.md`, or `blueprint.md` present)**:
38
- - If `current-feature.md` (or `spec.md`) has incomplete checklist items -> Recommend `/implement` (or `implement {RUNNING_ID}`).
39
- - If all tasks done but no passing verification evidence -> Recommend `/check` (or `check {RUNNING_ID}`).
40
- - If verification evidence passed -> Recommend `/complete` (or `complete {RUNNING_ID}`).
41
- - **If Deep-Track (numbered stage files present)**:
42
- - If at `10-define.md` -> Recommend `20-spec {RUNNING_ID}`.
43
- - If at `20-spec.md` -> Recommend `30-plan {RUNNING_ID}`.
44
- - If at `30-plan.md` -> Recommend `40-execute {RUNNING_ID}`.
45
- - If at `40-execute.md` with all tasks done -> Recommend `50-verify {RUNNING_ID}`.
46
- - If passed `50-verify.md` -> Recommend `60-report {RUNNING_ID}` then `70-deliver {RUNNING_ID}`.
29
+ 2. **Active Delivery Run**: Read `devflow/context/current-stage.md` and `devflow/context/current-feature.md`.
30
+ - If `current-feature.md` has incomplete checklist tasks (`- [ ]`) -> Recommend `/implement`.
31
+ - If all tasks are completed (`- [x]`) but no passing verification evidence in Section 5 -> Recommend `/check`.
32
+ - If verification evidence passed in Section 5 -> Recommend `/complete`.
47
33
  3. **Active Discovery**: Check `devflow/discoveries/` for open discovery notes.
48
- 4. **Pending Ideas Inbox**: Check `devflow/ideas.md`. If items exist under `## 📌 Pending Ideas`, summarize them in a **💡 Pending Ideas (Inbox)** list with their IDs (`[IDEA-xxx]`), feasibility, and mention that they can be started with `/spec IDEA-xxx` or `/discovery IDEA-xxx`.
34
+ 4. **Pending Ideas Inbox**: Check `devflow/ideas.md`. If items exist under `## 📌 Pending Ideas`, summarize them in a **💡 Pending Ideas (Inbox)** list with their IDs (`[IDEA-xxx]`), feasibility, and mention that they can be started with `/feature IDEA-xxx` or `/discovery IDEA-xxx`.
49
35
  5. **Audit Findings Ledger**: Check `devflow/context/findings.md` for open high-severity findings.
50
36
 
51
37
  ### Default State Recommendations
52
- - if no run is active and user wants to start a feature -> Recommend `/feature <name>`.
38
+ - If no run is active and user wants to start a feature -> Recommend `/feature <name>`.
53
39
  - If no run is active and user wants to fix a bug -> Recommend `/fix <bug>`.
54
- - If no run is active and user has pending ideas in `devflow/ideas.md` -> Highlight `/spec IDEA-xxx` or `/discovery IDEA-xxx`.
55
- - If no run is active and user wants deep architectural exploration -> Recommend `discovery`.
40
+ - If no run is active and user has pending ideas in `devflow/ideas.md` -> Highlight `/feature IDEA-xxx` or `/discovery IDEA-xxx`.
41
+ - If no run is active and user wants deep architectural exploration -> Recommend `/discovery`.
56
42
  - If user asks to check system health -> Recommend `doctor`.
57
43
 
58
44
  ---
59
45
 
60
46
  ## Intent Classification & Skill Routing
61
47
 
62
- | User Intent / Request Type | Recommended Skill | Normal Name / Alias | Track / Lifecycle Path |
48
+ | User Intent / Request Type | Recommended Skill | Normal Name / Alias | Lifecycle Path |
63
49
  | :--- | :--- | :--- | :--- |
64
- | **"Spec new feature / lean workflow"** | `spec` | `/spec` / `/feature` | **Fast-Track**: `/spec` -> `/implement` -> `/check` -> `/complete` |
65
- | **"Quick bugfix / ad-hoc change"** | `spec` | `/fix` | **Fast-Track**: `/fix` -> `/implement` -> `/check` -> `/complete` |
50
+ | **"Spec new feature / living spec"** | `feature` | `/feature` / `/spec` | **Unified**: `/feature` -> `/implement` -> `/check` -> `/complete` |
51
+ | **"Quick bugfix / ad-hoc change"** | `fix` | `/fix` | **Unified**: `/fix` -> `/implement` -> `/check` -> `/complete` |
66
52
  | **"Capture quick idea / thought"** | `idea` | `/idea` | **Companion**: Enriches & saves to `devflow/ideas.md` |
67
- | **"Execute implementation tasks"** | `implement` | `/implement` | **Fast-Track**: `/implement` -> `/check` |
68
- | **"Run QA verification & check"** | `check` | `/check` | **Fast-Track**: `/check` -> `/complete` |
69
- | **"Complete run & git merge"** | `complete` | `/complete` | **Fast-Track**: `/complete` |
70
- | **"Generate HTML dashboard report"**| `report-html` | `/report:html` | **Standalone**: Converts `current-feature.md` / `60-report.md` to HTML |
71
- | "Setup DevFlow on fresh/new project" | `onboard` | `onboard` / `setup` | `onboard` -> `/spec` or `10-define` |
72
- | "Adopt DevFlow on existing codebase" | `adopt` | `adopt` / `bootstrap` | `adopt` -> `/spec` or `10-define` |
53
+ | **"Pre-delivery exploration / research"**| `discovery`| `/discovery` | **Pre-Flight**: `discovery` -> `/feature` |
54
+ | **"Socratic alignment / ADR / glossary"**| `grill` | `/grill` / `/align` | **Pre-Flight**: `grill` -> `/feature` |
55
+ | **"Execute implementation tasks"** | `implement` | `/implement` | **Core Loop**: `/implement` -> `/check` |
56
+ | **"Run QA verification & check"** | `check` | `/check` | **Core Loop**: `/check` -> `/complete` |
57
+ | **"Complete run & git merge"** | `complete` | `/complete` | **Core Loop**: `/complete` |
58
+ | **"Generate HTML dashboard report"**| `report-html` | `/report:html` | **Standalone**: Converts `current-feature.md` or archive to HTML |
59
+ | "Setup DevFlow on fresh/new project" | `onboard` | `onboard` / `setup` | `onboard` -> `/feature` |
60
+ | "Adopt DevFlow on existing codebase" | `adopt` | `adopt` / `bootstrap` | `adopt` -> `/feature` |
73
61
  | "Check setup health & diagnostics" | `doctor` | `doctor` / `health` | `doctor` |
74
- | "Explore a new request / deep idea" | `discovery` | `discovery` / `/discovery` | **Deep-Track**: `discovery` -> `10` -> `20` -> ... |
75
- | "Define delivery boundaries and ID" | `10-define` | `define` | **Deep-Track**: `10` -> `20` -> `30` |
76
- | "Break down spec into plan (Deep)" | `30-plan` | `plan` | **Deep-Track**: `30` -> `40` -> `50` |
77
- | "Deep code implementation" | `40-execute` | `implement` | **Deep-Track**: `40` -> `50` |
78
- | "Deep QA verification" | `50-verify` | `verify` | **Deep-Track**: `50` -> `60` -> `70` |
79
- | "Deep markdown digest report" | `60-report` | `report` | **Deep-Track**: `60` -> `70` |
80
- | "Deep release packaging & merge" | `70-deliver` | `release` | **Deep-Track**: `70-deliver` |
81
62
  | "Human manual QA walkthrough guide" | `try` | `try` | Companion (after implement or check) |
82
- | "Safely plan feature or run reversal" | `rollback` | `rollback` | Companion |
63
+ | "Safely plan feature or run reversal"| `rollback` | `rollback` | Companion |
83
64
  | "Set up automatic GitHub Actions CI" | `ci` | `ci` | Companion |
84
- | "Pre-check scope & risks before spec" | `brief` | `brief` | Companion |
65
+ | "Pre-check scope & risks before spec"| `brief` | `brief` | Companion |
85
66
  | "Run autonomous bounded delivery loop"| `autopilot` | `autopilot` | Companion |
86
67
  | "Brainstorm ideas without ID" | `brainstorm` | `brainstorm` | Companion |
87
- | "Socratic alignment / ADR / glossary" | `grill` | `/grill` / `align` | Companion (pre-spec / domain modeling) |
88
68
  | "Investigate failure or root cause" | `debug` | `debug` | Companion |
89
69
 
90
70
  ---
91
71
 
92
72
  ## Available Skills Sitemap
93
73
 
94
- ### 1. Fast-Track (Blueprint Mode - 4 Steps)
95
- - `spec` (`/spec`, `/feature`, `/fix`, `$spec`) - Define, spec, plan, and create `current-feature.md`
96
- - `implement` (`/implement`, `$implement`) - Execute planned checklist tasks with TDD
97
- - `check` (`/check`, `$check`) - Senior QA review, multi-lane verification, record evidence
98
- - `complete` (`/complete`, `$complete`) - Safety pass, release digest, git merge, close run
74
+ ### 1. Mainline Living Spec Loop (4 Steps)
75
+ - `feature` (`/feature`, `/spec`) - Define, spec, and plan in `current-feature.md`
76
+ - `fix` (`/fix`) - Document an ad-hoc bug or change in `current-feature.md`
77
+ - `implement` (`/implement`) - Execute planned checklist tasks with TDD
78
+ - `check` (`/check`) - Senior QA review, multi-lane verification, record evidence
79
+ - `complete` (`/complete`) - Safety pass, release digest, git merge, close run
99
80
 
100
- ### 2. Deep-Track (Architect Mode - 8 Steps)
81
+ ### 2. Pre-Flight Discovery Engine
101
82
  - `discovery` - Project roadmap planning or feature exploration before delivery commitment
102
- - `10-define` - Lock delivery boundaries and allocate Running ID
103
- - `20-spec` - Formalize markdown delivery contract
104
- - `30-plan` - Breakdown spec into phased tasks with test decisions
105
- - `40-execute` - Incremental task implementation
106
- - `50-verify` - Senior QA review and multi-lane validation
107
- - `60-report` - Generate standardized markdown digest report
108
- - `70-deliver` - Release packaging, release notes, and merge
109
-
110
- ### 3. Public Companion Commands
111
- - `devflow` (`status`, `/devflow`) - Interactive guide, state inspector, and router
112
- - `idea` (`/idea`) - Quick idea capture and AI feasibility enrichment into `devflow/ideas.md`
113
- - `grill` (`/grill`, `align`) - Codebase-grounded Socratic alignment, domain glossary, and ADR recorder
114
- - `brainstorm` - Ideate and compare trade-off options without allocating running IDs
115
- - `report-html` (`/report:html`) - Standalone interactive HTML report dashboard generator
116
- - `onboard` - Baseline stack setup for freshly scaffolded projects
117
- - `adopt` - Bootstrap DevFlow into existing brownfield projects
118
- - `doctor` - Read-only health check for setup and drift
119
- - `try` - Step-by-step human manual QA review guide
120
- - `rollback` - Safe feature/run reversal planner
121
- - `ci` - Automatic GitHub Actions workflow setup
122
- - `brief` - Read-only scope and risk pre-briefing
123
- - `autopilot` - Autonomous bounded delivery loop
124
- - `debug` - Root cause investigation before or during implementation
125
- - `overview` - Living context synchronization into project-overview.md
83
+ - `idea` - Quick idea capture with AI feasibility scoring
84
+ - `grill` (or `align`) - Socratic alignment, domain modeling, and ADR recording
85
+ - `brainstorm` - Multi-option ideation with trade-off analysis
86
+
87
+ ### 3. Verification & Diagnostic Companions
88
+ - `doctor` - Health check for setup, adapters, and workspace state
89
+ - `audit` - Branch-aware or full-project code, security, and quality review
90
+ - `test` / `tests` - Test suite runner and unit test scaffolding
91
+ - `ci` - Set up or normalize GitHub Actions checks
92
+ - `status` - Read-only progress summary and next action suggestion
93
+ - `try` - Human manual QA walkthrough guide
94
+ - `report-html` - Standalone interactive HTML report dashboard
95
+ - `debug` - Root-cause investigation without editing code
96
+ - `rollback` - Safe reversal of completed features
97
+ - `release` - Deployment readiness check
@@ -113,10 +113,14 @@ build plan starts high-level.
113
113
 
114
114
  For the one (sub-)feature being built now, write a full spec to
115
115
  `devflow/context/current-feature.md` (create `devflow/context/` if needed), following
116
- `reference/feature-spec-template.md`. Fill every section: goal, in/out of scope,
117
- the build loop, small build steps as a checklist (`- [ ]`, each with an observable
118
- "done when" - `/implement` ticks them off and resumes from the first unchecked
119
- one), files/areas, data/contracts, testing, and notes for the AI.
116
+ `reference/feature-spec-template.md`. Fill every section:
117
+ - Goal, Problem Statement, and In/Out of scope
118
+ - Acceptance Criteria (AC-1, AC-2, ...)
119
+ - Small build steps as atomic 2-5 min checklist items (`- [ ]`, supporting `[TDD-Red]`, `[TDD-Green]`, `[TDD-Refactor]` triplets for functional logic)
120
+ - Two-Stage Verification Strategy:
121
+ - **Stage 1**: Spec Fidelity & Acceptance Criteria Gate
122
+ - **Stage 2**: Technical Multi-lane quality, tests, security, and findings ledger
123
+ - Files/areas to modify, data/contracts, and notes for the AI.
120
124
 
121
125
  **Visual or replication features need a reference image.** If the feature is
122
126
  "make it look like X" - recreating an existing design, matching a mockup, or
@@ -88,19 +88,23 @@ broad checkout. Ask whether to resolve only the conflict allowed by the approved
88
88
  spec or abandon the attempt. A cascade into another completed feature needs a
89
89
  new rollback plan.
90
90
 
91
- ## Step 2 - build one step, review, iterate, checkpoint
91
+ ## Step 2 - build one step, review, iterate, checkpoint (Strict TDD)
92
92
 
93
93
  Work through the spec's build steps in order, one at a time. For each step:
94
94
 
95
- 1. Implement just that step: the smallest change that satisfies its "done when."
96
- 2. Show the **diff**, not whole files.
97
- 3. **Explain it, and prove it.** Give a short summary: what the step delivered,
95
+ 1. **Strict TDD Cycle (for logic & behavior changes)**:
96
+ - **🔴 RED**: Write the unit test first in the relevant test file. Execute the test command and show the failing assertion output.
97
+ - **🟢 GREEN**: Implement only the minimal code in the source file necessary to make the test pass. Re-run test and show passing output.
98
+ - **🔵 REFACTOR**: Refactor and format cleanly, verifying that 100% of tests remain green.
99
+ - *Code Reversion Rule*: If production code is written without a prior test for behavior changes, revert it and write the test first.
100
+ 2. Implement just that step: the smallest change that satisfies its "done when."
101
+ 3. Show the **diff**, not whole files.
102
+ 4. **Explain it, and prove it.** Give a short summary: what the step delivered,
98
103
  one line per changed file on what it does and why, then confirm the step's
99
- "done when" is met with evidence (build output, a screenshot, a passing
100
- assertion). This summary is the comprehension gate, so keep it concrete, not
101
- ceremonial. Include a short **How to try it** note when the step has a manual
104
+ "done when" is met with empirical evidence (test pass output, build output, or screenshot). This summary is the comprehension gate, so keep it concrete, not
105
+ vague. Include a short **How to try it** note when the step has a manual
102
106
  path: the command, URL, click, endpoint, or output the user can check.
103
- 4. **Verify the step.** If `AGENTS.md` declares a `Verify` command, run that exact
107
+ 5. **Verify the step.** If `AGENTS.md` declares a `Verify` command, run that exact
104
108
  command as the automated gate. It is only an umbrella for checks the project
105
109
  actually has, so do not invent tests or other checks to satisfy it. If no
106
110
  `Verify` command exists, run the documented build command and the test command
@@ -1,12 +1,12 @@
1
- # Nexus-DevFlow 2.0 (The 3-Pillars & Dual-Track Model)
1
+ # Nexus-DevFlow 2.5.0 (The 3-Pillars & Single Living Spec Model)
2
2
 
3
3
  Instructions for AI coding agents working in this project. This is the cross-tool entry point: Codex, Google Antigravity, Cursor, GitHub Copilot, Gemini CLI, Aider, Zed, Windsurf, and others read `AGENTS.md`. Claude Code reads `CLAUDE.md`, which imports this file (`@AGENTS.md`), so there is a single source of truth.
4
4
 
5
5
  ## What this is
6
6
 
7
- This project uses **Nexus-DevFlow**, an agentic workflow layer supporting **The 3-Pillars Workspace Architecture & Dual-Track Delivery**:
7
+ This project uses **Nexus-DevFlow**, an agentic workflow layer supporting **The 3-Pillars Workspace Architecture & Single Living Spec Model**:
8
8
  1. **🔮 Future (Backlog)**: `devflow/ideas.md` — Centralized Idea Inbox with AI scoring.
9
- 2. **⚡ Present (Active Context)**: `devflow/context/` — Living Source of Truth & Active Work (`current-feature.md` for Fast-Track, `current-run/` for Deep-Track).
9
+ 2. **⚡ Present (Active Context)**: `devflow/context/` — Living Source of Truth & Active Work (`current-feature.md` Single Living Spec).
10
10
  3. **📦 Past (History Archive)**: `devflow/history/` — Categorized delivery archives (`features/`, `fixes/`, `rollbacks/`, and `HISTORY.md`).
11
11
 
12
12
  To start a new project, scaffold the application first in an empty folder, then run `npx @jakkrichm/create-nexus-devflow` to overlay DevFlow onto your codebase.
@@ -18,6 +18,7 @@ To start a new project, scaffold the application first in an empty folder, then
18
18
  - `devflow/context/ai-interaction.md` - how to interact with the user on this project
19
19
  - `devflow/context/current-stage.md` - active discovery or running delivery state
20
20
  - `devflow/context/findings.md` - quality, security, and verification ledger
21
+ - `devflow/context/glossary.md` - domain terms & architecture definitions
21
22
 
22
23
  ## Tool-Specific Adapters & Execution Rules
23
24
 
@@ -31,60 +32,50 @@ Unused adapter families can be removed. Codex, Antigravity, GitHub Copilot, and
31
32
 
32
33
  ### Universal Invocation & Agent Directives:
33
34
 
34
- 1. **Canonical Command Names & AI Provider Invocation**: Each workflow stage and companion tool has exactly **one Canonical Name** (e.g. `feature`, `fix`, `implement`, `check`, `complete`, `discovery`, `10-define`, `20-spec`, `30-plan`, `40-execute`, `50-verify`, `60-report`, `70-deliver`, `devflow`, `doctor`, `overview`, `debug`, `onboard`, `adopt`, `try`, `rollback`, `idea`, `ci`, `test`, `autopilot`, `prototype`, `report-html`, `brief`, `audit`, `release`, `brainstorm`, `grill`). The way you invoke commands depends on your AI Provider / Tool:
35
- - **Canonical Name (Plain text)**: Directly invoke or prompt the command by its standard name (e.g., `feature`, `40-execute`, `devflow`, `discovery`).
36
- - **Slash Prefix (`/`)**: For tools supporting slash commands (Claude Code, Google Antigravity, Gemini CLI), e.g., `/feature`, `/fix`, `/implement`, `/40-execute`, `/devflow`, `/discovery`.
37
- - **Dollar Prefix (`$`)**: For OpenAI Codex CLI or skill-invocation tools, e.g., `$feature`, `$fix`, `$40-execute`, `$devflow`, `$discovery`.
35
+ 1. **Canonical Command Names & AI Provider Invocation**: Each workflow stage and companion tool has exactly **one Canonical Name** (e.g. `feature`, `fix`, `implement`, `check`, `complete`, `discovery`, `idea`, `grill`, `brainstorm`, `devflow`, `doctor`, `overview`, `debug`, `onboard`, `adopt`, `try`, `rollback`, `ci`, `test`, `tests`, `autopilot`, `prototype`, `report-html`, `brief`, `audit`, `release`). The way you invoke commands depends on your AI Provider / Tool:
36
+ - **Canonical Name (Plain text)**: Directly invoke or prompt the command by its standard name (e.g., `feature`, `implement`, `devflow`, `discovery`).
37
+ - **Slash Prefix (`/`)**: For tools supporting slash commands (Claude Code, Google Antigravity, Gemini CLI), e.g., `/feature`, `/fix`, `/implement`, `/devflow`, `/discovery`.
38
+ - **Dollar Prefix (`$`)**: For OpenAI Codex CLI or skill-invocation tools, e.g., `$feature`, `$fix`, `$devflow`, `$discovery`.
38
39
  2. **OpenAI Codex & Non-Native CLI Tools**: In environments without automatic background skill discovery (such as OpenAI Codex CLI, Aider, or generic terminals), **you MUST use your file reading tool to inspect `.agents/skills/<skill>/SKILL.md` before executing the stage** to strictly follow its schema, artifact contract, and quality gates.
39
40
  3. **Google Antigravity & Claude Code**: Native skill engines automatically discover and surface `.agents/skills/` and `.claude/skills/`.
40
41
  4. **State-Aware Inspection**: When unsure what to do next, invoke `devflow` to automatically inspect `devflow/context/current-stage.md` and active context in `devflow/context/`.
41
- 5. **Default Artifact & Communication Language (Thai)**: All generated markdown stage artifacts (`current-feature.md`, `00-explore.md`...`70-deliver.md`) and user communication MUST default to **Thai (`th`)**, while code, technical terms, file paths, and identifiers remain in English.
42
+ 5. **Default Artifact & Communication Language (Thai)**: All generated markdown stage artifacts (`current-feature.md`, `discovery.md`, etc.) and user communication MUST default to **Thai (`th`)**, while code, technical terms, file paths, and identifiers remain in English.
42
43
 
43
44
  ---
44
45
 
45
- ## 🏎️ Track 1: Fast-Track (Blueprint Mode - 4 Steps)
46
+ ## The Unified 4-Stage Living Spec Lifecycle
46
47
 
47
- Recommended for 85% of daily work (features, bug fixes, UI improvements, iterative tasks):
48
+ All development tasks (from lean UI fixes to deep architectural epics) execute through the 4-step progressive lifecycle:
48
49
 
49
50
  ```text
50
51
  /feature (หรือ /fix) ──▶ /implement ──▶ /check ──▶ /complete
51
52
  ```
52
53
 
53
54
  1. **`feature` / `fix` (`/feature`, `/fix`, `/spec`)**:
54
- - **Purpose**: Combines Discover, Define, Spec, and Plan into one unified step. Checks Single Active Run Guardrail, allocates sequential ID (`xxx-slug`), and creates the **Single Living Spec (`devflow/context/current-feature.md`)**.
55
+ - **Purpose**: Combines Discover, Define, Spec, and Plan into one unified step. Checks Single Active Run Guardrail, allocates sequential ID (`xxx-slug`), and creates the **Single Living Spec (`devflow/context/current-feature.md`)** with 6 structured sections.
55
56
  - **Artifact**: `devflow/context/current-feature.md`
56
57
  2. **`implement` (`/implement`)**:
57
- - **Purpose**: Incrementally executes checklist tasks with TDD discipline and appends progress to `devflow/context/current-feature.md`.
58
+ - **Purpose**: Incrementally executes checklist tasks with TDD discipline (Red-Green-Refactor) and appends diff evidence to `current-feature.md`.
58
59
  3. **`check` (`/check`)**:
59
- - **Purpose**: Senior QA review, multi-lane verification matrix (Typecheck, Lint, Test suites, manual proof), and records evidence into `devflow/context/current-feature.md`.
60
+ - **Purpose**: Senior QA review, multi-lane verification matrix (Typecheck, Lint, Test suites, manual proof), and records empirical proof into `current-feature.md`.
60
61
  4. **`complete` (`/complete`)**:
61
- - **Purpose**: Final safety pass, records Release Digest, automatically archives to `devflow/history/{features|fixes|rollbacks}/{xxx-slug}.md`, resets the stub, performs git merge, and closes the run without auto HTML generation.
62
+ - **Purpose**: Final safety pass, records Release Digest, automatically archives to `devflow/history/{features|fixes|rollbacks}/{xxx-slug}.md`, resets the stub, and performs git squash-merge.
62
63
 
63
64
  ---
64
65
 
65
- ## 🏗️ Track 2: Deep-Track (Architect Mode - 8 Steps)
66
+ ## 🔮 Pre-Flight Discovery & Architectural Alignment (Companions)
66
67
 
67
- Recommended for large architectural epics, database migrations, and multi-agent coordination:
68
-
69
- ```text
70
- discovery ──▶ 10-define ──▶ 20-spec ──▶ 30-plan ──▶ 40-execute ──▶ 50-verify ──▶ 60-report ──▶ 70-deliver
71
- ```
72
-
73
- 1. `discovery`: Unified pre-delivery discovery & exploration (project-level roadmap planning or feature-level exploration with 5 lenses: Brainstorm, Research, PRD, Bug Triage, Grill) before delivery commitment (`devflow/discoveries/{DISC-ID}/discovery.md`).
74
- 2. `10-define`: Turn approved discovery into bounded delivery run in `devflow/context/current-run/10-define.md`.
75
- 3. `20-spec`: Formalize markdown-first delivery contract & acceptance criteria (`20-spec.md`).
76
- 4. `30-plan`: Breakdown spec into executable tasks with test decisions (`30-plan.md` + checklists).
77
- 5. `40-execute`: Incremental task execution behind review gates (`40-execute.md`).
78
- 6. `50-verify`: Senior QA review & multi-lane verification checks (`50-verify.md`).
79
- 7. `60-report`: Standardized markdown delivery digest (`60-report.md`).
80
- 8. `70-deliver`: Release packaging, git merge, archives `devflow/context/current-run/` ➔ `devflow/history/{category}/{xxx-slug}/`, and closes run.
68
+ - `discovery`: Unified pre-delivery discovery & exploration (`devflow/discoveries/{DISC-ID}/discovery.md`).
69
+ - `idea`: Quick idea capture and AI feasibility scoring (`devflow/ideas.md`).
70
+ - `grill` (or `align`): Socratic alignment, domain modeling, and ADR recording (`devflow/decisions/`).
71
+ - `brainstorm`: Divergent/convergent ideation with trade-off analysis.
81
72
 
82
73
  ---
83
74
 
84
75
  ## 🌐 Standalone HTML Reporting Policy
85
76
 
86
77
  > [!IMPORTANT]
87
- > **No Auto-Generated HTML**: Mainline flows (`/complete` and `60-report`) strictly output Markdown only.
78
+ > **No Auto-Generated HTML**: Mainline flows (`/complete`) strictly output Markdown only.
88
79
  > When an interactive web dashboard is desired for presentation or sharing, invoke the standalone companion command:
89
80
  > `/report:html` (or `npm run report:html -- {ID}`).
90
81
 
@@ -68,3 +68,22 @@
68
68
  - *Dependencies*: None
69
69
  - *Scope*: ผสานความสามารถ Adopt Workflow Visibility (Commit vs Local-only), การรองรับ OpenCode และ Multi-Adapter Checkbox Prompt ใน CLI พร้อมอัปเดต Doctor checks และซิงก์ Baseline SHA เป็น v0.13.0 (`0b65166`)
70
70
 
71
+ ---
72
+
73
+ ## 🧪 Phase 9: Strict TDD Sub-Tasks & Two-Stage Review Guardrails
74
+
75
+ - [x] **9. Strict TDD Sub-Tasks & Two-Stage Review Guardrails** `[Size: M]`
76
+ - *Dependencies*: None
77
+ - *Scope*: นำ Strict TDD (Red-Green-Refactor) Sub-Tasks และ Two-Stage Review Pattern (Stage 1: Spec Fidelity, Stage 2: Quality & Security Gate) ผสานเข้าสู่ Prompt Rules, Coding Standards, AI Interaction และ Stage Skills (`30-plan`, `40-execute`, `50-verify`, `feature`, `implement`, `check`, `debug`) พร้อมอัปเดต Template และ Unit Tests
78
+
79
+ ---
80
+
81
+ ## ⚡ Phase 10: Nexus-DevFlow 2.5.0 (Unified Living Spec Model)
82
+
83
+ - [x] **10. Unify Deep-Track and Fast-Track into Single Living Spec Model** `[Size: L]`
84
+ - *Dependencies*: ADR-001
85
+ - *Scope*: รวมความสามารถเชิงสถาปัตยกรรมระดับลึกของ Deep-Track เข้าสู่ 4 ขั้นตอนหลักของ Fast-Track บนเอกสาร Single Living Spec (`current-feature.md`) จัดเก็บประวัติแบบ Single Archive (`.md`), ปลดระวาง stage skills 10-70 ที่ซ้ำซ้อน, และปรับปรุงเอกสาร & Schemas ทั้งหมด
86
+
87
+
88
+
89
+