@jakkrichm/create-nexus-devflow 2.17.5 → 2.17.6

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 (35) hide show
  1. package/README.md +3 -3
  2. package/dist/lib/doctor.js +27 -0
  3. package/dist/lib/doctor.js.map +1 -1
  4. package/dist/lib/history.js +2 -2
  5. package/dist/lib/history.js.map +1 -1
  6. package/dist/lib/skill-registry-engine.js +3 -3
  7. package/dist/lib/skill-registry-engine.js.map +1 -1
  8. package/package.json +1 -1
  9. package/template/.agents/skills/audit/SKILL.md +2 -1
  10. package/template/.agents/skills/check/SKILL.md +26 -116
  11. package/template/.agents/skills/check/reference/guide.md +126 -0
  12. package/template/.agents/skills/check/reference/verify.md +123 -0
  13. package/template/.agents/skills/ci/SKILL.md +42 -8
  14. package/template/.agents/skills/doctor/SKILL.md +4 -0
  15. package/template/.agents/skills/explore/SKILL.md +78 -0
  16. package/template/.agents/skills/feature/SKILL.md +1 -0
  17. package/template/.agents/skills/feature/reference/feature-spec-template.md +16 -16
  18. package/template/.agents/skills/idea/SKILL.md +6 -6
  19. package/template/.agents/skills/implement/SKILL.md +3 -0
  20. package/template/.claude/skills/audit/SKILL.md +2 -1
  21. package/template/.claude/skills/check/SKILL.md +26 -116
  22. package/template/.claude/skills/check/reference/guide.md +126 -0
  23. package/template/.claude/skills/check/reference/verify.md +123 -0
  24. package/template/.claude/skills/ci/SKILL.md +42 -8
  25. package/template/.claude/skills/doctor/SKILL.md +4 -0
  26. package/template/.claude/skills/explore/SKILL.md +78 -0
  27. package/template/.claude/skills/feature/SKILL.md +1 -0
  28. package/template/.claude/skills/feature/reference/feature-spec-template.md +16 -16
  29. package/template/.claude/skills/idea/SKILL.md +6 -6
  30. package/template/.claude/skills/implement/SKILL.md +3 -0
  31. package/template/AGENTS.md +12 -1
  32. package/template/devflow/docs/USAGE.md +4 -3
  33. package/template/devflow/docs/skill-selection-policy.md +2 -1
  34. package/template/devflow/docs/workflow-surface-map.md +5 -4
  35. package/template/devflow/reference/feature-spec-template.md +54 -82
@@ -14,18 +14,18 @@
14
14
  ## 1. Specification & Scope
15
15
 
16
16
  ### 1.1 Problem Statement
17
- {คำอธิบายปัญหาและที่มาของความจำเป็นในการพัฒนาฟีเจอร์นี้}
17
+ {Description of the problem, background, and rationale for developing this feature}
18
18
 
19
19
  ### 1.2 In-Scope
20
- 1. {ขอบเขตการทำงานข้อที่ 1}
21
- 2. {ขอบเขตการทำงานข้อที่ 2}
20
+ 1. {In-scope item 1}
21
+ 2. {In-scope item 2}
22
22
 
23
23
  ### 1.3 Out-of-Scope
24
- - {สิ่งที่อยู่นอกเหนือขอบเขตหรือไม่ทำในรอบนี้}
24
+ - {Items deliberately excluded or deferred to future features}
25
25
 
26
- ### 1.4 Acceptance Criteria (เกณฑ์การยอมรับ)
27
- - [ ] **AC-1**: {เกณฑ์การตรวจรับข้อที่ 1}
28
- - [ ] **AC-2**: {เกณฑ์การตรวจรับข้อที่ 2}
26
+ ### 1.4 Acceptance Criteria
27
+ - [ ] **AC-1**: {Acceptance criterion 1}
28
+ - [ ] **AC-2**: {Acceptance criterion 2}
29
29
 
30
30
  ---
31
31
 
@@ -40,18 +40,18 @@
40
40
  - **Review Strategy**: One feature-level review packet at completion
41
41
 
42
42
  ### 2.3 Test Decision: Required (TDD) | Optional
43
- - **Rationale**: {เหตุผลความจำเป็นในการเขียน Unit Tests / TDD}
43
+ - **Rationale**: {Reason for requiring Unit Tests / TDD}
44
44
 
45
45
  ---
46
46
 
47
47
  ## 3. Implementation Checklist (Strict TDD)
48
48
 
49
- - [ ] **Task 1: {หัวข้องานที่ 1}**
50
- - [ ] 1.1 `[TDD-Red]`: {เขียน Test เคสล้มเหลว}
51
- - [ ] 1.2 `[TDD-Green]`: {เขียนโค้ดขั้นต่ำเพื่อให้ Test ผ่าน}
52
- - [ ] 1.3 `[TDD-Refactor]`: {Refactor และตรวจให้ 100% Tests Green}
49
+ - [ ] **Task 1: {Task 1 title}**
50
+ - [ ] 1.1 `[TDD-Red]`: {Write failing unit or behavioral test}
51
+ - [ ] 1.2 `[TDD-Green]`: {Write minimal implementation to pass test}
52
+ - [ ] 1.3 `[TDD-Refactor]`: {Refactor and ensure 100% tests green}
53
53
 
54
- - [ ] **Task 2: {หัวข้องานที่ 2}**
54
+ - [ ] **Task 2: {Task 2 title}**
55
55
  - [ ] 2.1 `[TDD-Red]`: ...
56
56
  - [ ] 2.2 `[TDD-Green]`: ...
57
57
  - [ ] 2.3 `[TDD-Refactor]`: ...
@@ -65,11 +65,11 @@
65
65
  - **Automated Test Matrix**: TBD
66
66
  - **Static Contract Verification**: TBD
67
67
  - **Package Smoke Test**: TBD
68
- - **Findings Ledger**: ตรวจสอบ `findings.md` สะอาด 100%
68
+ - **Findings Ledger**: Verify `findings.md` is 100% clean
69
69
 
70
70
  ### 🎯 Axis 2: Spec Fidelity & Behavioral Acceptance Gate
71
- - [ ] **AC-1**: {หลักฐานการผ่านเกณฑ์ข้อที่ 1}
72
- - [ ] **AC-2**: {หลักฐานการผ่านเกณฑ์ข้อที่ 2}
71
+ - [ ] **AC-1**: {Empirical proof for AC-1}
72
+ - [ ] **AC-2**: {Empirical proof for AC-2}
73
73
 
74
74
  ---
75
75
 
@@ -26,7 +26,7 @@ When invoked:
26
26
  3. Allocate the next sequential ID (e.g. `IDEA-001`, `IDEA-002`).
27
27
 
28
28
  ### 2. AI Feasibility & Value Analysis
29
- Evaluate the user's raw idea and generate an enriched entry in Thai (`th` per user communication rules):
29
+ Evaluate the user's raw idea and generate an enriched entry:
30
30
  - **Raw Idea**: The user's input description
31
31
  - **AI Feasibility & Tech**: Feasibility rating (Easy / Medium / Complex) along with recommended libraries, APIs, or architectural approaches
32
32
  - **Value & Potential**: Business value, user benefits, and strategic impact
@@ -37,17 +37,17 @@ Insert the new idea block directly under `## 📌 Pending Ideas` in `devflow/ide
37
37
 
38
38
  ```markdown
39
39
  ### [IDEA-001] {Brief idea title}
40
- - **บันทึกเมื่อ**: {YYYY-MM-DD}
41
- - **ไอเดียตั้งต้น**: {User's raw idea text}
40
+ - **Recorded Date**: {YYYY-MM-DD}
41
+ - **Original Idea**: {User's raw idea text}
42
42
  - **AI Feasibility & Tech**: {Feasibility and tooling analysis}
43
43
  - **Value & Potential**: {Value and impact analysis}
44
- - **Quick Seed (กันลืม)**:
44
+ - **Quick Seed**:
45
45
  1. {Key point 1}
46
46
  2. {Key point 2}
47
- - **สถานะ**: `Pending` (Ready for pickup via `/feature IDEA-001` or `/discovery IDEA-001`)
47
+ - **Status**: `Pending` (Ready for pickup via `/feature IDEA-001` or `/discovery IDEA-001`)
48
48
  ```
49
49
 
50
- *(If placeholder `*(ยังไม่มีไอเดียค้างอยู่...)*` exists, remove it upon recording the first idea)*
50
+ *(If placeholder `*(No pending ideas...)*` exists, remove it upon recording the first idea)*
51
51
 
52
52
  ### 4. Output Summary
53
53
  Report to the user:
@@ -111,10 +111,13 @@ When implementing a rollback task, follow the exact safety procedure in `referen
111
111
  Work in small reviewable diffs, keeping progress in the selected spec.
112
112
 
113
113
  1. For logic or behavior changes with the test gate on, use Red-Green-Refactor: write a focused failing test, confirm the assertion fails for the missing behavior, implement the smallest change, then refactor with affected tests green. Preserve the user's existing work. Consult [TDD anti-patterns](tdd-anti-patterns.md) when test design needs it.
114
+ - **Proportional Engineering**: Add an abstraction, dependency, service, configuration surface, compatibility layer, or security mechanism only when the approved spec or an established repository requirement needs it now. Prefer existing code, standard library, and native platform features.
114
115
  2. Match the step's done-when and run focused checks. Documentation or formatting-only edits use structural checks and review; they do not require artificial unit tests. Capture relevant runtime or browser proof for behavioral criteria, following the selected Check policy.
115
116
  3. Fix failures caused by the change and rerun affected checks without requesting authorization again. Broaden verification when dependencies, failures, or risk justify it.
116
117
  4. Record the diff summary and evidence. Mark a step complete once its done-when passes and any configured per-step review has been approved. A repaired finding becomes `fixed` with resolution evidence; only a subsequent audit can close it. Apply the review cadence above before proceeding.
117
118
 
119
+ Run a proportionality check before final verification: every new abstraction, dependency, service, configuration surface, compatibility layer, and security mechanism must trace to the approved spec or an established repository requirement. Remove speculative machinery this work added without weakening real trust-boundary validation, data-loss prevention, accessibility, or configured verification.
120
+
118
121
  At the final handoff, run the exact documented Verify command and all required gates. If there is no Verify command, use the project's declared build and test commands. Reuse a passing result for unchanged inputs within this pass; rerun affected gates after subsequent edits. Do not add tests or tools just to inflate the verification matrix.
119
122
 
120
123
  ### Ticket execution
@@ -28,6 +28,17 @@ Explicit user scope takes precedence over skill guidance, within runtime permiss
28
28
 
29
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.
30
30
 
31
+ ## Proportional engineering
32
+
33
+ Build for established requirements, not hypothetical scale, threats, or future flexibility. Reuse existing code, the standard library, native platform features, and installed dependencies before adding machinery.
34
+
35
+ - Unknown scale or extensibility defaults to the smaller reversible design. Do not infer enterprise, multi-tenant, hostile-user, or compliance requirements.
36
+ - Derive trust and data-integrity boundaries from actual reachability: untrusted input, auth/session/ownership, shared persisted data, destructive operations, payments, secrets, and sensitive data.
37
+ - Ask only when an unknown materially changes behavior, architecture, persisted data, interoperability, a real security boundary, or cost. Otherwise choose the simplest repository-native implementation.
38
+ - Add an abstraction, dependency, service, configuration surface, compatibility layer, or security mechanism only for a current requirement.
39
+ - Simplicity never removes real trust-boundary validation, data-loss prevention, accessibility, explicit security requirements, configured tests, or project rules.
40
+ - Stack-specific template standards apply only when the project uses that stack.
41
+
31
42
  ## Project configuration
32
43
 
33
44
  `devflow/config.json` is the user-owned, machine-readable workflow policy for this project. Workflow skills read the relevant settings before acting. A missing file means built-in defaults. An invalid file falls back to defaults for read-only status reporting, but mutating workflow commands stop and point to `/doctor` instead of guessing.
@@ -50,7 +61,7 @@ Unused adapter families can be removed. Codex, Antigravity, GitHub Copilot, and
50
61
 
51
62
  ### Universal Invocation & Agent Directives:
52
63
 
53
- 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`, `continuous`, `analyze`, `discovery`, `idea`, `grill`, `brainstorm`, `bughunter`, `devflow`, `doctor`, `overview`, `debug`, `onboard`, `adopt`, `try`, `rollback`, `ci`, `test`, `setup-tests`, `browser-tests`, `autopilot`, `prototype`, `report-html`, `brief`, `audit`, `release`, `convert-any-to-md`, `publish-devflow`, `vendor`). The way you invoke commands depends on your AI Provider / Tool:
64
+ 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`, `continuous`, `analyze`, `discovery`, `explore`, `idea`, `grill`, `brainstorm`, `bughunter`, `devflow`, `doctor`, `overview`, `debug`, `onboard`, `adopt`, `try`, `rollback`, `ci`, `test`, `setup-tests`, `browser-tests`, `autopilot`, `prototype`, `report-html`, `brief`, `audit`, `release`, `convert-any-to-md`, `publish-devflow`, `vendor`). The way you invoke commands depends on your AI Provider / Tool:
54
65
  - **Canonical Name (Plain text)**: Directly invoke or prompt the command by its standard name (e.g., `feature`, `implement`, `continuous`, `devflow`, `discovery`, `analyze`).
55
66
  - **Slash Prefix (`/`)**: For tools supporting slash commands (Claude Code, Google Antigravity, Gemini CLI), e.g., `/feature`, `/fix`, `/implement`, `/continuous`, `/devflow`, `/discovery`, `/analyze`.
56
67
  - **Dollar Prefix (`$`)**: For OpenAI Codex CLI or skill-invocation tools, e.g., `$feature`, `$fix`, `$continuous`, `$devflow`, `$discovery`, `$analyze`.
@@ -57,9 +57,9 @@ Before committing to delivery, use specialized companion skills:
57
57
 
58
58
  ---
59
59
 
60
- ## 4. Core Skills Inventory (32 Skills)
60
+ ## 4. Core Skills Inventory (33 Skills)
61
61
 
62
- DevFlow ships **32 bundled Core Skills** from the ordered `core_skills` inventory
62
+ DevFlow ships **33 bundled Core Skills** from the ordered `core_skills` inventory
63
63
  in `agent-bundle.manifest.json`, synchronized 1:1 across `.agents/skills/`
64
64
  (Codex / Antigravity / Copilot) and `.claude/skills/` (Claude Code). Local or
65
65
  Personal Skills may coexist in a workspace, but are excluded from the Core count
@@ -82,9 +82,10 @@ and package template until explicitly promoted.
82
82
  - `grill` / `align`: Socratic alignment, domain modeling, and ADR recording (`devflow/decisions/`).
83
83
  - `brainstorm`: Structured divergent & convergent ideation with trade-off matrices.
84
84
 
85
- ### C. Workspace & Governance Skills (19 Skills)
85
+ ### C. Workspace & Governance Skills (20 Skills)
86
86
  - `devflow`: Interactive workspace inspector and intent router.
87
87
  - `doctor`: Read-only health check for setup, adapters, and workflow drift.
88
+ - `explore`: Fast read-only query answering and codebase orientation without writing files.
88
89
  - `onboard`: Configure freshly scaffolded projects.
89
90
  - `adopt`: Bootstrap DevFlow into existing brownfield codebases.
90
91
  - `overview`: Compile living source of truth from planning docs.
@@ -42,6 +42,7 @@ Use pre-flight skills before committing to delivery when exploring new ideas or
42
42
  | **System Diagnostics** | `/doctor` | Read-only check of adapters, configs, and workflow drift. |
43
43
  | **Workspace Navigation** | `/devflow` | Flagship state inspector and next action router. |
44
44
  | **Root-Cause Analysis** | `/debug` | Scientific six-phase diagnosis using a deterministic red-capable feedback loop without modifying source. |
45
+ | **Read-Only Code Exploration** | `/explore` | Fast read-only query answering and codebase orientation without writing files. |
45
46
  | **Architecture & Spec Verification** | `/check` | Reviews Deep Modules, documented standards, and behavioral acceptance as independent axes. |
46
47
  | **Manual QA Guide** | `/try` | Generates click-by-click human manual test guide. |
47
48
  | **Code & Security Audit** | `/audit` | Branch-aware or full-project code and security audit. |
@@ -57,7 +58,7 @@ Use pre-flight skills before committing to delivery when exploring new ideas or
57
58
 
58
59
  ## 4. Selection Boundaries & References
59
60
 
60
- - The **32 bundled Core Skills** are the names in `agent-bundle.manifest.json#core_skills`; Local or Personal Skills are workspace extensions, not automatic public commands.
61
+ - The **33 bundled Core Skills** are the names in `agent-bundle.manifest.json#core_skills`; Local or Personal Skills are workspace extensions, not automatic public commands.
61
62
  - Prefer an existing Core Skill before adding a new public surface. Follow [governance rules](governance-rules.md) for promotion and placement decisions.
62
63
  - Generated artifacts follow the [Markdown metadata contract](markdown-metadata-contract.md).
63
64
  - Human review responsibilities are defined in the [manual review workflow](manual-review-workflow-spec.md).
@@ -1,8 +1,8 @@
1
- # Workflow Surface Map (32 Core Skills)
1
+ # Workflow Surface Map (33 Core Skills)
2
2
 
3
3
  This document outlines the active workflow surfaces and command taxonomy in **Nexus-DevFlow 2.13.0**.
4
4
 
5
- The canonical surface contains **32 Core Skills** from
5
+ The canonical surface contains **33 Core Skills** from
6
6
  `agent-bundle.manifest.json#core_skills`. Additional Local or Personal Skills
7
7
  may exist in a workspace, but are not bundled product commands until explicitly
8
8
  promoted into that inventory.
@@ -18,7 +18,7 @@ Each command in DevFlow has exactly **one canonical name** and can be invoked ac
18
18
 
19
19
  ---
20
20
 
21
- ## 2. Canonical Surface Taxonomy (32 Core Skills)
21
+ ## 2. Canonical Surface Taxonomy (33 Core Skills)
22
22
 
23
23
  ### ⚡ 1. The 4-Stage Living Spec Lifecycle Skills (7 Skills)
24
24
  | Command | Category | Purpose | Primary Artifact |
@@ -44,11 +44,12 @@ Each command in DevFlow has exactly **one canonical name** and can be invoked ac
44
44
 
45
45
  ---
46
46
 
47
- ### 🧰 3. Workspace Governance & Operations (20 Skills)
47
+ ### 🧰 3. Workspace Governance & Operations (21 Skills)
48
48
  | Command | Category | Purpose |
49
49
  | :--- | :--- | :--- |
50
50
  | `devflow` | Navigation | Flagship interactive guide, state inspector, and intent router. |
51
51
  | `doctor` | Diagnostics | Read-only health check for setup, adapters, and workflow drift. |
52
+ | `explore` | Navigation | Fast read-only query answering and codebase orientation without writing files. |
52
53
  | `overview` | Context | Regenerate and validate `project-overview.md` from planning docs. |
53
54
  | `brief` | Planning | Scope and dependency briefing before speccing a feature. |
54
55
  | `debug` | Diagnostics | Scientific six-phase diagnosis using a deterministic red-capable feedback loop. |
@@ -1,110 +1,82 @@
1
- # [ID-slug] Feature Title
1
+ # 📐 [{xxx-slug}] {title}
2
2
 
3
- > **Template Type**: Task-Isolated Living Spec
4
- > **Active Location**: `devflow/context/{xxx-slug}/spec.md`
5
- > **Archive Location**: `devflow/history/{features|fixes|rollbacks}/{ID-slug}.md`
6
-
7
- - **Feature ID**: `{xxx-slug}`
8
- - **Category**: `features` | `fixes` | `rollbacks`
9
- - **Target Branch**: `feature/{xxx-slug}`
10
- - **Status**: `Spec Ready` | `In-Progress` | `Verified` | `Completed`
11
- - **Track**: `Unified Fast-Track`
12
- - **Discovery Ref**: `devflow/discoveries/DISC-xxx.md` (Optional)
13
- - **ADR Ref**: `devflow/decisions/ADR-xxx.md` (Optional)
14
-
15
- ---
16
-
17
- ## 🎯 1. Define & Boundaries
18
-
19
- ### Problem Statement & Goal
20
- - **Problem**: อธิบายปัญหาที่พบ หรือสิ่งที่ต้องการแก้ไข/ปรับปรุง
21
- - **Goal**: ผลลัพธ์หรือเป้าหมายที่ต้องการให้เกิดขึ้น
22
-
23
- ### In-Scope & Out-of-Scope
24
- - **In-Scope**:
25
- - สิ่งที่ต้องทำในรอบนี้
26
- - **Out-of-Scope**:
27
- - สิ่งที่ไม่ทำในรอบนี้ หรือยกยอดไปทำในเฟสถัดไป
28
-
29
- ### Risk & Mitigation Matrix
30
- | Risk | Severity | Mitigation |
31
- | :--- | :--- | :--- |
32
- | ความเสี่ยงที่อาจเกิดขึ้น | Low/Medium/High | แนวทางป้องกันหรือรับมือ |
33
-
34
- ### Success Criteria
35
- 1. เกณฑ์ชี้วัดความสำเร็จข้อที่ 1
36
- 2. เกณฑ์ชี้วัดความสำเร็จข้อที่ 2
3
+ > **Status**: In-Progress
4
+ > **Track**: Fast-Track (Task-Isolated Living Spec Mode - Feature)
5
+ > **Category**: Feature
6
+ > **Source**: `devflow/build-plan.md: Feature {n}` & `devflow/discoveries/{DISC-ID}/discovery.md`
7
+ > **Branch**: `feature/{xxx-slug}`
8
+ > **Started Date**: {YYYY-MM-DD}
9
+ > **Delivered Date**: TBD
10
+ > **Owner**: DevFlow Core Framework Team & AI
37
11
 
38
12
  ---
39
13
 
40
- ## 📐 2. Technical Spec & Contracts
14
+ ## 1. Specification & Scope
41
15
 
42
- ### Architecture & Component Design
43
- - อธิบายโครงสร้างหรือ Flow การทำงานของ Component/Module
16
+ ### 1.1 Problem Statement
17
+ {Description of the problem, background, and rationale for developing this feature}
44
18
 
45
- ### Data Models & Schemas
46
- ```typescript
47
- // Interface หรือ Type Definition
48
- ```
19
+ ### 1.2 In-Scope
20
+ 1. {In-scope item 1}
21
+ 2. {In-scope item 2}
49
22
 
50
- ### API & Interface Contracts
51
- - **Endpoint / Function**: `methodName(params: Type): ReturnType`
52
- - **Error Handling**: รายละเอียด Error Codes และวิธีจัดการ
23
+ ### 1.3 Out-of-Scope
24
+ - {Items deliberately excluded or deferred to future features}
53
25
 
54
- ### Non-Functional Constraints
55
- - **Security**: การตรวจสอบ Input, การจัดการสิทธิ์, Secrets
56
- - **Performance**: ข้อจำกัดเรื่องความเร็ว หรือ Resource Usage
57
-
58
- ### Acceptance Criteria (AC)
59
- - [ ] **AC-1**: เงื่อนไขการยอมรับข้อที่ 1
60
- - [ ] **AC-2**: เงื่อนไขการยอมรับข้อที่ 2
26
+ ### 1.4 Acceptance Criteria
27
+ - [ ] **AC-1**: {Acceptance criterion 1}
28
+ - [ ] **AC-2**: {Acceptance criterion 2}
61
29
 
62
30
  ---
63
31
 
64
- ## 📋 3. Execution Plan & TDD Checklist
32
+ ## 2. Plan & Test Strategy
65
33
 
66
- - [ ] **Task 1: Core Foundation & Types**
67
- - [ ] 1.1 `[TDD-Red]` เขียน Unit Test สำหรับ Logic ส่วนที่ 1
68
- - [ ] 1.2 `[TDD-Green]` Implement Logic ให้ผ่าน Test
69
- - [ ] 1.3 `[TDD-Refactor]` Clean up และ Optimize โค้ด
34
+ ### 2.1 Files Modified / Created
35
+ - `{file-path}` [NEW | MODIFY | DELETE]
70
36
 
71
- - [ ] **Task 2: Feature Implementation**
72
- - [ ] 2.1 `[TDD-Red]` เขียน Test ครอบคลุม Edge Cases
73
- - [ ] 2.2 `[TDD-Green]` Implement Feature ตาม Contract
74
- - [ ] 2.3 `[TDD-Refactor]` ตรวจสอบความถูกต้องและ Architecture
37
+ ### 2.2 Quality Gates & Sensitivity Check
38
+ - **Quality Gate Policy (`independentReview`)**: `manual` | `always` | `when-sensitive`
39
+ - **UI Evidence / Browser Tests**: {Not applicable | Playwright / BrowserOS Neo}
40
+ - **Review Strategy**: One feature-level review packet at completion
75
41
 
76
- - [ ] **Task 3: Integration & QA Verification**
77
- - [ ] 3.1 `[TDD-Green]` เชื่อมต่อ UI/API และตรวจสอบ End-to-End
42
+ ### 2.3 Test Decision: Required (TDD) | Optional
43
+ - **Rationale**: {Reason for requiring Unit Tests / TDD}
78
44
 
79
45
  ---
80
46
 
81
- ## ⚡ 4. Implementation Log & Evidence
47
+ ## 3. Implementation Checklist (Strict TDD)
82
48
 
83
- *(จะถูกบันทึกและอัปเดตความคืบหน้าระหว่างรันคำสั่ง `/implement`)*
49
+ - [ ] **Task 1: {Task 1 title}**
50
+ - [ ] 1.1 `[TDD-Red]`: {Write failing unit or behavioral test}
51
+ - [ ] 1.2 `[TDD-Green]`: {Write minimal implementation to pass test}
52
+ - [ ] 1.3 `[TDD-Refactor]`: {Refactor and ensure 100% tests green}
84
53
 
85
- - **Step 1**: ...
86
- - **Checkpoint Commit**: `feat(scope): ...`
54
+ - [ ] **Task 2: {Task 2 title}**
55
+ - [ ] 2.1 `[TDD-Red]`: ...
56
+ - [ ] 2.2 `[TDD-Green]`: ...
57
+ - [ ] 2.3 `[TDD-Refactor]`: ...
87
58
 
88
59
  ---
89
60
 
90
- ## 🧪 5. Multi-Lane Verification Matrix
61
+ ## 4. Verification Evidence Matrix
91
62
 
92
- *(จะถูกบันทึกผลการตรวจสอบระหว่างรันคำสั่ง `/check`)*
63
+ ### ⚖️ Axis 1: Standards, Architecture & Quality Gate
64
+ - **Type Safety & Build Integrity**: TBD
65
+ - **Automated Test Matrix**: TBD
66
+ - **Static Contract Verification**: TBD
67
+ - **Package Smoke Test**: TBD
68
+ - **Findings Ledger**: Verify `findings.md` is 100% clean
93
69
 
94
- | Lane | Command / Verification Target | Result | Notes / Proof |
95
- | :--- | :--- | :--- | :--- |
96
- | **Typecheck** | `npm run typecheck` | ⏳ PENDING | |
97
- | **Lint** | `npm run lint` | ⏳ PENDING | |
98
- | **Unit Tests** | `npm test` | ⏳ PENDING | |
99
- | **Manual Proof** | UI / CLI Behavioral Verification | ⏳ PENDING | |
70
+ ### 🎯 Axis 2: Spec Fidelity & Behavioral Acceptance Gate
71
+ - [ ] **AC-1**: {Empirical proof for AC-1}
72
+ - [ ] **AC-2**: {Empirical proof for AC-2}
100
73
 
101
74
  ---
102
75
 
103
- ## 📦 6. Release Digest & Retrospective
104
-
105
- *(จะถูกสรุปและบันทึกอัตโนมัติก่อนทำการ Squash Merge ในคำสั่ง `/complete`)*
76
+ ## 5. Delivery Verification & Independent Receipt
106
77
 
107
- - **What Changed**: สรุปสิ่งที่เปลี่ยนแปลง
108
- - **Key Decisions**: การตัดสินใจสำคัญระหว่างพัฒนา
109
- - **Lessons Learned**: บทเรียนที่ได้รับ
110
- - **Known Limitations**: ข้อจำกัดที่ทราบและข้อเสนอแนะในอนาคต
78
+ - **Delivery Date**: TBD
79
+ - **Verification Verdict**: TBD
80
+ - **Framework Tests**: TBD
81
+ - **Static Contract**: TBD
82
+ - **Package Smoke Test**: TBD