@jakkrichm/create-nexus-devflow 2.0.27 → 2.2.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 (104) hide show
  1. package/README.md +29 -7
  2. package/dist/bin/create-nexus-devflow.d.ts +5 -1
  3. package/dist/bin/create-nexus-devflow.js +247 -4
  4. package/dist/bin/create-nexus-devflow.js.map +1 -1
  5. package/dist/lib/branch-context.d.ts +39 -0
  6. package/dist/lib/branch-context.js +196 -0
  7. package/dist/lib/branch-context.js.map +1 -0
  8. package/dist/lib/code-graph.d.ts +30 -0
  9. package/dist/lib/code-graph.js +209 -0
  10. package/dist/lib/code-graph.js.map +1 -0
  11. package/dist/lib/context-slicer.d.ts +31 -0
  12. package/dist/lib/context-slicer.js +234 -0
  13. package/dist/lib/context-slicer.js.map +1 -0
  14. package/dist/lib/current-work.js +4 -2
  15. package/dist/lib/current-work.js.map +1 -1
  16. package/dist/lib/dashboard-page.d.ts +1 -1
  17. package/dist/lib/dashboard-page.js +140 -56
  18. package/dist/lib/dashboard-page.js.map +1 -1
  19. package/dist/lib/dashboard-snapshot.d.ts +13 -0
  20. package/dist/lib/dashboard-snapshot.js +24 -6
  21. package/dist/lib/dashboard-snapshot.js.map +1 -1
  22. package/dist/lib/dashboard.js +38 -0
  23. package/dist/lib/dashboard.js.map +1 -1
  24. package/dist/lib/drift-reconciler.d.ts +38 -0
  25. package/dist/lib/drift-reconciler.js +155 -0
  26. package/dist/lib/drift-reconciler.js.map +1 -0
  27. package/dist/lib/gatekeeper.d.ts +1 -0
  28. package/dist/lib/gatekeeper.js +30 -1
  29. package/dist/lib/gatekeeper.js.map +1 -1
  30. package/dist/lib/git-hooks.js +41 -16
  31. package/dist/lib/git-hooks.js.map +1 -1
  32. package/dist/lib/ide-extension.d.ts +38 -0
  33. package/dist/lib/ide-extension.js +61 -0
  34. package/dist/lib/ide-extension.js.map +1 -0
  35. package/dist/lib/mcp.d.ts +36 -0
  36. package/dist/lib/mcp.js +653 -0
  37. package/dist/lib/mcp.js.map +1 -0
  38. package/dist/lib/project-metadata.d.ts +1 -1
  39. package/dist/lib/project-metadata.js +3 -2
  40. package/dist/lib/project-metadata.js.map +1 -1
  41. package/dist/lib/status.d.ts +1 -1
  42. package/dist/lib/status.js +4 -4
  43. package/dist/lib/status.js.map +1 -1
  44. package/dist/lib/swarm-orchestrator.d.ts +31 -0
  45. package/dist/lib/swarm-orchestrator.js +134 -0
  46. package/dist/lib/swarm-orchestrator.js.map +1 -0
  47. package/dist/lib/update.js +7 -3
  48. package/dist/lib/update.js.map +1 -1
  49. package/dist/lib/webview-studio.d.ts +8 -0
  50. package/dist/lib/webview-studio.js +463 -0
  51. package/dist/lib/webview-studio.js.map +1 -0
  52. package/dist/lib/workflow-state.js +24 -8
  53. package/dist/lib/workflow-state.js.map +1 -1
  54. package/package.json +1 -1
  55. package/template/.agents/skills/adopt/SKILL.md +58 -5
  56. package/template/.agents/skills/doctor/SKILL.md +23 -16
  57. package/template/.agents/skills/implement/SKILL.md +2 -2
  58. package/template/.agents/skills/onboard/SKILL.md +18 -17
  59. package/template/.agents/skills/rollback/SKILL.md +1 -1
  60. package/template/.claude/skills/00-explore/SKILL.md +2 -2
  61. package/template/.claude/skills/10-define/SKILL.md +2 -2
  62. package/template/.claude/skills/20-spec/SKILL.md +1 -2
  63. package/template/.claude/skills/30-plan/SKILL.md +1 -2
  64. package/template/.claude/skills/40-execute/SKILL.md +2 -2
  65. package/template/.claude/skills/50-verify/SKILL.md +2 -2
  66. package/template/.claude/skills/60-report/SKILL.md +2 -2
  67. package/template/.claude/skills/70-deliver/SKILL.md +2 -2
  68. package/template/.claude/skills/adopt/SKILL.md +191 -75
  69. package/template/.claude/skills/audit/SKILL.md +267 -133
  70. package/template/.claude/skills/autopilot/SKILL.md +226 -167
  71. package/template/.claude/skills/brainstorm/SKILL.md +62 -0
  72. package/template/.claude/skills/brief/SKILL.md +93 -92
  73. package/template/.claude/skills/check/SKILL.md +96 -76
  74. package/template/.claude/skills/ci/SKILL.md +140 -61
  75. package/template/.claude/skills/complete/SKILL.md +156 -101
  76. package/template/.claude/skills/convert-any-to-md/SKILL.md +2 -2
  77. package/template/.claude/skills/convert-any-to-md/references/setup.md +29 -0
  78. package/template/.claude/skills/convert-any-to-md/scripts/convert_any_to_md.py +487 -0
  79. package/template/.claude/skills/convert-any-to-md/scripts/requirements.txt +3 -0
  80. package/template/.claude/skills/debug/SKILL.md +124 -49
  81. package/template/.claude/skills/devflow/SKILL.md +9 -3
  82. package/template/.claude/skills/discovery/SKILL.md +150 -129
  83. package/template/.claude/skills/doctor/SKILL.md +195 -72
  84. package/template/.claude/skills/feature/SKILL.md +195 -151
  85. package/template/.claude/skills/fix/SKILL.md +41 -90
  86. package/template/.claude/skills/idea/SKILL.md +2 -2
  87. package/template/.claude/skills/implement/SKILL.md +189 -46
  88. package/template/.claude/skills/onboard/SKILL.md +216 -85
  89. package/template/.claude/skills/overview/SKILL.md +44 -29
  90. package/template/.claude/skills/prototype/SKILL.md +82 -27
  91. package/template/.claude/skills/release/SKILL.md +119 -130
  92. package/template/.claude/skills/report-html/SKILL.md +2 -2
  93. package/template/.claude/skills/rollback/SKILL.md +123 -77
  94. package/template/.claude/skills/status/SKILL.md +109 -0
  95. package/template/.claude/skills/test/SKILL.md +2 -2
  96. package/template/.claude/skills/tests/SKILL.md +126 -0
  97. package/template/.claude/skills/try/SKILL.md +77 -65
  98. package/template/AGENTS.md +2 -1
  99. package/template/devflow/build-plan.md +50 -20
  100. package/template/devflow/history/features/README.md +5 -0
  101. package/template/devflow/history/fixes/README.md +5 -0
  102. package/template/devflow/history/rollbacks/README.md +5 -0
  103. package/template/devflow/project-plan.md +70 -18
  104. package/template/devflow/reference/studio.html +504 -0
@@ -1,108 +1,120 @@
1
1
  ---
2
2
  name: try
3
- description: "[Devflow] Generate human manual QA review walkthrough guide (where to go, what to click, what to expect)."
3
+ description: "[devflow][B] Generate a human manual try guide for the current or most recently completed Blueprint feature, fix, or rollback. Reads the spec, project commands, and available app context, then tells the user exactly what to start, where to go, what to click or run, what to expect, and what would count as wrong. Read-only. Use when the user runs /try, invokes $try, asks how to test manually, asks where to click, asks how to see the change, or wants a manual review path after /implement, /autopilot, /check, or /complete."
4
4
  ---
5
5
 
6
- # try - Manual QA & Review Walkthrough Guide
6
+ # try - manual review guide
7
7
 
8
8
  Where this sits in the workflow:
9
9
 
10
- ```text
11
- 40-execute or 50-verify or 60-report -> [try] -> human review & verification
12
- (work implemented / verified) (manual (where to go,
13
- steps) what to click)
14
- ```
10
+ /implement or /complete -> [try] -> human review
11
+ (work exists) (manual (where to go,
12
+ path) what to click)
15
13
 
16
- `50-verify` proves behavior from automated QA and test runs. `try` gives the user and testers an actionable, step-by-step manual walkthrough: start this command, open this route, click these controls, expect this result, and watch for these failure signs.
14
+ `/check` proves behavior from the agent side. `/try` gives the user a practical
15
+ manual walkthrough: start this command, open this route, click these controls,
16
+ expect this result, and watch for these failure signs.
17
17
 
18
- It is always **read-only 100%**. It does not edit files, install dependencies, commit, merge, push, or run destructive commands.
18
+ It is always read-only. It does not edit files, install dependencies, commit,
19
+ merge, push, or run destructive commands.
19
20
 
20
21
  ## Input
21
22
 
22
23
  Optional scope:
23
24
 
24
- - **no argument**: use the active run in `devflow/context/current-stage.md` (or the latest completed run under `devflow/runs/`)
25
- - `latest`: use the most recent completed run in `devflow/runs/`
26
- - a run ID or path: e.g. `try RUN-002-add-onboard-adopt-doctor-skills`
27
- - a specific route, endpoint, or CLI command: focus the walkthrough on that surface
25
+ - no argument: use the active feature, fix, or rollback in
26
+ `devflow/context/current-feature.md`
27
+ - `latest`: use the most recent archive under `devflow/history/features/`,
28
+ `devflow/history/fixes/`, or `devflow/history/rollbacks/`
29
+ - a step name or number: focus the guide on that current-feature step
30
+ - a path, route, or command: include it as the main thing to try
28
31
 
29
- If there is no active run and no run history, ask what change or feature the user wants to test manually.
32
+ If there is no active feature and no useful archive, ask what change the user
33
+ wants to try instead of guessing.
30
34
 
31
- ## Step 1 - Find The Work To Explain
35
+ ## Step 1 - find the work to explain
32
36
 
33
37
  Read:
34
38
 
35
- - `AGENTS.md` (Commands section)
36
- - `devflow/context/current-stage.md`
39
+ - `AGENTS.md`
40
+ - `devflow/context/current-feature.md`
37
41
  - `devflow/context/project-overview.md`
38
42
  - `devflow/context/coding-standards.md`
39
- - Active run artifacts: `20-spec.md`, `30-plan.md`, `40-execute.md`, `50-verify.md` (or archived run artifacts)
40
- - Current git branch and status
43
+ - `devflow/build-plan.md`
44
+ - latest files under `devflow/history/features/`,
45
+ `devflow/history/fixes/`, and `devflow/history/rollbacks/`, if the current
46
+ feature is reset
47
+ - git branch and working tree status
41
48
 
42
- Do not dump the full spec. Extract only the concrete routes, screens, CLI commands, API endpoints, test data, and expected outcomes that a human needs to verify the feature.
49
+ Prefer the active spec. If `current-feature.md` is the reset stub, use the most
50
+ recent archived feature, fix, or rollback by filename or modification time and
51
+ say that is what you used.
43
52
 
44
- ## Step 2 - Identify How To Run The App
53
+ Do not dump the spec. Pull out the routes, commands, UI surfaces, CLI commands,
54
+ API endpoints, data states, and done-whens that matter for a human trying it.
55
+ For a rollback, lead with the path that proves the removed behavior is gone, then
56
+ include one unaffected regression path from the rollback spec.
45
57
 
46
- Check the Commands section in `AGENTS.md`. Adapt to the project type:
58
+ ## Step 2 - identify how to run the app
47
59
 
48
- - **Web app**: dev server command (e.g. `npm run dev`), local URL (e.g. `http://localhost:3000`), and specific route/screen.
49
- - **Server / API**: start command, base URL, endpoint, HTTP method, payload, and expected response shape.
50
- - **CLI**: exact CLI command, flags, arguments, and expected terminal output.
51
- - **Library / Module**: sample usage snippet, REPL call, or interactive test command.
52
- - **Fullstack / Microservices**: minimal combined startup commands (e.g. backend + frontend).
60
+ Use the Commands section in `AGENTS.md`. Match the project type:
53
61
 
54
- If a startup command is missing or unclear in `AGENTS.md`, report that as a configuration gap rather than guessing.
62
+ - **Web app** - dev server command, URL, and the route or screen to open.
63
+ - **Server/API** - server command, base URL, endpoint, method, and expected
64
+ response shape.
65
+ - **CLI** - exact command(s), arguments, and expected output.
66
+ - **Library** - example command, test fixture, REPL snippet, or sample call.
67
+ - **Hybrid app** - list the smallest set of commands needed, such as backend plus
68
+ web dev server.
55
69
 
56
- ## Step 3 - Produce The Manual Walkthrough Guide
70
+ If the app may already be running, say how to reuse it. If a command is missing
71
+ from `AGENTS.md`, report that as a gap rather than inventing certainty.
57
72
 
58
- Format the guide with these 5 standard sections:
73
+ ## Step 3 - write the manual guide
59
74
 
60
- 1. **1. Start** - exact command(s) to start the system and where to run them.
61
- 2. **2. Open** - URL(s), screens, tabs, API endpoints, or terminal locations.
62
- 3. **3. Do** - specific clicks, form inputs, toggles, selections, or arguments.
63
- 4. **4. Expect** - expected visible UI change, response payload, state change, output, or absence of errors.
64
- 5. **5. Watch For** - common failure symptoms, console errors, network 4xx/5xx errors, stale state, layout breakage, or safety warnings.
75
+ Produce a short guide with these sections:
65
76
 
66
- ### Example Walkthrough Style:
77
+ 1. **Start** - commands to run and where to run them.
78
+ 2. **Open** - URLs, screens, tabs, API endpoints, or CLI commands.
79
+ 3. **Do** - clicks, inputs, selections, or command arguments.
80
+ 4. **Expect** - visible result, output, response, state change, file, or lack of
81
+ error.
82
+ 5. **Watch For** - common wrong outcomes, console or network errors, stale data,
83
+ missing fields, bad empty states, layout issues, or safety warnings.
67
84
 
68
- ```markdown
69
- ### 1. Start
70
- Run `npm run dev` in the project root.
85
+ Keep it concrete. Prefer:
71
86
 
72
- ### 2. Open
73
- Navigate to `http://localhost:3000/dashboard/reports`.
87
+ Open http://127.0.0.1:7788/api/snapshot
88
+ Expect a JSON object with `generated_at`, `services`, `projects`, and
89
+ `conflicts`.
74
90
 
75
- ### 3. Do
76
- 1. Click the **"Export Report"** button in the top right.
77
- 2. Select **"Format: HTML"** from the dropdown.
78
- 3. Click **"Download"**.
91
+ Avoid:
79
92
 
80
- ### 4. Expect
81
- - A new file `report.html` is downloaded.
82
- - The UI displays a green success toast: *"Report exported successfully"*.
83
- - The downloaded HTML file opens in the browser with full styling and charts.
93
+ Check that the snapshot works.
84
94
 
85
- ### 5. Watch For
86
- - Spinner hanging indefinitely without downloading.
87
- - Console error related to `Blob` or `URL.createObjectURL`.
88
- - Broken styling or unrendered Mermaid charts in the exported HTML.
89
- ```
95
+ ## Step 4 - include confidence and gaps
90
96
 
91
- ## Step 4 - Include Confidence, Best Signal & Gaps
97
+ End with:
92
98
 
93
- Conclude with:
99
+ - **Best signal** - the one thing the user should try first.
100
+ - **Optional deeper checks** - only if useful.
101
+ - **Gaps** - anything the guide cannot know from the docs, such as missing route
102
+ names, seed data, credentials, or external services.
94
103
 
95
- - **Best Signal**: the single most critical action the user should try first to confirm functionality.
96
- - **Edge Cases & Error Flows**: optional secondary checks (e.g. invalid input, empty state, network failure).
97
- - **Gaps & Assumptions**: anything the guide cannot know for certain (e.g. seed credentials, third-party API keys, required database fixtures).
104
+ If the feature is not user-visible, say so and provide the closest manual signal,
105
+ such as an API response, CLI output, log line, or unit test command.
98
106
 
99
107
  ## Rules
100
108
 
101
- - **Strictly Read-Only**: Never edit code, commit, push, install packages, or mutate repository state.
102
- - **Do Not Run Automatically**: Do not launch the server or run commands unless the user explicitly instructs you to do so in the chat.
103
- - **Be Concrete & Specific**: Provide exact URLs, button labels, and payloads.
104
- - **Acknowledge Uncertainty**: If a route or behavior is not specified in the spec, state it clearly as an assumption.
109
+ - Read-only only. Do not edit, commit, merge, push, install, or delete.
110
+ - Do not run the app unless the user explicitly asks you to try it for them.
111
+ - Do not pretend a path is known when the spec does not say it. Give the best
112
+ likely path and label uncertainty.
113
+ - Keep the guide short enough to follow while the app is open.
114
+ - Match the project's commands from `AGENTS.md`.
105
115
 
106
- ## Output Formatting
116
+ ## Formatting
107
117
 
108
- Follow the project conventions in `devflow/context/ai-interaction.md`: concise, scannable markdown with numbered steps and clear bold headers.
118
+ Format the output to match the project's conventions in
119
+ `devflow/context/ai-interaction.md`: concise, scannable markdown, with numbered
120
+ steps for the manual path and short bullets for warnings.
@@ -25,8 +25,9 @@ The workflow and skills are exposed through tool-specific adapters:
25
25
 
26
26
  - **OpenAI Codex, Google Antigravity & GitHub Copilot**: `.agents/skills/<skill>/SKILL.md`
27
27
  - **Claude Code**: `.claude/skills/<skill>/SKILL.md`
28
+ - **OpenCode**: `AGENTS.md` plus the compatible `.agents/skills/` or `.claude/skills/` tree already installed for the selected tools
28
29
 
29
- Unused adapter families can be removed. Codex, Antigravity, and GitHub Copilot share `.agents/` and `AGENTS.md`. Claude Code projects keep `.claude/` and `AGENTS.md` (via `CLAUDE.md`).
30
+ Unused adapter families can be removed. Codex, Antigravity, GitHub Copilot, and OpenCode share `.agents/` and `AGENTS.md`. OpenCode can also reuse `.claude/` when Claude Code is selected. Claude Code projects keep `.claude/` and `AGENTS.md` (via `CLAUDE.md`). Do not duplicate the same DevFlow skills under `.opencode/skills/`; OpenCode already discovers the compatible trees.
30
31
 
31
32
  ### Universal Invocation & Agent Directives:
32
33
 
@@ -1,40 +1,70 @@
1
1
  # 📋 Build Plan (User-Owned Feature Queue)
2
2
 
3
3
  > **Document Type**: Build Plan (User-Owned)
4
- > **Purpose**: Master sequential feature build queue with dependencies and sizing. Inspected by `/brief` and consumed by `/feature`.
4
+ > **Purpose**: รายการคิวฟีเจอร์การพัฒนาปรับปรุงระบบตามลำดับ พร้อมการประเมินขนาด (Sizing) และความสัมพันธ์ (Dependencies) สำหรับ `/brief` และ `/feature`
5
5
 
6
6
  ---
7
7
 
8
- ## 🚀 Phase 1: Core Foundation & MVP
8
+ ## 🚀 Phase 1: Hard Quality Gates & Pre-commit Enforcement
9
9
 
10
- - [ ] **1. Project Baseline & Context Setup** `[Size: S]`
10
+ - [x] **1. Automated Quality Gatekeeper & Pre-commit Hook Integration** `[Size: S]`
11
11
  - *Dependencies*: None
12
- - *Scope*: Configure project scaffolding, coding standards, and initial workspace verification.
13
- - [ ] **2. Core Data Models & Store** `[Size: M]`
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]`
14
19
  - *Dependencies*: Feature 1
15
- - *Scope*: Implement foundational data schemas, types, and persistence layer.
16
- - [ ] **3. Primary User Interface & Navigation** `[Size: M]`
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]`
17
27
  - *Dependencies*: Feature 2
18
- - *Scope*: Build core views, interactive components, and responsive layout.
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%
19
37
 
20
38
  ---
21
39
 
22
- ## Phase 2: Feature Expansion & Integrations
40
+ ## 🔄 Phase 5: State Drift Detection & Self-Healing
23
41
 
24
- - [ ] **4. Automated Quality Gates & CI Pipeline** `[Size: M]`
25
- - *Dependencies*: Phase 1
26
- - *Scope*: Wire up `nexus-devflow check-gate`, GitHub Actions workflows, and pre-commit hooks.
27
- - [ ] **5. External Services & Tooling** `[Size: L]`
42
+ - [x] **5. Git Diff Drift Reconciler & Self-Healing State Engine** `[Size: M]`
28
43
  - *Dependencies*: Feature 4
29
- - *Scope*: Integrate third-party APIs, MCP servers, or background worker jobs.
44
+ - *Scope*: ตรวจจับความไม่สอดคล้องระหว่าง `git diff` กับรายการไฟล์ใน Living Spec พร้อมระบบแจ้งเตือนและ Auto-Reconcile ซิงค์สถานะอัตโนมัติ
30
45
 
31
46
  ---
32
47
 
33
- ## 📦 Phase 3: Hardening & Production Release
48
+ ## 🖥️ Phase 6: IDE Native Extension & Visual Studio
34
49
 
35
- - [ ] **6. Security & Performance Audit** `[Size: M]`
36
- - *Dependencies*: Phase 2
37
- - *Scope*: Run `/audit`, resolve P0/P1 blockers, and optimize asset bundle sizes.
38
- - [ ] **7. Production Deployment & Cloud Smoke Tests** `[Size: S]`
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]`
39
60
  - *Dependencies*: Feature 6
40
- - *Scope*: Configure Render / Vercel deployment and run end-to-end smoke tests.
61
+ - *Scope*: พัฒนาระบบกระจายงานแบบคู่ขนานให้ Subagents (Coder, QA Verifier, Security Auditor) และระบบ Indexing Local Codebase Graph เพื่อดึงบริบทที่แม่นยำสูงสุด
62
+
63
+ ---
64
+
65
+ ## 🔄 Phase 8: Upstream Synchronization & Multi-Adapter Expansion
66
+
67
+ - [x] **8. Sync Upstream v0.13.0 (Adopt Visibility, OpenCode & Multi-Adapter Selection)** `[Size: M]`
68
+ - *Dependencies*: None
69
+ - *Scope*: ผสานความสามารถ Adopt Workflow Visibility (Commit vs Local-only), การรองรับ OpenCode และ Multi-Adapter Checkbox Prompt ใน CLI พร้อมอัปเดต Doctor checks และซิงก์ Baseline SHA เป็น v0.13.0 (`0b65166`)
70
+
@@ -0,0 +1,5 @@
1
+ # Completed Features Archive
2
+
3
+ Finished feature specs, enhancements, architecture migrations, and tooling runs are archived here as `xxx-name.md` (for Fast-Track single living specs) or `xxx-name/` (for Deep-Track stage runs).
4
+
5
+ Together they form the project's permanent feature build history, recording what was built, why, and how it was verified.
@@ -0,0 +1,5 @@
1
+ # Completed Fixes Archive
2
+
3
+ Finished bug fixes, hotfixes, regressions, security patches, and performance optimizations are archived here as `xxx-name.md` (for Fast-Track single living specs) or `xxx-name/` (for Deep-Track stage runs).
4
+
5
+ Together they form the project's permanent bug resolution history, recording root causes, TDD test decisions, and empirical proof.
@@ -0,0 +1,5 @@
1
+ # Completed Rollbacks Archive
2
+
3
+ Safely reversed features and rollback execution records are archived here as `YYYY-MM-DD-xxx-name.md` (or `YYYY-MM-DD-xxx-name/`).
4
+
5
+ Together they form the project's safe feature reversal ledger, documenting target commits, dependency review, and post-reversal verification.
@@ -1,27 +1,79 @@
1
1
  # 🗺️ Project Plan (User-Owned Architectural Vision)
2
2
 
3
3
  > **Document Type**: Project Plan (User-Owned)
4
- > **Purpose**: Single source of truth for high-level product vision, architecture, constraints, and non-goals. Distilled into `devflow/context/project-overview.md` by `/overview`.
4
+ > **Purpose**: แหล่งความจริงหลัก (Single Source of Truth) สำหรับวิสัยทัศน์ผลิตภัณฑ์ สถาปัตยกรรมระบบ มาตรการความปลอดภัย กฎเกณฑ์การส่งมอบ และแผนงานพัฒนาต่อยอด ถูกนำไปประมวลผลเป็น `devflow/context/project-overview.md` ผ่านคำสั่ง `/overview`
5
5
 
6
6
  ---
7
7
 
8
8
  ## 1. Product Vision & Problem Statement
9
- - **What this is**: A description of the project and the core problem it solves.
10
- - **Target Audience**: Who will use this system and why.
11
- - **Core Value Proposition**: Key differentiator and value delivered.
9
+
10
+ - **What this is**: **Nexus-DevFlow** คือระบบ **Agentic Workflow Layer & Pair Programming Operating System** ที่เชื่อมต่อระหว่างนักพัฒนา (Human Developer) และปัญญาประดิษฐ์ (AI Coding Agents เช่น Google Antigravity, Claude Code, OpenAI Codex, Cursor, GitHub Copilot) เพื่อยกระดับการพัฒนาซอฟต์แวร์สู่มาตรฐานระดับวิศวกรรมสากล
11
+ - **Target Audience**:
12
+ - นักพัฒนาเดี่ยว (Solo Developers) ที่ต้องการความเร็วสูงแต่ยังคงมีระเบียบวินัยและหลักฐานการทดสอบที่ชัดเจน
13
+ - ทีมพัฒนาและองค์กร (Engineering Teams & Tech Leads) ที่ต้องการมาตรฐานการส่งมอบโค้ดที่ตรวจสอบได้ (Traceable), ตรวจสอบย้อนหลังได้ (Auditable) และไม่มีปัญหาโค้ดตีกัน (Zero Merge Conflict)
14
+ - **Core Value Proposition**:
15
+ - **The 3-Pillars Model**: จัดระเบียบบริบทเป็น 3 เสาหลักอย่างชัดเจน — *🔮 Future (Inbox `ideas.md`)* ➔ *⚡ Present (Living Context `devflow/context/`)* ➔ *📦 Past (Categorized History `devflow/history/`)*
16
+ - **Dual-Track Delivery Model**: เลือกความเร็วให้เหมาะกับขนาดงาน — *Fast-Track (4 ขั้นตอน)* สำหรับ 85% ของงานประจำวัน และ *Deep-Track (8 ขั้นตอน)* สำหรับ 15% ของงานสถาปัตยกรรม
17
+ - **Hard Quality Gates**: ระบบปฏิเสธการปล่อยงานเมื่อไม่ผ่านเกณฑ์การทดสอบ หรือมีข้อบกพร่องความปลอดภัยค้างอยู่
18
+
19
+ ---
12
20
 
13
21
  ## 2. Architecture & Tech Stack
14
- - **Runtime / Framework**: Primary language, framework, and runtime (e.g. Node.js, Next.js, FastAPI, Go).
15
- - **Storage / Database**: Data persistence layers, caching, and state storage.
16
- - **Key Modules / Services**: High-level module breakdown and directory responsibilities.
17
- - **Integration Points**: External APIs, MCP servers, or third-party services.
18
-
19
- ## 3. Constraints & Non-Goals
20
- - **Non-Goals**: What this project explicitly will NOT do in the current scope.
21
- - **Technical Constraints**: Performance targets, security standards, offline requirements, or backward compatibility rules.
22
- - **Delivery Rules**: Dual-Track workflow discipline (Fast-Track for standard features, Deep-Track for epics).
23
-
24
- ## 4. Key Milestones & Roadmap
25
- - **Milestone 1**: Core Foundation & MVP
26
- - **Milestone 2**: Feature Expansion & Integrations
27
- - **Milestone 3**: Enterprise Hardening & Release Polish
22
+
23
+ - **Runtime & Language**: Node.js (>=18.17.0), TypeScript (Strict ESM-First `"type": "module"`)
24
+ - **Persistence & State**:
25
+ - Markdown-First Architecture พร้อม Type-Safe Schema Validation (Zod)
26
+ - Git-Backed History Archive (`devflow/history/features/`, `devflow/history/fixes/`, `devflow/history/rollbacks/`, `HISTORY.md`)
27
+ - Local State Management & Backup Snapshots (`.nexus/`)
28
+ - **Key Modules & Subsystems**:
29
+ - **Distribution CLI & Package**: `packages/create-nexus-devflow` (Scaffolding, Doctor, Status, Update, Gatekeeper)
30
+ - **Interactive Web Dashboard**: Embedded Local Webview Dashboard (`/dashboard`) พร้อม Dual-Track Visualizer และ Real-time Snapshot
31
+ - **Gatekeeper Engine**: ระบบตรวจสอบคุณภาพโค้ดและ Finding Blockers (`nexus-devflow check-gate`)
32
+ - **Model Context Protocol (MCP) Server**: JSON-RPC Hub สำหรับเชื่อมต่อ AI Agents แบบ Type-Safe
33
+ - **Dynamic Context Slicer**: ระบบจัดสรรและตัดตอนบริบทแบบ Just-In-Time (JIT) เพื่อประหยัด Token
34
+ - **Integration Points & AI Adapters**:
35
+ - Google Antigravity & OpenAI Codex (`.agents/skills/`)
36
+ - Claude Code (`.claude/skills/`)
37
+ - Model Context Protocol (`@modelcontextprotocol/sdk`)
38
+
39
+ ---
40
+
41
+ ## 3. Constraints, Defensive Guardrails & Non-Goals
42
+
43
+ - **5 เสาหลักมาตรการป้องกันความเสี่ยง (Hard Defensive Guardrails)**:
44
+ 1. *Hard Quality Gates & Git Hooks*: บล็อกการ Commit ทันทีหาก Spec ไม่ครบ หรือมี `P0/P1 Finding` ค้างอยู่ในสถานะ `open`
45
+ 2. *Model Context Protocol (MCP)*: บังคับใช้ Typed Function Calling เพื่อป้องกันความเสียหายจากการ Parse ข้อความ Markdown
46
+ 3. *Branch-Scoped Context Isolation*: แยกโฟลเดอร์ State ตาม Git Branch ใน `.nexus/branches/<name>/` ป้องกัน Merge Conflict เมื่อทำงานเป็นทีม
47
+ 4. *Dynamic Context Slicing*: ส่งเฉพาะบริบทที่จำเป็นต่อ Stage นั้นๆ เข้าสู่ AI ลด Token Bloat 60–70%
48
+ 5. *State Drift Reconciler*: ตรวจจับความไม่สอดคล้องระหว่าง Git Diffs กับ Spec Tasks และเสนอทางเลือก Auto-Sync ทันที
49
+ - **Non-Goals**:
50
+ - ไม่ใช่ Proprietary IDE หรือ Closed Cloud SaaS — DevFlow เป็น Transparent Git-Native Layer ที่ฝังตัวในโปรเจกต์ใดก็ได้
51
+ - ไม่ใช่ Auto-GPT ที่ปล่อยให้ AI เขียนโค้ดตามใจโดยไม่มี Human-in-the-Loop Review Gates
52
+ - **Delivery Rules**:
53
+ - เคร่งครัดใน TDD Mandate: โค้ดที่เพิ่มหรือแก้ไขต้องมี Automated Unit Tests เสมอ
54
+ - ห้ามข้ามขั้นตอน Verification: ต้องมีหลักฐานเชิงประจักษ์ (Empirical Proof) ใน `/check` ก่อนอนุมัติ `/complete`
55
+
56
+ ---
57
+
58
+ ## 4. Key Milestones & Evolution Roadmap
59
+
60
+ - **🚀 Milestone 1: Hard Quality Gates & Pre-commit Enforcement**
61
+ - ติดตั้ง `check-gate` เข้าสู่ Git Pre-commit Hooks และ CI Pipeline
62
+ - บล็อกการส่งมอบเมื่อมี Unchecked Tasks หรือ P0/P1 Blockers
63
+ - **⚡ Milestone 2: DevFlow MCP Server Hub & Type-Safe Schemas (`IDEA-004`)**
64
+ - พัฒนา MCP Server ผ่าน JSON-RPC สำหรับ Antigravity, Claude, Codex, Cursor
65
+ - ใช้ Zod Schema ควบคุมการอัปเดต Task, Findings, และ Stage State 100% Type-safe
66
+ - **🌿 Milestone 3: Branch-Scoped Context Isolation & Dynamic Router**
67
+ - รองรับการเก็บ State แยกตาม Git Branch ป้องกัน Merge Conflict ในทีม
68
+ - ระบบ Auto-Cleanup ลบ Branch State หลังจบ `/complete` และย้ายเข้าสู่ History
69
+ - **✂️ Milestone 4: JIT Context Slicing & Token Budgeting Engine**
70
+ - ปรับระบบส่ง Context ให้ AI ตาม Stage แบบไดนามิก ประหยัด Token 70%
71
+ - ควบคุมขนาด `project-overview.md` ไม่ให้เกินงบประมาณ Token
72
+ - **🔄 Milestone 5: Git Diff Reconciler & Self-Healing State**
73
+ - ตรวจจับความคลาดเคลื่อนระหว่างการแก้โค้ดของมนุษย์กับ Living Spec
74
+ - ระบบ Smart Reconciliation แจ้งเตือนและซิงค์สเปกอัตโนมัติ
75
+ - **🖥️ Milestone 6: IDE Native Extension & Visual Kanban Studio**
76
+ - ส่วนขยายบน VS Code / Antigravity Webview สำหรับควบคุม DevFlow ครบวงจรใน IDE
77
+ - **🤖 Milestone 7: Multi-Agent Swarm Orchestration & Semantic Code RAG**
78
+ - ระบบประสานงาน Subagents หลายตัว (Coder, QA, Auditor) ทำงานขนานกัน
79
+ - Local Dependency Graph & Semantic Code Search เพื่อดึงบริบทที่แม่นยำสูงสุด