@jakkrichm/create-nexus-devflow 2.16.4 → 2.17.1
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/dist/bin/create-nexus-devflow.d.ts +1 -1
- package/dist/bin/create-nexus-devflow.js +77 -4
- package/dist/bin/create-nexus-devflow.js.map +1 -1
- package/dist/lib/doctor.js +2 -1
- package/dist/lib/doctor.js.map +1 -1
- package/dist/lib/project-config.js +2 -1
- package/dist/lib/project-config.js.map +1 -1
- package/dist/lib/project-status-engine.d.ts +11 -3
- package/dist/lib/project-status-engine.js +99 -17
- package/dist/lib/project-status-engine.js.map +1 -1
- package/dist/lib/review.d.ts +1 -0
- package/dist/lib/review.js +58 -3
- package/dist/lib/review.js.map +1 -1
- package/dist/lib/skill-registry-engine.js +1 -1
- package/dist/lib/skill-registry-engine.js.map +1 -1
- package/dist/lib/status.d.ts +3 -3
- package/dist/lib/status.js +2 -2
- package/dist/lib/status.js.map +1 -1
- package/dist/lib/tooling/commands/migrate-structure.d.ts +8 -0
- package/dist/lib/tooling/commands/migrate-structure.js +200 -0
- package/dist/lib/tooling/commands/migrate-structure.js.map +1 -0
- package/dist/lib/tooling/commands/summarize-run-status.js +3 -1
- package/dist/lib/tooling/commands/summarize-run-status.js.map +1 -1
- package/dist/lib/tooling/registry.js +2 -0
- package/dist/lib/tooling/registry.js.map +1 -1
- package/dist/lib/update.d.ts +34 -3
- package/dist/lib/update.js +142 -1
- package/dist/lib/update.js.map +1 -1
- package/dist/lib/workspace-paths.d.ts +16 -0
- package/dist/lib/workspace-paths.js +85 -0
- package/dist/lib/workspace-paths.js.map +1 -0
- package/dist/scripts/prepare-template.js +75 -15
- package/dist/scripts/prepare-template.js.map +1 -1
- package/package.json +1 -1
- package/template/.agents/skills/analyze/SKILL.md +21 -21
- package/template/.agents/skills/audit/SKILL.md +36 -18
- package/template/.agents/skills/audit/reference/independent-review.md +58 -2
- package/template/.agents/skills/brainstorm/SKILL.md +1 -1
- package/template/.agents/skills/complete/SKILL.md +23 -1
- package/template/.agents/skills/complete/reference/completion-recovery.md +248 -0
- package/template/.agents/skills/continuous/SKILL.md +156 -82
- package/template/.agents/skills/feature/SKILL.md +6 -0
- package/template/.agents/skills/feature/reference/build-history.md +79 -0
- package/template/.agents/skills/idea/SKILL.md +14 -14
- package/template/.agents/skills/rollback/SKILL.md +23 -10
- package/template/.claude/skills/analyze/SKILL.md +21 -21
- package/template/.claude/skills/audit/SKILL.md +33 -16
- package/template/.claude/skills/audit/reference/independent-review.md +58 -2
- package/template/.claude/skills/brainstorm/SKILL.md +1 -1
- package/template/.claude/skills/complete/SKILL.md +23 -1
- package/template/.claude/skills/complete/reference/completion-recovery.md +248 -0
- package/template/.claude/skills/continuous/SKILL.md +156 -82
- package/template/.claude/skills/feature/SKILL.md +6 -0
- package/template/.claude/skills/feature/reference/build-history.md +79 -0
- package/template/.claude/skills/idea/SKILL.md +14 -14
- package/template/.claude/skills/rollback/SKILL.md +23 -10
- package/template/AGENTS.md +11 -10
- package/template/devflow/{context → 00-context}/ai-interaction.md +1 -1
- package/template/devflow/{build-plan.md → 30-planning/build-plan.md} +24 -0
- package/template/devflow/40-tasks/.gitkeep +0 -0
- package/template/devflow/40-tasks/README.md +11 -0
- package/template/devflow/60-docs/migration-guide-decade-numbered.md +93 -0
- package/template/devflow/config.json +1 -0
- /package/template/devflow/{context → 00-context}/coding-standards.md +0 -0
- /package/template/devflow/{context → 00-context}/glossary.md +0 -0
- /package/template/devflow/{context → 00-context}/project-overview.md +0 -0
- /package/template/devflow/{ideas.md → 10-ideation/ideas.md} +0 -0
- /package/template/devflow/{reference → 10-ideation/reference}/build-plan-template.md +0 -0
- /package/template/devflow/{reference → 10-ideation/reference}/feature-spec-template.md +0 -0
- /package/template/devflow/{reference → 10-ideation/reference}/mockup.html +0 -0
- /package/template/devflow/{reference → 10-ideation/reference}/project-overview-template.md +0 -0
- /package/template/devflow/{reference → 10-ideation/reference}/project-plan-template.md +0 -0
- /package/template/devflow/{reference → 10-ideation/reference}/running-id-contract.md +0 -0
- /package/template/devflow/{decisions → 20-discovery/decisions}/.gitkeep +0 -0
- /package/template/devflow/{decisions → 20-discovery/decisions}/README.md +0 -0
- /package/template/devflow/{discoveries → 20-discovery/discoveries}/.gitkeep +0 -0
- /package/template/devflow/{project-plan.md → 30-planning/project-plan.md} +0 -0
- /package/template/devflow/{history → 50-history}/HISTORY.md +0 -0
- /package/template/devflow/{history → 50-history}/features/README.md +0 -0
- /package/template/devflow/{history → 50-history}/fixes/README.md +0 -0
- /package/template/devflow/{history → 50-history}/rollbacks/README.md +0 -0
- /package/template/devflow/{docs → 60-docs}/USAGE.md +0 -0
- /package/template/devflow/{docs → 60-docs}/diagrams/nexus-devflow-architecture.html +0 -0
- /package/template/devflow/{docs → 60-docs}/diagrams/nexus-devflow-architecture.json +0 -0
- /package/template/devflow/{docs → 60-docs}/diagrams/nexus-devflow-lifecycle.html +0 -0
- /package/template/devflow/{docs → 60-docs}/diagrams/nexus-devflow-lifecycle.json +0 -0
- /package/template/devflow/{docs → 60-docs}/examples/living-spec/adr.example.md +0 -0
- /package/template/devflow/{docs → 60-docs}/examples/living-spec/current-feature.example.md +0 -0
- /package/template/devflow/{docs → 60-docs}/examples/living-spec/discovery.example.md +0 -0
- /package/template/devflow/{docs → 60-docs}/examples/living-spec/ideas.example.md +0 -0
- /package/template/devflow/{docs → 60-docs}/governance-rules.md +0 -0
- /package/template/devflow/{docs → 60-docs}/manual-review-workflow-spec.md +0 -0
- /package/template/devflow/{docs → 60-docs}/markdown-metadata-contract.md +0 -0
- /package/template/devflow/{docs → 60-docs}/quickstart.md +0 -0
- /package/template/devflow/{docs → 60-docs}/release-process.md +0 -0
- /package/template/devflow/{docs → 60-docs}/skill-selection-policy.md +0 -0
- /package/template/devflow/{docs → 60-docs}/workflow-surface-map.md +0 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# คู่มือการย้ายโครงสร้างโฟลเดอร์สู่ Decade-Numbered Stages (Migration Guide)
|
|
2
|
+
|
|
3
|
+
> **DevFlow Version**: 2.16.5+
|
|
4
|
+
> **Topic**: การจัดระเบียบโฟลเดอร์ `devflow/` ตามลำดับขั้นตอนด้วย Decade-Numbered Stages และการอัปเกรดจากโครงสร้างเดิม
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## 🌟 1. สถาปัตยกรรมโฟลเดอร์ Decade-Numbered Stages
|
|
9
|
+
|
|
10
|
+
เพื่อแก้ปัญหาโฟลเดอร์ใน `devflow/` กระจัดกระจายและไม่มีตัวเลขจัดเรียงสายตาใน IDE ทาง DevFlow ได้แนะนำโครงสร้าง **Decade-Numbered Stages Structure** (`00-`, `10-`, `20-`, ...) ที่ช่วยให้ทั้งผู้ใช้งานและ AI Agent ไล่ลำดับขั้นตอนการพัฒนาได้อย่างเป็นธรรมชาติ:
|
|
11
|
+
|
|
12
|
+
```text
|
|
13
|
+
devflow/
|
|
14
|
+
├── config.json # Root configuration
|
|
15
|
+
├── .state/ # Runtime state (run.json - Git ignored)
|
|
16
|
+
├── .vendor/ # External vendor skills (bughunter, ponytail, ฯลฯ)
|
|
17
|
+
│
|
|
18
|
+
├── 00-context/ # [Foundation & Source of Truth]
|
|
19
|
+
│ ├── project-overview.md # Living overview (สถาปัตยกรรม & tech stack ล่าสุด)
|
|
20
|
+
│ ├── coding-standards.md # กฎระเบียบและมาตรฐานการเขียนโค้ด
|
|
21
|
+
│ ├── ai-interaction.md # ข้อกำหนดการทำงานร่วมกับ AI Agent
|
|
22
|
+
│ └── glossary.md # พจนานุกรมศัพท์เฉพาะของระบบ
|
|
23
|
+
│
|
|
24
|
+
├── 10-ideation/ # [Input & Reference Ingestion]
|
|
25
|
+
│ ├── ideas.md # บันทึกไอเดียใหม่ (Idea Inbox)
|
|
26
|
+
│ ├── inbox/ # ไฟล์ดิบจากภายนอก (PDF, Excel, Word, ภาพ)
|
|
27
|
+
│ └── reference/ # เอกสารที่แปลงเป็น Markdown สะอาดพร้อมใช้งาน
|
|
28
|
+
│
|
|
29
|
+
├── 20-discovery/ # [Analysis, Exploration & Architecture]
|
|
30
|
+
│ ├── analysis/ # ผลการวิเคราะห์ System Analyst (/analyze)
|
|
31
|
+
│ ├── discoveries/ # Pre-flight Spikes & Research (/discovery)
|
|
32
|
+
│ ├── decisions/ # บันทึกการตัดสินใจ ADRs (/grill)
|
|
33
|
+
│ ├── research/ # เอกสารวิจัยเชิงลึกและ Benchmark
|
|
34
|
+
│ ├── 21-prototype/ # (Optional: Static UI mockups / prototype)
|
|
35
|
+
│ └── 22-diagrams/ # (Optional: System & Architecture Diagrams)
|
|
36
|
+
│
|
|
37
|
+
├── 30-planning/ # [Roadmap & Master Plans]
|
|
38
|
+
│ ├── project-plan.md # Master Roadmap & Milestones
|
|
39
|
+
│ └── build-plan.md # Master Delivery Checklist
|
|
40
|
+
│
|
|
41
|
+
├── 40-tasks/ # [Active Living Spec Workspaces]
|
|
42
|
+
│ └── {xxx-slug}/ # Active task workspace (สร้างตอนทำฟีเจอร์/แก้บั๊ก)
|
|
43
|
+
│ ├── spec.md # Task-Isolated Living Spec
|
|
44
|
+
│ ├── stage.md # ตัวชี้สถานะ Stage
|
|
45
|
+
│ ├── findings.md # บันทึกบั๊ก/Audit ประจำงาน
|
|
46
|
+
│ └── tickets/ # Tracer-bullet tickets ย่อย
|
|
47
|
+
│
|
|
48
|
+
├── 50-history/ # [Shipped & Delivered Archives]
|
|
49
|
+
│ ├── HISTORY.md # Release Ledger สรุปภาพรวมประวัติ
|
|
50
|
+
│ ├── features/ # ฟีเจอร์ที่ส่งมอบแล้ว
|
|
51
|
+
│ ├── fixes/ # บั๊กที่แก้แล้ว
|
|
52
|
+
│ └── rollbacks/ # ฟีเจอร์ที่ถูก rollback
|
|
53
|
+
│
|
|
54
|
+
└── 60-docs/ # [Documentation & System Playbooks]
|
|
55
|
+
└── playbooks/ # Interactive HTML Playbooks (5W1H)
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## ⚡ 2. จุดเด่นของการใช้เลขทศวรรษ (Decade Convention: `00-`, `10-`, `20-`)
|
|
61
|
+
|
|
62
|
+
1. **ลำดับสายตาใน Editor สวยงาม**: เรียงตามลำดับความก้าวหน้าของโครงการ
|
|
63
|
+
2. **ขยาย Sub-stages ในอนาคตได้ง่าย (Future-Proof)**: สามารถสร้างโฟลเดอร์แทรก เช่น `21-prototype`, `22-diagrams` ได้โดยไม่ต้องแก้เลขนำหน้าของโฟลเดอร์อื่น
|
|
64
|
+
3. **ตัดโฟลเดอร์ Legacy ออก 100%**: ลบโฟลเดอร์ `devflow/runs/` ที่ไม่ได้ใช้งานตั้งแต่ v1.x ออกอย่างปลอดภัย
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## 🚀 3. วิธีการ Migrate อัตโนมัติ
|
|
69
|
+
|
|
70
|
+
### 1) รันอัตโนมัติผ่านคำสั่ง `update` (แนะนำที่สุด):
|
|
71
|
+
เมื่อโปรเจกต์ Client สั่งอัปเดตเวอร์ชัน DevFlow ด้วยคำสั่ง:
|
|
72
|
+
```bash
|
|
73
|
+
npx nexus-devflow update
|
|
74
|
+
```
|
|
75
|
+
ระบบจะตรวจจับโครงสร้างโฟลเดอร์อัตโนมัติ:
|
|
76
|
+
* **หากยังเป็นโครงสร้างเดิม (Legacy)**: ระบบจะรันกระบวนการ `migrate-structure` ให้อัตโนมัติทันที พร้อมย้ายไฟล์เข้า `00-`, `10-`, `20-`, `30-`, `40-`, `50-`, `60-` และลบ `devflow/runs/`
|
|
77
|
+
* **หากเป็นโครงสร้าง Decade-Numbered อยู่แล้ว**: ระบบจะไม่ทำอะไรกับโฟลเดอร์ (No-op) และดำเนินการอัปเดตโค้ดต่อไปอย่างปลอดภัย
|
|
78
|
+
|
|
79
|
+
### 2) สั่ง Migrate ด้วยตัวเองโดยตรง:
|
|
80
|
+
หากต้องการย้ายโครงสร้างทันทีโดยไม่อัปเดตส่วนอื่น สามารถสั่งได้ผ่านคำสั่ง:
|
|
81
|
+
```bash
|
|
82
|
+
npx nexus-devflow migrate-structure
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
## 🛡️ 4. การรองรับ Client เวอร์ชันเก่า (Zero-Breaking Compatibility)
|
|
89
|
+
|
|
90
|
+
ระบบ DevFlow มีกลไก **Dynamic Workspace Path Resolver** (`resolveWorkspacePaths`) ที่จะ:
|
|
91
|
+
1. ตรวจสอบว่าโปรเจกต์ใช้โครงสร้าง Decade-Numbered หรือไม่ (มี `devflow/00-context` หรือไม่)
|
|
92
|
+
2. หากไม่พบ จะ **Fallback กลับไปหา Path เดิม (`devflow/context/`, `devflow/history/`) อัตโนมัติ 100%**
|
|
93
|
+
3. โปรเจกต์เก่าที่ยังไม่ได้ Migrate จึงยังคงรันคำสั่งสถานะ, ตรวจสอบคุณภาพ, และบิวด์ได้ตามปกติโดยไม่มีข้อผิดพลาด
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|