@jakkrichm/create-nexus-devflow 2.17.2 → 2.17.4

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.
@@ -11,14 +11,22 @@ This project uses **Nexus-DevFlow**, an agentic workflow layer supporting **The
11
11
 
12
12
  To start a new project, scaffold the application first in an empty folder, then run `npx nexus-devflow` (or `npm create @jakkrichm/nexus-devflow`) to overlay DevFlow onto your codebase.
13
13
 
14
- ## Read these for full context
14
+ ## Load context for the task
15
15
 
16
- - `devflow/config.json` - deterministic project workflow settings
17
- - `devflow/context/project-overview.md` - the project's source of truth
18
- - `devflow/context/coding-standards.md` - engineering conventions & rules to follow
19
- - `devflow/context/ai-interaction.md` - how to interact with the user on this project
20
- - `devflow/context/glossary.md` - domain terms & architecture definitions
21
- - `devflow/context/{xxx-slug}/` - active task living spec, stage, findings ledger, and independent review receipt
16
+ Reuse instructions already loaded. Read relevant sections, rather than every document before every edit:
17
+
18
+ - `devflow/config.json` for workflow policy and quality-gate decisions.
19
+ - `devflow/context/project-overview.md` for project purpose, architecture, and cross-module boundaries.
20
+ - `devflow/context/coding-standards.md` for conventions affecting changed code.
21
+ - `devflow/context/ai-interaction.md` for workflow interaction and review cadence.
22
+ - `devflow/context/glossary.md` when domain terminology matters.
23
+ - `devflow/context/{xxx-slug}/` for the selected run's spec, stage, findings, and review receipt.
24
+
25
+ ## Task intent and authorization
26
+
27
+ Explicit user scope takes precedence over skill guidance, within runtime permissions and safety constraints. A request to draft a spec ends at the spec; a request to implement and verify continues through those authorized steps. A skill transition is not a new approval requirement. Ask when a material decision or authorization is missing, reuse existing authorization, and identify the exact instruction if it requires a pause. Preserve separate authorization for commit, merge, push, and deployment.
28
+
29
+ Use focused checks during edits, and run the documented required gates before handoff. Repeat passing checks only after relevant changes, failures, or unresolved concerns. Apply TDD to logic and behavior changes; documentation-only edits need appropriate structural or review evidence.
22
30
 
23
31
  ## Project configuration
24
32
 
@@ -50,37 +58,7 @@ Unused adapter families can be removed. Codex, Antigravity, GitHub Copilot, and
50
58
  3. **Google Antigravity & Claude Code**: Native skill engines automatically discover and surface `.agents/skills/` and `.claude/skills/`.
51
59
  4. **State-Aware Inspection**: When unsure what to do next, invoke `devflow` to automatically inspect active task directories in `devflow/context/{xxx-slug}/`, `devflow/discoveries/`, and `devflow/ideas.md`.
52
60
  5. **Default Artifact & Communication Language (Thai)**: All generated markdown stage artifacts (`spec.md`, `discovery.md`, etc.) and user communication MUST default to **Thai (`th`)**, while code, technical terms, file paths, and identifiers remain in English.
53
- 6. **Universal Contextual Help & Playbook Protocol (`help`, `--help`, `-h`, `?`)**:
54
- Whenever any skill or command is invoked with a help keyword or flag (e.g., `/bughunter help`, `bughunter --help`, `/archify -h`, `/check ?`, `/feature help`):
55
- - **Execution Safety Gate**: DO NOT execute the skill's primary or mutating actions (do not launch scans/attacks, do not modify source code, and do not initialize new task runs).
56
- - **Dynamic Workspace Inspection**: Read the target skill definition (`.agents/skills/<skill>/SKILL.md`, `.claude/skills/<skill>/SKILL.md`, and any vendored resources such as `devflow/.vendor/<skill>/`), then scan the active workspace (`devflow/context/project-overview.md`, `package.json`, tech stack, active tasks, endpoints, and file hierarchy).
57
- - **Persistent HTML Playbook & Token-Saving Cache**:
58
- - **Output Location & Light Theme Mandate**: Compile and persist the tailored playbook as a standalone, styled HTML report at `devflow/docs/playbooks/{skill}.html` adhering to the **Paper/Ink Light Theme Standard** (`data-theme="light"`, teal accent, ruler corner, terminal mockup UI, and diagram slot per `devflow/docs/playbooks/template.html`). Never generate dark-mode-first documentation.
59
- - **First Run**: Render the comprehensive 5W1H playbook in chat and write the complete HTML report to `devflow/docs/playbooks/{skill}.html`.
60
- - **Subsequent Invocations (Delta Updates & Zero Token Bloat)**: If `devflow/docs/playbooks/{skill}.html` already exists:
61
- - Inspect the existing HTML file and compute the diff/delta against the current repository state (e.g., new file paths, modified endpoints, or newly installed vendor assets).
62
- - DO NOT repeat unchanged boilerplate or full static content in chat.
63
- - Provide a concise **Delta Summary** in chat (highlighting what changed, new recommendations, or newly available commands).
64
- - In-place update `devflow/docs/playbooks/{skill}.html` with the fresh timestamp and state.
65
- - Provide a direct clickable link to [devflow/docs/playbooks/{skill}.html](file:///d:/devtools/nexus-devflow/devflow/docs/playbooks/{skill}.html) for browser viewing.
66
- - **Render the User-Friendly 5W1H Playbook**: Emit an easy-to-read, practical guide organized around the **5W 1H Framework** (rendered on initial run or updated in the HTML playbook):
67
- 1. **What (Concept & Capabilities)**: Clear, jargon-free summary of what this skill does, its core concept, and its bundled tools/capabilities.
68
- 2. **Why (Problems Solved & Key Benefits)**: The problems it solves, key advantages, and why you should use it instead of ad-hoc manual work.
69
- 3. **Who (Target Roles & Personas)**: Target audience or engineering role (e.g., Feature Developer, Senior QA, Security Auditor, Solo Dev, or Tech Lead).
70
- 4. **Where (Boundaries & Artifact Locations)**: Target workspace boundaries, affected directories, and generated artifact locations (e.g., `devflow/context/`, `devflow/discoveries/`, `findings.md`).
71
- 5. **When (Timing & Prerequisites/Next Steps)**:
72
- - **Timing & Triggers**: Practical situations or milestones when this skill should be invoked.
73
- - **Run Before (Prerequisites)**: What to check, prepare, or run beforehand to get the best result.
74
- - **Run After (Next Steps)**: What DevFlow command or lifecycle stage should follow next (e.g., handing off to `/fix`, `/feature`, or `/complete`).
75
- 6. **How (Execution Lifecycle & Real Command Examples)**:
76
- - **How It Works (Lifecycle)**: Simple, plain-language breakdown of the execution steps or phases.
77
- - **Available Commands & Options**: Common sub-commands, arguments, and flags with brief explanations.
78
- - **Safety, Guardrails & Precautions**: Operational boundaries, credential hygiene, read-only vs. mutating constraints, and explicit special safety constraints / precautions.
79
- 7. **Diagram Slot & Architecture Flow**:
80
- - **Real Diagram Mandate**: MUST embed a real, verified vector SVG or interactive diagram reflecting actual skill lifecycle, state transitions, or threat models in Light Theme (`data-theme="light"`).
81
- - **Thai Language & Legible Typography**: Architecture and flow diagrams must describe workflows and nodes in Thai language while preserving technical identifiers, paths, and commands in English. Typography must be sufficiently sized and legible for Thai script (Headers 13–14px, box content/descriptions 11–12px, line spacing 18–22px) to prevent tone marks and vowels from clipping or overlapping.
82
- - **Strictly No Placeholders**: NEVER output empty placeholder cards, generic instruction text, or phrases like *"when invoking archify..."*. Every playbook must ship with a real visual architectural diagram.
83
- - Always conclude the response with: `"Help menu displayed successfully"`.
61
+ 6. **Contextual Help**: When a DevFlow command is invoked with `help`, `--help`, `-h`, or `?`, read [the playbook protocol](devflow/reference/help-playbook-protocol.md). Produce its help deliverable without running the command's primary action or creating a task run.
84
62
 
85
63
  ---
86
64
 
@@ -1,295 +1,45 @@
1
- # 📋 Build Plan (User-Owned Feature Queue)
1
+ # Build Plan
2
2
 
3
- > **Document Type**: Build Plan (User-Owned)
4
- > **Purpose**: รายการคิวฟีเจอร์การพัฒนาปรับปรุงระบบตามลำดับ พร้อมการประเมินขนาด (Sizing) และความสัมพันธ์ (Dependencies) สำหรับ `/brief` และ `/feature`
3
+ > **Document Type**: Build Plan (User-Owned)
4
+ > **Purpose**: รายการฟีเจอร์ตามลำดับการพัฒนาจริง (Ordered Feature Roadmap Checklist)
5
+ > **Workflow**: ใช้เครื่องหมาย Checkbox `- [ ]` เรียงลำดับ 1, 2, 3... เพื่อให้ `/feature` ดึงไปทำทีละงาน
5
6
 
6
7
  ---
7
8
 
8
- ## 🚀 Phase 1: Hard Quality Gates & Pre-commit Enforcement
9
+ ## 🚀 Phase 1: Core Foundation & Data Layer
9
10
 
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 ค้างอยู่
11
+ - [ ] 1. **Core Schema & Data Models** - สร้าง Data Models, Schemas (Zod) และ Database Migrations เบื้องต้น
12
+ - [ ] 2. **Base Layout & Main UI Shell** - วางโครงสร้างหน้าจอหลัก, Navigation Shell และ Design Tokens
13
+ - [ ] 3. **Primary Feature Flow** - พัฒนาฟังก์ชันการทำงานหลัก พร้อม Input Form และ Validation
13
14
 
14
15
  ---
15
16
 
16
- ## ⚡ Phase 2: DevFlow Model Context Protocol (MCP) Server Hub
17
+ ## ⚡ Phase 2: Interactivity & Core Capabilities
17
18
 
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
19
+ - [ ] 4. **Live Preview / Action Pipeline** - เชื่อมต่อ Input เข้าสู่ระบบประมวลผลและการแสดงผลแบบ Real-time
20
+ - [ ] 5. **Export / Output Engine** - พัฒนาระบบส่งออกข้อมูล เช่น Image Generation, PDF Download หรือ API Response
21
+ - [ ] 6. **Local Persistence & Settings** - บันทึกการตั้งค่าและประวัติการใช้งานลงใน Local Storage หรือ Database
22
+ - [ ] 6a. **Settings Panel** - UI สำหรับปรับแต่งค่าและการจัดเก็บ State
23
+ - [ ] 6b. **History & Recall** - แสดงรายการประวัติย้อนหลังและปุ่มเรียกข้อมูลกลับมาใช้
21
24
 
22
25
  ---
23
26
 
24
- ## 🌿 Phase 3: Branch-Scoped Context Isolation
27
+ ## 🚢 Phase 3: Polish, Quality & Production Hardening
25
28
 
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
+ - [ ] 7. **Edge Cases & Input Polish** - จัดการ Loading States, Error Boundaries และ Responsive Layout
30
+ - [ ] 8. **Deployment Readiness & Production Verification** - ตั้งค่า Environment Config, ตรวจสอบ Production Build และ Health Check
29
31
 
30
32
  ---
31
33
 
32
- ## ✂️ Phase 4: JIT Context Slicing & Token Optimizer
34
+ ## 🛠️ Architecture & Deployment Notes (Optional)
33
35
 
34
- - [x] **4. Just-In-Time (JIT) Dynamic Context Slicing Engine** `[Size: M]`
35
- - *Dependencies*: Feature 3
36
- - *Scope*: สร้างตัวตัดตอนบริบท (Context Slicer) สำหรับสคิล `/implement`, `/check`, `/discovery` เพื่อส่งเฉพาะข้อมูลที่จำเป็นและควบคุม Token Budget ลดการใช้ Token 60–70%
36
+ - **Key Technical Decisions**:
37
+ - [บันทึกการตัดสินใจทางเทคนิคที่สำคัญ]
38
+ - **Environment & Hosting Constraints**:
39
+ - [ข้อกำหนดด้านสภาพแวดล้อมและการ Deploy]
37
40
 
38
41
  ---
39
42
 
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
-
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
-
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
- ## 🚀 Phase 11: Multi-Run Context Architecture & Spec Queue Engine
90
-
91
- - [x] **11. Multi-Run Context Architecture & Spec Queue Engine (`IDEA-026`, `DISC-20260826-001`)** `[Size: M]`
92
- - *Dependencies*: Feature 10, Feature 3
93
- - *Scope*: แยกจัดเก็บ Task-Specific Context เป็นโฟลเดอร์ย่อยใน `devflow/context/{xxx-slug}/`, พัฒนา Context Resolver สำหรับสลับและเรียกใช้งาน `/implement <id>`, `/check <id>`, `/complete <id>` แบบระบุ Running ID หรือ Fuzzy Match, และอัปเกรด CLI/Dashboard/Skills ให้รองรับ Spec Queue หลายรันพร้อมกัน
94
-
95
- ---
96
-
97
- ## 🧹 Phase 12: Purge Legacy Deep-Track & Numbered Stage Artifacts
98
-
99
- - [x] **12. Purge Legacy Deep-Track & Numbered Stage Artifacts (`DISC-20260826-002`)** `[Size: M]`
100
- - *Dependencies*: Feature 10, Feature 11
101
- - *Scope*: ล้างโค้ดตกค้างของ Deep-Track (สเตจ 00-70 เช่น `40-execute`, `50-verify`, `60-report`, `70-deliver`, `10-define`, `20-spec`, `30-plan`) ออกจาก package engine (`status.ts`, `current-work.ts`, `history.ts`), agent skills (`.agents/`, `.claude/`), automation scripts & tests ใน `scripts/`, และเอกสาร/mockup ให้เป็นปัจจุบันสมบูรณ์
102
-
103
- ---
104
-
105
- ## 🔄 Phase 13: Upstream AI Blueprint v0.14.0 Synchronization & Deterministic Config Engine
106
-
107
- - [x] **13. Sync Upstream v0.14.0 (Deterministic Config & Continuous Mode)** `[Size: M]`
108
- - *Dependencies*: Feature 12, DISC-20260826-003
109
- - *Scope*: นำระบบ Deterministic Project Configuration (`devflow/config.json`) และสคิล Autonomous Multi-Feature Loop (`/continuous`) เข้าสู่ Nexus-DevFlow พร้อมอัปเกรด `project-config.ts`, `doctor`, `status`, `dashboard` และอัปเดต upstream baseline tracking สู่ v0.14.0
110
-
111
- ---
112
-
113
- ## ⚡ Phase 14: Pure Multi-Run Task-Isolated Architecture
114
-
115
- - [x] **14. Pure Multi-Run Task-Isolated Architecture (`DISC-20260826-004`)** `[Size: M]`
116
- - *Dependencies*: Feature 11, Feature 12, Feature 13
117
- - *Scope*: ยกเลิกไฟล์ Single Living Spec ที่ Root (`current-feature.md`, `current-stage.md`, `findings.md`) อย่างสมบูรณ์ ปรับโครงสร้างสู่ Task-Isolated Subdirectories 100% (`devflow/context/{xxx-slug}/`), อัปเกรด Agent Directives, Core Context Resolver, Scaffolding Templates และ Workflow Skills ทั้งหมด
118
-
119
- ---
120
-
121
- ## 🔄 Phase 15: Upstream AI Blueprint v1.0.0 / v1.0.1 Synchronization
122
-
123
- - [x] **15. Sync Upstream v1.0.0 (Activity Contract, Rollback & Complete Safeguards, Local Linking)** `[Size: M]`
124
- - *Dependencies*: Feature 14, DISC-20260828-001-sync-upstream-ai-blueprint-v100
125
- - *Scope*: ผสาน Activity State Contract (`devflow/.state/run.json`) และ Live Dashboard Activity, เสริม Rollback 40-char SHA & Merge Commit Protection, Complete Fixed Finding Persistence, คำสั่ง `npm run link:local` / `unlink:local` พร้อม `findPackageRoot()`, Onboarding Markers และ Windows Smoke/Path Fixes
126
-
127
- ---
128
-
129
- ## 🖥️ Phase 16: Multi-Task Dashboard & Live Kanban Studio UI
130
-
131
- - [x] **16. Multi-Task Dashboard & Live Kanban Studio UI (`DISC-20260828-002`)** `[Size: M]`
132
- - *Dependencies*: Feature 14, Feature 15
133
- - *Scope*: ปรับปรุง Full Web Dashboard (`dashboard-page.ts`) และ Live Kanban Studio (`webview-studio.ts`) ให้อ่านและวนลูปแสดงผลรายการ Task ทั้งหมดใน `status.activeRuns` จาก `devflow/context/{xxx-slug}/` พร้อม Task Progress Bar, Branch Pill, Findings Indicator และปุ่ม Quick Actions แบบเจาะจง Target Run ID
134
-
135
- ---
136
-
137
- ## 🔌 Phase 17: Unified Third-Party Skills Installer & Updater
138
-
139
- - [x] **17. Unified Third-Party Skills Installation & Update Command (`DISC-20260831-001`, `055-unified-third-party-skills-installer`)** `[Size: S]`
140
- - *Dependencies*: None
141
- - *Scope*: เพิ่มฟังก์ชัน `installRecommendedSkills` และ `updateRecommendedSkills` ใน `skill-manager.ts`, รองรับสวิตช์ `--recommended` ในคำสั่ง `nexus-devflow skill add` และ `nexus-devflow skill update`, พร้อมอัปเดตเอกสาร `README.md`, `README.th.md` และ Automated Tests
142
-
143
- ---
144
-
145
- ## 🔄 Phase 18: Upstream AI Blueprint v1.1.0 & v1.2.0 Synchronization
146
-
147
- - [x] **18. Sync Upstream v1.1.0 & v1.2.0 (Browser Tests & Independent Review System) (`DISC-20260901-001`)** `[Size: M]`
148
- - *Dependencies*: None
149
- - *Scope*: ผสานสคิล `/browser-tests` สำหรับ Playwright/E2E testing, ระบบตรวจทานอิสระ Independent Audit Review (`audit independent current` พร้อม `review.ts` และ `review.md`), อัปเกรด Config Quality Gates (`independentReview`), อัปเดต CLI Engine/Dashboard และปรับปรุงคู่มือ Scaffolding
150
-
151
- ---
152
-
153
- ## 🛡️ Phase 19: BugHunter Master Skill & Upstream Knowledge Sync Engine
154
-
155
- - [x] **19. BugHunter Master Skill & Upstream Knowledge Sync Engine (`DISC-20260901-002`, `065-bughunter-master-skill-and-sync-engine`)** `[Size: M]`
156
- - *Dependencies*: Feature 17, Feature 18
157
- - *Scope*: พัฒนา Master Orchestrator Skill `bughunter` พร้อมระบบ Sync ดึงคลังความรู้ 83 skills และ report patterns จาก `elementalsouls/Claude-BugHunter` เก็บใน `devflow/.vendor/bughunter/`, รองรับคำสั่ง `nexus-devflow skill add/update bughunter`, อัปเดต Manifest และผสานเข้ากับ Multi-Adapter (`.agents/`, `.claude/`)
158
-
159
- ---
160
-
161
- ## 🔄 Phase 20: Upstream AI Blueprint v1.3.0 – v1.4.1 Synchronization
162
-
163
- - [x] **20. Sync Upstream v1.3.0 – v1.4.1 (Planning Baseline Commit & Context Overhead Reduction) (`DISC-20260902-002`, `067-sync-upstream-ai-blueprint-v130-v141`)** `[Size: M]`
164
- - *Dependencies*: Feature 18, DISC-20260902-002
165
- - *Scope*: ผสานสคิล Planning Baseline Commit ใน `/overview` (`chore: establish DevFlow project baseline`), กฎ Overview Compactness Budget (20KB) พร้อม Hard-stop ใน `/feature` และคำเตือนใน `/doctor`, ปรับ Workflow Defaults เป็น `stepReview: "feature"` และ `checkpointCommits: "disabled"` พร้อม Onboarding Presets (Efficient/Guided/Custom), ย่อ Skill Descriptions 31 สคิลให้ <= 400 chars, ปรับ Claude Code Startup Context ใน `CLAUDE.md`, และอัปเดต Framework Validation/Tests ผ่าน 100%
166
-
167
- ---
168
-
169
- ## 🛠️ Phase 21: Upstream Tooling Parity & Comprehensive Evals Suite
170
-
171
- - [x] **21. Upstream Tooling Parity & Comprehensive Evals Suite (E2E Agent Harness, Complete Routing Fixtures, Sandbox Automation & Upstream Drift Monitor) (`DISC-20260902-001`, `068-sync-upstream-ai-blueprint-tooling-and-evals`)** `[Size: M]`
172
- - *Dependencies*: Feature 20, DISC-20260902-001
173
- - *Scope*: ขยายชุดทดสอบ Evals Routing ให้ครอบคลุมทุกสคิล (`browser-tests.json`, `continuous.json`, `bughunter.json`, `publish-devflow.json`), นำเข้าและปรับใช้ Live-Agent E2E Test Harness (`scripts/e2e/`), สคริปต์จำลองติดตั้ง Sandbox Scaffolding (`scripts/scaffold-sandbox.ts`), สคริปต์ตรวจจับ Upstream Drift (`scripts/check-upstream-drift.ts`), และเอกสารวิเคราะห์ Token Efficiency (`benchmarks/context-efficiency.md`)
174
-
175
- ---
176
-
177
- ## 🎨 Phase 22: Visual Dashboard & Diagram Integration
178
-
179
- - [x] **22. Standalone HTML Report Diagram Integration (`DISC-20260902-003`, `069-report-html-diagram-integration`)** `[Size: S]`
180
- - *Dependencies*: Feature 17 (`055`), DISC-20260902-003
181
- - *Scope*: ปรับปรุง `md2html-report.mjs` รองรับการเรนเดอร์ native Mermaid block (`.mermaid`), เพิ่มการสแกนและ embed ไฟล์ไดอะแกรมจาก `devflow/context/{xxx-slug}/diagrams/` (`.svg` และ `.html`), อัปเดต `report-html` skill ให้ตรวจจับและ auto-install `archify` / `diagram-design` ผ่าน `nexus-devflow skill add` และเขียนชุดทดสอบครอบคลุม
182
-
183
- ---
184
-
185
- ## 🧹 Phase 23: Reference Artifacts Housekeeping
186
-
187
- - [x] **23. Prune Studio Reference Artifacts (`069-prune-studio-reference-artifacts`)** `[Size: S]`
188
- - *Dependencies*: None
189
- - *Scope*: ลบไฟล์ Static HTML Snapshot ตกค้าง `devflow/reference/studio.html` และสคริปต์ `scripts/export-studio.ts` โดยยังคงรักษา Webview Studio Engine (`webview-studio.ts`), MCP tool (`devflow_get_studio_html`), CLI Command (`nexus-devflow studio`) และชุดทดสอบทั้งหมดให้ทำงานได้สมบูรณ์ 100%
190
-
191
- ---
192
-
193
- ## 📐 Phase 24: Role-Based Profiles & SA Command Suite Engine
194
-
195
- - [x] **24. Role-Based Profiles & SA Analyze Command Engine (`DISC-20260903-001`, `070-role-based-profile-and-sa-analyze-engine`)** `[Size: M]`
196
- - *Dependencies*: None
197
- - *Scope*: เพิ่มตัวเลือก `--role [sa|dev|full]` ใน CLI Installer (`create-nexus-devflow`), ระบบจำแนกชุด Skill Profiles ใน `skill-manager.ts`, โฟลเดอร์ Template สำหรับ SA (`devflow/inbox/`, `devflow/analysis/`, `devflow/blueprints/`), พัฒนาสคิล `/analyze` สำหรับสกัดเอกสารหลายรูปแบบ (PDF, Word, Excel, รูปภาพ, ข้อความ) และวิเคราะห์ Codebase Impact พร้อมชุดทดสอบ Automated Tests
198
-
199
- ---
200
-
201
- ## 🔄 Phase 25: Upstream AI Blueprint v1.5.0 – v1.5.1 Synchronization
202
-
203
- - [x] **25. Sync Upstream v1.5.0 & v1.5.1 (Hardened Run-State Engine & On-Demand Context Loading) (`DISC-20260903-001`, `070-sync-upstream-ai-blueprint-v150-v151`)** `[Size: M]`
204
- - *Dependencies*: Feature 20, Feature 21, DISC-20260903-001
205
- - *Scope*: พอร์ตและปรับแต่ง Hardened Dashboard Activity State Helper (`.agents/skills/doctor/scripts/run-state.mjs` และ `.claude/`), บังคับใช้ Zero-Manual Writes กับ `devflow/.state/run.json`, ปรับใช้ On-Demand Context Loading Protocol พร้อมแยก Reference Templates ย่อย (`reference/`), เพิ่ม Unit Tests `run-state-helper.test.ts`, อัปเดต `scripts/validate-framework.ts`, `AGENTS.md`, `CLAUDE.md` และยืนยันการผ่าน 100%
206
-
207
- ---
208
-
209
- ## 🔄 Phase 26: Upstream AI Blueprint v1.5.2 Synchronization
210
-
211
- - [x] **26. Sync Upstream v1.5.2 (Unborn Repository Onboarding & Branch Baseline Finalization) (`REQ-20260903-001`, `071-sync-upstream-ai-blueprint-v152`)** `[Size: S]`
212
- - *Dependencies*: Feature 25, REQ-20260903-001
213
- - *Scope*: เพิ่มการตรวจจับและกู้คืน Unborn Git repository ใน `/onboard` ด้วย Scaffold Initial Commit (`chore: scaffold application`), รองรับการ Finalize DevFlow Baseline บน Dedicated Setup Branch ด้วย `git merge --ff-only` ใน `/overview`, เพิ่มชุดทดสอบ E2E Scenario `scripts/e2e/scenarios/unborn-onboarding.ts`, อัปเดต `devflow/context/ai-interaction.md` และอัปเดต Framework Static Contracts ผ่าน 100%
214
-
215
- ---
216
-
217
- ## 🔄 Phase 27: Upstream AI Blueprint v1.5.3 Synchronization
218
-
219
- - [x] **27. Sync Upstream v1.5.3 (Manifest-Aware Adapter Selection in Onboard & E2E Scenario Parity) (`REQ-20260904-001`, `072-sync-upstream-ai-blueprint-v153`)** `[Size: S]`
220
- - *Dependencies*: Feature 26, REQ-20260904-001
221
- - *Scope*: ปรับปรุง `/onboard` (ทั้ง `.agents/` และ `.claude/`) ให้อ่านและยึดถือรายการ `adapters` จาก Manifest (`.nexus/nexus-devflow.json` / `devflow/.state/manifest.json`) เป็นความจริงหลัก (Authoritative Selection) โดยไม่ถามซ้ำและไม่อนุมานผิดพลาด, เพิ่มชุดทดสอบ E2E Scenario ตัวที่ 10 `scripts/e2e/scenarios/adapter-selection.ts`, อัปเดต `agent-bundle.manifest.json` และ `scripts/validate-framework.ts` ให้ครอบคลุม Verification Contracts ใหม่ 100%
222
-
223
- ---
224
-
225
- ## 🔄 Phase 28: Upstream AI Blueprint v1.5.4 – v1.6.0 Synchronization
226
-
227
- - [x] **28. Sync Upstream v1.5.4 & v1.6.0 (Automatic Independent Review, Post-Implementation Walkthroughs & Hardened Dashboard Engine) (`DISC-20260907-001`, `073-sync-upstream-ai-blueprint-v154-v160`)** `[Size: M]`
228
- - *Dependencies*: Feature 27, DISC-20260907-001
229
- - *Scope*: นำเข้าระบบตรวจทานอิสระแบบอัตโนมัติ (`review.independentExecution: "automatic"` พร้อม Isolated Subagent Spawning, Receipts Metadata Schema), ปรับค่าเริ่มต้น Quality Gates เป็น `when-sensitive`, เพิ่ม Post-Implementation Code Walkthrough ใน `implement` / `autopilot`, ปรับปรุงความทนทานของสถานะโครงการและ Dashboard (Sortable Findings, Roadmap Focus, Strict Heading Contracts), อัปเดต Framework Validation และ Unit Tests ผ่าน 100%
230
-
231
- ---
232
-
233
- ## 🖥️ Phase 30: Modernize Web Dashboard with Dynamic Archify Visualizer & Recommended Skills
234
-
235
- - [x] **30. Modernize Web Dashboard with Dynamic Archify Visualizer & Recommended Skills (`DISC-20260907-003`, `080-dashboard-workflow-visualizer`)** `[Size: M]`
236
- - *Dependencies*: Feature 28, DISC-20260907-003
237
- - *Scope*: เพิ่ม Dynamic Archify SVG Workflow Visualizer (Macro Lifecycle Pulse Map พร้อม CSS Trace Motion และ Micro Tracer-Bullet Tickets DAG), เพิ่มการ์ด Recommended Skills & Vendors (`matt-pocock`, `bughunter`, `archify`, `diagram-design`, `9arm-skills`) พร้อมตรวจจับสถานะติดตั้งจริงและแสดงป้ายติ๊กถูก ✔, ปรับลดความรกบนแดชบอร์ด (ลบ Swarm Tab, ยุบ Doctor สรุปคลีน), เพิ่มข้อมูลใน `DashboardSnapshot` และชุดทดสอบความถูกต้องผ่าน 100%
238
- ---
239
-
240
- ## 🧹 Phase 31: Vendor Purge, Unified Debug & Headless Ticket Ingestion
241
-
242
- - [x] **31. Purge Matt Pocock Vendor, Unify Debug Skill & Headless Ticket Ingestion (`081-purge-vendor-and-unify-debug`)** `[Size: S]`
243
- - *Dependencies*: None
244
- - *Scope*: ตัดโฟลเดอร์ vendor `devflow/.vendor/matt-pocock/`, ลบ skill wrapper ของ `matt-pocock` และ `debug-mantra`, รวมสาระสำคัญของ mantra 4 ข้อเข้าสู่ `/debug` (ทั้ง `.agents` และ `.claude`), ลบโฟลเดอร์ตกค้าง `.scratch/` และ `docs/agents/`, อัปเดต `AGENTS.md` และเอกสารเพื่อรองรับการนำเข้า external spec และ tickets จาก `devflow/context/{slug}/issues/` หรือ `tickets/` ได้ทันที
245
-
246
- ---
247
-
248
- ## 🧹 Phase 32: Consolidate 9arm Skills into DevFlow Core & Purge Extension
249
-
250
- - [x] **32. Consolidate 9arm Skills into DevFlow Core & Purge Extension (`DISC-20260908-001`, `082-consolidate-9arm-skills-and-purge`)** `[Size: S]`
251
- - *Dependencies*: None
252
- - *Scope*: รวมสาระสำคัญของ `scrutinize` (Outsider Stance, Call-path tracing, Challenge intent) เข้าสู่ `/audit`, ผสาน `post-mortem` เข้าสู่ `/debug` (Phase 4 Handoff) และ `/complete` (Fix Archive Template), เพิ่ม Executive / Stakeholder Summary ใน `/status` และ `/complete`, ลบโฟลเดอร์ extension `post-mortem`, `scrutinize`, `management-talk` ทั้งใน `.agents/` และ `.claude/`, ลบ entries 9arm-skills ออกจาก `.nexus/nexus-devflow.json`, อัปเดตเอกสารและยืนยัน static contracts ผ่าน 100%
253
-
254
- ---
255
-
256
- ## 🪓 Phase 33: Ponytail Hybrid Compound-Vendor Integration
257
-
258
- - [x] **33. Ponytail Hybrid Compound-Vendor Integration (`DISC-20260909-001`)** `[Size: S]`
259
- - *Dependencies*: Feature 17 (`055`), Feature 19 (`065`), DISC-20260909-001
260
- - *Scope*: นำเข้า `DietrichGebert/ponytail` ในรูปแบบ Hybrid Compound-Vendor (`type: "compound-knowledge"`) โดยโคลน upstream ลง `devflow/.vendor/ponytail/`, สร้าง Master Wrapper Skill (`.agents/skills/ponytail/` และ `.claude/`) พร้อม 5W1H Playbook และ Auto-Bypass สำหรับงาน Frontend/UI, อัปเดต `skill-registry-engine.ts`, บันทึก `thirdPartySkills` ใน `.nexus/nexus-devflow.json` และเขียน Automated Tests ครอบคลุม
261
-
262
- ---
263
-
264
- ## 📦 Phase 34: Unscoped CLI Packages & Shorthand Shims (`npx nexus-devflow` & `npm create nexus-devflow`)
265
-
266
- - [x] **34. Unscoped CLI Packages & Shorthand Shims (`nexus-devflow` & `create-nexus-devflow`) (`084-unscoped-nexus-devflow-cli-package`)** `[Size: S]`
267
- - *Dependencies*: Feature 1 (`check-gate`), Feature 17 (`055`)
268
- - *Scope*: สร้างและกำหนดค่า Wrapper Shims สำหรับ Unscoped NPM Packages: `nexus-devflow` (เพื่อรองรับ `npx nexus-devflow`) และ `create-nexus-devflow` (เพื่อรองรับ `npm create nexus-devflow`), อัปเดต Pipeline การ Publish ใน `.github/workflows/publish.yml` และ `publish-devflow` ให้ซิงก์เวอร์ชันและเผยแพร่คู่ขนานกับ `@jakkrichm/create-nexus-devflow`, อัปเดตเอกสาร `AGENTS.md`, `CLAUDE.md` และ README ให้แนะนำคำสั่งสั้นเป็นหลัก
269
-
270
-
271
-
272
- ---
273
-
274
- ## Phase 35: Superpowers Debugging & TDD Heuristics Integration
275
-
276
- - [x] **35. Superpowers Debugging Heuristics & TDD Reference Guides (`DISC-20260909-003`, `085-superpowers-debugging-heuristics-integration`)** `[Size: S]`
277
- - *Dependencies*: Feature 31 (`081`), Feature 32 (`082`)
278
- - *Scope*: เพิ่ม JIT reference guides สำหรับ root-cause tracing, defense-in-depth, condition-based waiting, TDD anti-patterns และ two-stage review พร้อม 3-Strike Rule และ Iron Law; ซิงก์ `.agents/` กับ `.claude/` และตรวจ file contracts
279
-
280
- ---
281
-
282
- ## Phase 36: Upstream AI Blueprint v1.6.1 Synchronization
283
-
284
- - [x] **36. Sync Upstream v1.6.1 (Installer Symlink Rejection, Completion Recovery Engine, Rebuild History Preservation, Local-Only Spec Review & Status Evidence Alignment) (`DISC-20260911-001`, `086-sync-upstream-ai-blueprint-v161`)** `[Size: M]`
285
- - *Dependencies*: Feature 28 (`073`), DISC-20260911-001
286
- - *Scope*: นำเข้า 5 เสาหลักความปลอดภัยและความแม่นยำจาก AI Blueprint v1.6.1: (1) ปฏิเสธ Symlink paths และตรวจ type compatibility ในตัวติดตั้ง `create-nexus-devflow`, (2) สร้างสัญญา `completion-recovery.md` พร้อม JSON comment annotation `<!-- devflow:completion ... -->` กู้คืนการส่งมอบงานที่สะดุด, (3) สร้างสัญญา `build-history.md` รองรับการตั้งชื่อ `--build-N` เมื่อ Rebuild ฟีเจอร์ที่เคยถูก Rollback, (4) ขยาย `lib/review.ts` ให้รองรับ `specSnapshot` สำหรับ Local-only spec review, (5) บูรณาการ `classifyWorkEvidence` ใน `project-status-engine.ts` และ `dashboard.ts` ป้องกัน False Ready State เมื่อ verification failed หรือพบ malformed records, (6) ซิงก์สคิลและเอกสารทั้ง `.agents/` และ `.claude/` พร้อม automated tests ผ่าน 100%
287
-
288
- ---
289
-
290
- ## 🔌 Phase 37: AI-Orchestrated Project-Local Vendor Skill Ingestion (`/vendor`)
291
-
292
- - [x] **37. AI-Orchestrated Project-Local Vendor Skill Ingestion (`DISC-20260911-002`, `087-ai-orchestrated-vendor-skill-ingestion`)** `[Size: M]`
293
- - *Dependencies*: Feature 33 (`083`), Feature 34 (`084`), DISC-20260911-002
294
- - *Scope*: พัฒนาคำสั่ง `/vendor` (พร้อม aliases: `skill-add`, `equip`, `ingest`) สำหรับนำเข้า Git repository ลงในระดับโปรเจกต์ `devflow/.vendor/<slug>/`, ให้ AI Agent สำรวจโค้ดและสังเคราะห์ Custom Wrapper Skill ใน `.agents/skills/<slug>/SKILL.md` และ `.claude/skills/<slug>/SKILL.md`, พัฒนากลไก Update Protection ใน `update.ts` เพื่อป้องกันไม่ให้คำสั่งอัปเดต DevFlow ลบ custom skills เหล่านี้, บันทึก metadata ลง `.nexus/nexus-devflow.json`, ปรับปรุง CLI `nexus-devflow skill update all` ให้รองรับการ pull upstream ใน `.vendor/` โดยคงรักษา custom wrapper ที่ AI เขียนไว้, พร้อมเขียน Automated Unit Tests ครอบคลุม 100%
43
+ ## 🔮 Later / Post-MVP Backlog (Not in v1)
295
44
 
45
+ - [ ] **Cloud Sync & User Accounts** - ระบบสมัครสมาชิกและซิงค์ข้อมูลบน Cloud
@@ -8,7 +8,7 @@
8
8
 
9
9
  - **Be Concise and Direct**: State conclusions, status, and findings first; provide supporting context afterward.
10
10
  - **Explain Non-Obvious Decisions Briefly**: Highlight architectural trade-offs, edge-case rationale, or safety considerations in 1–2 sentences.
11
- - **Ask Before Destructive or Architectural Changes**: Always obtain explicit confirmation before deleting files, executing major refactors, or altering public interfaces.
11
+ - **Authorization**: Reuse explicit authorization already given for the requested work. Ask before destructive actions or material architectural changes outside that scope. Identify the instruction requiring a pause; routine implementation choices do not require renewed approval.
12
12
  - **Don't Add Unplanned Scope**: Stick strictly to the Acceptance Criteria defined in the spec. Avoid adding "nice-to-have" features that were not requested.
13
13
  - **Preserve Existing Codebase Patterns**: Respect existing file structure, typing patterns, naming conventions, and deep module boundaries.
14
14
 
@@ -21,8 +21,8 @@ Format every response for fast scanning and readability:
21
21
  - **Real Markdown, Not Prose Walls**: Use bold labels, concise bullet points, and blank lines between blocks.
22
22
  - **Enumerations Are Lists**: Numbered or bulleted lists for sequential steps or findings, never inline runs crammed into paragraphs.
23
23
  - **Tables for Comparative Matrices**: Use markdown tables when comparing status, options, test results, or trade-offs.
24
- - **Backticks for Code References**: Wrap file paths, variable names, functions, CLI flags, and commands in backticks (e.g. `current-feature.md`, `npm run check`).
25
- - **Clickable File Links**: Use GitHub-style markdown links with `file://` scheme (e.g. `[current-feature.md](file:///d:/path/to/current-feature.md)`).
24
+ - **Backticks for Code References**: Wrap file paths, variable names, functions, CLI flags, and commands in backticks (e.g. `devflow/context/{xxx-slug}/spec.md`, `npm run check`).
25
+ - **Clickable File Links**: Use the active client's supported local-file link format with the actual resolved path.
26
26
  - **Lead With the Result**: State pass/fail status or completed action before presenting logs.
27
27
 
28
28
  ---
@@ -97,7 +97,7 @@ After the first successful `/overview`, DevFlow offers a reviewed local commit f
97
97
  ## 4. Strict TDD & Two-Stage Review Interaction Rules
98
98
 
99
99
  ### 🔴🟢 Strict TDD Execution Discipline
100
- During implementation in `/implement`:
100
+ For logic and behavior changes during `/implement`, follow the spec's test decision:
101
101
  - **Show Red Phase**: First execute tests to demonstrate expected failure *before* adding production code.
102
102
  - **Show Green Phase**: Add minimal production code, re-run tests, and report pass rate.
103
103
  - **Show Refactor Phase**: Polish and clean up with zero test regression.
@@ -111,10 +111,10 @@ During `/check`:
111
111
 
112
112
  ### ⚡ Review Cadence & Implementation Loop
113
113
  - **Efficient Default (`stepReview: "feature"`)**: Presents one comprehensive review packet after all implementation steps of the feature complete, with step checkpoint commits disabled (`checkpointCommits: "disabled"`). This minimizes review fatigue and saves context window tokens.
114
- - **Guided Review (`stepReview: "every"`)**: Available for high-risk changes, pair programming, or instructional sessions. Pauses for user approval after each small step and offers checkpoint commits (`checkpointCommits: "enabled"`).
114
+ - **Guided Review (`stepReview: "every"`)**: Available for high-risk changes, pair programming, or instructional sessions. Pauses for user approval after each small step. Offer optional checkpoints only if `checkpointCommits: "enabled"`.
115
115
  - **Post-Implementation Walkthrough**: After the final review packet, `/implement` always offers an optional read-only walkthrough of the finished code, regardless of review cadence or checkpoint settings.
116
116
  - **Independent Review Execution**: Regular and Continuous independent review default to `when-sensitive`, while `review.independentExecution` defaults to `automatic` (spawning an isolated reviewer child when the active adapter supports it). Setting `review.independentExecution: "manual"` produces the fresh-session handoff.
117
- - **Configuration**: Managed directly in `devflow/config.json`.
117
+ - **Configuration**: Managed directly in `devflow/config.json`. The two workflow keys are independent: `every` does not imply checkpoints are enabled, and `enabled` never grants commit authorization. Use the implementation skill's cadence contract for all four combinations.
118
118
 
119
119
  ---
120
120
 
@@ -131,16 +131,17 @@ During `/check`:
131
131
 
132
132
  Progress lives in persistent files, not in transient chat history:
133
133
 
134
- - In Fast-Track: `devflow/context/current-feature.md` maintains ticked checklist boxes `- [x]`.
134
+ - In the selected run: `devflow/context/{xxx-slug}/spec.md` maintains ticked checklist boxes `- [x]`.
135
135
  - In Git: Commits, branches, and working tree maintain the code history.
136
- - When starting a fresh session after a context clear, run `devflow` or inspect `current-stage.md` to pick up immediately from the next pending step.
136
+ - When starting a fresh session after a context clear, resolve the run from an explicit ID or current branch, then inspect `devflow/context/{xxx-slug}/stage.md` and its spec to pick up immediately from the next pending step.
137
137
 
138
138
  ---
139
139
 
140
- ## 6. Single Active Run Guardrail (One Thing at a Time)
140
+ ## 6. Multi-Run Isolation
141
141
 
142
- - Only one active Single Living Spec run is allowed at a time.
143
- - The AI will actively block opening a new feature or fix until the current one is completed with `/complete` (or explicitly rolled back/cancelled).
142
+ - Multiple specs may be queued in `devflow/context/{xxx-slug}/` without blocking new drafts.
143
+ - Select a run by explicit ID, matching branch, or the sole active candidate. Ask only when the target remains ambiguous.
144
+ - Keep each run's spec, stage, findings, and branch separate. Protect unrelated working-tree changes before switching; use an isolated worktree when concurrent implementation requires it.
144
145
 
145
146
  ---
146
147
 
@@ -177,14 +178,14 @@ Progress lives in persistent files, not in transient chat history:
177
178
  Nexus-DevFlow natively supports extending workflow capabilities with **Third-Party Skills** (installed via `nexus-devflow skill add <repo-or-path>`):
178
179
 
179
180
  ### 🧩 1. Discovery & Inventory
180
- - Core workflow commands and AI agents automatically inspect `.agents/skills/` (and `.claude/skills/`) or run `nexus-devflow skill list` to discover installed third-party capabilities.
181
+ - Reuse the available skill catalog. Inspect the active adapter or run `nexus-devflow skill list` only when a required capability is not already known.
181
182
  - Installed third-party skills maintain their exact original directory structure, references, assets, scripts, and `SKILL.md`.
182
183
 
183
184
  ### 🎯 2. Cross-Command Delegation & Genuine Execution
184
- - **Verbatim & Original Prompt Fidelity**: When a DevFlow stage requires specialized domain expertise (e.g., editorial diagramming, system mapping, domain modeling, cloud provisioning, UI benchmarking), the AI agent must read the third-party skill's `SKILL.md` (e.g. `.agents/skills/archify/SKILL.md` or `.agents/skills/diagram-design/SKILL.md`) and strictly follow its original instructions, philosophy, style guide gates, and complexity constraints.
185
+ - **Verbatim & Original Prompt Fidelity**: When a DevFlow stage requires specialized domain expertise (e.g., editorial diagramming, system mapping, domain modeling, cloud provisioning, UI benchmarking), the AI agent must read the third-party skill's `SKILL.md` (e.g. `.agents/skills/archify/SKILL.md` or `.agents/skills/diagram-design/SKILL.md`) and apply the relevant workflow within the user's requested scope. Explicit user instructions take precedence over skill guidance; reuse existing authorization rather than adding approval gates.
185
186
  - **Workflow Command Integration Map**:
186
187
  - **`/discovery`**: When macro roadmap planning or micro pre-flight exploration involves system architecture, IT landscape, data pipelines, sequence flows, or user journeys, check for `archify` (for interactive system maps, data flows, and sequence traces) or `diagram-design` (for editorial and business layouts).
187
- - **`/feature` & `/fix`**: In Section 2 (`## 📐 2. Technical Spec & Contracts`), invoke `archify` for interactive component diagrams, state machines, and sequence traces, or `diagram-design` for database ER models.
188
+ - **`/feature` & `/fix`**: When a diagram materially clarifies Section 2 (`## 📐 2. Technical Spec & Contracts`), use `archify` for interactive component diagrams, state machines, and sequence traces, or `diagram-design` for database ER models.
188
189
  - **`/implement`**: Seamlessly consumes Tracer-Bullet Tickets generated by Matt Pocock's `/to-tickets` (`.scratch/<feature>/issues/`, `devflow/context/{xxx-slug}/tickets/`), resolving the unblocked Frontier and executing with Strict TDD.
189
190
  - **`/brainstorm` & `/grill`**: Leverage visual trade-off matrices (Quadrant, Radar spider) or domain models (UML class, ER).
190
191
  - **`/prototype` & `/report-html`**: Embed standalone HTML/SVG assets seamlessly.
@@ -119,12 +119,13 @@ nexus-devflow/
119
119
 
120
120
  Testing is a core quality gate in Nexus-DevFlow, not an afterthought:
121
121
 
122
- - **Unit Test Mandate**: Any new feature, modified logic, parser improvement, or bug fix **MUST ship with automated unit tests** in the same diff.
122
+ - **Unit Test Mandate**: Logic or behavior changes must include meaningful automated coverage when the spec's test gate is enabled. Documentation, prompt wording, or formatting-only changes use structural checks and review instead of artificial unit tests.
123
123
  - **Strict TDD (Red-Green-Refactor) Protocol**:
124
124
  1. **🔴 RED (Test First)**: Always write automated tests *before* writing or modifying functional logic. Run the test command and verify that it fails for the expected reason.
125
125
  2. **🟢 GREEN (Minimal Code)**: Write only the minimal production code necessary to make the failing test pass. Run the test command and verify 100% green pass.
126
126
  3. **🔵 REFACTOR (Clean & Robust)**: Refactor code for readability, performance, and DRY/YAGNI discipline while ensuring all tests stay green.
127
127
  - *Code Deletion / Reversion Rule*: If functional code is created without a prior failing test for behavior changes, it must be reverted or immediately backed by tests before continuing.
128
+ - **Verification Scope**: Run focused checks during edits and required project gates before handoff. Repeat passing checks only after relevant changes, new failures, or unresolved risk.
128
129
  - **Test Framework**: Use Node.js native test runner executed via `tsx --test test/*.test.ts` under `packages/create-nexus-devflow/`.
129
130
  - **Test Design (AAA Pattern)**:
130
131
  - Structure each test case cleanly: **Arrange** (setup fixtures/mock directories), **Act** (execute function), **Assert** (verify invariants).
@@ -137,7 +138,7 @@ Testing is a core quality gate in Nexus-DevFlow, not an afterthought:
137
138
  2. *Interactive AI Visual QA (MCP)*: Live DOM and styling inspection via MCP `browseros-neo` (`http://127.0.0.1:9010/mcp`) during `/check` and `/try`.
138
139
  - **Two-Stage Review Pattern (Verification Gate)**:
139
140
  - **Stage 1: Spec Fidelity & Acceptance Gate**:
140
- - Verify 100% conformance against the Single Living Spec (`current-feature.md`).
141
+ - Verify 100% conformance against the Single Living Spec (`devflow/context/{xxx-slug}/spec.md`).
141
142
  - Validate all Acceptance Criteria (ACs) and "Done When" observables without missing requirements or scope creep.
142
143
  - Test edge cases and boundary conditions defined in the specification.
143
144
  - **Stage 2: Code Quality, Security & Architecture Gate**:
@@ -145,13 +146,13 @@ Testing is a core quality gate in Nexus-DevFlow, not an afterthought:
145
146
  - **Lane 2 (Automated Test Suites & Evals)**: `npm test` (Unit tests 100% pass) + `npm run test:routing` (Skill routing accuracy).
146
147
  - **Lane 3 (Scrutinize & Security Audit)**: Edge cases, null-safety, 0 secrets, safe inputs.
147
148
  - **Lane 4 (Manual / Scenario Proof)**: Concrete walkthrough steps ("Where to go", "What to run", "What to expect").
148
- - **Findings Ledger State**: 0 blockers (P0/P1) in `devflow/context/findings.md`.
149
+ - **Findings Ledger State**: 0 blockers (P0/P1) in `devflow/context/{xxx-slug}/findings.md`.
149
150
 
150
151
  ---
151
152
 
152
153
  ## 8. Findings Ledger & Quality Gates (`findings.md`, `review.md`)
153
154
 
154
- - All quality defects, security findings, or regression issues identified during review must be logged in `devflow/context/findings.md`.
155
+ - All quality defects, security findings, or regression issues identified during review must be logged in `devflow/context/{xxx-slug}/findings.md`.
155
156
  - **Finding State Machine**:
156
157
  - `open`: Confirmed issue waiting to be fixed.
157
158
  - `fixed`: Repaired in code, pending QA re-verification.
@@ -4,15 +4,15 @@
4
4
 
5
5
  ---
6
6
 
7
- ### Single Living Spec (`current-feature.md`)
8
- - **Definition**: เอกสาร Markdown กลางเพียงฉบับเดียวที่ใช้ขับเคลื่อนและบันทึกวงจรชีวิตของงานพัฒนาตั้งแต่ต้นจนจบ (Single Source of Truth during active delivery)
9
- - **Constraints**: มีได้เพียง 1 งานที่ active ในช่วงเวลาหนึ่งตามหลักการ Single Active Run Guardrail
7
+ ### Task-Isolated Living Spec (`devflow/context/{xxx-slug}/spec.md`)
8
+ - **Definition**: เอกสาร Markdown หลักหนึ่งฉบับต่อ runที่ใช้ขับเคลื่อนและบันทึกวงจรชีวิตของงานพัฒนาตั้งแต่ต้นจนจบ (Single Source of Truth during active delivery)
9
+ - **Constraints**: ร่างหลาย run ได้พร้อมกัน แต่แต่ละ run แยก spec, stage, findings และ branch; เลือกเป้าหมายก่อน implement
10
10
  - **Structure**: ครอบคลุม 6 ส่วนหลัก: (1) Define & Boundaries, (2) Technical Spec & Contracts, (3) Execution Plan & TDD Tasks, (4) Implementation Log & Evidence, (5) Multi-Lane Verification Matrix, (6) Release Digest & Retrospective
11
- - **Aliases / Related**: `current-feature.md`, Living Spec, Feature Spec
11
+ - **Aliases / Related**: `devflow/context/{xxx-slug}/spec.md`, Living Spec, Feature Spec
12
12
 
13
13
  ### Unified Fast-Track
14
14
  - **Definition**: รูปแบบการพัฒนาหลักแบบ Single-Track ของ Nexus-DevFlow ที่รวมความสามารถเชิงสถาปัตยกรรมระดับลึก (Deep) และความคล่องตัว (Fast) เข้าด้วยกันผ่าน 4 คำสั่งหลัก: `/feature` (หรือ `/fix`), `/implement`, `/check`, และ `/complete`
15
- - **Constraints**: ขับเคลื่อนผ่านไฟล์ `current-feature.md` และเมื่อเสร็จสิ้นจะถูก Archive เป็นไฟล์ Markdown เดี่ยวใน `devflow/history/`
15
+ - **Constraints**: ขับเคลื่อนผ่านไฟล์ `devflow/context/{xxx-slug}/spec.md` และเมื่อเสร็จสิ้นจะถูก Archive เป็นไฟล์ Markdown เดี่ยวใน `devflow/history/{features|fixes|rollbacks}/{xxx-slug}.md`
16
16
  - **Aliases / Related**: Fast-Track, Unified Track
17
17
 
18
18
  ### Pre-Flight Discovery
@@ -22,7 +22,7 @@
22
22
 
23
23
  ### Multi-Lane Verification Matrix
24
24
  - **Definition**: ตารางตรวจสอบคุณภาพแบบหลายมิติที่ครอบคลุม Typecheck, Linter, Automated Unit/Integration Tests, และ Manual Proof Evidence ในคำสั่ง `/check`
25
- - **Constraints**: ต้องมีผลลัพธ์ผ่าน (PASS) ครบทุก Lane และไม่มี P0/P1 Finding ที่ยังค้างอยู่ก่อนที่จะส่งต่อไปยัง `/complete`
25
+ - **Constraints**: ต้องมีหลักฐานผ่านสำหรับทุก Lane ที่ใช้กับงาน ส่วนที่ไม่เกี่ยวข้องให้บันทึก N/A พร้อมเหตุผล และไม่มี P0/P1 Finding ที่ยังค้างอยู่ก่อนที่จะส่งต่อไปยัง `/complete`
26
26
  - **Aliases / Related**: QA Matrix, Lane Verification
27
27
 
28
28
  ### Release Digest & Retrospective