@jakkrichm/create-nexus-devflow 2.0.13 → 2.0.14
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 +2 -0
- package/dist/bin/create-nexus-devflow.js +233 -0
- package/dist/bin/create-nexus-devflow.js.map +1 -0
- package/dist/lib/starter-templates.d.ts +6 -0
- package/dist/lib/starter-templates.js +8 -0
- package/dist/lib/starter-templates.js.map +1 -0
- package/dist/lib/update.d.ts +68 -0
- package/dist/lib/update.js +325 -0
- package/dist/lib/update.js.map +1 -0
- package/dist/scripts/clean-template.d.ts +1 -0
- package/dist/scripts/clean-template.js +14 -0
- package/dist/scripts/clean-template.js.map +1 -0
- package/dist/scripts/prepare-template.d.ts +1 -0
- package/dist/scripts/prepare-template.js +89 -0
- package/dist/scripts/prepare-template.js.map +1 -0
- package/package.json +11 -9
- package/template/.agents/skills/00-discover/SKILL.md +2 -0
- package/template/.agents/skills/60-report/SKILL.md +21 -75
- package/template/.agents/skills/70-release/SKILL.md +5 -4
- package/template/.agents/skills/check/SKILL.md +68 -0
- package/template/.agents/skills/complete/SKILL.md +73 -0
- package/template/.agents/skills/devflow/SKILL.md +89 -80
- package/template/.agents/skills/idea/SKILL.md +57 -0
- package/template/.agents/skills/implement/SKILL.md +64 -0
- package/template/.agents/skills/overview/SKILL.md +114 -0
- package/template/.agents/skills/report-html/SKILL.md +45 -0
- package/template/.agents/skills/spec/SKILL.md +105 -0
- package/template/.claude/skills/00-discover/SKILL.md +2 -0
- package/template/.claude/skills/60-report/SKILL.md +21 -75
- package/template/.claude/skills/70-release/SKILL.md +5 -4
- package/template/.claude/skills/check/SKILL.md +68 -0
- package/template/.claude/skills/complete/SKILL.md +73 -0
- package/template/.claude/skills/devflow/SKILL.md +89 -80
- package/template/.claude/skills/idea/SKILL.md +57 -0
- package/template/.claude/skills/implement/SKILL.md +64 -0
- package/template/.claude/skills/overview/SKILL.md +114 -0
- package/template/.claude/skills/report-html/SKILL.md +45 -0
- package/template/.claude/skills/spec/SKILL.md +105 -0
- package/template/AGENTS.md +71 -74
- package/template/devflow/context/ai-interaction.md +1 -0
- package/template/devflow/context/coding-standards.md +31 -18
- package/template/devflow/context/current-stage.md +3 -3
- package/template/devflow/context/findings.md +10 -6
- package/template/devflow/context/project-overview.md +29 -11
- package/template/devflow/discoveries/.gitkeep +0 -0
- package/template/devflow/history/HISTORY.md +4 -0
- package/template/devflow/ideas.md +15 -0
- package/template/devflow/runs/.gitkeep +0 -0
- package/bin/create-nexus-devflow.js +0 -287
- package/lib/starter-templates.js +0 -111
- package/lib/update.js +0 -393
- package/template/.nexus/nexus-devflow.json +0 -44
|
@@ -5,104 +5,113 @@ description: "[Devflow] Flagship interactive guide, state inspector, and intent
|
|
|
5
5
|
|
|
6
6
|
# devflow - Interactive Workflow Guide & Intent Router for Nexus-DevFlow
|
|
7
7
|
|
|
8
|
-
Use this skill to guide the user on what to do next, inspect current workspace state, map their natural language intent to the right Nexus-DevFlow
|
|
8
|
+
Use this skill to guide the user on what to do next, inspect current workspace state, map their natural language intent to the right Nexus-DevFlow track (Fast-Track or Deep-Track) or companion command, or display a sitemap of available DevFlow skills.
|
|
9
9
|
|
|
10
10
|
## Input
|
|
11
11
|
|
|
12
|
-
- **No argument (`devflow`, `devflow`, `$devflow`, or `status`)**: Inspect current workspace state (active run in `devflow/runs/` or `devflow/context/current-stage.md`, active discovery in `devflow/discoveries/`, open findings in `devflow/context/findings.md`, and project overview in `devflow/context/project-overview.md`) and recommend the exact next action.
|
|
13
|
-
- **With user request (`devflow "<request>"`)**: Classify the user's intent and guide them to the matching DevFlow
|
|
12
|
+
- **No argument (`devflow`, `devflow`, `$devflow`, or `status`)**: Inspect current workspace state (active run in `devflow/runs/` or `devflow/context/current-stage.md`, active discovery in `devflow/discoveries/`, pending ideas in `devflow/ideas.md`, open findings in `devflow/context/findings.md`, and project overview in `devflow/context/project-overview.md`) and recommend the exact next action.
|
|
13
|
+
- **With user request (`devflow "<request>"`)**: Classify the user's intent and guide them to the matching DevFlow workflow track or companion command path.
|
|
14
|
+
|
|
15
|
+
## Dual-Track Architecture
|
|
16
|
+
|
|
17
|
+
Nexus-DevFlow supports two seamless workflow tracks:
|
|
18
|
+
1. **🏎️ Fast-Track (Blueprint Mode - 4 Steps)**: `/spec` ➔ `/implement` ➔ `/check` ➔ `/complete`
|
|
19
|
+
*Driven by a **Single Living Spec (`spec.md`)** for fast, high-velocity daily development and bugfixes (85% of tasks).*
|
|
20
|
+
2. **🏗️ Deep-Track (Architect Mode - 8 Steps)**: `00-discover` ➔ `10-define` ➔ `20-spec` ➔ `30-plan` ➔ `40-implement` ➔ `50-verify` ➔ `60-report` ➔ `70-release`
|
|
21
|
+
*Driven by modular separate stage files for large, high-stakes architectural epics and multi-agent coordination.*
|
|
22
|
+
|
|
23
|
+
---
|
|
14
24
|
|
|
15
25
|
## Workspace State Inspection
|
|
16
26
|
|
|
17
27
|
When invoked without an argument (or when determining the next step), inspect:
|
|
18
28
|
|
|
19
|
-
1. **Project Setup Baseline**: Read `devflow/context/project-overview.md` and `devflow/context/coding-standards.md`. If
|
|
20
|
-
2. **Active Delivery Run**: Read `devflow/context/current-stage.md` and check `devflow/runs/{RUNNING_ID}
|
|
29
|
+
1. **Project Setup Baseline**: Read `devflow/context/project-overview.md` and `devflow/context/coding-standards.md`. If empty or default placeholders, recommend `onboard` (for fresh projects) or `adopt` (for existing codebases).
|
|
30
|
+
2. **Active Delivery Run**: Read `devflow/context/current-stage.md` and check `devflow/runs/{RUNNING_ID}/`.
|
|
31
|
+
- **If Fast-Track (`spec.md` or `blueprint.md` present)**:
|
|
32
|
+
- If `spec.md` has incomplete checklist items -> Recommend `/implement` (or `implement {RUNNING_ID}`).
|
|
33
|
+
- If all tasks done but no passing verification evidence -> Recommend `/check` (or `check {RUNNING_ID}`).
|
|
34
|
+
- If verification evidence passed -> Recommend `/complete` (or `complete {RUNNING_ID}`).
|
|
35
|
+
- **If Deep-Track (numbered stage files present)**:
|
|
36
|
+
- If at `10-define.md` -> Recommend `20-spec {RUNNING_ID}`.
|
|
37
|
+
- If at `20-spec.md` -> Recommend `30-plan {RUNNING_ID}`.
|
|
38
|
+
- If at `30-plan.md` -> Recommend `40-implement {RUNNING_ID}`.
|
|
39
|
+
- If at `40-implement.md` with all tasks done -> Recommend `50-verify {RUNNING_ID}`.
|
|
40
|
+
- If passed `50-verify.md` -> Recommend `60-report {RUNNING_ID}` then `70-release {RUNNING_ID}`.
|
|
21
41
|
3. **Active Discovery**: Check `devflow/discoveries/` for open discovery notes.
|
|
22
|
-
4. **
|
|
42
|
+
4. **Pending Ideas Inbox**: Check `devflow/ideas.md`. If items exist under `## 📌 Pending Ideas`, summarize them in a **💡 Pending Ideas (Inbox)** list with their IDs (`[IDEA-xxx]`), feasibility, and mention that they can be started with `/spec IDEA-xxx`.
|
|
43
|
+
5. **Audit Findings Ledger**: Check `devflow/context/findings.md` for open high-severity findings.
|
|
23
44
|
|
|
24
|
-
### State
|
|
45
|
+
### Default State Recommendations
|
|
46
|
+
- If no run is active and user wants to start a feature -> Recommend `/spec <name>` (or `/feature <name>`).
|
|
47
|
+
- If no run is active and user wants to fix a bug -> Recommend `/fix <bug>`.
|
|
48
|
+
- If no run is active and user has pending ideas in `devflow/ideas.md` -> Highlight `/spec IDEA-xxx`.
|
|
49
|
+
- If no run is active and user wants deep architectural exploration -> Recommend `00-discover`.
|
|
50
|
+
- If user asks to check system health -> Recommend `doctor`.
|
|
25
51
|
|
|
26
|
-
|
|
27
|
-
- If a run is at `10-define.md` -> Recommend `20-spec {RUNNING_ID}` (or `20-spec`, `$20-spec`, `spec`).
|
|
28
|
-
- If a run is at `20-spec.md` -> Recommend `30-plan {RUNNING_ID}` (or `30-plan`, `$30-plan`, `plan`).
|
|
29
|
-
- If a run is at `30-plan.md` -> Recommend `40-implement {RUNNING_ID}` (or `40-implement`, `$40-implement`, `implement`).
|
|
30
|
-
- If a run is at `40-implement.md` with incomplete tasks -> Recommend `40-implement {RUNNING_ID}`.
|
|
31
|
-
- If a run is at `40-implement.md` with all tasks done -> Recommend `50-verify {RUNNING_ID}` (or `50-verify`, `$50-verify`, `verify`).
|
|
32
|
-
- If a run passed `50-verify.md` -> Recommend `60-report {RUNNING_ID}` then `70-release {RUNNING_ID}`.
|
|
33
|
-
- If no run is active and user wants to explore an idea -> Recommend `00-discover` (or `discover`, `Brainstorm`).
|
|
34
|
-
- If no run is active and open P0/P1 findings exist -> Recommend `security-review` or `debug`.
|
|
35
|
-
- If user asks to check system health or configuration -> Recommend `doctor` (or `doctor`, `$doctor`).
|
|
52
|
+
---
|
|
36
53
|
|
|
37
54
|
## Intent Classification & Skill Routing
|
|
38
55
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
| User Intent / Request Type | Recommended Skill | Normal Name / Alias | Lifecycle Path |
|
|
56
|
+
| User Intent / Request Type | Recommended Skill | Normal Name / Alias | Track / Lifecycle Path |
|
|
42
57
|
| :--- | :--- | :--- | :--- |
|
|
43
|
-
| "
|
|
44
|
-
| "
|
|
58
|
+
| **"Spec new feature / lean workflow"** | `spec` | `/spec` / `/feature` | **Fast-Track**: `/spec` -> `/implement` -> `/check` -> `/complete` |
|
|
59
|
+
| **"Quick bugfix / ad-hoc change"** | `spec` | `/fix` | **Fast-Track**: `/fix` -> `/implement` -> `/check` -> `/complete` |
|
|
60
|
+
| **"Capture quick idea / thought"** | `idea` | `/idea` | **Companion**: Enriches & saves to `devflow/ideas.md` |
|
|
61
|
+
| **"Execute implementation tasks"** | `implement` | `/implement` | **Fast-Track**: `/implement` -> `/check` |
|
|
62
|
+
| **"Run QA verification & check"** | `check` | `/check` | **Fast-Track**: `/check` -> `/complete` |
|
|
63
|
+
| **"Complete run & git merge"** | `complete` | `/complete` | **Fast-Track**: `/complete` |
|
|
64
|
+
| **"Generate HTML dashboard report"**| `report-html` | `/report:html` | **Standalone**: Converts `spec.md` / `60-report.md` to HTML |
|
|
65
|
+
| "Setup DevFlow on fresh/new project" | `onboard` | `onboard` / `setup` | `onboard` -> `/spec` or `10-define` |
|
|
66
|
+
| "Adopt DevFlow on existing codebase" | `adopt` | `adopt` / `bootstrap` | `adopt` -> `/spec` or `10-define` |
|
|
45
67
|
| "Check setup health & diagnostics" | `doctor` | `doctor` / `health` | `doctor` |
|
|
46
|
-
| "Explore a new request / idea" | `00-discover` | `discover` | `00
|
|
47
|
-
| "Define delivery boundaries and ID" | `10-define` | `define` | `10
|
|
48
|
-
| "
|
|
49
|
-
| "
|
|
50
|
-
| "
|
|
51
|
-
| "
|
|
52
|
-
| "
|
|
53
|
-
| "
|
|
54
|
-
| "
|
|
55
|
-
| "
|
|
56
|
-
| "
|
|
57
|
-
| "
|
|
58
|
-
| "
|
|
59
|
-
| "
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
| "Investigate failure or root cause" | `debug` | `debug` | `debug` -> `40-implement` or `10-define` |
|
|
63
|
-
| "Product framing & PRD creation" | `prd` | `prd` | `prd` -> `00-discover` |
|
|
64
|
-
| "Intake and triage incoming bugs" | `issue-triage` | `issue-triage` | `issue-triage` -> `debug` or `10-define` |
|
|
65
|
-
| "High-severity security audit" | `security-review` | `security-review` | `security-review` |
|
|
66
|
-
| "Manage project knowledge base" | `wiki` | `wiki` | `wiki` |
|
|
67
|
-
| "Verify or update DevFlow setup" | `check-for-updates` | `check-for-updates` | `check-for-updates` |
|
|
68
|
+
| "Explore a new request / deep idea" | `00-discover` | `discover` | **Deep-Track**: `00` -> `10` -> `20` -> ... |
|
|
69
|
+
| "Define delivery boundaries and ID" | `10-define` | `define` | **Deep-Track**: `10` -> `20` -> `30` |
|
|
70
|
+
| "Break down spec into plan (Deep)" | `30-plan` | `plan` | **Deep-Track**: `30` -> `40` -> `50` |
|
|
71
|
+
| "Deep code implementation" | `40-implement` | `implement` | **Deep-Track**: `40` -> `50` |
|
|
72
|
+
| "Deep QA verification" | `50-verify` | `verify` | **Deep-Track**: `50` -> `60` -> `70` |
|
|
73
|
+
| "Deep markdown digest report" | `60-report` | `report` | **Deep-Track**: `60` -> `70` |
|
|
74
|
+
| "Deep release packaging & merge" | `70-release` | `release` | **Deep-Track**: `70-release` |
|
|
75
|
+
| "Human manual QA walkthrough guide" | `try` | `try` | Companion (after implement or check) |
|
|
76
|
+
| "Safely plan feature or run reversal" | `rollback` | `rollback` | Companion |
|
|
77
|
+
| "Set up automatic GitHub Actions CI" | `ci` | `ci` | Companion |
|
|
78
|
+
| "Pre-check scope & risks before spec" | `brief` | `brief` | Companion |
|
|
79
|
+
| "Run autonomous bounded delivery loop"| `autopilot` | `autopilot` | Companion |
|
|
80
|
+
| "Brainstorm ideas without ID" | `brainstorm` | `brainstorm` | Companion |
|
|
81
|
+
| "Investigate failure or root cause" | `debug` | `debug` | Companion |
|
|
82
|
+
|
|
83
|
+
---
|
|
68
84
|
|
|
69
85
|
## Available Skills Sitemap
|
|
70
86
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
- `
|
|
75
|
-
- `
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
- `
|
|
79
|
-
- `
|
|
80
|
-
- `
|
|
81
|
-
- `
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
- `
|
|
85
|
-
- `
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
- `
|
|
89
|
-
- `
|
|
90
|
-
- `
|
|
91
|
-
- `
|
|
92
|
-
- `
|
|
93
|
-
- `
|
|
87
|
+
### 1. Fast-Track (Blueprint Mode - 4 Steps)
|
|
88
|
+
- `spec` (`/spec`, `/feature`, `/fix`, `$spec`) - Define, spec, plan, and create `spec.md`
|
|
89
|
+
- `implement` (`/implement`, `$implement`) - Execute planned checklist tasks with TDD
|
|
90
|
+
- `check` (`/check`, `$check`) - Senior QA review, multi-lane verification, record evidence
|
|
91
|
+
- `complete` (`/complete`, `$complete`) - Safety pass, release digest, git merge, close run
|
|
92
|
+
|
|
93
|
+
### 2. Deep-Track (Architect Mode - 8 Steps)
|
|
94
|
+
- `00-discover` - Explore request and decide Proceed/Defer/Reject
|
|
95
|
+
- `10-define` - Lock delivery boundaries and allocate Running ID
|
|
96
|
+
- `20-spec` - Formalize markdown delivery contract
|
|
97
|
+
- `30-plan` - Breakdown spec into phased tasks with test decisions
|
|
98
|
+
- `40-implement` - Incremental task implementation
|
|
99
|
+
- `50-verify` - Senior QA review and multi-lane validation
|
|
100
|
+
- `60-report` - Generate standardized markdown digest report
|
|
101
|
+
- `70-release` - Release packaging, release notes, and merge
|
|
102
|
+
|
|
103
|
+
### 3. Public Companion Commands
|
|
104
|
+
- `devflow` (`status`, `/devflow`) - Interactive guide, state inspector, and router
|
|
105
|
+
- `idea` (`/idea`) - Quick idea capture and AI feasibility enrichment into `devflow/ideas.md`
|
|
106
|
+
- `report-html` (`/report:html`) - Standalone interactive HTML report dashboard generator
|
|
107
|
+
- `onboard` - Baseline stack setup for freshly scaffolded projects
|
|
108
|
+
- `adopt` - Bootstrap DevFlow into existing brownfield projects
|
|
109
|
+
- `doctor` - Read-only health check for setup and drift
|
|
110
|
+
- `try` - Step-by-step human manual QA review guide
|
|
111
|
+
- `rollback` - Safe feature/run reversal planner
|
|
112
|
+
- `ci` - Automatic GitHub Actions workflow setup
|
|
113
|
+
- `brief` - Read-only scope and risk pre-briefing
|
|
114
|
+
- `autopilot` - Autonomous bounded delivery loop
|
|
94
115
|
- `brainstorm` - Ideate without allocating running IDs
|
|
95
|
-
- `research` - Conduct codebase or web research
|
|
96
116
|
- `debug` - Root cause investigation before or during implementation
|
|
97
|
-
- `
|
|
98
|
-
- `issue-triage` - Intake and triage incoming bug reports
|
|
99
|
-
- `security-review` - High-severity security review
|
|
100
|
-
- `wiki` - Knowledge base management under `devflow/wiki/`
|
|
101
|
-
- `check-for-updates` - Verify or upgrade DevFlow setup
|
|
102
|
-
- `help` - Process assistance and stage routing
|
|
103
|
-
|
|
104
|
-
### 3. Engineering & Specialist Skills
|
|
105
|
-
- **Frontend & UI**: `frontend-ui-engineering`, `nextjs-react-expert`, `tailwind-patterns`, `ui-ux-pro-max`, `mobile-design`
|
|
106
|
-
- **Quality & Security**: `code-review-and-quality`, `security-and-hardening`, `test-driven-development`, `vulnerability-scanner`, `performance-optimization`
|
|
107
|
-
- **Architecture & System**: `architecture`, `database-design`, `domain-modeling`, `codebase-design`, `api-and-interface-design`
|
|
108
|
-
- **Tools & Productivity**: `md2html`, `obsidian-markdown`, `git-workflow-and-versioning`, `parallel-agents`, `context-engineering`
|
|
117
|
+
- `overview` - Living context synchronization into project-overview.md
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: idea
|
|
3
|
+
description: "[Devflow] Quick idea capture and AI enrichment - analyze feasibility, value, key points, and record into devflow/ideas.md inbox."
|
|
4
|
+
argument-hint: "\"<idea text or description>\""
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# idea - Quick Idea Capture & AI Enrichment
|
|
8
|
+
|
|
9
|
+
$ARGUMENTS
|
|
10
|
+
|
|
11
|
+
Use this skill to quickly capture feature ideas, improvements, or architectural thoughts before they are forgotten. The AI immediately enriches the idea with **Feasibility Assessment**, **Value & Impact Analysis**, and **Quick Seed Key Points** (to prevent forgetting the nuance), then stores it in the central idea inbox at `devflow/ideas.md`.
|
|
12
|
+
|
|
13
|
+
## Invocations & Aliases
|
|
14
|
+
|
|
15
|
+
- `/idea "<idea text>"`: Standard slash command in Claude Code / Antigravity
|
|
16
|
+
- `idea "<idea text>"`: Plain text invocation
|
|
17
|
+
- `$idea "<idea text>"`: Codex CLI invocation
|
|
18
|
+
|
|
19
|
+
## Behavior & Contract
|
|
20
|
+
|
|
21
|
+
When invoked:
|
|
22
|
+
|
|
23
|
+
### 1. Load Idea Inbox Hub
|
|
24
|
+
1. Check if `devflow/ideas.md` exists. If not, create it with the standard DevFlow Ideas template.
|
|
25
|
+
2. Read `devflow/ideas.md` and find the highest existing `IDEA-xxx` number.
|
|
26
|
+
3. Allocate the next sequential ID (e.g. `IDEA-001`, `IDEA-002`).
|
|
27
|
+
|
|
28
|
+
### 2. AI Feasibility & Value Analysis
|
|
29
|
+
Evaluate the user's raw idea and generate an enriched summary in **Thai (`th`)**:
|
|
30
|
+
- **ไอเดียตั้งต้น (Raw Idea)**: ข้อความที่ผู้ใช้ระบุ
|
|
31
|
+
- **AI Feasibility & Tech**: ประเมินความเป็นไปได้ (ง่าย / ปานกลาง / ซับซ้อน) พร้อมแนะนำ Library, API, หรือแนวทางเทคนิคเบื้องต้น
|
|
32
|
+
- **Value & Potential**: คุณค่า ประโยชน์ และความน่าสนใจของฟีเจอร์นี้
|
|
33
|
+
- **Quick Seed (สรุปประเด็นกันลืม)**: 2-3 ประเด็นทางเทคนิคหรือแนวทางการต่อยอด เพื่อให้กลับมาอ่านทีหลังแล้วจำบริบทได้ทันที
|
|
34
|
+
|
|
35
|
+
### 3. Append to `devflow/ideas.md`
|
|
36
|
+
Insert the new idea block directly under `## 📌 Pending Ideas` in `devflow/ideas.md`:
|
|
37
|
+
|
|
38
|
+
```markdown
|
|
39
|
+
### [IDEA-001] {หัวข้อไอเดียสั้นๆ}
|
|
40
|
+
- **บันทึกเมื่อ**: {YYYY-MM-DD}
|
|
41
|
+
- **ไอเดียตั้งต้น**: {ข้อความที่ผู้ใช้ป้อน}
|
|
42
|
+
- **AI Feasibility & Tech**: {บทวิเคราะห์ความเป็นไปได้และเครื่องมือ}
|
|
43
|
+
- **Value & Potential**: {บทวิเคราะห์คุณค่าและความน่าสนใจ}
|
|
44
|
+
- **Quick Seed (กันลืม)**:
|
|
45
|
+
1. {ประเด็นสำคัญที่ 1}
|
|
46
|
+
2. {ประเด็นสำคัญที่ 2}
|
|
47
|
+
- **สถานะ**: `Pending` (หยิบไปทำได้ด้วย `/spec IDEA-001` หรือ `/00-discover IDEA-001`)
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
*(หากมีข้อความ `*(ยังไม่มีไอเดียค้างอยู่...)*` ให้ลบออกเมื่อมีไอเดียแรก)*
|
|
51
|
+
|
|
52
|
+
### 4. Output Summary
|
|
53
|
+
Report to the user:
|
|
54
|
+
- Allocated Idea ID: `[IDEA-xxx]`
|
|
55
|
+
- Summary of Feasibility & Value analysis
|
|
56
|
+
- Seed points saved
|
|
57
|
+
- Instructions for promotion: "เมื่อพร้อมลงมือทำ สามารถพิมพ์ `/spec IDEA-xxx` หรือ `/00-discover IDEA-xxx` ได้ทันที"
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: implement
|
|
3
|
+
description: "[Devflow] Fast-Track Implement stage in DevFlow (Blueprint Mode) - execute checklist tasks incrementally with TDD and update spec.md."
|
|
4
|
+
argument-hint: "{running-id or workspace path}"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Fast-Track: Implement (Blueprint Mode)
|
|
8
|
+
|
|
9
|
+
$ARGUMENTS
|
|
10
|
+
|
|
11
|
+
Incremental code execution stage in Fast-Track. Reads the Single Living Spec (`spec.md`), executes checklist tasks, implements tests (TDD), and updates the implementation record.
|
|
12
|
+
|
|
13
|
+
## Invocations & Aliases
|
|
14
|
+
|
|
15
|
+
- `/implement`: Run implementation on current active run
|
|
16
|
+
- `/implement {running-id}`: Run implementation on specified running ID
|
|
17
|
+
- `$implement`: Codex CLI invocation
|
|
18
|
+
|
|
19
|
+
## Fast-Track Mainline Workflow
|
|
20
|
+
|
|
21
|
+
```text
|
|
22
|
+
/spec ──▶ /implement ──▶ /check ──▶ /complete
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Behavior & Contract
|
|
26
|
+
|
|
27
|
+
When invoked:
|
|
28
|
+
|
|
29
|
+
### 1. Load Active Context
|
|
30
|
+
1. Identify active Running ID from `devflow/context/current-stage.md` or argument.
|
|
31
|
+
2. Read `devflow/runs/{RUNNING_ID}/spec.md`.
|
|
32
|
+
3. Locate `## 2. Plan & Test Strategy` and `## 3. Implementation Checklist`.
|
|
33
|
+
|
|
34
|
+
### 2. Incremental Execution with TDD
|
|
35
|
+
1. Select unchecked items `- [ ]` from the checklist in order.
|
|
36
|
+
2. For each task:
|
|
37
|
+
- **TDD (Red-Green-Refactor)**: When `Test Decision: Required`, create or update unit tests first.
|
|
38
|
+
- Implement the minimal, clean code change satisfying the task.
|
|
39
|
+
- Run localized verification (e.g. `npm test`, linter).
|
|
40
|
+
- Mark the item as `- [x]` in `spec.md`.
|
|
41
|
+
|
|
42
|
+
### 3. Update Living Spec (`spec.md`)
|
|
43
|
+
Append or update `## 4. Implementation Record` in `spec.md` with:
|
|
44
|
+
- Summary of completed tasks and modified files
|
|
45
|
+
- Key architectural observations or notes
|
|
46
|
+
- Status of checklist items
|
|
47
|
+
|
|
48
|
+
Example:
|
|
49
|
+
```markdown
|
|
50
|
+
## 4. Implementation Record
|
|
51
|
+
- **[Task 1.1]**: Implemented JWT auth middleware in `src/middleware/auth.ts`
|
|
52
|
+
- **[Task 1.2]**: Added unit tests in `test/auth.test.ts` (All 6 tests passing)
|
|
53
|
+
- **[Task 1.3]**: Registered auth route in `src/server.ts`
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### 4. Update Workspace Status
|
|
57
|
+
Update `devflow/context/current-stage.md`:
|
|
58
|
+
- `Current Stage`: `implement (Fast-Track -> Checklist Completed -> Ready for /check)`
|
|
59
|
+
|
|
60
|
+
### 5. Output Summary & Next Step
|
|
61
|
+
Report to the user:
|
|
62
|
+
- Completed checklist items and modified files
|
|
63
|
+
- Local verification results
|
|
64
|
+
- **Next Command**: `/check` (or `/check {RUNNING_ID}`)
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: overview
|
|
3
|
+
description: "[Devflow] Scan codebase architecture, data models, and shipped history to synthesize or refresh devflow/context/project-overview.md as the living source of truth."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# overview - Living Context Synthesis & Sync
|
|
7
|
+
|
|
8
|
+
Where this sits in the workflow:
|
|
9
|
+
|
|
10
|
+
```text
|
|
11
|
+
codebase + devflow/history/HISTORY.md -> [overview] -> devflow/context/project-overview.md -> 00-discover / 10-define / 20-spec
|
|
12
|
+
(reality & shipped runs) (sync & (living source of truth) (informed planning)
|
|
13
|
+
synthesize)
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
`overview` is the context synchronization and synthesis engine for Nexus-DevFlow. It inspects the actual codebase (manifest, dependencies, directory layout, models/schemas, entry points) along with the completed delivery history (`devflow/history/HISTORY.md` and `devflow/runs/`) to build or refresh `devflow/context/project-overview.md`.
|
|
17
|
+
|
|
18
|
+
It ensures that `project-overview.md` remains a **Living Source of Truth** that evolves alongside your software, rather than a stale artifact left behind after onboarding.
|
|
19
|
+
|
|
20
|
+
## Usage
|
|
21
|
+
|
|
22
|
+
```text
|
|
23
|
+
/overview
|
|
24
|
+
$overview
|
|
25
|
+
overview
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Use this when:
|
|
29
|
+
- Multiple delivery runs (`RUN-xxx`) have shipped and `project-overview.md` needs to reflect newly added capabilities.
|
|
30
|
+
- New database schemas, ORM models, or API boundaries were introduced.
|
|
31
|
+
- Major dependencies or architectural patterns were added or modified.
|
|
32
|
+
- After completing `70-release` to keep project context perfectly aligned.
|
|
33
|
+
- Preparing for a new initiative or discovery pass.
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## Process
|
|
38
|
+
|
|
39
|
+
### Step 1 - Scan Reality (Codebase Survey)
|
|
40
|
+
|
|
41
|
+
Inspect the actual codebase to establish hard facts:
|
|
42
|
+
|
|
43
|
+
1. **Manifest & Tooling**:
|
|
44
|
+
- Read `package.json`, `pyproject.toml`, `go.mod`, `Cargo.toml`, `pom.xml`, or `Gemfile`.
|
|
45
|
+
- Identify language versions, primary framework, state management, and build tools.
|
|
46
|
+
2. **Directory Architecture**:
|
|
47
|
+
- Map high-level directory layout (`src/`, `app/`, `api/`, `lib/`, `components/`, etc.).
|
|
48
|
+
- Identify major modules, entry points, and routing conventions.
|
|
49
|
+
3. **Concrete Data Models & Schemas**:
|
|
50
|
+
- Search for ORM schemas (`schema.prisma`, Drizzle schemas, TypeORM entities, SQLAlchemy models, Zod schemas, or core TypeScript types).
|
|
51
|
+
- Extract entity names, core fields, relationships, and invariants.
|
|
52
|
+
4. **Verified Commands**:
|
|
53
|
+
- Inspect package scripts (`dev`, `build`, `test`, `lint`, `check`, `verify`).
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
### Step 2 - Scan History (Delivered Capabilities)
|
|
58
|
+
|
|
59
|
+
Inspect DevFlow history records:
|
|
60
|
+
|
|
61
|
+
1. Read `devflow/history/HISTORY.md` for completed and released milestones.
|
|
62
|
+
2. Scan completed delivery runs in `devflow/runs/` to extract shipped user-visible capabilities and core system features.
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
### Step 3 - Synthesize `project-overview.md`
|
|
67
|
+
|
|
68
|
+
Write or update `devflow/context/project-overview.md` following standard structure:
|
|
69
|
+
|
|
70
|
+
```markdown
|
|
71
|
+
# Project Overview & Source of Truth
|
|
72
|
+
|
|
73
|
+
> Living context artifact automatically synchronized with codebase reality and DevFlow delivery history.
|
|
74
|
+
|
|
75
|
+
## 1. Project Purpose & Target Users
|
|
76
|
+
- High-level summary of what the system does, who it serves, and the core problem it solves.
|
|
77
|
+
|
|
78
|
+
## 2. Architecture & Directory Layout
|
|
79
|
+
- Visual directory layout tree with short descriptions for major modules and boundaries.
|
|
80
|
+
|
|
81
|
+
## 3. Technology Stack & Key Tooling
|
|
82
|
+
- Frontend, Backend, Database, ORM, Testing frameworks, CI/CD, and Package Manager.
|
|
83
|
+
|
|
84
|
+
## 4. Concrete Data Models & Entities
|
|
85
|
+
- Field-level definitions of major entities, types, and relationships.
|
|
86
|
+
|
|
87
|
+
## 5. Shipped Capabilities & Key Modules
|
|
88
|
+
- Consolidated list of active features and subsystems verified in the codebase.
|
|
89
|
+
|
|
90
|
+
## 6. Verified Commands & Developer Workflow
|
|
91
|
+
- Exact commands for Dev, Build, Test, Lint, and Verify.
|
|
92
|
+
|
|
93
|
+
## 7. Known Architectural Focus Areas
|
|
94
|
+
- Known technical debt, active migrations, or upcoming architectural focus points.
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
### Step 4 - Review & Report
|
|
100
|
+
|
|
101
|
+
Present a concise summary of the sync:
|
|
102
|
+
- Models or entities detected and added
|
|
103
|
+
- Shipped capabilities refreshed from history
|
|
104
|
+
- Stack and tooling updates
|
|
105
|
+
- Any inconsistencies or gaps found between code and documentation
|
|
106
|
+
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
## Rules & Guardrails
|
|
110
|
+
|
|
111
|
+
1. **Grounded in Reality**: Never invent non-existent packages, fictional data models, or unverified endpoints. Everything in `project-overview.md` must be traceable to real code or recorded history.
|
|
112
|
+
2. **Preserve User Intent**: Do not erase custom business rules or user-written notes. Integrate new facts smoothly around existing intent.
|
|
113
|
+
3. **Concrete Over Vague**: Provide actual model names, field types, and route paths rather than vague one-line summaries.
|
|
114
|
+
4. **Non-Destructive**: `overview` only writes to `devflow/context/project-overview.md`. It never modifies source code, runs migrations, or touches git history.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: report-html
|
|
3
|
+
description: "[Devflow] Standalone HTML Report Generator - render an interactive standalone HTML dashboard from spec.md or 60-report.md on demand."
|
|
4
|
+
argument-hint: "{running-id or workspace path}"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Standalone: Report HTML
|
|
8
|
+
|
|
9
|
+
$ARGUMENTS
|
|
10
|
+
|
|
11
|
+
Standalone companion command to generate an interactive, self-contained HTML report dashboard on demand from either a Fast-Track `spec.md` or a Deep-Track `60-report.md`.
|
|
12
|
+
|
|
13
|
+
> [!NOTE]
|
|
14
|
+
> HTML reports are **never automatically generated** during normal mainline stages (`/complete` or `60-report`). Use this command whenever you or stakeholders wish to view or share an interactive web report.
|
|
15
|
+
|
|
16
|
+
## Invocations & Aliases
|
|
17
|
+
|
|
18
|
+
- `/report:html`: Generate HTML report for the active or most recent run
|
|
19
|
+
- `/report:html {running-id}`: Generate HTML report for the specified running ID
|
|
20
|
+
- `npm run report:html -- {running-id}`: CLI npm script invocation
|
|
21
|
+
- `$report:html`: Codex CLI invocation
|
|
22
|
+
|
|
23
|
+
## Behavior & Contract
|
|
24
|
+
|
|
25
|
+
When invoked:
|
|
26
|
+
|
|
27
|
+
### 1. Identify Target Run
|
|
28
|
+
1. Locate target run directory in `devflow/runs/{running-id}` from argument or `devflow/context/current-stage.md`.
|
|
29
|
+
2. Check for either:
|
|
30
|
+
- Fast-Track Living Spec: `devflow/runs/{RUNNING_ID}/spec.md` (or `blueprint.md`)
|
|
31
|
+
- Deep-Track Report Digest: `devflow/runs/{RUNNING_ID}/60-report.md`
|
|
32
|
+
|
|
33
|
+
### 2. Render Interactive HTML Dashboard
|
|
34
|
+
Execute the HTML generation engine:
|
|
35
|
+
```bash
|
|
36
|
+
npm run report:html -- {RUNNING_ID}
|
|
37
|
+
```
|
|
38
|
+
Or execute the renderer to transform Markdown into a styled, standalone HTML document:
|
|
39
|
+
- Path: `devflow/runs/{RUNNING_ID}/report.html`
|
|
40
|
+
|
|
41
|
+
### 3. Output
|
|
42
|
+
Provide:
|
|
43
|
+
- Generated HTML file path: `file:///devflow/runs/{RUNNING_ID}/report.html`
|
|
44
|
+
- Summary of sections rendered (Spec, Plan, Progress, QA Evidence, Release Notes)
|
|
45
|
+
- Instructions to open the file in any browser
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: spec
|
|
3
|
+
description: "[Devflow] Fast-Track Spec stage in DevFlow (Blueprint Mode) - define, spec, plan, and create the single living spec.md contract."
|
|
4
|
+
argument-hint: "{feature title, bug description, IDEA-xxx, or running-id}"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Fast-Track: Spec (Blueprint Mode)
|
|
8
|
+
|
|
9
|
+
$ARGUMENTS
|
|
10
|
+
|
|
11
|
+
Fast-Track entry point combining Discovery, Definition, Specification, and Implementation Planning into one streamlined, review-gated step. Creates and maintains the **Single Living Spec (`spec.md`)** for the run. Supports intake from Idea Inbox (`IDEA-xxx`).
|
|
12
|
+
|
|
13
|
+
## Invocations & Aliases
|
|
14
|
+
|
|
15
|
+
- `/spec <title>` or `spec <title>`: Standard Fast-Track specification
|
|
16
|
+
- `/spec IDEA-xxx`: Intake and promote a pending idea from `devflow/ideas.md`
|
|
17
|
+
- `/feature <title>` or `feature <title>`: Fast-Track feature workflow
|
|
18
|
+
- `/fix <bug-description>` or `fix <bug-description>`: Fast-Track ad-hoc bugfix workflow
|
|
19
|
+
- `$spec`, `$feature`, `$fix`: Codex CLI invocation
|
|
20
|
+
|
|
21
|
+
## Fast-Track Mainline Workflow
|
|
22
|
+
|
|
23
|
+
```text
|
|
24
|
+
/spec ──▶ /implement ──▶ /check ──▶ /complete
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Behavior & Contract
|
|
28
|
+
|
|
29
|
+
When invoked:
|
|
30
|
+
|
|
31
|
+
### 1. Work Identity & Idea Intake
|
|
32
|
+
1. Inspect `devflow/context/current-stage.md` and `devflow/runs/`.
|
|
33
|
+
2. **Idea Inbox Intake**: If the argument is an idea identifier (e.g. `IDEA-001`):
|
|
34
|
+
- Read `devflow/ideas.md` and extract the idea's title, raw problem statement, AI Feasibility notes, and Quick Seed points.
|
|
35
|
+
- Use these details as the primary input for Specification & Scope.
|
|
36
|
+
- In `devflow/ideas.md`, update the item's status to `[x] Claimed ({RUNNING_ID})` and move it under `## 📦 Archived / Shipped Ideas`.
|
|
37
|
+
3. Determine or allocate the sequential Running ID (e.g. `RUN-016-{slug}`).
|
|
38
|
+
4. Identify Git branch naming:
|
|
39
|
+
- For features: `feature/{slug}-{RUNNING_ID}`
|
|
40
|
+
- For bug fixes: `fix/{slug}-{RUNNING_ID}`
|
|
41
|
+
5. Create directory `devflow/runs/{RUNNING_ID}/`.
|
|
42
|
+
|
|
43
|
+
### 2. Generate the Single Living Spec (`spec.md`)
|
|
44
|
+
Write `devflow/runs/{RUNNING_ID}/spec.md` using the structured template below in **Thai (`th`)**:
|
|
45
|
+
|
|
46
|
+
```markdown
|
|
47
|
+
# 📐 [{RUNNING_ID}] {Title} (Living Spec)
|
|
48
|
+
|
|
49
|
+
> **Status**: In-Progress
|
|
50
|
+
> **Track**: Fast-Track (Blueprint Mode)
|
|
51
|
+
> **Branch**: `{branch_name}`
|
|
52
|
+
> **Created Date**: {YYYY-MM-DD}
|
|
53
|
+
> **Owner**: {Contributor or Team}
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## 1. Specification & Scope
|
|
58
|
+
- **Problem Statement**: {ปัญหาหรือที่มาที่ต้องทำ}
|
|
59
|
+
- **In-Scope**:
|
|
60
|
+
- {ขอบเขตสิ่งที่ต้องทำ}
|
|
61
|
+
- **Out-of-Scope**:
|
|
62
|
+
- {สิ่งที่ไม่ทำในรอบนี้}
|
|
63
|
+
- **Acceptance Criteria**:
|
|
64
|
+
- [ ] AC-1: {เงื่อนไขการตรวจรับข้อที่ 1}
|
|
65
|
+
- [ ] AC-2: {เงื่อนไขการตรวจรับข้อที่ 2}
|
|
66
|
+
|
|
67
|
+
## 2. Plan & Test Strategy
|
|
68
|
+
- **Files to Modify / Create**:
|
|
69
|
+
- `{path/to/file1}`: {หน้าที่ที่ต้องแก้ไข}
|
|
70
|
+
- `{path/to/file2}`: {หน้าที่ที่ต้องแก้ไข}
|
|
71
|
+
- **Test Decision**: `Required (TDD)` | `Manual/Command Only` | `Not Required`
|
|
72
|
+
- *Rationale*: {เหตุผลความจำเป็นในการเขียนเทสต์}
|
|
73
|
+
- *Planned Cases*: {กรณีทดสอบหลักตาม AAA Pattern}
|
|
74
|
+
- **Impact & Rollback Strategy**:
|
|
75
|
+
- *Impact*: {ผลกระทบต่อโมดูลอื่น}
|
|
76
|
+
- *Rollback*: {วิธีย้อนคืนการทำงานกรณีเกิดปัญหา}
|
|
77
|
+
|
|
78
|
+
## 3. Implementation Checklist
|
|
79
|
+
- [ ] Task 1.1: {งานย่อยข้อที่ 1}
|
|
80
|
+
- [ ] Task 1.2: {งานย่อยข้อที่ 2}
|
|
81
|
+
- [ ] Task 1.3: {งานย่อยข้อที่ 3}
|
|
82
|
+
|
|
83
|
+
## 4. Implementation Record
|
|
84
|
+
- *(จะถูกบันทึกเมื่อรัน /implement)*
|
|
85
|
+
|
|
86
|
+
## 5. Verification Evidence
|
|
87
|
+
- *(จะถูกบันทึกเมื่อรัน /check)*
|
|
88
|
+
|
|
89
|
+
## 6. Release & Handoff
|
|
90
|
+
- *(จะถูกบันทึกเมื่อรัน /complete)*
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### 3. Update Workspace Status
|
|
94
|
+
Update `devflow/context/current-stage.md`:
|
|
95
|
+
- `Active Running ID`: `{RUNNING_ID}`
|
|
96
|
+
- `Current Stage`: `spec (Fast-Track -> Ready for /implement)`
|
|
97
|
+
- `Last Updated`: `{YYYY-MM-DD}`
|
|
98
|
+
|
|
99
|
+
### 4. Output Summary & Next Step
|
|
100
|
+
Report to the user:
|
|
101
|
+
- Running ID and allocated branch
|
|
102
|
+
- Summary of Scope and Acceptance Criteria
|
|
103
|
+
- Living Spec path: `devflow/runs/{RUNNING_ID}/spec.md`
|
|
104
|
+
- If promoted from `IDEA-xxx`, confirm status update in `devflow/ideas.md`
|
|
105
|
+
- **Next Command**: `/implement` (or `/implement {RUNNING_ID}`)
|
|
@@ -14,12 +14,14 @@ Explore a request before delivery commitment. Create or resume a Discovery ID, c
|
|
|
14
14
|
|
|
15
15
|
```text
|
|
16
16
|
00-discover {title or request}
|
|
17
|
+
00-discover IDEA-xxx
|
|
17
18
|
00-discover {discovery-id}
|
|
18
19
|
```
|
|
19
20
|
|
|
20
21
|
Use this when:
|
|
21
22
|
|
|
22
23
|
- a new request needs discussion before the team commits to delivery
|
|
24
|
+
- exploring a pending idea from `devflow/ideas.md` (`00-discover IDEA-xxx`)
|
|
23
25
|
- the best route may be `Brainstorm`, `PRD`, `Research`, or `Debug`
|
|
24
26
|
- supporting findings need to be synthesized into a go/no-go decision
|
|
25
27
|
|