@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
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
---
|
|
2
|
-
|
|
3
|
-
description: "[Devflow] Report stage in DevFlow 2.0 - produce standardized markdown
|
|
1
|
+
---
|
|
2
|
+
name: 60-report
|
|
3
|
+
description: "[Devflow] Report stage in DevFlow 2.0 - produce standardized markdown summary report for the completed run."
|
|
4
4
|
argument-hint: "{running-id or workspace path}"
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -8,7 +8,7 @@ argument-hint: "{running-id or workspace path}"
|
|
|
8
8
|
|
|
9
9
|
$ARGUMENTS
|
|
10
10
|
|
|
11
|
-
Produce the final human-friendly summary of the full running flow in
|
|
11
|
+
Produce the final human-friendly summary of the full running flow in Markdown (`60-report.md`) so the outcome is easy to communicate every time.
|
|
12
12
|
|
|
13
13
|
## Usage
|
|
14
14
|
|
|
@@ -16,19 +16,12 @@ Produce the final human-friendly summary of the full running flow in both Markdo
|
|
|
16
16
|
60-report {running-id or workspace path}
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
Use this when:
|
|
20
|
-
|
|
21
|
-
- verification is complete and the run is ready for a final standardized summary before release
|
|
22
|
-
- the team needs a standardized summary for communication
|
|
23
|
-
- non-technical readers should be able to understand what happened
|
|
24
|
-
|
|
25
19
|
## Markdown-First Contract
|
|
26
20
|
|
|
27
|
-
Write the primary stage
|
|
21
|
+
Write the primary stage artifact to:
|
|
28
22
|
|
|
29
23
|
```text
|
|
30
|
-
devflow/runs/{ID}-{slug}60-report.md
|
|
31
|
-
devflow/runs/{ID}-{slug}60-report.html
|
|
24
|
+
devflow/runs/{ID}-{slug}/60-report.md
|
|
32
25
|
```
|
|
33
26
|
|
|
34
27
|
using:
|
|
@@ -39,6 +32,9 @@ using:
|
|
|
39
32
|
|
|
40
33
|
Before writing `60-report.md`, read `artifact_language` from `report.template.md` and produce the markdown artifact in that language.
|
|
41
34
|
|
|
35
|
+
> [!IMPORTANT]
|
|
36
|
+
> **No Auto-Generated HTML**: ยกเลิกการสร้างไฟล์ `60-report.html` แบบอัตโนมัติในขั้นตอนนี้! ระบบจะสร้างเฉพาะ `60-report.md` เท่านั้น หากผู้ใช้หรือทีมต้องการสร้าง HTML Report สวยงาม ให้เรียกคำสั่งแยกต่างหาก: `/report:html` หรือ `npm run report:html`
|
|
37
|
+
|
|
42
38
|
## Required Section Content
|
|
43
39
|
|
|
44
40
|
Before completing any generated artifact:
|
|
@@ -57,13 +53,13 @@ Before completing any generated artifact:
|
|
|
57
53
|
|
|
58
54
|
Run reporting as an outcome-evidence loop, not as a dump of prior artifacts.
|
|
59
55
|
|
|
60
|
-
- **Intent**: produce a final markdown
|
|
56
|
+
- **Intent**: produce a final markdown summary that lets a reader understand the outcome, evidence, decisions, risks, and next actions without replaying the whole run.
|
|
61
57
|
- **Context**: read all relevant stage artifacts, checklist files, verify impact notes, release notes, validation output, and supporting artifacts that materially explain the result.
|
|
62
|
-
- **Action**: summarize the problem, direction, completed work, validation outcome, checklist progress, final decision, open risks, and next actions
|
|
58
|
+
- **Action**: summarize the problem, direction, completed work, validation outcome, checklist progress, final decision, open risks, and next actions.
|
|
63
59
|
- **Observation**: use concrete evidence such as checklist completion, blocked or skipped items, validation results, release state, impact notes, and unresolved follow-ups.
|
|
64
60
|
- **Adjustment**: if evidence is missing, return to the owning stage; if the report must support continuation, use `handoff`; if the run produced reusable lessons, use `insight-capture` or `Wiki`.
|
|
65
|
-
- **Stop Condition**: stop when `
|
|
66
|
-
- **Handoff**: `
|
|
61
|
+
- **Stop Condition**: stop when `60-report.md` exists, summarizes the outcome accurately, includes checklist and evidence snapshots, and names any remaining follow-up work.
|
|
62
|
+
- **Handoff**: `60-report.md` must close the mainline run or tell the next reader exactly where follow-up work should continue.
|
|
67
63
|
|
|
68
64
|
### 1. Gather Full Run Context
|
|
69
65
|
|
|
@@ -98,19 +94,9 @@ Explain:
|
|
|
98
94
|
|
|
99
95
|
Write:
|
|
100
96
|
|
|
101
|
-
- a readable Markdown report for contributors
|
|
102
|
-
- a consistent HTML report for stakeholder sharing
|
|
103
|
-
|
|
104
|
-
In phase 1, `artifact_language` governs the markdown report text. HTML output is derived directly from `60-report.md` through the shared markdown-to-html renderer.
|
|
97
|
+
- a readable Markdown report (`60-report.md`) for contributors
|
|
105
98
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
```text
|
|
109
|
-
npm run report:html -- <workspace-path-or-running-id>
|
|
110
|
-
npm run render:html -- --stage 60-report <workspace-path-or-running-id>
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
Keep checklist summaries and follow-up status inside `60-report.md` so they carry through into the rendered HTML.
|
|
99
|
+
Keep checklist summaries and follow-up status inside `60-report.md`.
|
|
114
100
|
|
|
115
101
|
Both outputs should summarize checklist state when checklist artifacts exist, including:
|
|
116
102
|
|
|
@@ -120,27 +106,6 @@ Both outputs should summarize checklist state when checklist artifacts exist, in
|
|
|
120
106
|
- approval status, review blockers, and next allowed command when they still matter
|
|
121
107
|
- remaining follow-up work
|
|
122
108
|
|
|
123
|
-
The HTML should stay visually consistent across runs while preserving the report markdown as the source of truth.
|
|
124
|
-
|
|
125
|
-
### 4. Keep The Audience In Mind
|
|
126
|
-
|
|
127
|
-
Prefer clarity over internal detail.
|
|
128
|
-
|
|
129
|
-
Do not bury the outcome inside implementation trivia. The report should help a reader understand the run without replaying the whole workflow.
|
|
130
|
-
|
|
131
|
-
When checklists exist, use them as the most human-readable operational record of what actually happened.
|
|
132
|
-
Use `handoff` when the report must support continued work, and `insight-capture` when the run produced lessons that should become reusable knowledge.
|
|
133
|
-
|
|
134
|
-
### 5. Manual Review Soft Gate
|
|
135
|
-
|
|
136
|
-
Use the report as the final visibility checkpoint before release.
|
|
137
|
-
If any stage still shows unresolved approval, blockers, or deferred work:
|
|
138
|
-
|
|
139
|
-
- surface that state clearly in `60-report.md`
|
|
140
|
-
- pull the relevant signal forward from checklist approval sections when they exist
|
|
141
|
-
- do not imply the phase is fully closed when review is still open
|
|
142
|
-
- recommend the real next action, even if that means returning to an earlier stage
|
|
143
|
-
|
|
144
109
|
## Output
|
|
145
110
|
|
|
146
111
|
Report:
|
|
@@ -148,37 +113,18 @@ Report:
|
|
|
148
113
|
- what the run accomplished
|
|
149
114
|
- checklist completion status and remaining items
|
|
150
115
|
- important remaining follow-ups
|
|
151
|
-
- where `60-report.md`
|
|
152
|
-
-
|
|
153
|
-
|
|
154
|
-
```text
|
|
155
|
-
npm run report:html -- <workspace-path-or-running-id>
|
|
156
|
-
```
|
|
116
|
+
- where `60-report.md` was written
|
|
117
|
+
- standalone HTML command tip: `/report:html` (if HTML view is desired)
|
|
157
118
|
|
|
158
119
|
## Relationship To DevFlow 2.0
|
|
159
120
|
|
|
160
121
|
- Classification: Mainline workflow
|
|
161
122
|
- Previous state: `50-verify`
|
|
162
123
|
- Next state: `70-release` when the summary is aligned and release can proceed
|
|
163
|
-
- Common companion commands: `Wiki` for durable knowledge capture, `Help` for routing or explanation
|
|
164
|
-
- Support skills: `handoff`, `insight-capture`, and writing skills when final reporting must support continuation or reusable learning
|
|
165
|
-
|
|
166
|
-
## Sources
|
|
167
|
-
|
|
168
|
-
- `AGENTS.md`
|
|
169
|
-
- `docs/workspace-artifacts.md`
|
|
170
|
-
- `.agent/resources/schemas/report.template.md`
|
|
171
|
-
- Related commands: `50-verify`, `70-release`, `Wiki`, `Help`
|
|
124
|
+
- Common companion commands: `/report:html` for standalone HTML dashboard, `Wiki` for durable knowledge capture, `Help` for routing or explanation
|
|
172
125
|
|
|
173
126
|
## Next Workflow Recommendation
|
|
174
127
|
|
|
175
|
-
- **Primary**: `70-release {ID}` after `60-report.md`
|
|
176
|
-
- **
|
|
177
|
-
- **Alternative**: `Wiki` when the completed run should be promoted into durable reusable knowledge before release packaging continues
|
|
178
|
-
- **Additional Alternative**: `handoff` when another session or agent must continue from the completed run.
|
|
179
|
-
|
|
180
|
-
## Nexus Event
|
|
181
|
-
|
|
182
|
-
- Use `Wiki` when the final summary should become durable project or framework knowledge.
|
|
183
|
-
- Use `Help` when approval signals, ownership, or route timing still feel ambiguous.
|
|
184
|
-
- Return to `50-verify` when unresolved evidence, blockers, or review state mean the report should not advance yet.
|
|
128
|
+
- **Primary**: `70-release {ID}` after `60-report.md` reflects the verified state clearly.
|
|
129
|
+
- **Optional Standalone HTML**: `/report:html` (or `npm run report:html -- {ID}`) if an interactive HTML report is desired for stakeholder presentation.
|
|
130
|
+
- **Alternative**: `Wiki` when the completed run should be promoted into durable reusable knowledge before release packaging continues.
|
|
@@ -148,7 +148,7 @@ Report:
|
|
|
148
148
|
- Classification: Mainline workflow
|
|
149
149
|
- Previous state: `60-report`
|
|
150
150
|
- Next state: End of the mainline run when release packaging or handoff is complete
|
|
151
|
-
- Common companion commands: `Commit`, `PR`, `Deploy`, `Changelog`, `Merge`, `Wiki`
|
|
151
|
+
- Common companion commands: `Commit`, `PR`, `Deploy`, `Changelog`, `Merge`, `Wiki`, `overview`
|
|
152
152
|
- Support skills: `resolving-merge-conflicts`, `handoff`, and `setup-pre-commit` when release packaging needs conflict resolution, transfer notes, or local quality gates
|
|
153
153
|
|
|
154
154
|
## Sources
|
|
@@ -156,13 +156,14 @@ Report:
|
|
|
156
156
|
- `AGENTS.md`
|
|
157
157
|
- `docs/workspace-artifacts.md`
|
|
158
158
|
- `.agent/resources/schemas/release.template.md`
|
|
159
|
-
- Related commands: `60-report`, `Commit`, `PR`, `Deploy`, `Changelog`, `Merge`, `Wiki`
|
|
159
|
+
- Related commands: `60-report`, `Commit`, `PR`, `Deploy`, `Changelog`, `Merge`, `Wiki`, `overview`
|
|
160
160
|
|
|
161
161
|
## Next Workflow Recommendation
|
|
162
162
|
|
|
163
|
-
- **Primary**: End of Timeline flow
|
|
163
|
+
- **Primary**: End of Timeline flow (or run `/overview` to sync living project context)
|
|
164
164
|
- **Why**: The report is already complete, and this phase is the final release-facing execution step.
|
|
165
165
|
- **Alternatives**:
|
|
166
|
+
- `overview` - choose this to immediately sync newly shipped capabilities into `devflow/context/project-overview.md`.
|
|
166
167
|
- `60-report` - choose this when the release package diverges from the approved report and the summary must be refreshed first.
|
|
167
168
|
- `50-verify` - choose this when release readiness becomes uncertain.
|
|
168
169
|
- `40-implement` - choose this when additional fixes are needed before release can proceed.
|
|
@@ -170,7 +171,7 @@ Report:
|
|
|
170
171
|
|
|
171
172
|
## Nexus Event
|
|
172
173
|
|
|
173
|
-
- Use `Commit`, `PR`, `Deploy`, `Merge`, or `
|
|
174
|
+
- Use `Commit`, `PR`, `Deploy`, `Merge`, `Changelog`, or `overview` when release execution still needs a concrete lane.
|
|
174
175
|
- Return to `60-report` when release notes, scope, or handoff wording diverge from the approved summary.
|
|
175
176
|
- Return to `50-verify` or `40-implement` when release readiness changes because unresolved issues are discovered.
|
|
176
177
|
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: check
|
|
3
|
+
description: "[Devflow] Fast-Track Check stage in DevFlow (Blueprint Mode) - perform senior QA review, run multi-lane verification, and record evidence in spec.md."
|
|
4
|
+
argument-hint: "{running-id or workspace path}"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Fast-Track: Check (Blueprint Mode)
|
|
8
|
+
|
|
9
|
+
$ARGUMENTS
|
|
10
|
+
|
|
11
|
+
Quality assurance and multi-lane verification stage in Fast-Track. Validates the implementation against Acceptance Criteria, runs test suites, checks for regressions, and records evidence in the Single Living Spec (`spec.md`).
|
|
12
|
+
|
|
13
|
+
## Invocations & Aliases
|
|
14
|
+
|
|
15
|
+
- `/check`: Run verification on current active run
|
|
16
|
+
- `/check {running-id}`: Run verification on specified running ID
|
|
17
|
+
- `$check`: 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 `## 1. Specification & Scope` (Acceptance Criteria) and `## 3. Implementation Checklist`.
|
|
33
|
+
|
|
34
|
+
### 2. Multi-lane Verification Execution
|
|
35
|
+
Execute the verification gates across all lanes:
|
|
36
|
+
1. **Lane 1 (Type & Syntax Safety)**:
|
|
37
|
+
- Run typecheck and linting (e.g. `npm run typecheck`, `npm run lint`).
|
|
38
|
+
2. **Lane 2 (Test Suites & Coverage)**:
|
|
39
|
+
- Run automated unit and integration tests (e.g. `npm test`).
|
|
40
|
+
3. **Lane 3 (Manual / Scenario Proof)**:
|
|
41
|
+
- Verify specific scenarios against Acceptance Criteria (`AC-1`, `AC-2`).
|
|
42
|
+
- Summarize "Where to go", "What to click/call", and "What to expect".
|
|
43
|
+
|
|
44
|
+
### 3. Update Living Spec (`spec.md`)
|
|
45
|
+
Append or update `## 5. Verification Evidence` in `spec.md` in **Thai (`th`)**:
|
|
46
|
+
|
|
47
|
+
```markdown
|
|
48
|
+
## 5. Verification Evidence
|
|
49
|
+
- **Typecheck & Linter**: Passed (0 errors, 0 warnings)
|
|
50
|
+
- **Automated Test Suites**: All tests passed (e.g. 12/12 passed, 0 failed)
|
|
51
|
+
- **Acceptance Criteria Verification**:
|
|
52
|
+
- [x] AC-1: {ผลการตรวจสอบเงื่อนไขที่ 1 ผ่าน 100%}
|
|
53
|
+
- [x] AC-2: {ผลการตรวจสอบเงื่อนไขที่ 2 ผ่าน 100%}
|
|
54
|
+
- **Manual Verification Guide**:
|
|
55
|
+
- *Where to go*: `http://localhost:3000/api/auth`
|
|
56
|
+
- *Action*: Send POST request with test credentials
|
|
57
|
+
- *Expected Result*: Received HTTP 200 with valid JWT token
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### 4. Update Workspace Status
|
|
61
|
+
Update `devflow/context/current-stage.md`:
|
|
62
|
+
- `Current Stage`: `check (Fast-Track -> Verification Passed -> Ready for /complete)`
|
|
63
|
+
|
|
64
|
+
### 5. Output Summary & Next Step
|
|
65
|
+
Report to the user:
|
|
66
|
+
- Summary of verification results across all lanes
|
|
67
|
+
- Evidence recorded in `spec.md`
|
|
68
|
+
- **Next Command**: `/complete` (or `/complete {RUNNING_ID}`)
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: complete
|
|
3
|
+
description: "[Devflow] Fast-Track Complete stage in DevFlow (Blueprint Mode) - perform final safety pass, record release digest in spec.md, git merge, and close run without auto HTML generation."
|
|
4
|
+
argument-hint: "{running-id or workspace path}"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Fast-Track: Complete (Blueprint Mode)
|
|
8
|
+
|
|
9
|
+
$ARGUMENTS
|
|
10
|
+
|
|
11
|
+
Final delivery, safety pass, and run closure stage in Fast-Track. Validates verification status, records the Release Digest into `spec.md`, performs git merge, and marks the run as completed **without auto-generating HTML reports**.
|
|
12
|
+
|
|
13
|
+
## Invocations & Aliases
|
|
14
|
+
|
|
15
|
+
- `/complete`: Complete current active run
|
|
16
|
+
- `/complete {running-id}`: Complete specified running ID
|
|
17
|
+
- `$complete`: 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. Validate Delivery Pre-conditions
|
|
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. Confirm:
|
|
33
|
+
- All checklist items in `## 3. Implementation Checklist` are marked `- [x]`.
|
|
34
|
+
- `## 5. Verification Evidence` contains passing verification results.
|
|
35
|
+
|
|
36
|
+
### 2. Final Safety Pass & Changelog
|
|
37
|
+
1. Verify working directory hygiene (no accidental leftover test files or debug statements).
|
|
38
|
+
2. Update `CHANGELOG.md` with release summary under the current version if applicable.
|
|
39
|
+
|
|
40
|
+
### 3. Update Living Spec (`spec.md`)
|
|
41
|
+
Append or update `## 6. Release & Handoff` in `spec.md` in **Thai (`th`)**:
|
|
42
|
+
|
|
43
|
+
```markdown
|
|
44
|
+
## 6. Release & Handoff
|
|
45
|
+
- **Release Digest**: สรุปสิ่งที่ส่งมอบในรอบนี้
|
|
46
|
+
- **Git Branch**: `{branch_name}`
|
|
47
|
+
- **Merge Status**: Merged into `main` (Commit `{commit_hash}`)
|
|
48
|
+
- **Artifact Contract**: Fast-Track Single Living Spec completed.
|
|
49
|
+
```
|
|
50
|
+
Update header status in `spec.md`: `> **Status**: Completed`.
|
|
51
|
+
|
|
52
|
+
### 4. Policy on HTML Reports (Strict Rule)
|
|
53
|
+
> [!IMPORTANT]
|
|
54
|
+
> **No Auto-Generated HTML**: ห้ามสร้างไฟล์ `report.html` หรือ `60-report.html` แบบอัตโนมัติในขั้นตอนนี้โดยเด็ดขาด!
|
|
55
|
+
> หากผู้ใช้ต้องการดู HTML Dashboard สวยงาม ให้แจ้งผู้ใช้ว่าสามารถเรียกคำสั่งแยกได้: `/report:html`
|
|
56
|
+
|
|
57
|
+
### 5. Git Merge & Branch Cleanup
|
|
58
|
+
1. Commit all modified tracking files (including `spec.md` and `current-stage.md`).
|
|
59
|
+
2. Merge feature branch into target base branch (`main` / `master`).
|
|
60
|
+
|
|
61
|
+
### 6. Close Active Run
|
|
62
|
+
Update `devflow/context/current-stage.md`:
|
|
63
|
+
- `Active Running ID`: `None (Idle)`
|
|
64
|
+
- `Current Stage`: `Idle (Ready for new /spec, /feature, /fix, or /00-discover)`
|
|
65
|
+
- `Last Completed Run`: `{RUNNING_ID} ({YYYY-MM-DD})`
|
|
66
|
+
- `Last Updated`: `{YYYY-MM-DD}`
|
|
67
|
+
|
|
68
|
+
### 7. Output Completion Report
|
|
69
|
+
Report to the user:
|
|
70
|
+
- Run successfully completed and merged
|
|
71
|
+
- Living Spec path: `devflow/runs/{RUNNING_ID}/spec.md`
|
|
72
|
+
- Standalone HTML command tip: `/report:html` (if HTML view is desired)
|
|
73
|
+
- Workspace is now Idle and ready for the next task.
|
|
@@ -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` ได้ทันที"
|