@jakkrichm/create-nexus-devflow 2.0.25 → 2.1.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/README.md +30 -8
- package/dist/bin/create-nexus-devflow.d.ts +22 -1
- package/dist/bin/create-nexus-devflow.js +658 -11
- package/dist/bin/create-nexus-devflow.js.map +1 -1
- package/dist/lib/branch-context.d.ts +39 -0
- package/dist/lib/branch-context.js +196 -0
- package/dist/lib/branch-context.js.map +1 -0
- package/dist/lib/code-graph.d.ts +30 -0
- package/dist/lib/code-graph.js +209 -0
- package/dist/lib/code-graph.js.map +1 -0
- package/dist/lib/command-catalog.d.ts +11 -0
- package/dist/lib/command-catalog.js +63 -0
- package/dist/lib/command-catalog.js.map +1 -0
- package/dist/lib/context-slicer.d.ts +31 -0
- package/dist/lib/context-slicer.js +234 -0
- package/dist/lib/context-slicer.js.map +1 -0
- package/dist/lib/current-work.js +97 -49
- package/dist/lib/current-work.js.map +1 -1
- package/dist/lib/dashboard-page.d.ts +2 -0
- package/dist/lib/dashboard-page.js +285 -0
- package/dist/lib/dashboard-page.js.map +1 -0
- package/dist/lib/dashboard-snapshot.d.ts +62 -0
- package/dist/lib/dashboard-snapshot.js +114 -0
- package/dist/lib/dashboard-snapshot.js.map +1 -0
- package/dist/lib/dashboard.d.ts +2 -0
- package/dist/lib/dashboard.js +398 -8
- package/dist/lib/dashboard.js.map +1 -1
- package/dist/lib/discoveries.d.ts +19 -0
- package/dist/lib/discoveries.js +81 -0
- package/dist/lib/discoveries.js.map +1 -0
- package/dist/lib/doctor.d.ts +26 -0
- package/dist/lib/doctor.js +474 -0
- package/dist/lib/doctor.js.map +1 -0
- package/dist/lib/drift-reconciler.d.ts +38 -0
- package/dist/lib/drift-reconciler.js +155 -0
- package/dist/lib/drift-reconciler.js.map +1 -0
- package/dist/lib/findings.d.ts +26 -2
- package/dist/lib/findings.js +165 -1
- package/dist/lib/findings.js.map +1 -1
- package/dist/lib/gatekeeper.d.ts +20 -0
- package/dist/lib/gatekeeper.js +106 -0
- package/dist/lib/gatekeeper.js.map +1 -0
- package/dist/lib/git-hooks.d.ts +16 -0
- package/dist/lib/git-hooks.js +103 -0
- package/dist/lib/git-hooks.js.map +1 -0
- package/dist/lib/history.d.ts +6 -1
- package/dist/lib/history.js +98 -11
- package/dist/lib/history.js.map +1 -1
- package/dist/lib/ide-extension.d.ts +38 -0
- package/dist/lib/ide-extension.js +61 -0
- package/dist/lib/ide-extension.js.map +1 -0
- package/dist/lib/ideas.d.ts +26 -0
- package/dist/lib/ideas.js +179 -0
- package/dist/lib/ideas.js.map +1 -0
- package/dist/lib/mcp.d.ts +36 -0
- package/dist/lib/mcp.js +653 -0
- package/dist/lib/mcp.js.map +1 -0
- package/dist/lib/status.d.ts +3 -1
- package/dist/lib/status.js +60 -6
- package/dist/lib/status.js.map +1 -1
- package/dist/lib/swarm-orchestrator.d.ts +31 -0
- package/dist/lib/swarm-orchestrator.js +134 -0
- package/dist/lib/swarm-orchestrator.js.map +1 -0
- package/dist/lib/update.js +2 -2
- package/dist/lib/update.js.map +1 -1
- package/dist/lib/version-check.d.ts +22 -0
- package/dist/lib/version-check.js +59 -0
- package/dist/lib/version-check.js.map +1 -0
- package/dist/lib/webview-studio.d.ts +8 -0
- package/dist/lib/webview-studio.js +463 -0
- package/dist/lib/webview-studio.js.map +1 -0
- package/dist/lib/workflow-state.d.ts +23 -0
- package/dist/lib/workflow-state.js +128 -0
- package/dist/lib/workflow-state.js.map +1 -0
- package/dist/scripts/prepare-template.js +3 -3
- package/package.json +1 -1
- package/template/{.claude/skills/00-discover → .agents/skills/00-explore}/SKILL.md +10 -10
- package/template/.agents/skills/10-define/SKILL.md +4 -4
- package/template/.agents/skills/20-spec/SKILL.md +2 -3
- package/template/.agents/skills/30-plan/SKILL.md +2 -3
- package/template/.agents/skills/40-execute/SKILL.md +2 -2
- package/template/.agents/skills/50-verify/SKILL.md +2 -2
- package/template/.agents/skills/60-report/SKILL.md +3 -3
- package/template/{.claude/skills/70-release → .agents/skills/70-deliver}/SKILL.md +7 -13
- package/template/.agents/skills/adopt/SKILL.md +136 -73
- package/template/.agents/skills/audit/SKILL.md +275 -0
- package/template/.agents/skills/autopilot/SKILL.md +228 -147
- package/template/.agents/skills/brainstorm/SKILL.md +3 -3
- package/template/.agents/skills/brief/SKILL.md +74 -51
- package/template/.agents/skills/check/SKILL.md +96 -76
- package/template/.agents/skills/ci/SKILL.md +140 -61
- package/template/.agents/skills/complete/SKILL.md +156 -101
- package/template/.agents/skills/convert-any-to-md/SKILL.md +2 -2
- package/template/.agents/skills/debug/SKILL.md +124 -49
- package/template/.agents/skills/devflow/SKILL.md +16 -10
- package/template/.agents/skills/discovery/SKILL.md +166 -0
- package/template/.agents/skills/doctor/SKILL.md +188 -72
- package/template/.agents/skills/feature/SKILL.md +195 -102
- package/template/.agents/skills/fix/SKILL.md +41 -90
- package/template/.agents/skills/idea/SKILL.md +3 -3
- package/template/.agents/skills/implement/SKILL.md +189 -46
- package/template/.agents/skills/onboard/SKILL.md +215 -85
- package/template/.agents/skills/overview/SKILL.md +51 -85
- package/template/.agents/skills/prototype/SKILL.md +82 -27
- package/template/.agents/skills/release/SKILL.md +160 -0
- package/template/.agents/skills/report-html/SKILL.md +2 -2
- package/template/.agents/skills/rollback/SKILL.md +123 -77
- package/template/.agents/skills/status/SKILL.md +109 -0
- package/template/.agents/skills/test/SKILL.md +2 -2
- package/template/.agents/skills/tests/SKILL.md +126 -0
- package/template/.agents/skills/try/SKILL.md +77 -65
- package/template/{.agents/skills/00-discover → .claude/skills/00-explore}/SKILL.md +9 -9
- package/template/.claude/skills/10-define/SKILL.md +2 -2
- package/template/.claude/skills/20-spec/SKILL.md +1 -1
- package/template/.claude/skills/30-plan/SKILL.md +1 -1
- package/template/.claude/skills/60-report/SKILL.md +1 -1
- package/template/{.agents/skills/70-release → .claude/skills/70-deliver}/SKILL.md +6 -12
- package/template/.claude/skills/adopt/SKILL.md +2 -2
- package/template/.claude/skills/audit/SKILL.md +141 -0
- package/template/.claude/skills/autopilot/SKILL.md +74 -52
- package/template/.claude/skills/brief/SKILL.md +67 -45
- package/template/.claude/skills/ci/SKILL.md +1 -1
- package/template/.claude/skills/complete/SKILL.md +1 -1
- package/template/.claude/skills/debug/SKILL.md +1 -1
- package/template/.claude/skills/devflow/SKILL.md +7 -7
- package/template/.claude/skills/discovery/SKILL.md +145 -0
- package/template/.claude/skills/doctor/SKILL.md +1 -1
- package/template/.claude/skills/feature/SKILL.md +67 -18
- package/template/.claude/skills/fix/SKILL.md +1 -1
- package/template/.claude/skills/idea/SKILL.md +2 -2
- package/template/.claude/skills/onboard/SKILL.md +3 -3
- package/template/.claude/skills/overview/SKILL.md +39 -88
- package/template/.claude/skills/prototype/SKILL.md +1 -1
- package/template/.claude/skills/release/SKILL.md +171 -0
- package/template/.claude/skills/rollback/SKILL.md +2 -2
- package/template/AGENTS.md +5 -5
- package/template/devflow/build-plan.md +62 -0
- package/template/devflow/context/ai-interaction.md +4 -4
- package/template/devflow/context/coding-standards.md +3 -3
- package/template/devflow/context/current-stage.md +1 -1
- package/template/devflow/context/findings.md +1 -1
- package/template/devflow/history/HISTORY.md +2 -2
- package/template/devflow/project-plan.md +79 -0
- package/template/devflow/reference/mockup.html +476 -0
- package/template/devflow/reference/project-overview-template.md +39 -0
- package/template/devflow/reference/running-id-contract.md +24 -2
- package/template/devflow/reference/studio.html +504 -0
|
@@ -1,27 +1,37 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: feature
|
|
3
|
-
description: "[Devflow] Fast-Track Feature stage in DevFlow (Blueprint Mode) -
|
|
4
|
-
argument-hint: "{feature title, IDEA-xxx, or
|
|
3
|
+
description: "[Devflow] Fast-Track Feature stage in DevFlow (Blueprint Mode) - turn a build-plan item, sub-feature (4a, 4b), idea, or requirement into the living current-feature.md contract with automatic sizing & splitting."
|
|
4
|
+
argument-hint: "{feature title, number, 4a, IDEA-xxx, or empty for next item}"
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# Fast-Track: Feature (Blueprint Mode)
|
|
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 (`devflow/context/current-feature.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 Build Plan (`devflow/build-plan.md`), Sub-features (`4a`, `4b`), or Idea Inbox (`IDEA-xxx`).
|
|
12
|
+
|
|
13
|
+
Includes built-in **Multi-Factor Sizing Heuristic & Interactive Split Gate** to prevent context overflow on oversized tasks (`L`/`XL`).
|
|
14
|
+
|
|
15
|
+
---
|
|
12
16
|
|
|
13
17
|
## Invocations & Aliases
|
|
14
18
|
|
|
15
|
-
- `/feature
|
|
19
|
+
- `/feature`: Specs the next unchecked feature from `devflow/build-plan.md`
|
|
20
|
+
- `/feature <number | title>`: Specs a specific feature from the build plan or a new requirement
|
|
21
|
+
- `/feature <number[a-z]>` (e.g. `/feature 4a`): Specs a specific sub-feature
|
|
16
22
|
- `/feature IDEA-xxx`: Intake and promote a pending idea from `devflow/ideas.md`
|
|
17
23
|
- `$feature`: Codex CLI invocation
|
|
18
24
|
|
|
25
|
+
---
|
|
26
|
+
|
|
19
27
|
## Fast-Track Mainline Workflow
|
|
20
28
|
|
|
21
29
|
```text
|
|
22
30
|
/feature (หรือ /fix) ──▶ /implement ──▶ /check ──▶ /complete
|
|
23
31
|
```
|
|
24
32
|
|
|
33
|
+
---
|
|
34
|
+
|
|
25
35
|
## Behavior & Contract
|
|
26
36
|
|
|
27
37
|
When invoked:
|
|
@@ -31,18 +41,53 @@ When invoked:
|
|
|
31
41
|
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
42
|
- **HALT and reject opening a new feature**.
|
|
33
43
|
- Explain to the user that an active run is currently in progress:
|
|
34
|
-
> ⚠️ *"มีงาน `{active_id}` กำลังดำเนินการอยู่ กรุณาปิดงานเดิมด้วย `/complete` หรือ `70-
|
|
44
|
+
> ⚠️ *"มีงาน `{active_id}` กำลังดำเนินการอยู่ กรุณาปิดงานเดิมด้วย `/complete` หรือ `70-deliver` (หรือสั่ง `/rollback`) ก่อนเริ่มงานใหม่"*
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
### 2. Sizing Heuristic & Sub-Feature Splitting Engine
|
|
49
|
+
|
|
50
|
+
Before locking the spec, evaluate the target scope:
|
|
35
51
|
|
|
36
|
-
|
|
37
|
-
|
|
52
|
+
1. **Multi-Factor Sizing Heuristic**:
|
|
53
|
+
- **Files Touched**: $\ge 6$ files predicted to be created or modified.
|
|
54
|
+
- **Architectural Layers**: $\ge 3$ distinct layers (e.g. DB Schema/Migration + Backend API + Frontend UI + State Store).
|
|
55
|
+
- **Task Complexity**: $\ge 6$ checklist tasks or heavy multi-service integrations.
|
|
56
|
+
2. **Interactive Split Gate**:
|
|
57
|
+
- If the feature is assessed as `L` or `XL` and no explicit sub-feature notation (`4a`) was requested:
|
|
58
|
+
- **Draft Sub-Feature Proposals**: Break into 2-3 focused sub-features (e.g. `4a: Backend Schema & Core APIs (Size: M)`, `4b: Frontend UI & Client State (Size: M)`).
|
|
59
|
+
- **Prompt User in Thai**:
|
|
60
|
+
> ⚠️ *"ฟีเจอร์นี้มีขนาดใหญ่ (`L`/`XL`) เพื่อรักษาคุณภาพและป้องกัน Context Overflow แนะนำให้แบ่งเป็น sub-features ดังนี้:*
|
|
61
|
+
> *- `4a: [ขอบเขตย่อยส่วนที่ 1]` (Size: M)*
|
|
62
|
+
> *- `4b: [ขอบเขตย่อยส่วนที่ 2]` (Size: M)*
|
|
63
|
+
> *คุณต้องการให้เปิด Spec เริ่มทำ `4a` ทันทีเลยไหมครับ?"*
|
|
64
|
+
- If the user confirms or provides a sub-feature argument (e.g. `4a`), proceed with the sub-feature spec.
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
### 3. Work Identity & Source Resolution
|
|
69
|
+
|
|
70
|
+
1. **No Argument**:
|
|
71
|
+
- Inspect `devflow/build-plan.md` (or `devflow/ideas.md`).
|
|
72
|
+
- Pick the first unchecked feature (`- [ ]`) or sub-feature (`- [ ] 4a.`) in sequence.
|
|
73
|
+
2. **Sub-Feature Notation** (e.g. `4a`, `038b-slug`):
|
|
74
|
+
- Allocate sub-feature running ID with alpha suffix: `xxx[a-z]-slug` (e.g. `038a-auth-schema-and-api`).
|
|
75
|
+
- Set Git branch: `feature/xxx[a-z]-slug`.
|
|
76
|
+
3. **Idea Inbox Intake** (e.g. `IDEA-001`):
|
|
38
77
|
- Read `devflow/ideas.md` and extract the idea's title, raw problem statement, AI Feasibility notes, and Quick Seed points.
|
|
39
|
-
- Use these details as the primary input for Specification & Scope.
|
|
40
78
|
- In `devflow/ideas.md`, update the item's status to `[x] Claimed ({ID})` and move it under `## 📦 Archived / Shipped Ideas`.
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
79
|
+
4. **Number or Title**:
|
|
80
|
+
- Match item in `devflow/build-plan.md` or treat as a new planned addition.
|
|
81
|
+
5. Determine next sequential ID:
|
|
82
|
+
- For standard feature: `xxx-slug` (e.g. `038-payment-gateway`).
|
|
83
|
+
- For sub-feature: `xxx[a-z]-slug` (e.g. `038a-payment-api`, `038b-payment-ui`).
|
|
84
|
+
6. Identify Git branch naming:
|
|
85
|
+
- `feature/{ID}`
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
### 4. Generate the Living Spec (`devflow/context/current-feature.md`)
|
|
44
90
|
|
|
45
|
-
### 3. Generate the Living Spec (`devflow/context/current-feature.md`)
|
|
46
91
|
Write `devflow/context/current-feature.md` using the structured template below in **Thai (`th`)**:
|
|
47
92
|
|
|
48
93
|
```markdown
|
|
@@ -93,7 +138,9 @@ Write `devflow/context/current-feature.md` using the structured template below i
|
|
|
93
138
|
- *(จะถูกบันทึกเมื่อรัน /complete)*
|
|
94
139
|
```
|
|
95
140
|
|
|
96
|
-
|
|
141
|
+
---
|
|
142
|
+
|
|
143
|
+
### 5. Update Workspace Status
|
|
97
144
|
Update `devflow/context/current-stage.md`:
|
|
98
145
|
- `Active Discovery ID`: `None`
|
|
99
146
|
- `Active Running ID`: `{ID}`
|
|
@@ -101,8 +148,10 @@ Update `devflow/context/current-stage.md`:
|
|
|
101
148
|
- `Living Spec`: `devflow/context/current-feature.md`
|
|
102
149
|
- `Last Updated`: `{YYYY-MM-DD}`
|
|
103
150
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
-
|
|
151
|
+
---
|
|
152
|
+
|
|
153
|
+
### 6. Output Summary & Next Step
|
|
154
|
+
Report to the user in **Thai (`th`)**:
|
|
155
|
+
- Running ID and allocated branch (`feature/{ID}`)
|
|
156
|
+
- Summary of Scope, Acceptance Criteria, and Sizing evaluation
|
|
157
|
+
- Explicit next step: `/implement` (หรือ `$implement`)
|
|
@@ -31,7 +31,7 @@ When invoked:
|
|
|
31
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
32
|
- **HALT and reject opening a new fix**.
|
|
33
33
|
- Explain to the user that an active run is currently in progress:
|
|
34
|
-
> ⚠️ *"มีงาน `{active_id}` กำลังดำเนินการอยู่ กรุณาปิดงานเดิมด้วย `/complete` หรือ `70-
|
|
34
|
+
> ⚠️ *"มีงาน `{active_id}` กำลังดำเนินการอยู่ กรุณาปิดงานเดิมด้วย `/complete` หรือ `70-deliver` (หรือสั่ง `/rollback`) ก่อนเริ่มงานใหม่"*
|
|
35
35
|
|
|
36
36
|
### 2. Work Identity & Issue Intake
|
|
37
37
|
1. **Idea / Issue Inbox Intake**: If the argument is an identifier (e.g. `IDEA-001`):
|
|
@@ -44,7 +44,7 @@ Insert the new idea block directly under `## 📌 Pending Ideas` in `devflow/ide
|
|
|
44
44
|
- **Quick Seed (กันลืม)**:
|
|
45
45
|
1. {ประเด็นสำคัญที่ 1}
|
|
46
46
|
2. {ประเด็นสำคัญที่ 2}
|
|
47
|
-
- **สถานะ**: `Pending` (หยิบไปทำได้ด้วย `/spec IDEA-001` หรือ `/00-
|
|
47
|
+
- **สถานะ**: `Pending` (หยิบไปทำได้ด้วย `/spec IDEA-001` หรือ `/00-explore IDEA-001`)
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
*(หากมีข้อความ `*(ยังไม่มีไอเดียค้างอยู่...)*` ให้ลบออกเมื่อมีไอเดียแรก)*
|
|
@@ -54,4 +54,4 @@ Report to the user:
|
|
|
54
54
|
- Allocated Idea ID: `[IDEA-xxx]`
|
|
55
55
|
- Summary of Feasibility & Value analysis
|
|
56
56
|
- Seed points saved
|
|
57
|
-
- Instructions for promotion: "เมื่อพร้อมลงมือทำ สามารถพิมพ์ `/spec IDEA-xxx` หรือ `/00-
|
|
57
|
+
- Instructions for promotion: "เมื่อพร้อมลงมือทำ สามารถพิมพ์ `/spec IDEA-xxx` หรือ `/00-explore IDEA-xxx` ได้ทันที"
|
|
@@ -8,8 +8,8 @@ description: "[Devflow] Set up Nexus-DevFlow after overlaying it onto a freshly
|
|
|
8
8
|
Where this sits in the workflow:
|
|
9
9
|
|
|
10
10
|
```text
|
|
11
|
-
scaffold app -> overlay DevFlow -> [onboard] -> 00-
|
|
12
|
-
(user/tool) (create-nexus) (tune setup) (discovery / run scoping) (20-spec -> 70-
|
|
11
|
+
scaffold app -> overlay DevFlow -> [onboard] -> 00-explore or 10-define -> Mainline Loop
|
|
12
|
+
(user/tool) (create-nexus) (tune setup) (discovery / run scoping) (20-spec -> 70-deliver)
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
`onboard` is the fresh-project on-ramp for Nexus-DevFlow. It assumes the application was scaffolded first (e.g. via `create-next-app`, `create-vite`, `cargo new`, etc.) and DevFlow was overlaid after.
|
|
@@ -125,5 +125,5 @@ Present a concise onboarding summary report:
|
|
|
125
125
|
- Files tuned during onboarding
|
|
126
126
|
- Adapter status (`.agents/`, `.claude/`)
|
|
127
127
|
- Recommended next step:
|
|
128
|
-
- Run `00-
|
|
128
|
+
- Run `00-explore` (or `00-explore`, `$00-explore`) to explore the first feature or product direction
|
|
129
129
|
- Run `10-define` (or `10-define`, `$10-define`) if the initial delivery slice is already clear and ready for execution
|
|
@@ -1,114 +1,65 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: overview
|
|
3
|
-
description: "[Devflow]
|
|
3
|
+
description: "[Devflow] Distill user-owned planning docs into `devflow/context/project-overview.md` using a deterministic compiler so the workspace context stays live and generated, not hand-authored."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# overview -
|
|
6
|
+
# overview - dynamic project overview compiler
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
## Position in workflow
|
|
9
9
|
|
|
10
10
|
```text
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
project-plan.md + build-plan.md + history + codebase signals
|
|
12
|
+
-> scripts/overview.ts
|
|
13
|
+
-> devflow/context/project-overview.md
|
|
14
|
+
-> /feature / fix / check / complete
|
|
14
15
|
```
|
|
15
16
|
|
|
16
|
-
|
|
17
|
+
`/overview` turns planning and delivery context into one generated
|
|
18
|
+
`devflow/context/project-overview.md` artifact.
|
|
17
19
|
|
|
18
|
-
|
|
20
|
+
## Input
|
|
19
21
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
/
|
|
24
|
-
|
|
25
|
-
overview
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
Use this when:
|
|
29
|
-
- Multiple delivery runs (`xxx-slug`) have shipped and `project-overview.md` needs to reflect newly added capabilities.
|
|
30
|
-
- New database schemas, ORM models, or API boundaries were introduced.
|
|
31
|
-
- Major dependencies or architectural patterns were added or modified.
|
|
32
|
-
- After completing `70-release` to keep project context perfectly aligned.
|
|
33
|
-
- Preparing for a new initiative or discovery pass.
|
|
34
|
-
|
|
35
|
-
---
|
|
22
|
+
- `devflow/project-plan.md` - product vision, users, stack, constraints
|
|
23
|
+
- `devflow/build-plan.md` - ordered checkbox feature queue
|
|
24
|
+
- `devflow/history/HISTORY.md` - shipped capability context
|
|
25
|
+
- `devflow/ideas.md` - backlog pulse
|
|
26
|
+
- `package.json` (if available) - command/tooling signal
|
|
36
27
|
|
|
37
28
|
## Process
|
|
38
29
|
|
|
39
|
-
### Step 1
|
|
30
|
+
### Step 1: Read and validate plans
|
|
40
31
|
|
|
41
|
-
|
|
32
|
+
1. Read `project-plan.md` and `build-plan.md`.
|
|
33
|
+
2. Validate plan shape:
|
|
34
|
+
- checkbox list in `build-plan.md`
|
|
35
|
+
- feature-sized items
|
|
36
|
+
- no pre-build setup or unclear one-liners
|
|
42
37
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
- Identify language versions, primary framework, state management, and build tools.
|
|
46
|
-
2. **Directory Architecture**:
|
|
47
|
-
- Map high-level directory layout (`src/`, `app/`, `api/`, `lib/`, `components/`, etc.).
|
|
48
|
-
- Identify major modules, entry points, and routing conventions.
|
|
49
|
-
3. **Concrete Data Models & Schemas**:
|
|
50
|
-
- Search for ORM schemas (`schema.prisma`, Drizzle schemas, TypeORM entities, SQLAlchemy models, Zod schemas, or core TypeScript types).
|
|
51
|
-
- Extract entity names, core fields, relationships, and invariants.
|
|
52
|
-
4. **Verified Commands**:
|
|
53
|
-
- Inspect package scripts (`dev`, `build`, `test`, `lint`, `check`, `verify`).
|
|
38
|
+
If `build-plan.md` is still placeholder-only while planning is real in `project-plan.md`,
|
|
39
|
+
pause for user approval before normalizing and writing.
|
|
54
40
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
### Step 2 - Scan History (Delivered Capabilities)
|
|
58
|
-
|
|
59
|
-
Inspect DevFlow history records:
|
|
60
|
-
|
|
61
|
-
1. Read `devflow/history/HISTORY.md` for completed and released milestones.
|
|
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
|
-
|
|
64
|
-
---
|
|
41
|
+
### Step 2: Compile overview
|
|
65
42
|
|
|
66
|
-
|
|
43
|
+
Run:
|
|
67
44
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
```markdown
|
|
71
|
-
# Project Overview & Source of Truth
|
|
72
|
-
|
|
73
|
-
> Living context artifact automatically synchronized with codebase reality and DevFlow delivery history.
|
|
74
|
-
|
|
75
|
-
## 1. Project Purpose & Target Users
|
|
76
|
-
- High-level summary of what the system does, who it serves, and the core problem it solves.
|
|
77
|
-
|
|
78
|
-
## 2. Architecture & Directory Layout
|
|
79
|
-
- Visual directory layout tree with short descriptions for major modules and boundaries.
|
|
80
|
-
|
|
81
|
-
## 3. Technology Stack & Key Tooling
|
|
82
|
-
- Frontend, Backend, Database, ORM, Testing frameworks, CI/CD, and Package Manager.
|
|
83
|
-
|
|
84
|
-
## 4. Concrete Data Models & Entities
|
|
85
|
-
- Field-level definitions of major entities, types, and relationships.
|
|
86
|
-
|
|
87
|
-
## 5. Shipped Capabilities & Key Modules
|
|
88
|
-
- Consolidated list of active features and subsystems verified in the codebase.
|
|
89
|
-
|
|
90
|
-
## 6. Verified Commands & Developer Workflow
|
|
91
|
-
- Exact commands for Dev, Build, Test, Lint, and Verify.
|
|
92
|
-
|
|
93
|
-
## 7. Known Architectural Focus Areas
|
|
94
|
-
- Known technical debt, active migrations, or upcoming architectural focus points.
|
|
45
|
+
```bash
|
|
46
|
+
npm run overview
|
|
95
47
|
```
|
|
96
48
|
|
|
97
|
-
|
|
49
|
+
The script uses `devflow/reference/project-overview-template.md` and writes the output
|
|
50
|
+
to `devflow/context/project-overview.md`.
|
|
98
51
|
|
|
99
|
-
### Step
|
|
52
|
+
### Step 3: Report
|
|
100
53
|
|
|
101
|
-
|
|
102
|
-
- Models or entities detected and added
|
|
103
|
-
- Shipped capabilities refreshed from history
|
|
104
|
-
- Stack and tooling updates
|
|
105
|
-
- Any inconsistencies or gaps found between code and documentation
|
|
54
|
+
Summarize what changed and list:
|
|
106
55
|
|
|
107
|
-
|
|
56
|
+
- sections marked `TODO`
|
|
57
|
+
- any plan conflicts / unresolved scope gaps
|
|
58
|
+
- next recommended action (`/feature` when queue is clean)
|
|
108
59
|
|
|
109
|
-
## Rules
|
|
60
|
+
## Rules
|
|
110
61
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
62
|
+
- Keep overview generation deterministic and input-sourced.
|
|
63
|
+
- Do not invent scope.
|
|
64
|
+
- Never rewrite user-owned plan files unless explicitly requested.
|
|
65
|
+
- Re-run whenever plans or history materially change.
|
|
@@ -8,7 +8,7 @@ disable-model-invocation: true
|
|
|
8
8
|
|
|
9
9
|
A prototype is throwaway code that answers one question.
|
|
10
10
|
|
|
11
|
-
Use this support skill behind `Research`, `Brainstorm`, `00-
|
|
11
|
+
Use this support skill behind `Research`, `Brainstorm`, `00-explore`, `10-define`, `20-spec`, or `30-plan` when conversation alone cannot settle the uncertainty.
|
|
12
12
|
|
|
13
13
|
## Branches
|
|
14
14
|
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: release
|
|
3
|
+
description: "Prepare a DevFlow project for deployment to Render or Vercel. Inspects project stack, package manager, commands, and environment variables; verifies local build, start, output, and health endpoints; creates or updates render.yaml or vercel.json; and enforces strict safety gates before any remote action. Use when the user runs /release, invokes $release, asks for Render setup, Vercel setup, deploy readiness, deployment config, render.yaml, or vercel.json."
|
|
4
|
+
argument-hint: "[render | vercel | check | config]"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# release - deployment readiness for Render and Vercel
|
|
8
|
+
|
|
9
|
+
Where this sits in the workflow:
|
|
10
|
+
|
|
11
|
+
```text
|
|
12
|
+
/complete (or 70-deliver) -> [release] -> deploy with explicit approval
|
|
13
|
+
(feature / run finished) (config, (human confirms external action)
|
|
14
|
+
readiness)
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
`/release` is an optional deployment preparation step. It gets the application ready to ship, but it is **not** an auto-deploy button. It can inspect, recommend, create local config files (`render.yaml`, `vercel.json`), and run local readiness checks. It **must stop** before any external provider action unless the user gives an explicit confirmation in the current chat.
|
|
18
|
+
|
|
19
|
+
Supported initial targets:
|
|
20
|
+
|
|
21
|
+
- **Render** - static sites, web services, background workers, cron jobs, databases, and `render.yaml`.
|
|
22
|
+
- **Vercel** - frontend apps, full-stack framework apps, serverless functions, and `vercel.json`.
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## Usage
|
|
27
|
+
|
|
28
|
+
```text
|
|
29
|
+
release
|
|
30
|
+
release render
|
|
31
|
+
release vercel
|
|
32
|
+
release check
|
|
33
|
+
release config
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Scopes & Arguments
|
|
37
|
+
|
|
38
|
+
- **no argument**: inspect the project and recommend Render or Vercel if the target is obvious; otherwise ask which target to prepare.
|
|
39
|
+
- `render`: prepare Render readiness and local configuration (`render.yaml`).
|
|
40
|
+
- `vercel`: prepare Vercel readiness and local configuration (`vercel.json`).
|
|
41
|
+
- `check`: read-only deployment readiness report (runs local checks without changing files).
|
|
42
|
+
- `config`: focus on creating or updating local provider configuration files.
|
|
43
|
+
|
|
44
|
+
> [!CAUTION]
|
|
45
|
+
> **Strict Safety Gate**: If the user asks to deploy, connect a cloud provider, create a remote service, set remote env vars, push, publish, or run CLI commands that affect a remote infrastructure, pause and request explicit user confirmation before executing.
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## 5-Step Deployment Readiness Protocol
|
|
50
|
+
|
|
51
|
+
### Step 1 - Read & Inspect the Project
|
|
52
|
+
|
|
53
|
+
Read:
|
|
54
|
+
- `AGENTS.md` and `devflow/context/project-overview.md`
|
|
55
|
+
- `devflow/project-plan.md` and `devflow/build-plan.md` (if present)
|
|
56
|
+
- `devflow/context/current-feature.md` or recent history
|
|
57
|
+
- Package and build manifests: `package.json`, lockfiles, framework configs, Dockerfile, `render.yaml`, `vercel.json`, `.env.example`, README
|
|
58
|
+
- Git working tree status
|
|
59
|
+
|
|
60
|
+
Identify:
|
|
61
|
+
- **App Type**: static frontend, SSR/hybrid app, API service, background worker, CLI, monorepo
|
|
62
|
+
- **Commands & Output**: build command, start command, dev command, test command, output directory (`dist/`, `build/`, `.next/`, `out/`), package manager
|
|
63
|
+
- **Runtime Needs**: Node version, Python version, Docker, database, cache, object storage, background jobs, cron, migrations
|
|
64
|
+
- **Environment Variables**: identify required variables **by name only**; never print, request, or record secret values
|
|
65
|
+
- **Health / Smoke Path**: health endpoint (e.g. `/api/health`, `/healthz`, `/`) or smoke test command
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
### Step 2 - Choose Provider Shape
|
|
70
|
+
|
|
71
|
+
For **Render**, decide whether the service should be configured as:
|
|
72
|
+
- **Static Site**: client-side SPAs (Vite, React, Vue) with static publish path
|
|
73
|
+
- **Web Service**: Node.js/Python/Go API or SSR server running on a specified port
|
|
74
|
+
- **Background Worker**: queue consumers or long-running worker processes
|
|
75
|
+
- **Cron Job**: periodic scheduled jobs
|
|
76
|
+
- **Database**: PostgreSQL or Redis paired with a service
|
|
77
|
+
|
|
78
|
+
For **Vercel**, decide whether the app should be:
|
|
79
|
+
- **Framework Deployment**: Next.js, Nuxt, SvelteKit, Astro with zero-config auto-detection
|
|
80
|
+
- **Static Output**: static site export
|
|
81
|
+
- **Serverless / Edge Functions**: API routes or standalone serverless functions
|
|
82
|
+
- **Monorepo Project**: root directory specification
|
|
83
|
+
|
|
84
|
+
*Note*: If a provider is a poor fit for the stack, state it plainly and recommend the better target (e.g. long-running background workers fit Render better than Vercel serverless).
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
### Step 3 - Verify Local Readiness
|
|
89
|
+
|
|
90
|
+
Run only local, non-destructive checks:
|
|
91
|
+
1. **Dependency check**: verify required dependencies are installed.
|
|
92
|
+
2. **Build check**: run the project build command (e.g. `npm run build`).
|
|
93
|
+
3. **Test check**: run unit/integration tests when declared (e.g. `npm test`).
|
|
94
|
+
4. **Smoke test**: start local server in test mode or verify health endpoints if safe.
|
|
95
|
+
5. **Lint / Typecheck**: run typecheck/lint when listed in project scripts.
|
|
96
|
+
|
|
97
|
+
If a command fails or is missing, report the exact gap. If a check requires remote credentials, list the required environment variable names and skip that check.
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
### Step 4 - Prepare Local Config Files
|
|
102
|
+
|
|
103
|
+
Only create or update local configuration files when the target is clear or requested.
|
|
104
|
+
|
|
105
|
+
#### For Render (`render.yaml`)
|
|
106
|
+
Create or update `render.yaml` for repeatable infrastructure:
|
|
107
|
+
```yaml
|
|
108
|
+
services:
|
|
109
|
+
- type: web # or static, worker, cron
|
|
110
|
+
name: my-app
|
|
111
|
+
runtime: node # or python, docker, etc.
|
|
112
|
+
buildCommand: npm run build
|
|
113
|
+
startCommand: npm run start
|
|
114
|
+
staticPublishPath: dist # for static sites
|
|
115
|
+
healthCheckPath: /api/health
|
|
116
|
+
envVars:
|
|
117
|
+
- key: NODE_ENV
|
|
118
|
+
value: production
|
|
119
|
+
- key: DATABASE_URL
|
|
120
|
+
sync: false # prompt in Render dashboard, no secret in code
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
#### For Vercel (`vercel.json`)
|
|
124
|
+
Create `vercel.json` only when default framework auto-detection is insufficient:
|
|
125
|
+
```json
|
|
126
|
+
{
|
|
127
|
+
"buildCommand": "npm run build",
|
|
128
|
+
"outputDirectory": "dist",
|
|
129
|
+
"framework": "vite",
|
|
130
|
+
"rewrites": [
|
|
131
|
+
{ "source": "/(.*)", "destination": "/" }
|
|
132
|
+
]
|
|
133
|
+
}
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
#### For Both Providers
|
|
137
|
+
- Sync `.env.example` with newly required environment variable names (with empty or dummy placeholder values).
|
|
138
|
+
- Add deployment instructions to `README.md` if requested.
|
|
139
|
+
- **Never write secret values into config files or git commits.**
|
|
140
|
+
|
|
141
|
+
---
|
|
142
|
+
|
|
143
|
+
### Step 5 - Report Deployment Readiness Packet
|
|
144
|
+
|
|
145
|
+
Produce a clean, scannable summary:
|
|
146
|
+
|
|
147
|
+
```markdown
|
|
148
|
+
## 🚀 Deployment Readiness Packet
|
|
149
|
+
|
|
150
|
+
- **Target Provider**: Render / Vercel (Rationale: ...)
|
|
151
|
+
- **Service Shape**: Web Service / Static Site / Framework App / Worker
|
|
152
|
+
- **Config Files Changed**: `render.yaml` / `vercel.json` / `.env.example` (or None)
|
|
153
|
+
- **Local Checks Run**:
|
|
154
|
+
- Build: ✅ PASS
|
|
155
|
+
- Tests: ✅ PASS (X/X tests)
|
|
156
|
+
- Typecheck: ✅ PASS
|
|
157
|
+
- **Required Env Variables**: `DATABASE_URL`, `API_KEY` (names only)
|
|
158
|
+
- **Smoke Test Command / Path**: `/api/health`
|
|
159
|
+
- **Blockers / Warnings**: None (or list any gaps)
|
|
160
|
+
- **Next Action**: Review generated config files. When ready, deploy via Provider Dashboard or CLI.
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
---
|
|
164
|
+
|
|
165
|
+
## Strict Rules & Guardrails
|
|
166
|
+
|
|
167
|
+
1. **Optional Step**: `/release` is an optional helper sitting outside the core development loop.
|
|
168
|
+
2. **No Unprompted Remote Actions**: Never deploy, create remote cloud services, modify remote environment variables, push, or publish without explicit confirmation in the current chat.
|
|
169
|
+
3. **Zero Secret Leaks**: Never print, log, or commit passwords, tokens, API keys, or private certificates.
|
|
170
|
+
4. **Lean Configurations**: Do not add unnecessary configuration files if platform zero-config defaults suffice.
|
|
171
|
+
5. **No Hallucinations**: Do not mask failing local builds or unknown output directories; report failures accurately.
|
|
@@ -8,7 +8,7 @@ description: "[Devflow] Plan safe feature or run reversal with dependency and co
|
|
|
8
8
|
Where this sits in the workflow:
|
|
9
9
|
|
|
10
10
|
```text
|
|
11
|
-
completed run + git history -> [rollback] -> 40-execute (or fix run) -> 50-verify -> 70-
|
|
11
|
+
completed run + git history -> [rollback] -> 40-execute (or fix run) -> 50-verify -> 70-deliver
|
|
12
12
|
(run archive + commits) (risk review (reverse product diff) (prove) (log & finalize)
|
|
13
13
|
+ plan)
|
|
14
14
|
```
|
|
@@ -51,7 +51,7 @@ Identify:
|
|
|
51
51
|
|
|
52
52
|
- Exact commit SHA(s) introducing the feature.
|
|
53
53
|
- Parent commit before the feature was introduced.
|
|
54
|
-
- Associated stage artifacts (`20-spec.md`, `40-execute.md`, `70-
|
|
54
|
+
- Associated stage artifacts (`20-spec.md`, `40-execute.md`, `70-deliver.md`).
|
|
55
55
|
|
|
56
56
|
## Step 2 - Separate Product Changes From DevFlow History
|
|
57
57
|
|
package/template/AGENTS.md
CHANGED
|
@@ -30,14 +30,14 @@ Unused adapter families can be removed. Codex, Antigravity, and GitHub Copilot s
|
|
|
30
30
|
|
|
31
31
|
### Universal Invocation & Agent Directives:
|
|
32
32
|
|
|
33
|
-
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`, `00-
|
|
33
|
+
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`, `00-explore`, `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`, `discovery`, `audit`, `release`). The way you invoke commands depends on your AI Provider / Tool:
|
|
34
34
|
- **Canonical Name (Plain text)**: Directly invoke or prompt the command by its standard name (e.g., `feature`, `40-execute`, `devflow`).
|
|
35
35
|
- **Slash Prefix (`/`)**: For tools supporting slash commands (Claude Code, Google Antigravity, Gemini CLI), e.g., `/feature`, `/fix`, `/implement`, `/40-execute`, `/devflow`.
|
|
36
36
|
- **Dollar Prefix (`$`)**: For OpenAI Codex CLI or skill-invocation tools, e.g., `$feature`, `$fix`, `$40-execute`, `$devflow`.
|
|
37
37
|
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.
|
|
38
38
|
3. **Google Antigravity & Claude Code**: Native skill engines automatically discover and surface `.agents/skills/` and `.claude/skills/`.
|
|
39
39
|
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/`.
|
|
40
|
-
5. **Default Artifact & Communication Language (Thai)**: All generated markdown stage artifacts (`current-feature.md`, `00-
|
|
40
|
+
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.
|
|
41
41
|
|
|
42
42
|
---
|
|
43
43
|
|
|
@@ -66,17 +66,17 @@ Recommended for 85% of daily work (features, bug fixes, UI improvements, iterati
|
|
|
66
66
|
Recommended for large architectural epics, database migrations, and multi-agent coordination:
|
|
67
67
|
|
|
68
68
|
```text
|
|
69
|
-
00-
|
|
69
|
+
00-explore ──▶ 10-define ──▶ 20-spec ──▶ 30-plan ──▶ 40-execute ──▶ 50-verify ──▶ 60-report ──▶ 70-deliver
|
|
70
70
|
```
|
|
71
71
|
|
|
72
|
-
1. `00-
|
|
72
|
+
1. `00-explore`: Explore request before delivery commitment without allocating running ID (`00-explore.md`).
|
|
73
73
|
2. `10-define`: Turn approved discovery into bounded delivery run in `devflow/context/current-run/10-define.md`.
|
|
74
74
|
3. `20-spec`: Formalize markdown-first delivery contract & acceptance criteria (`20-spec.md`).
|
|
75
75
|
4. `30-plan`: Breakdown spec into executable tasks with test decisions (`30-plan.md` + checklists).
|
|
76
76
|
5. `40-execute`: Incremental task execution behind review gates (`40-execute.md`).
|
|
77
77
|
6. `50-verify`: Senior QA review & multi-lane verification checks (`50-verify.md`).
|
|
78
78
|
7. `60-report`: Standardized markdown delivery digest (`60-report.md`).
|
|
79
|
-
8. `70-
|
|
79
|
+
8. `70-deliver`: Release packaging, git merge, archives `devflow/context/current-run/` ➔ `devflow/history/{category}/{xxx-slug}/`, and closes run.
|
|
80
80
|
|
|
81
81
|
---
|
|
82
82
|
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# 📋 Build Plan (User-Owned Feature Queue)
|
|
2
|
+
|
|
3
|
+
> **Document Type**: Build Plan (User-Owned)
|
|
4
|
+
> **Purpose**: รายการคิวฟีเจอร์การพัฒนาปรับปรุงระบบตามลำดับ พร้อมการประเมินขนาด (Sizing) และความสัมพันธ์ (Dependencies) สำหรับ `/brief` และ `/feature`
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## 🚀 Phase 1: Hard Quality Gates & Pre-commit Enforcement
|
|
9
|
+
|
|
10
|
+
- [x] **1. Automated Quality Gatekeeper & Pre-commit Hook Integration** `[Size: S]`
|
|
11
|
+
- *Dependencies*: None
|
|
12
|
+
- *Scope*: ผสาน `nexus-devflow check-gate` เข้าสู่ Git Pre-commit Hooks และ CI เพื่อบล็อกการ Commit/Merge เมื่อมี Unchecked Tasks, Test ล้มเหลว หรือมี P0/P1 Finding ค้างอยู่
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## ⚡ Phase 2: DevFlow Model Context Protocol (MCP) Server Hub
|
|
17
|
+
|
|
18
|
+
- [x] **2. DevFlow MCP Server Hub & Type-Safe Schema Engine (`IDEA-004`)** `[Size: M]`
|
|
19
|
+
- *Dependencies*: Feature 1
|
|
20
|
+
- *Scope*: สร้าง Subcommand `nexus-devflow mcp` เปิด JSON-RPC Server พร้อมเครื่องมือ Typed Tools (`update_task`, `record_finding`, `get_stage_context`) ด้วย Zod Schema Validation
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## 🌿 Phase 3: Branch-Scoped Context Isolation
|
|
25
|
+
|
|
26
|
+
- [x] **3. Branch-Scoped Context Isolation & Dynamic Router** `[Size: M]`
|
|
27
|
+
- *Dependencies*: Feature 2
|
|
28
|
+
- *Scope*: แยกจัดเก็บ State ตาม Git Branch ใน `.nexus/branches/<branch-name>/`, ระบบ Canonical Dynamic Router สำหรับ AI Agent และระบบ Auto-Cleanup หลัง `/complete`
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## ✂️ Phase 4: JIT Context Slicing & Token Optimizer
|
|
33
|
+
|
|
34
|
+
- [x] **4. Just-In-Time (JIT) Dynamic Context Slicing Engine** `[Size: M]`
|
|
35
|
+
- *Dependencies*: Feature 3
|
|
36
|
+
- *Scope*: สร้างตัวตัดตอนบริบท (Context Slicer) สำหรับสคิล `/implement`, `/check`, `/00-explore` เพื่อส่งเฉพาะข้อมูลที่จำเป็นและควบคุม Token Budget ลดการใช้ Token 60–70%
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## 🔄 Phase 5: State Drift Detection & Self-Healing
|
|
41
|
+
|
|
42
|
+
- [x] **5. Git Diff Drift Reconciler & Self-Healing State Engine** `[Size: M]`
|
|
43
|
+
- *Dependencies*: Feature 4
|
|
44
|
+
- *Scope*: ตรวจจับความไม่สอดคล้องระหว่าง `git diff` กับรายการไฟล์ใน Living Spec พร้อมระบบแจ้งเตือนและ Auto-Reconcile ซิงค์สถานะอัตโนมัติ
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
## 🖥️ Phase 6: IDE Native Extension & Visual Studio
|
|
49
|
+
|
|
50
|
+
- [x] **6. IDE Native Extension & Interactive Webview Studio** `[Size: L]`
|
|
51
|
+
- *Dependencies*: Feature 5
|
|
52
|
+
- *Scope*: พัฒนา Extension สำหรับ VS Code / Antigravity Webview เพื่อแสดง Live Kanban Board, ปุ่มกดรันคำสั่ง DevFlow และ Diff Inspector ในตัว IDE
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## 🤖 Phase 7: Multi-Agent Swarm Orchestration & Code Graph RAG
|
|
58
|
+
|
|
59
|
+
- [x] **7. Multi-Agent Swarm Orchestrator & Semantic Code Graph RAG** `[Size: L]`
|
|
60
|
+
- *Dependencies*: Feature 6
|
|
61
|
+
- *Scope*: พัฒนาระบบกระจายงานแบบคู่ขนานให้ Subagents (Coder, QA Verifier, Security Auditor) และระบบ Indexing Local Codebase Graph เพื่อดึงบริบทที่แม่นยำสูงสุด
|
|
62
|
+
|