@jakkrichm/create-nexus-devflow 2.0.13 → 2.0.15
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 +4 -4
- 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/30-plan/SKILL.md +6 -6
- package/template/{.claude/skills/40-implement → .agents/skills/40-execute}/SKILL.md +21 -26
- package/template/.agents/skills/50-verify/SKILL.md +10 -10
- package/template/.agents/skills/60-report/SKILL.md +22 -76
- package/template/.agents/skills/70-release/SKILL.md +11 -10
- package/template/.agents/skills/agent/SKILL.md +3 -3
- package/template/.agents/skills/autopilot/SKILL.md +6 -6
- package/template/.agents/skills/brainstorm/SKILL.md +1 -1
- package/template/.agents/skills/brief/SKILL.md +1 -1
- package/template/.agents/skills/check/SKILL.md +68 -0
- package/template/.agents/skills/codebase-design/SKILL.md +2 -2
- package/template/.agents/skills/commit/SKILL.md +1 -1
- package/template/.agents/skills/complete/SKILL.md +73 -0
- package/template/.agents/skills/debug/SKILL.md +2 -2
- package/template/.agents/skills/devflow/SKILL.md +89 -80
- package/template/.agents/skills/doctor/SKILL.md +1 -1
- package/template/.agents/skills/feature/SKILL.md +103 -0
- package/template/.agents/skills/fix/SKILL.md +102 -0
- package/template/.agents/skills/followup/SKILL.md +5 -5
- package/template/.agents/skills/help/SKILL.md +4 -4
- package/template/.agents/skills/idea/SKILL.md +57 -0
- package/template/.agents/skills/implement/SKILL.md +64 -0
- package/template/.agents/skills/insight/SKILL.md +1 -1
- package/template/.agents/skills/overview/SKILL.md +114 -0
- package/template/.agents/skills/pr/SKILL.md +1 -1
- package/template/.agents/skills/preview/SKILL.md +1 -1
- package/template/.agents/skills/report-html/SKILL.md +45 -0
- package/template/.agents/skills/review/SKILL.md +1 -1
- package/template/.agents/skills/rollback/SKILL.md +3 -3
- package/template/.agents/skills/security-review/SKILL.md +2 -2
- package/template/.agents/skills/simplify/SKILL.md +1 -1
- package/template/.agents/skills/spec/SKILL.md +38 -0
- package/template/.agents/skills/test/SKILL.md +2 -2
- package/template/.agents/skills/try/SKILL.md +2 -2
- package/template/.claude/skills/00-discover/SKILL.md +2 -0
- package/template/.claude/skills/30-plan/SKILL.md +6 -6
- package/template/{.agents/skills/40-implement → .claude/skills/40-execute}/SKILL.md +21 -26
- package/template/.claude/skills/50-verify/SKILL.md +10 -10
- package/template/.claude/skills/60-report/SKILL.md +22 -76
- package/template/.claude/skills/70-release/SKILL.md +11 -10
- package/template/.claude/skills/agent/SKILL.md +3 -3
- package/template/.claude/skills/autopilot/SKILL.md +6 -6
- package/template/.claude/skills/brainstorm/SKILL.md +1 -1
- package/template/.claude/skills/brief/SKILL.md +1 -1
- package/template/.claude/skills/check/SKILL.md +68 -0
- package/template/.claude/skills/codebase-design/SKILL.md +2 -2
- package/template/.claude/skills/commit/SKILL.md +1 -1
- package/template/.claude/skills/complete/SKILL.md +73 -0
- package/template/.claude/skills/debug/SKILL.md +2 -2
- package/template/.claude/skills/devflow/SKILL.md +89 -80
- package/template/.claude/skills/doctor/SKILL.md +1 -1
- package/template/.claude/skills/feature/SKILL.md +103 -0
- package/template/.claude/skills/fix/SKILL.md +102 -0
- package/template/.claude/skills/followup/SKILL.md +5 -5
- package/template/.claude/skills/help/SKILL.md +4 -4
- package/template/.claude/skills/idea/SKILL.md +57 -0
- package/template/.claude/skills/implement/SKILL.md +64 -0
- package/template/.claude/skills/insight/SKILL.md +1 -1
- package/template/.claude/skills/overview/SKILL.md +114 -0
- package/template/.claude/skills/pr/SKILL.md +1 -1
- package/template/.claude/skills/preview/SKILL.md +1 -1
- package/template/.claude/skills/report-html/SKILL.md +45 -0
- package/template/.claude/skills/review/SKILL.md +1 -1
- package/template/.claude/skills/rollback/SKILL.md +3 -3
- package/template/.claude/skills/security-review/SKILL.md +2 -2
- package/template/.claude/skills/simplify/SKILL.md +1 -1
- package/template/.claude/skills/spec/SKILL.md +38 -0
- package/template/.claude/skills/test/SKILL.md +2 -2
- package/template/.claude/skills/try/SKILL.md +2 -2
- package/template/AGENTS.md +72 -74
- package/template/devflow/context/ai-interaction.md +3 -2
- package/template/devflow/context/coding-standards.md +31 -18
- package/template/devflow/context/current-stage.md +4 -3
- package/template/devflow/context/findings.md +10 -6
- package/template/devflow/context/project-overview.md +33 -11
- package/template/devflow/discoveries/.gitkeep +0 -0
- package/template/devflow/history/HISTORY.md +6 -0
- package/template/devflow/ideas.md +15 -0
- package/template/devflow/reference/running-id-contract.md +2 -2
- 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-execute` ➔ `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-execute {RUNNING_ID}`.
|
|
39
|
+
- If at `40-execute.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-execute` | `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-execute` - 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
|
|
@@ -52,7 +52,7 @@ Run through these 5 health checks:
|
|
|
52
52
|
- Are there active runs?
|
|
53
53
|
- Is `current-stage.md` consistent with the latest stage artifact in the active run?
|
|
54
54
|
- Are checklists (`checklists/implementation-checklist.md`, `checklists/verification-checklist.md`) properly tracked?
|
|
55
|
-
- Detect stage skips or workflow drift (e.g. jumping from `10-define` directly to `40-
|
|
55
|
+
- Detect stage skips or workflow drift (e.g. jumping from `10-define` directly to `40-execute` without `20-spec` and `30-plan`).
|
|
56
56
|
|
|
57
57
|
### Check 5: Findings Ledger Inspection
|
|
58
58
|
- Inspect `devflow/context/findings.md`:
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: feature
|
|
3
|
+
description: "[Devflow] Fast-Track Feature stage in DevFlow (Blueprint Mode) - define, spec, plan, and create the living spec.md contract for new features."
|
|
4
|
+
argument-hint: "{feature title, IDEA-xxx, or feature description}"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Fast-Track: Feature (Blueprint Mode)
|
|
8
|
+
|
|
9
|
+
$ARGUMENTS
|
|
10
|
+
|
|
11
|
+
Fast-Track entry point combining Discovery, Definition, Specification, and Implementation Planning into one streamlined, review-gated step for **new features or enhancements**. Creates and maintains the **Single Living Spec (`spec.md`)** for the feature run. Supports intake from Idea Inbox (`IDEA-xxx`).
|
|
12
|
+
|
|
13
|
+
## Invocations & Aliases
|
|
14
|
+
|
|
15
|
+
- `/feature <title>` or `feature <title>`: Fast-Track feature specification
|
|
16
|
+
- `/feature IDEA-xxx`: Intake and promote a pending idea from `devflow/ideas.md`
|
|
17
|
+
- `$feature`: Codex CLI invocation
|
|
18
|
+
|
|
19
|
+
## Fast-Track Mainline Workflow
|
|
20
|
+
|
|
21
|
+
```text
|
|
22
|
+
/feature (หรือ /fix) ──▶ /implement ──▶ /check ──▶ /complete
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Behavior & Contract
|
|
26
|
+
|
|
27
|
+
When invoked:
|
|
28
|
+
|
|
29
|
+
### 1. Work Identity & Idea Intake
|
|
30
|
+
1. Inspect `devflow/context/current-stage.md` and `devflow/runs/`.
|
|
31
|
+
2. **Idea Inbox Intake**: If the argument is an idea identifier (e.g. `IDEA-001`):
|
|
32
|
+
- Read `devflow/ideas.md` and extract the idea's title, raw problem statement, AI Feasibility notes, and Quick Seed points.
|
|
33
|
+
- Use these details as the primary input for Specification & Scope.
|
|
34
|
+
- In `devflow/ideas.md`, update the item's status to `[x] Claimed ({RUNNING_ID})` and move it under `## 📦 Archived / Shipped Ideas`.
|
|
35
|
+
3. Determine or allocate the sequential Running ID (e.g. `RUN-018-{slug}`).
|
|
36
|
+
4. Identify Git branch naming:
|
|
37
|
+
- `feature/{slug}-{RUNNING_ID}`
|
|
38
|
+
5. Create directory `devflow/runs/{RUNNING_ID}/`.
|
|
39
|
+
|
|
40
|
+
### 2. Generate the Single Living Spec (`spec.md`)
|
|
41
|
+
Write `devflow/runs/{RUNNING_ID}/spec.md` using the structured template below in **Thai (`th`)**:
|
|
42
|
+
|
|
43
|
+
```markdown
|
|
44
|
+
# 📐 [{RUNNING_ID}] {Feature Title} (Living Spec)
|
|
45
|
+
|
|
46
|
+
> **Status**: In-Progress
|
|
47
|
+
> **Track**: Fast-Track (Blueprint Mode - Feature)
|
|
48
|
+
> **Branch**: `{branch_name}`
|
|
49
|
+
> **Created Date**: {YYYY-MM-DD}
|
|
50
|
+
> **Owner**: {Contributor or Team}
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## 1. Specification & Scope
|
|
55
|
+
- **Problem Statement**: {ปัญหาหรือที่มาของฟีเจอร์นี้}
|
|
56
|
+
- **In-Scope**:
|
|
57
|
+
- {ขอบเขตสิ่งที่ต้องทำสำหรับฟีเจอร์นี้}
|
|
58
|
+
- **Out-of-Scope**:
|
|
59
|
+
- {สิ่งที่ไม่ทำในรอบนี้}
|
|
60
|
+
- **Acceptance Criteria**:
|
|
61
|
+
- [ ] AC-1: {เงื่อนไขการตรวจรับข้อที่ 1}
|
|
62
|
+
- [ ] AC-2: {เงื่อนไขการตรวจรับข้อที่ 2}
|
|
63
|
+
|
|
64
|
+
## 2. Plan & Test Strategy
|
|
65
|
+
- **Files to Modify / Create**:
|
|
66
|
+
- `{path/to/file1}`: {หน้าที่ที่ต้องสร้าง/แก้ไข}
|
|
67
|
+
- `{path/to/file2}`: {หน้าที่ที่ต้องสร้าง/แก้ไข}
|
|
68
|
+
- **Test Decision**: `Required (TDD)` | `Manual/Command Only` | `Not Required`
|
|
69
|
+
- *Rationale*: {เหตุผลความจำเป็นในการเขียนเทสต์}
|
|
70
|
+
- *Planned Cases*: {กรณีทดสอบหลักตาม AAA Pattern}
|
|
71
|
+
- **Impact & Rollback Strategy**:
|
|
72
|
+
- *Impact*: {ผลกระทบต่อโมดูลอื่น}
|
|
73
|
+
- *Rollback*: {วิธีย้อนคืนการทำงานกรณีเกิดปัญหา}
|
|
74
|
+
|
|
75
|
+
## 3. Implementation Checklist
|
|
76
|
+
- [ ] Task 1.1: {งานย่อยข้อที่ 1}
|
|
77
|
+
- [ ] Task 1.2: {งานย่อยข้อที่ 2}
|
|
78
|
+
- [ ] Task 1.3: {งานย่อยข้อที่ 3}
|
|
79
|
+
|
|
80
|
+
## 4. Implementation Record
|
|
81
|
+
- *(จะถูกบันทึกเมื่อรัน /implement)*
|
|
82
|
+
|
|
83
|
+
## 5. Verification Evidence
|
|
84
|
+
- *(จะถูกบันทึกเมื่อรัน /check)*
|
|
85
|
+
|
|
86
|
+
## 6. Release & Handoff
|
|
87
|
+
- *(จะถูกบันทึกเมื่อรัน /complete)*
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### 3. Update Workspace Status
|
|
91
|
+
Update `devflow/context/current-stage.md`:
|
|
92
|
+
- `Active Running ID`: `{RUNNING_ID}`
|
|
93
|
+
- `Current Stage`: `feature (Fast-Track -> Ready for /implement)`
|
|
94
|
+
- `Living Spec`: `devflow/runs/{RUNNING_ID}/spec.md`
|
|
95
|
+
- `Last Updated`: `{YYYY-MM-DD}`
|
|
96
|
+
|
|
97
|
+
### 4. Output Summary & Next Step
|
|
98
|
+
Report to the user:
|
|
99
|
+
- Running ID and allocated branch
|
|
100
|
+
- Summary of Scope and Acceptance Criteria
|
|
101
|
+
- Living Spec path: `devflow/runs/{RUNNING_ID}/spec.md`
|
|
102
|
+
- If promoted from `IDEA-xxx`, confirm status update in `devflow/ideas.md`
|
|
103
|
+
- **Next Command**: `/implement` (or `/implement {RUNNING_ID}`)
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: fix
|
|
3
|
+
description: "[Devflow] Fast-Track Fix stage in DevFlow (Blueprint Mode) - define, spec, plan, and create the living spec.md contract for bug fixes."
|
|
4
|
+
argument-hint: "{bug description, issue ID, or IDEA-xxx}"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Fast-Track: Fix (Blueprint Mode)
|
|
8
|
+
|
|
9
|
+
$ARGUMENTS
|
|
10
|
+
|
|
11
|
+
Fast-Track entry point combining Bug Triage, Root Cause Isolation, Specification, and Implementation Planning into one streamlined, review-gated step for **bug fixes and hotfixes**. Creates and maintains the **Single Living Spec (`spec.md`)** for the fix run.
|
|
12
|
+
|
|
13
|
+
## Invocations & Aliases
|
|
14
|
+
|
|
15
|
+
- `/fix <bug-description>` or `fix <bug-description>`: Fast-Track ad-hoc bugfix workflow
|
|
16
|
+
- `/fix IDEA-xxx`: Intake and fix a reported issue or idea from `devflow/ideas.md`
|
|
17
|
+
- `$fix`: Codex CLI invocation
|
|
18
|
+
|
|
19
|
+
## Fast-Track Mainline Workflow
|
|
20
|
+
|
|
21
|
+
```text
|
|
22
|
+
/feature (หรือ /fix) ──▶ /implement ──▶ /check ──▶ /complete
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Behavior & Contract
|
|
26
|
+
|
|
27
|
+
When invoked:
|
|
28
|
+
|
|
29
|
+
### 1. Work Identity & Issue Intake
|
|
30
|
+
1. Inspect `devflow/context/current-stage.md` and `devflow/runs/`.
|
|
31
|
+
2. **Idea / Issue Inbox Intake**: If the argument is an identifier (e.g. `IDEA-001`):
|
|
32
|
+
- Read `devflow/ideas.md` or issue notes and extract problem statement and root cause hints.
|
|
33
|
+
- In `devflow/ideas.md`, update status to `[x] Claimed ({RUNNING_ID})` and move under `## 📦 Archived / Shipped Ideas`.
|
|
34
|
+
3. Determine or allocate the sequential Running ID (e.g. `RUN-018-{slug}`).
|
|
35
|
+
4. Identify Git branch naming:
|
|
36
|
+
- `fix/{slug}-{RUNNING_ID}`
|
|
37
|
+
5. Create directory `devflow/runs/{RUNNING_ID}/`.
|
|
38
|
+
|
|
39
|
+
### 2. Generate the Single Living Spec (`spec.md`)
|
|
40
|
+
Write `devflow/runs/{RUNNING_ID}/spec.md` using the structured template below in **Thai (`th`)**:
|
|
41
|
+
|
|
42
|
+
```markdown
|
|
43
|
+
# 📐 [{RUNNING_ID}] {Bug/Fix Title} (Living Spec)
|
|
44
|
+
|
|
45
|
+
> **Status**: In-Progress
|
|
46
|
+
> **Track**: Fast-Track (Blueprint Mode - Fix)
|
|
47
|
+
> **Branch**: `{branch_name}`
|
|
48
|
+
> **Created Date**: {YYYY-MM-DD}
|
|
49
|
+
> **Owner**: {Contributor or Team}
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## 1. Specification & Scope
|
|
54
|
+
- **Problem Statement & Reproduction**: {อาการบั๊กที่พบ ขั้นตอนที่ทำให้เกิดปัญหา หรือ Error Log}
|
|
55
|
+
- **Root Cause Analysis**: {สาเหตุที่แท้จริงของบั๊ก}
|
|
56
|
+
- **In-Scope**:
|
|
57
|
+
- {ขอบเขตการแก้ไขบั๊กและการป้องกัน regression}
|
|
58
|
+
- **Out-of-Scope**:
|
|
59
|
+
- {สิ่งที่ไม่แตะต้องหรืออยู่นอกเหนือการแก้จุดนี้}
|
|
60
|
+
- **Acceptance Criteria**:
|
|
61
|
+
- [ ] AC-1: {เงื่อนไขการแก้ปัญหาสำเร็จและพฤติกรรมที่ถูกต้อง}
|
|
62
|
+
- [ ] AC-2: {มี Regression Test ป้องกันไม่ให้เกิดซ้ำ}
|
|
63
|
+
|
|
64
|
+
## 2. Plan & Test Strategy
|
|
65
|
+
- **Files to Modify / Create**:
|
|
66
|
+
- `{path/to/file1}`: {หน้าที่ที่ต้องแก้ไข}
|
|
67
|
+
- `{path/to/test_file}`: {เทสต์เคสจำลองและป้องกันบั๊ก}
|
|
68
|
+
- **Test Decision**: `Required (TDD / Regression Test)`
|
|
69
|
+
- *Rationale*: {การแก้บั๊กต้องมี Regression Test ยืนยันเสมอ}
|
|
70
|
+
- *Planned Cases*: {เคสทดสอบจำลองบั๊ก (Red) และทดสอบหลังแก้ (Green)}
|
|
71
|
+
- **Impact & Rollback Strategy**:
|
|
72
|
+
- *Impact*: {ผลกระทบต่อโมดูลข้างเคียง}
|
|
73
|
+
- *Rollback*: {วิธีย้อนคืนการทำงานกรณีเกิดปัญหา}
|
|
74
|
+
|
|
75
|
+
## 3. Implementation Checklist
|
|
76
|
+
- [ ] Task 1.1: {เขียน Regression Test เพื่อ reproduce บั๊ก}
|
|
77
|
+
- [ ] Task 1.2: {แก้ไขโค้ดที่จุดเกิดเหตุ}
|
|
78
|
+
- [ ] Task 1.3: {รันชุดทดสอบเพื่อยืนยันว่าบั๊กหายและไม่กระทบจุดอื่น}
|
|
79
|
+
|
|
80
|
+
## 4. Implementation Record
|
|
81
|
+
- *(จะถูกบันทึกเมื่อรัน /implement)*
|
|
82
|
+
|
|
83
|
+
## 5. Verification Evidence
|
|
84
|
+
- *(จะถูกบันทึกเมื่อรัน /check)*
|
|
85
|
+
|
|
86
|
+
## 6. Release & Handoff
|
|
87
|
+
- *(จะถูกบันทึกเมื่อรัน /complete)*
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### 3. Update Workspace Status
|
|
91
|
+
Update `devflow/context/current-stage.md`:
|
|
92
|
+
- `Active Running ID`: `{RUNNING_ID}`
|
|
93
|
+
- `Current Stage`: `fix (Fast-Track -> Ready for /implement)`
|
|
94
|
+
- `Living Spec`: `devflow/runs/{RUNNING_ID}/spec.md`
|
|
95
|
+
- `Last Updated`: `{YYYY-MM-DD}`
|
|
96
|
+
|
|
97
|
+
### 4. Output Summary & Next Step
|
|
98
|
+
Report to the user:
|
|
99
|
+
- Running ID and allocated branch
|
|
100
|
+
- Summary of Scope, Reproduction, and Acceptance Criteria
|
|
101
|
+
- Living Spec path: `devflow/runs/{RUNNING_ID}/spec.md`
|
|
102
|
+
- **Next Command**: `/implement` (or `/implement {RUNNING_ID}`)
|
|
@@ -36,7 +36,7 @@ Read:
|
|
|
36
36
|
- `devflow/runs/{ID}-*10-define.md`
|
|
37
37
|
- `devflow/runs/{ID}-*20-spec.md`
|
|
38
38
|
- `devflow/runs/{ID}-*30-plan.md`
|
|
39
|
-
- `devflow/runs/{ID}-*40-
|
|
39
|
+
- `devflow/runs/{ID}-*40-execute.md`
|
|
40
40
|
- `devflow/runs/{ID}-*50-verify.md` if present
|
|
41
41
|
|
|
42
42
|
### 2. Classify The Follow-Up
|
|
@@ -57,7 +57,7 @@ Append the follow-up scope directly to the relevant stage markdown files for the
|
|
|
57
57
|
|
|
58
58
|
### 4. Ask For Confirmation
|
|
59
59
|
|
|
60
|
-
After adding or proposing follow-up subtasks, ask the user to confirm before `40-
|
|
60
|
+
After adding or proposing follow-up subtasks, ask the user to confirm before `40-execute`.
|
|
61
61
|
|
|
62
62
|
## Output
|
|
63
63
|
|
|
@@ -66,18 +66,18 @@ Return:
|
|
|
66
66
|
- follow-up category
|
|
67
67
|
- new phase/subtask plan
|
|
68
68
|
- validation result
|
|
69
|
-
- next command: `40-
|
|
69
|
+
- next command: `40-execute {ID}`
|
|
70
70
|
|
|
71
71
|
## Relationship To DevFlow 2.0
|
|
72
72
|
|
|
73
73
|
- Classification: Companion command
|
|
74
74
|
- Mainline status: Not a numbered stage
|
|
75
75
|
- Typical entry points: after review, triage, or release follow-up work is identified
|
|
76
|
-
- Typical handoff targets: `10-define`, `20-spec`, `30-plan`, `40-
|
|
76
|
+
- Typical handoff targets: `10-define`, `20-spec`, `30-plan`, `40-execute`
|
|
77
77
|
|
|
78
78
|
## Sources
|
|
79
79
|
|
|
80
80
|
- `AGENTS.md`
|
|
81
|
-
- Related commands: `PR-Followup`, `Issue-Triage`, `Human-Feedback`, `10-define`, `20-spec`, `40-
|
|
81
|
+
- Related commands: `PR-Followup`, `Issue-Triage`, `Human-Feedback`, `10-define`, `20-spec`, `40-execute`
|
|
82
82
|
|
|
83
83
|
|
|
@@ -77,14 +77,14 @@ Help Summary:
|
|
|
77
77
|
Environment: All OK
|
|
78
78
|
|
|
79
79
|
Active Runs:
|
|
80
|
-
- 010-auth-refactor: stage=40-
|
|
80
|
+
- 010-auth-refactor: stage=40-execute | approval=Pending | next=50-verify 010 | warnings: manual review open
|
|
81
81
|
- 011-billing-phase-1: stage=20-spec | approval=Approved | next=30-plan 011
|
|
82
82
|
- 012-admin-console: stage=50-verify | approval=Approved | next=60-report 012 | warnings: not ready for release
|
|
83
83
|
|
|
84
84
|
Recommended Next Action:
|
|
85
85
|
- 010 -> 50-verify 010
|
|
86
86
|
- 011 -> 20-spec 011
|
|
87
|
-
- 012 -> 40-
|
|
87
|
+
- 012 -> 40-execute 012
|
|
88
88
|
```
|
|
89
89
|
|
|
90
90
|
### Phase C: Manual Review Soft Gate
|
|
@@ -114,7 +114,7 @@ Manual Review Warning:
|
|
|
114
114
|
## DevFlow 2.0 Mainline
|
|
115
115
|
|
|
116
116
|
```text
|
|
117
|
-
00-discover -> 10-define -> 20-spec -> 30-plan -> 40-
|
|
117
|
+
00-discover -> 10-define -> 20-spec -> 30-plan -> 40-execute -> 50-verify -> 60-report -> 70-release
|
|
118
118
|
```
|
|
119
119
|
|
|
120
120
|
## Public Companion Commands
|
|
@@ -182,7 +182,7 @@ Recommend `30-plan`.
|
|
|
182
182
|
|
|
183
183
|
### 5. If planning is done and work should begin
|
|
184
184
|
|
|
185
|
-
Recommend `40-
|
|
185
|
+
Recommend `40-execute`.
|
|
186
186
|
|
|
187
187
|
### 6. If implementation exists and needs checking
|
|
188
188
|
|
|
@@ -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}`)
|
|
@@ -27,7 +27,7 @@ What Broke ➔ Business Impact ➔ Root Cause ➔ Fix Evidence ➔ Prevention &
|
|
|
27
27
|
|
|
28
28
|
## 2. Process & Recording Destinations
|
|
29
29
|
|
|
30
|
-
1. **Load Evidence**: Review `git diff`, `40-
|
|
30
|
+
1. **Load Evidence**: Review `git diff`, `40-execute.md`, `50-verify.md`, or test logs.
|
|
31
31
|
2. **Distill Insights**: Formulate clear, actionable, non-generic takeaways.
|
|
32
32
|
3. **Save to Persistent Memory**:
|
|
33
33
|
- Save project-wide engineering lessons to `devflow/context/lessons.md` (or `knowledge/lessons.md`).
|