@jakkrichm/create-nexus-devflow 2.18.2 → 2.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -6
- package/dist/bin/create-nexus-devflow.js +80 -47
- package/dist/bin/create-nexus-devflow.js.map +1 -1
- package/dist/lib/doctor.js +27 -0
- package/dist/lib/doctor.js.map +1 -1
- package/dist/lib/tooling/commands/scan-doc-contract.js +0 -1
- package/dist/lib/tooling/commands/scan-doc-contract.js.map +1 -1
- package/dist/lib/ui.d.ts +23 -0
- package/dist/lib/ui.js +85 -0
- package/dist/lib/ui.js.map +1 -1
- package/dist/lib/update.js +1 -1
- package/dist/lib/update.js.map +1 -1
- package/dist/scripts/prepare-template.js +3 -7
- package/dist/scripts/prepare-template.js.map +1 -1
- package/package.json +2 -2
- package/template/.agents/skills/audit/SKILL.md +4 -1
- package/template/.agents/skills/brainstorm/SKILL.md +5 -4
- package/template/.agents/skills/bughunter/SKILL.md +1 -1
- package/template/.agents/skills/check/SKILL.md +26 -116
- package/template/.agents/skills/check/reference/guide.md +36 -4
- package/template/.agents/skills/check/reference/verify.md +129 -0
- package/template/.agents/skills/ci/SKILL.md +35 -13
- package/template/.agents/skills/complete/SKILL.md +2 -0
- package/template/.agents/skills/devflow/SKILL.md +3 -2
- package/template/.agents/skills/discovery/SKILL.md +9 -0
- package/template/.agents/skills/doctor/SKILL.md +2 -0
- package/template/.agents/skills/explore/SKILL.md +2 -1
- package/template/.agents/skills/feature/SKILL.md +4 -1
- package/template/.agents/skills/feature/reference/feature-spec-template.md +16 -16
- package/template/.agents/skills/fix/SKILL.md +3 -3
- package/template/.agents/skills/grill/SKILL.md +6 -1
- package/template/.agents/skills/idea/SKILL.md +6 -6
- package/template/.agents/skills/implement/SKILL.md +45 -119
- package/template/.agents/skills/test/SKILL.md +26 -0
- package/template/.claude/skills/audit/SKILL.md +4 -1
- package/template/.claude/skills/brainstorm/SKILL.md +5 -4
- package/template/.claude/skills/bughunter/SKILL.md +1 -1
- package/template/.claude/skills/check/SKILL.md +26 -116
- package/template/.claude/skills/check/reference/guide.md +36 -4
- package/template/.claude/skills/check/reference/verify.md +129 -0
- package/template/.claude/skills/ci/SKILL.md +35 -13
- package/template/.claude/skills/complete/SKILL.md +2 -0
- package/template/.claude/skills/devflow/SKILL.md +3 -2
- package/template/.claude/skills/discovery/SKILL.md +11 -3
- package/template/.claude/skills/doctor/SKILL.md +2 -0
- package/template/.claude/skills/explore/SKILL.md +2 -1
- package/template/.claude/skills/feature/SKILL.md +4 -1
- package/template/.claude/skills/feature/reference/feature-spec-template.md +16 -16
- package/template/.claude/skills/fix/SKILL.md +3 -3
- package/template/.claude/skills/grill/SKILL.md +6 -1
- package/template/.claude/skills/idea/SKILL.md +6 -6
- package/template/.claude/skills/implement/SKILL.md +45 -119
- package/template/.claude/skills/test/SKILL.md +26 -0
- package/template/AGENTS.md +27 -38
- package/template/devflow/context/ai-interaction.md +15 -14
- package/template/devflow/context/coding-standards.md +67 -6
- package/template/devflow/context/glossary.md +26 -6
- package/template/devflow/decisions/README.md +15 -1
- package/template/devflow/reference/feature-spec-template.md +59 -79
- package/template/devflow/reference/help-playbook-protocol.md +33 -0
- package/template/devflow/reference/slicing-archetypes.md +105 -0
- package/template/devflow/docs/USAGE.md +0 -195
- package/template/devflow/docs/diagrams/nexus-devflow-architecture.html +0 -14821
- package/template/devflow/docs/diagrams/nexus-devflow-architecture.json +0 -80
- package/template/devflow/docs/diagrams/nexus-devflow-lifecycle.html +0 -14860
- package/template/devflow/docs/diagrams/nexus-devflow-lifecycle.json +0 -88
- package/template/devflow/docs/examples/living-spec/adr.example.md +0 -43
- package/template/devflow/docs/examples/living-spec/current-feature.example.md +0 -113
- package/template/devflow/docs/examples/living-spec/discovery.example.md +0 -45
- package/template/devflow/docs/examples/living-spec/ideas.example.md +0 -22
- package/template/devflow/docs/governance-rules.md +0 -39
- package/template/devflow/docs/manual-review-workflow-spec.md +0 -116
- package/template/devflow/docs/markdown-metadata-contract.md +0 -140
- package/template/devflow/docs/quickstart.md +0 -124
- package/template/devflow/docs/release-process.md +0 -52
- package/template/devflow/docs/skill-selection-policy.md +0 -64
- package/template/devflow/docs/workflow-surface-map.md +0 -86
- package/template/devflow/runs/.gitkeep +0 -1
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
###
|
|
8
|
-
- **Definition**: เอกสาร Markdown
|
|
9
|
-
- **Constraints**:
|
|
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**: `
|
|
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**: ขับเคลื่อนผ่านไฟล์ `
|
|
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,10 +22,30 @@
|
|
|
22
22
|
|
|
23
23
|
### Multi-Lane Verification Matrix
|
|
24
24
|
- **Definition**: ตารางตรวจสอบคุณภาพแบบหลายมิติที่ครอบคลุม Typecheck, Linter, Automated Unit/Integration Tests, และ Manual Proof Evidence ในคำสั่ง `/check`
|
|
25
|
-
- **Constraints**:
|
|
25
|
+
- **Constraints**: ต้องมีหลักฐานผ่านสำหรับทุก Lane ที่ใช้กับงาน ส่วนที่ไม่เกี่ยวข้องให้บันทึก N/A พร้อมเหตุผล และไม่มี P0/P1 Finding ที่ยังค้างอยู่ก่อนที่จะส่งต่อไปยัง `/complete`
|
|
26
26
|
- **Aliases / Related**: QA Matrix, Lane Verification
|
|
27
27
|
|
|
28
28
|
### Release Digest & Retrospective
|
|
29
29
|
- **Definition**: สรุปผลการเปลี่ยนแปลง, บทเรียนที่ได้รับ (Lessons Learned), และการตัดสินใจสำคัญที่บันทึกไว้ในตอนปิดรอบการพัฒนา
|
|
30
30
|
- **Constraints**: บันทึกอัตโนมัติใน Living Spec ก่อนที่จะทำการ Squash Merge และ Archive
|
|
31
31
|
- **Aliases / Related**: Delivery Digest, Retrospective Log
|
|
32
|
+
|
|
33
|
+
### 4 Slicing Archetypes
|
|
34
|
+
- **Definition**: รูปแบบมาตรฐาน 4 ประการในการแบ่งย่อยฟีเจอร์ (Skateboard, Facade, Tracer Bullet, Journey) เพื่อให้ได้รอบการส่งมอบที่เล็ก ทดสอบได้จริง และไม่ติดขัด Technical Layer Dependency
|
|
35
|
+
- **Constraints**: ใช้งานใน `/discovery`, `/brainstorm`, และ `/feature` (Step 2)
|
|
36
|
+
- **Aliases / Related**: `slicing-archetypes.md`, Feature Decomposition, Slicing Strategy
|
|
37
|
+
|
|
38
|
+
### Assumed Decision Debt
|
|
39
|
+
- **Definition**: หนี้การตัดสินใจที่เกิดขึ้นจากการตั้งสมมติฐานทางสถาปัตยกรรมชั่วคราว (`Status: Assumed` ใน ADR) เพื่อให้การพัฒนาเดินหน้าได้อย่างรวดเร็ว (Fast-track) โดยไม่สะดุด
|
|
40
|
+
- **Constraints**: ต้องระบุ Assumption, Risk Level, และ Ratification Plan กำกับเสมอ และต้องได้รับการตรวจทาน/ยืนยัน (Ratified) ก่อนปล่อยสู่ Production
|
|
41
|
+
- **Aliases / Related**: Assumed ADR, Decision Debt, Fast-track Assumption
|
|
42
|
+
|
|
43
|
+
### AC-to-Test Traceability Matrix
|
|
44
|
+
- **Definition**: ตารางเชื่อมโยงระหว่างข้อกำหนด Acceptance Criteria (`AC-N`) ใน Living Spec กับ Automated Test Cases และหลักฐานเชิงประจักษ์ เพื่อให้มั่นใจว่าทุกข้อกำหนดได้รับการทดสอบและพิสูจน์จริงแบบ 1-to-1
|
|
45
|
+
- **Constraints**: ใช้ระบุใน Living Spec (`spec.md`), ตรวจทานใน `/check`, และกำกับด้วย `AC-N` Tag ในโค้ดทดสอบ
|
|
46
|
+
- **Aliases / Related**: Traceability Matrix, AC Mapping, Spec Verification Trace
|
|
47
|
+
|
|
48
|
+
### Prompt Caching Rate & Billed-Equivalent Cost
|
|
49
|
+
- **Definition**: ดัชนีวัดประสิทธิภาพการใช้ Token ของ AI Coding Agent โดยแยกแยะระหว่าง Fresh Input Tokens, Cache Creation (Write), Cache Read (Prompt Caching Hits), และ Output Tokens เพื่อคำนวณต้นทุนจริง (USD) และ % ส่วนลดที่ประหยัดได้จาก Prompt Caching
|
|
50
|
+
- **Constraints**: วิเคราะห์ผ่าน `scripts/analyze-token-usage.ts` และคำสั่ง `npm run analyze:tokens`
|
|
51
|
+
- **Aliases / Related**: Token Economics, Cost Units, Cache Hit Rate
|
|
@@ -11,10 +11,14 @@ Each ADR is named `ADR-xxx-{slug}.md` (e.g. `ADR-001-database-schema-migration.m
|
|
|
11
11
|
```markdown
|
|
12
12
|
# ADR-xxx: {Title}
|
|
13
13
|
|
|
14
|
-
- **Status**: Accepted | Proposed | Deprecated | Superseded by ADR-yyy
|
|
14
|
+
- **Status**: `Accepted` | `Proposed` | `Assumed` (Fast-tracked Assumption) | `Deprecated` | `Superseded by ADR-yyy`
|
|
15
15
|
- **Date**: YYYY-MM-DD
|
|
16
16
|
- **Context**: Problem statement, background, and why this decision was needed.
|
|
17
17
|
- **Decision**: The selected architectural approach or invariant.
|
|
18
|
+
- **Assumption Metadata** *(Mandatory when Status is `Assumed`)*:
|
|
19
|
+
- **Assumption**: ข้อสมมติฐานทางเทคนิคที่ตั้งขึ้นเพื่อปลดบล็อกการทำงานชั่วคราว
|
|
20
|
+
- **Risk Level & Blast Radius**: ระดับความเสี่ยงและขอบเขตผลกระทบหากข้อสมมติไม่ถูกต้อง
|
|
21
|
+
- **Ratification Plan**: เงื่อนไข, วันที่ หรือเหตุการณ์ที่จะทำการทวนสอบ (Ratify) เพื่อเปลี่ยนสถานะเป็น `Accepted` หรือ `Rejected`
|
|
18
22
|
- **Alternatives Considered**:
|
|
19
23
|
- *Option 1*: Pros / Cons
|
|
20
24
|
- *Option 2*: Pros / Cons
|
|
@@ -22,3 +26,13 @@ Each ADR is named `ADR-xxx-{slug}.md` (e.g. `ADR-001-database-schema-migration.m
|
|
|
22
26
|
- *Positive*: Benefits and capabilities unlocked
|
|
23
27
|
- *Trade-offs / Risks*: Costs, complexity, or constraints
|
|
24
28
|
```
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## ⚡ Assumed Decision Debt Policy
|
|
33
|
+
|
|
34
|
+
เมื่อทีมหรือ Agent จำเป็นต้องเดินหน้าพัฒนาอย่างรวดเร็ว (Fast-track) โดยที่ข้อสรุปทางสถาปัตยกรรมยังไม่ได้รับการยืนยัน 100% จากผู้ใช้ ให้บันทึก ADR ด้วย `Status: Assumed` พร้อมกรอก **Assumption Metadata** ให้ครบถ้วน
|
|
35
|
+
|
|
36
|
+
> [!WARNING]
|
|
37
|
+
> **Zero Untracked Decision Debt**: ทุก ADR ที่มีสถานะ `Assumed` จะถูกตรวจสอบโดย `/audit` และ `/complete` เพื่อแจ้งเตือนให้ทีมยืนยัน (Ratify) หรือปรับแก้ก่อนส่งมอบขึ้น Production เสมอ
|
|
38
|
+
|
|
@@ -1,110 +1,90 @@
|
|
|
1
|
-
# [
|
|
1
|
+
# 📐 [{xxx-slug}] {title}
|
|
2
2
|
|
|
3
|
-
> **
|
|
4
|
-
> **
|
|
5
|
-
> **
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
- **Track**: `Unified Fast-Track`
|
|
12
|
-
- **Discovery Ref**: `devflow/discoveries/DISC-xxx.md` (Optional)
|
|
13
|
-
- **ADR Ref**: `devflow/decisions/ADR-xxx.md` (Optional)
|
|
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
|
|
14
11
|
|
|
15
12
|
---
|
|
16
13
|
|
|
17
|
-
##
|
|
14
|
+
## 1. Specification & Scope
|
|
18
15
|
|
|
19
|
-
### Problem Statement
|
|
20
|
-
|
|
21
|
-
- **Goal**: ผลลัพธ์หรือเป้าหมายที่ต้องการให้เกิดขึ้น
|
|
16
|
+
### 1.1 Problem Statement
|
|
17
|
+
{Description of the problem, background, and rationale for developing this feature}
|
|
22
18
|
|
|
23
|
-
### In-Scope
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
- **Out-of-Scope**:
|
|
27
|
-
- สิ่งที่ไม่ทำในรอบนี้ หรือยกยอดไปทำในเฟสถัดไป
|
|
19
|
+
### 1.2 In-Scope
|
|
20
|
+
1. {In-scope item 1}
|
|
21
|
+
2. {In-scope item 2}
|
|
28
22
|
|
|
29
|
-
###
|
|
30
|
-
|
|
31
|
-
| :--- | :--- | :--- |
|
|
32
|
-
| ความเสี่ยงที่อาจเกิดขึ้น | Low/Medium/High | แนวทางป้องกันหรือรับมือ |
|
|
23
|
+
### 1.3 Out-of-Scope
|
|
24
|
+
- {Items deliberately excluded or deferred to future features}
|
|
33
25
|
|
|
34
|
-
###
|
|
35
|
-
1
|
|
36
|
-
2
|
|
26
|
+
### 1.4 Acceptance Criteria
|
|
27
|
+
- [ ] **AC-1**: {Acceptance criterion 1}
|
|
28
|
+
- [ ] **AC-2**: {Acceptance criterion 2}
|
|
37
29
|
|
|
38
30
|
---
|
|
39
31
|
|
|
40
|
-
##
|
|
41
|
-
|
|
42
|
-
### Architecture & Component Design
|
|
43
|
-
- อธิบายโครงสร้างหรือ Flow การทำงานของ Component/Module
|
|
32
|
+
## 2. Plan & Test Strategy
|
|
44
33
|
|
|
45
|
-
###
|
|
46
|
-
|
|
47
|
-
// Interface หรือ Type Definition
|
|
48
|
-
```
|
|
34
|
+
### 2.1 Files Modified / Created
|
|
35
|
+
- `{file-path}` [NEW | MODIFY | DELETE]
|
|
49
36
|
|
|
50
|
-
###
|
|
51
|
-
- **
|
|
52
|
-
- **
|
|
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
|
|
53
41
|
|
|
54
|
-
###
|
|
55
|
-
- **
|
|
56
|
-
- **Performance**: ข้อจำกัดเรื่องความเร็ว หรือ Resource Usage
|
|
57
|
-
|
|
58
|
-
### Acceptance Criteria (AC)
|
|
59
|
-
- [ ] **AC-1**: เงื่อนไขการยอมรับข้อที่ 1
|
|
60
|
-
- [ ] **AC-2**: เงื่อนไขการยอมรับข้อที่ 2
|
|
42
|
+
### 2.3 Test Decision: Required (TDD) | Optional
|
|
43
|
+
- **Rationale**: {Reason for requiring Unit Tests / TDD}
|
|
61
44
|
|
|
62
45
|
---
|
|
63
46
|
|
|
64
|
-
##
|
|
65
|
-
|
|
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 โค้ด
|
|
47
|
+
## 3. Implementation Checklist (Strict TDD)
|
|
70
48
|
|
|
71
|
-
- [ ] **Task
|
|
72
|
-
- [ ]
|
|
73
|
-
- [ ]
|
|
74
|
-
- [ ]
|
|
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}
|
|
75
53
|
|
|
76
|
-
- [ ] **Task
|
|
77
|
-
- [ ]
|
|
54
|
+
- [ ] **Task 2: {Task 2 title}**
|
|
55
|
+
- [ ] 2.1 `[TDD-Red]`: ...
|
|
56
|
+
- [ ] 2.2 `[TDD-Green]`: ...
|
|
57
|
+
- [ ] 2.3 `[TDD-Refactor]`: ...
|
|
78
58
|
|
|
79
59
|
---
|
|
80
60
|
|
|
81
|
-
##
|
|
61
|
+
## 4. Verification Evidence Matrix
|
|
82
62
|
|
|
83
|
-
|
|
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
|
|
84
69
|
|
|
85
|
-
|
|
86
|
-
- **
|
|
70
|
+
### 🎯 Axis 2: Spec Fidelity & Behavioral Acceptance Gate
|
|
71
|
+
- [ ] **AC-1**: {Empirical proof for AC-1}
|
|
72
|
+
- [ ] **AC-2**: {Empirical proof for AC-2}
|
|
87
73
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
## 🧪 5. Multi-Lane Verification Matrix
|
|
74
|
+
### 🔗 Axis 3: AC-to-Test Traceability Matrix
|
|
91
75
|
|
|
92
|
-
|
|
76
|
+
| Acceptance Criterion | File Tier | Automated Test Case / Assertion | Verification Command | Status |
|
|
77
|
+
| :--- | :--- | :--- | :--- | :---: |
|
|
78
|
+
| **AC-1** | Tier 1 (Logic) / Tier 2 (UI) | `it('AC-1: ...')` | `npm test` | ⏳ Pending |
|
|
79
|
+
| **AC-2** | Tier 3 (API) / Tier 4 (Tooling) | `it('AC-2: ...')` | `npm run check:static` | ⏳ Pending |
|
|
93
80
|
|
|
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 | |
|
|
100
81
|
|
|
101
82
|
---
|
|
102
83
|
|
|
103
|
-
##
|
|
104
|
-
|
|
105
|
-
*(จะถูกสรุปและบันทึกอัตโนมัติก่อนทำการ Squash Merge ในคำสั่ง `/complete`)*
|
|
84
|
+
## 5. Delivery Verification & Independent Receipt
|
|
106
85
|
|
|
107
|
-
- **
|
|
108
|
-
- **
|
|
109
|
-
- **
|
|
110
|
-
- **
|
|
86
|
+
- **Delivery Date**: TBD
|
|
87
|
+
- **Verification Verdict**: TBD
|
|
88
|
+
- **Framework Tests**: TBD
|
|
89
|
+
- **Static Contract**: TBD
|
|
90
|
+
- **Package Smoke Test**: TBD
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Contextual Help Playbook
|
|
2
|
+
|
|
3
|
+
**Universal Contextual Help & Playbook Protocol (`help`, `--help`, `-h`, `?`)**:
|
|
4
|
+
Whenever any skill or command is invoked with a help keyword or flag (e.g., `/bughunter help`, `bughunter --help`, `/archify -h`, `/check ?`, `/feature help`):
|
|
5
|
+
- **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).
|
|
6
|
+
- **Dynamic Workspace Inspection**: Read the target skill in the active adapter. Inspect only workspace files and selected references needed to tailor its examples; reuse current context.
|
|
7
|
+
- **Persistent HTML Playbook & Token-Saving Cache**:
|
|
8
|
+
- **Output Location & Light Theme Mandate**: Compile and persist the tailored playbook as a standalone, styled HTML report at `devflow/reference/playbooks/{skill}.html` adhering to the **Paper/Ink Light Theme Standard** (`data-theme="light"`, teal accent, ruler corner, terminal mockup UI, and a real diagram). Build the standalone page using these conventions.
|
|
9
|
+
- **First Run**: Render the comprehensive 5W1H playbook in chat and write the complete HTML report to `devflow/reference/playbooks/{skill}.html`.
|
|
10
|
+
- **Subsequent Invocations (Delta Updates & Zero Token Bloat)**: If `devflow/reference/playbooks/{skill}.html` already exists:
|
|
11
|
+
- 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).
|
|
12
|
+
- DO NOT repeat unchanged boilerplate or full static content in chat.
|
|
13
|
+
- Provide a concise **Delta Summary** in chat (highlighting what changed, new recommendations, or newly available commands).
|
|
14
|
+
- In-place update `devflow/reference/playbooks/{skill}.html` with the fresh timestamp and state.
|
|
15
|
+
- Provide a clickable link to the actual resolved output file using the active client's supported local-file link format.
|
|
16
|
+
- **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):
|
|
17
|
+
1. **What (Concept & Capabilities)**: Clear, jargon-free summary of what this skill does, its core concept, and its bundled tools/capabilities.
|
|
18
|
+
2. **Why (Problems Solved & Key Benefits)**: The problems it solves, key advantages, and why you should use it instead of ad-hoc manual work.
|
|
19
|
+
3. **Who (Target Roles & Personas)**: Target audience or engineering role (e.g., Feature Developer, Senior QA, Security Auditor, Solo Dev, or Tech Lead).
|
|
20
|
+
4. **Where (Boundaries & Artifact Locations)**: Target workspace boundaries, affected directories, and generated artifact locations (e.g., `devflow/context/`, `devflow/discoveries/`, `findings.md`).
|
|
21
|
+
5. **When (Timing & Prerequisites/Next Steps)**:
|
|
22
|
+
- **Timing & Triggers**: Practical situations or milestones when this skill should be invoked.
|
|
23
|
+
- **Run Before (Prerequisites)**: What to check, prepare, or run beforehand to get the best result.
|
|
24
|
+
- **Run After (Next Steps)**: What DevFlow command or lifecycle stage should follow next (e.g., handing off to `/fix`, `/feature`, or `/complete`).
|
|
25
|
+
6. **How (Execution Lifecycle & Real Command Examples)**:
|
|
26
|
+
- **How It Works (Lifecycle)**: Simple, plain-language breakdown of the execution steps or phases.
|
|
27
|
+
- **Available Commands & Options**: Common sub-commands, arguments, and flags with brief explanations.
|
|
28
|
+
- **Safety, Guardrails & Precautions**: Operational boundaries, credential hygiene, read-only vs. mutating constraints, and explicit special safety constraints / precautions.
|
|
29
|
+
7. **Diagram Slot & Architecture Flow**:
|
|
30
|
+
- **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"`).
|
|
31
|
+
- **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.
|
|
32
|
+
- **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.
|
|
33
|
+
- Always conclude the response with: `"Help menu displayed successfully"`.
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# 🧩 4 Slicing Archetypes Framework
|
|
2
|
+
|
|
3
|
+
> คู่มือมาตรฐานการแบ่งขนาดฟีเจอร์ (Feature Slicing & Decomposition) ใน Nexus-DevFlow เพื่อให้แต่ละรอบการส่งมอบ (Feature Run) มีขนาดเล็ก ส่งมอบคุณค่าได้จริง และทดสอบได้รอบด้าน
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 🎯 ทำไมต้องมี Slicing Archetypes?
|
|
8
|
+
|
|
9
|
+
ในการพัฒนาซอฟต์แวร์และการทำงานร่วมกับ AI Coding Agents ปัญหาคลาสสิก 2 ประการคือ:
|
|
10
|
+
1. **Slicing by Technical Layer** (เช่น ทำเฉพาะ Database หรือทำเฉพาะ Backend API ก่อน): ทำให้ในรอบนั้นไม่มี UI ให้ทดสอบ หรือไม่สามารถทดสอบแบบ End-to-End ได้
|
|
11
|
+
2. **Oversized Features** (ก้อนใหญ่เกินไป): ทำให้ Context Window เต็มเร็ว AI เริ่มเพี้ยน และการ Review ทำได้ยาก
|
|
12
|
+
|
|
13
|
+
**4 Slicing Archetypes** ช่วยให้คุณและ Agent เลือกกลยุทธ์การหั่นงานที่เหมาะสมที่สุดตามเป้าหมายของแต่ละ Milestone:
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## 🛹 1. Skateboard Archetype (Minimal Functional Loop)
|
|
18
|
+
|
|
19
|
+
> *"อย่าเริ่มสร้างรถยนต์ด้วยการทำล้อ แต่ให้เริ่มด้วยการทำสเก็ตบอร์ดที่พาผู้ใช้เคลื่อนที่ได้จริง"*
|
|
20
|
+
|
|
21
|
+
### นิยาม & วัตถุประสงค์:
|
|
22
|
+
- สร้าง Core Business Logic & State Machine ที่ทำงานได้จริงครบ Loop แม้ UI จะเรียบง่ายที่สุด (Minimal UI หรือ Single Route / Basic Form / CLI interface)
|
|
23
|
+
- เน้นความถูกต้องของ Logic, Validation, Edge Cases และ Data Flow
|
|
24
|
+
|
|
25
|
+
### เหมาะสำหรับ:
|
|
26
|
+
- ฟีเจอร์ที่ Logic ซับซ้อน มีการคำนวณ การแปลงข้อมูล หรือ State transitions หลายขั้นตอน
|
|
27
|
+
- ต้องการพิสูจน์ว่าแนวคิดหลัก (Core Mechanism) ทำงานได้จริงก่อนลงทุนตกแต่งหน้าจอ
|
|
28
|
+
|
|
29
|
+
### ตัวอย่าง:
|
|
30
|
+
- **Search & Filter**: สร้างหน้าค้นหาที่มี Search Input เรียบๆ และแสดงผลลัพธ์แบบ Text List เพื่อทดสอบ Search Query, Debounce, Pagination และ Filter Logic
|
|
31
|
+
- **Payment Processing**: ระบบคำนวณราคาสินค้า ส่วนลด ภาษี และสร้าง Transaction Record โดยยังไม่ต้องมี UI สวยหรู
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
## 🎭 2. Facade Archetype (Rich UI / Mock-Backed DX)
|
|
36
|
+
|
|
37
|
+
> *"สร้างประสบการณ์ใช้งานจริงที่สวยงามและจับต้องได้ โดยเชื่อมต่อกับ Mock Data ก่อนพัฒนา Backend จริง"*
|
|
38
|
+
|
|
39
|
+
### นิยาม & วัตถุประสงค์:
|
|
40
|
+
- สร้าง Full Rich Interactive UI, Component Interactions, Micro-animations และ Design System สมบูรณ์แบบ
|
|
41
|
+
- จำลอง Data Source ด้วย In-Memory Mock หรือ JSON Fixtures เพื่อเก็บ Feedback เรื่อง UX/DX ทันที
|
|
42
|
+
|
|
43
|
+
### เหมาะสำหรับ:
|
|
44
|
+
- ฟีเจอร์ที่เน้นประสบการณ์ผู้ใช้ (UI/UX Heavy), Dashboard, Data Visualization, Complex Multi-step Wizards
|
|
45
|
+
- ต้องการให้ Stakeholders / ผู้ใช้เห็นหน้าตาและสัมผัส Flow การกดจริงเพื่อสรุป Design ก่อนลงมือทำ Backend
|
|
46
|
+
|
|
47
|
+
### ตัวอย่าง:
|
|
48
|
+
- **Analytics Dashboard**: สร้างชาร์ต กราฟ และ Card KPIs สวยงาม Interactive เต็มรูปแบบโดยอ่านข้อมูลจาก Mock Dataset
|
|
49
|
+
- **Interactive Kanban Board**: Drag & drop การ์ด ย้ายคอลัมน์ ปรับแท็กแบบ Real-time บน Local State ก่อนเชื่อมต่อ Database จริง
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## 🎯 3. Tracer Bullet Archetype (End-to-End Vertical Slice)
|
|
54
|
+
|
|
55
|
+
> *"ยิงกระสุนส่องวิถี ทะลวงผ่านทุกเลเยอร์ของระบบจากบนลงล่าง สำหรับ 1 Happy Path ที่สมบูรณ์"*
|
|
56
|
+
|
|
57
|
+
### นิยาม & วัตถุประสงค์:
|
|
58
|
+
- สร้าง Full-Stack Vertical Slice ตั้งแต่ UI -> API Controller -> Service/Logic -> Database Model & Migration สำหรับ **1 Single Happy Path**
|
|
59
|
+
- พิสูจน์ Contract, Network Protocol, Serialization, Type Safety และ Infrastructure ทั้งหมดว่าเชื่อมต่อกันได้จริง
|
|
60
|
+
|
|
61
|
+
### เหมาะสำหรับ:
|
|
62
|
+
- สถาปัตยกรรมใหม่ หรือเมื่อต้องต่อเชื่อม Third-Party Service, DB ใหม่, หรือ Auth Flow ใหม่
|
|
63
|
+
- ต้องการลดความเสี่ยงด้าน Integration Risk ในช่วงต้นของโปรเจกต์
|
|
64
|
+
|
|
65
|
+
### ตัวอย่าง:
|
|
66
|
+
- **User Authentication**: สร้าง Registration Form -> Submit API -> Hash Password -> บันทึกลง PostgreSQL DB -> Issue JWT Token -> Redirect ไปหน้า Profile สำหรับกรณีข้อมูลถูกต้อง 1 กรณี
|
|
67
|
+
- **Report Export**: กดปุ่ม Export -> Backend Query ข้อมูล -> สร้าง PDF Stream -> Browser ดาวน์โหลดไฟล์สำเร็จ
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
## 🧭 4. Journey Archetype (Slice by User Workflow / Milestones)
|
|
72
|
+
|
|
73
|
+
> *"แบ่งฟีเจอร์ตามขั้นตอนการเดินทางของผู้ใช้งาน (User Journey Steps)"*
|
|
74
|
+
|
|
75
|
+
### นิยาม & วัตถุประสงค์:
|
|
76
|
+
- หั่นงานตามลำดับขั้นตอนธรรมชาติของ Business Process (เช่น Stage 1: Onboarding -> Stage 2: Core Activity -> Stage 3: Summary & Export)
|
|
77
|
+
- แต่ละชิ้นงานจบในตัว และปลดล็อคขั้นตอนถัดไปใน Journey ของผู้ใช้
|
|
78
|
+
|
|
79
|
+
### เหมาะสำหรับ:
|
|
80
|
+
- Workflow ขนาดใหญ่ที่มีหลายสเตจ, Checkout Flows, Multi-step Form Wizard, Approval Pipeline
|
|
81
|
+
|
|
82
|
+
### ตัวอย่าง:
|
|
83
|
+
- **E-Commerce Checkout**:
|
|
84
|
+
- *Slice 1 (Cart Review)*: หน้าสรุปรายการสินค้าและปรับจำนวน
|
|
85
|
+
- *Slice 2 (Shipping & Address)*: แบบฟอร์มกรอกที่อยู่จัดส่งและคำนวณค่าส่ง
|
|
86
|
+
- *Slice 3 (Payment & Order Confirmation)*: เลือกวิธีชำระเงินและสรุปใบสั่งซื้อ
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
## 📊 ตารางเปรียบเทียบและการเลือกใช้งาน (Selection Matrix)
|
|
91
|
+
|
|
92
|
+
| Archetype | จุดเน้นหลัก (Focus) | UI Level | Backend / DB | เมื่อไหร่ควรเลือก? |
|
|
93
|
+
| :--- | :--- | :---: | :---: | :--- |
|
|
94
|
+
| 🛹 **Skateboard** | Core Logic & Flow | Minimal | Real | Logic ซับซ้อน ต้องการความถูกต้องก่อนตกแต่ง |
|
|
95
|
+
| 🎭 **Facade** | UX, DX & Interaction | Rich / Complete | Mocked | ต้องการทดสอบ UX / รับ Feedback จากผู้ใช้เร็ว |
|
|
96
|
+
| 🎯 **Tracer Bullet** | Full Architecture Path | Functional | Real | ต้องการทดสอบ Integration & Pipeline ทะลุทุกชั้น |
|
|
97
|
+
| 🧭 **Journey** | Step-by-Step Workflow | Balanced | Real | Workflow ยาว แบ่งทำทีละสเตจตามลำดับ |
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
## 💡 แนวทางปฏิบัติใน DevFlow Workflow
|
|
102
|
+
|
|
103
|
+
1. **ใน `/discovery` หรือ `/brainstorm`**: เมื่อวิเคราะห์ฟีเจอร์ใหญ่ ให้เสนอ Archetype ที่แนะนำในการแบ่ง Sub-features
|
|
104
|
+
2. **ใน `/feature` (Step 2 Sizing & Splitting)**: หากต้องแยกฟีเจอร์ย่อย (เช่น 4a, 4b, 4c) ให้ระบุ Archetype กำกับ เช่น `4a. (Tracer Bullet) Core Export Engine` -> `4b. (Facade) Interactive Export Modal & Template Preview`
|
|
105
|
+
3. **ใน Living Spec (`spec.md`)**: ระบุ Archetype ในส่วนหัวของ Spec เพื่อให้ Agent ในขั้นตอน `/implement` ทราบความคาดหวังเรื่องระดับ UI และ Data Source อย่างชัดเจน
|
|
@@ -1,195 +0,0 @@
|
|
|
1
|
-
# Nexus-DevFlow 2.13.0 Comprehensive Usage Guide
|
|
2
|
-
|
|
3
|
-
This guide provides full operating instructions for **Nexus-DevFlow 2.13.0 (The 3-Pillars Workspace Architecture & Pure Task-Isolated Living Spec Model)** across Google Antigravity, OpenAI Codex, Claude Code, Cursor, GitHub Copilot, and related AI development environments.
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## 1. Core Architecture: The 3-Pillars Model
|
|
8
|
-
|
|
9
|
-
Nexus-DevFlow structures development history and active context into three distinct temporal pillars:
|
|
10
|
-
|
|
11
|
-
1. **🔮 Future (Backlog)**: [`devflow/ideas.md`](../ideas.md), [`devflow/project-plan.md`](../project-plan.md), [`devflow/build-plan.md`](../build-plan.md)
|
|
12
|
-
- Centralized Idea Inbox with AI feasibility, value scoring, and priority tagging (`[IDEA-xxx]`).
|
|
13
|
-
- Product vision and master build-plan sequencing.
|
|
14
|
-
- Quick idea capture via `/idea {description}`.
|
|
15
|
-
2. **⚡ Present (Active Context)**: `devflow/context/`
|
|
16
|
-
- Global Shared Source of Truth: `project-overview.md`, `coding-standards.md`, `ai-interaction.md`, `glossary.md`.
|
|
17
|
-
- **Task-Isolated Workspaces**: `devflow/context/{xxx-slug}/`
|
|
18
|
-
- `spec.md`: The Living Spec, task checklist, and empirical proof.
|
|
19
|
-
- `stage.md`: Stage pointer and transition state.
|
|
20
|
-
- `findings.md`: Dedicated quality, security, and Fowler smell findings ledger.
|
|
21
|
-
3. **📦 Past (History Archive)**: `devflow/history/`
|
|
22
|
-
- Categorized delivery archives: `features/`, `fixes/`, `rollbacks/`.
|
|
23
|
-
- Master Release Ledger: `HISTORY.md`.
|
|
24
|
-
|
|
25
|
-
---
|
|
26
|
-
|
|
27
|
-
## 2. The Unified 4-Stage Living Spec Lifecycle
|
|
28
|
-
|
|
29
|
-
All development tasks execute through the progressive 4-stage task-isolated living spec lifecycle:
|
|
30
|
-
|
|
31
|
-
```text
|
|
32
|
-
/feature (or /fix) ──▶ /implement ──▶ /check ──▶ /complete
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
| Step | Command | Artifact | Description |
|
|
36
|
-
| :--- | :--- | :--- | :--- |
|
|
37
|
-
| **1. Spec** | `/feature {title}`<br>`/fix {bug}` | `context/{xxx-slug}/spec.md` | Allocates sequential ID (`xxx-slug`), initializes task workspace, writes living spec behind review gate. |
|
|
38
|
-
| **2. Build** | `/implement [id]` | `context/{xxx-slug}/spec.md` | Executes tasks incrementally with strict TDD discipline (Red-Green-Refactor) and evidence recording. |
|
|
39
|
-
| **3. Verify**| `/check [id]` | `context/{xxx-slug}/spec.md` | Dual-Axis review: empirical spec fidelity plus independent standards, architecture, and quality gates. |
|
|
40
|
-
| **4. Deliver** | `/complete [id]` | `history/{cat}/{xxx-slug}.md` | Final safety audit, records Release Digest, archives living spec, cleans active task folder, squash-merges branch. |
|
|
41
|
-
|
|
42
|
-
---
|
|
43
|
-
|
|
44
|
-
## 3. Pre-Flight Discovery, SA & Architectural Alignment Suite
|
|
45
|
-
|
|
46
|
-
Before committing to delivery, use specialized companion skills:
|
|
47
|
-
|
|
48
|
-
```text
|
|
49
|
-
/analyze ──▶ /idea (Inbox) ──▶ /grill (Socratic ADR) ──▶ /discovery (Explore) ──▶ /feature (Deliver)
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
- **`/analyze`**: Multi-format requirement ingestion (PDF, Word, Excel, Images), Codebase Impact scan & Socratic Gap checklist.
|
|
53
|
-
- **`/idea`**: Capture raw ideas in `devflow/ideas.md` with instant AI feasibility scoring.
|
|
54
|
-
- **`/grill`** (or **`/align`**): Socratic alignment & domain modeling; records Architecture Decision Records (`devflow/decisions/ADR-xxx.md`).
|
|
55
|
-
- **`/brainstorm`**: Structured ideation with trade-off analysis.
|
|
56
|
-
- **`/discovery`**: Deep inception and exploratory discovery (`devflow/discoveries/DISC-xxx.md`).
|
|
57
|
-
|
|
58
|
-
---
|
|
59
|
-
|
|
60
|
-
## 4. Core Skills Inventory (33 Skills)
|
|
61
|
-
|
|
62
|
-
DevFlow ships **33 bundled Core Skills** from the ordered `core_skills` inventory
|
|
63
|
-
in `agent-bundle.manifest.json`, synchronized 1:1 across `.agents/skills/`
|
|
64
|
-
(Codex / Antigravity / Copilot) and `.claude/skills/` (Claude Code). Local or
|
|
65
|
-
Personal Skills may coexist in a workspace, but are excluded from the Core count
|
|
66
|
-
and package template until explicitly promoted.
|
|
67
|
-
|
|
68
|
-
### A. Lifecycle Delivery Skills (8 Skills)
|
|
69
|
-
- `feature`: Turn a build-plan item or new idea into a task-isolated living spec (`devflow/context/{xxx-slug}/spec.md`).
|
|
70
|
-
- `fix`: Document and spec an ad-hoc bug or issue into `devflow/context/{xxx-slug}/spec.md`.
|
|
71
|
-
- `implement`: Step-by-step TDD implementation behind review gates.
|
|
72
|
-
- `check`: Dual-Axis verification of observable spec behavior and independent architecture/standards quality.
|
|
73
|
-
- `complete`: Final safety audit, Conventional Commit, archiving, and branch delivery gate.
|
|
74
|
-
- `autopilot`: Bounded single-pass delivery loop with self-review and safe repair.
|
|
75
|
-
- `continuous`: Autonomous serial multi-feature delivery loop completing build-plan items with quality gates.
|
|
76
|
-
- `rollback`: Plan a safe reversal of a completed feature preserving history.
|
|
77
|
-
|
|
78
|
-
### B. Pre-Flight Discovery, SA & Alignment Skills (6 Skills)
|
|
79
|
-
- `analyze`: Multi-format requirement ingestion (PDF, Word, Excel, Images), Codebase Impact scan & Socratic Gap checklist.
|
|
80
|
-
- `discovery`: Inception exploration and deep multi-turn planning (`devflow/discoveries/`).
|
|
81
|
-
- `explore`: Read-only codebase exploration to investigate an idea and compare options without changing files or writing a spec.
|
|
82
|
-
- `idea`: Quick idea capture and AI feasibility scoring (`devflow/ideas.md`).
|
|
83
|
-
- `grill` / `align`: Socratic alignment, domain modeling, and ADR recording (`devflow/decisions/`).
|
|
84
|
-
- `brainstorm`: Structured divergent & convergent ideation with trade-off matrices.
|
|
85
|
-
|
|
86
|
-
### C. Workspace & Governance Skills (19 Skills)
|
|
87
|
-
- `devflow`: Interactive workspace inspector and intent router.
|
|
88
|
-
- `doctor`: Read-only health check for setup, adapters, and workflow drift.
|
|
89
|
-
- `onboard`: Configure freshly scaffolded projects.
|
|
90
|
-
- `adopt`: Bootstrap DevFlow into existing brownfield codebases.
|
|
91
|
-
- `overview`: Compile living source of truth from planning docs.
|
|
92
|
-
- `brief`: Feature scope and dependency briefing before speccing.
|
|
93
|
-
- `audit`: Branch-aware or full-project code and security audit.
|
|
94
|
-
- `bughunter`: Offensive security orchestrator, 83 vulnerability patterns & CVE payloads.
|
|
95
|
-
- `ci`: Set up single Verify command and GitHub Actions.
|
|
96
|
-
- `test`: Test suite runner and coverage analyzer.
|
|
97
|
-
- `setup-tests`: Add or normalize unit test suite.
|
|
98
|
-
- `browser-tests`: Add or normalize Playwright browser test harness & connect with MCP browseros-neo.
|
|
99
|
-
- `release`: Cloud deployment readiness check (Render / Vercel).
|
|
100
|
-
- `prototype`: Static HTML/CSS prototype mockups.
|
|
101
|
-
- `status`: Progress summary and next action inspector.
|
|
102
|
-
- `try`: Manual review testing guide.
|
|
103
|
-
- `debug`: Scientific six-phase diagnosis built around a deterministic red-capable feedback loop.
|
|
104
|
-
- `report-html`: Generate interactive standalone HTML report dashboard.
|
|
105
|
-
- `convert-any-to-md`: Document conversion utility into markdown.
|
|
106
|
-
|
|
107
|
-
---
|
|
108
|
-
|
|
109
|
-
## 5. Quality, Governance & Authoring Contracts
|
|
110
|
-
|
|
111
|
-
- [Workflow surface map](workflow-surface-map.md): canonical command taxonomy and artifacts.
|
|
112
|
-
- [Skill selection policy](skill-selection-policy.md): choose the smallest suitable workflow surface.
|
|
113
|
-
- [Governance rules](governance-rules.md): public-surface and documentation placement rules.
|
|
114
|
-
- [Markdown metadata contract](markdown-metadata-contract.md): frontmatter and semantic heading requirements.
|
|
115
|
-
- [Manual review workflow](manual-review-workflow-spec.md): review gates from spec through delivery.
|
|
116
|
-
- [Living Spec examples](examples/living-spec/): reference specs, discoveries, ADRs, and ideas.
|
|
117
|
-
|
|
118
|
-
`/check` applies the Deep Modules standard independently from spec fidelity:
|
|
119
|
-
small public interfaces, hidden complexity, stable seams, and no speculative
|
|
120
|
-
abstraction. `/debug` diagnoses first and hands confirmed repairs to `/fix` or
|
|
121
|
-
`/implement`; it does not edit source during diagnosis.
|
|
122
|
-
|
|
123
|
-
---
|
|
124
|
-
|
|
125
|
-
### Debugging, TDD & Review Reference Guides
|
|
126
|
-
|
|
127
|
-
The `debug`, `implement`, and `audit` skills include five English reference guides.
|
|
128
|
-
They are supporting files read when needed, not additional commands. Both
|
|
129
|
-
`.agents/skills/` and `.claude/skills/` contain matching copies; no separate
|
|
130
|
-
Superpowers plugin installation is required.
|
|
131
|
-
|
|
132
|
-
| Situation | Entry point | Reference guide |
|
|
133
|
-
| :--- | :--- | :--- |
|
|
134
|
-
| Error deep in a call stack or unclear input origin | `/debug` Phase 4 | [Root-cause tracing](../../.agents/skills/debug/root-cause-tracing.md) |
|
|
135
|
-
| Confirmed root cause needs protective checks | `/debug` repair planning → `/fix` → `/implement` | [Defense-in-depth](../../.agents/skills/debug/defense-in-depth.md) |
|
|
136
|
-
| Flaky async tests or guessed sleep delays | `/debug` Phase 4 | [Condition-based waiting](../../.agents/skills/debug/condition-based-waiting.md) |
|
|
137
|
-
| Planning RED/GREEN or inspecting test quality | `/implement [id]` | [TDD anti-patterns](../../.agents/skills/implement/tdd-anti-patterns.md) |
|
|
138
|
-
| Preparing an independent review | `/audit independent current` | [Two-stage review template](../../.agents/skills/audit/two-stage-review-template.md) |
|
|
139
|
-
|
|
140
|
-
**Debugging:** Trace the trigger before planning a repair. Use validation layers
|
|
141
|
-
according to actual invariants and risks, and keep diagnostic output redacted.
|
|
142
|
-
The waiting example accepts synchronous predicates only; async I/O needs an
|
|
143
|
-
appropriate async helper with cancellation or timeout. `/debug` remains a
|
|
144
|
-
diagnostic stage. After three unsuccessful repair attempts in the supplied
|
|
145
|
-
history, stop and discuss the architecture before attempting another fix.
|
|
146
|
-
|
|
147
|
-
**Implementation:** Apply the Iron Law to behavior changes according to the
|
|
148
|
-
spec's test decision: observe the intended failing test before production code.
|
|
149
|
-
Confirm that RED reflects missing behavior rather than broken setup, implement
|
|
150
|
-
the minimum change for GREEN, then refactor with tests passing. Preserve existing
|
|
151
|
-
user work; verify documentation or configuration without logic as the spec directs.
|
|
152
|
-
|
|
153
|
-
**Review:** Check spec compliance first, then code quality only after Stage 1
|
|
154
|
-
passes. Use the template alongside the canonical
|
|
155
|
-
[independent-review contract](../../.agents/skills/audit/reference/independent-review.md).
|
|
156
|
-
The configured gate still determines whether review runs, and its request,
|
|
157
|
-
immutable checkpoint, reviewer identity, and receipt requirements remain in force.
|
|
158
|
-
Open or fixed P0/P1 findings continue to block completion.
|
|
159
|
-
|
|
160
|
-
Example prompts (use `$debug` and `$implement` in Codex where appropriate):
|
|
161
|
-
|
|
162
|
-
```text
|
|
163
|
-
/debug "This async test passes locally but times out in CI; inspect its waiting conditions"
|
|
164
|
-
/implement 085
|
|
165
|
-
/audit independent current
|
|
166
|
-
```
|
|
167
|
-
|
|
168
|
-
Replace `085` with your active task ID. For the review prompt, ask the reviewer
|
|
169
|
-
to use `audit/two-stage-review-template.md` with the canonical receipt contract;
|
|
170
|
-
the template does not launch a reviewer or authorize a checkpoint commit itself.
|
|
171
|
-
|
|
172
|
-
---
|
|
173
|
-
|
|
174
|
-
## 6. Web Dashboard & CLI Management
|
|
175
|
-
|
|
176
|
-
```bash
|
|
177
|
-
# Launch interactive Local Dashboard (0ms SSR Hydration & Git Cache)
|
|
178
|
-
npx @jakkrichm/create-nexus-devflow dashboard
|
|
179
|
-
|
|
180
|
-
# Check active project status across 3-Pillars
|
|
181
|
-
npx @jakkrichm/create-nexus-devflow status
|
|
182
|
-
|
|
183
|
-
# Automated Quality Gatekeeper
|
|
184
|
-
npx @jakkrichm/create-nexus-devflow gate [--strict]
|
|
185
|
-
|
|
186
|
-
# Model Context Protocol (MCP) Server Hub
|
|
187
|
-
npx @jakkrichm/create-nexus-devflow mcp
|
|
188
|
-
|
|
189
|
-
# Just-In-Time (JIT) Dynamic Context Slicing
|
|
190
|
-
npx @jakkrichm/create-nexus-devflow slice --stage implement
|
|
191
|
-
|
|
192
|
-
# Multi-Agent Swarm & Code Graph RAG
|
|
193
|
-
npx @jakkrichm/create-nexus-devflow swarm
|
|
194
|
-
npx @jakkrichm/create-nexus-devflow graph --file src/index.ts
|
|
195
|
-
```
|