@jakkrichm/create-nexus-devflow 2.0.12 → 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 +7 -4
- package/template/.agents/skills/check/SKILL.md +68 -0
- package/template/.agents/skills/ci/SKILL.md +25 -78
- package/template/.agents/skills/commit/SKILL.md +39 -43
- package/template/.agents/skills/complete/SKILL.md +73 -0
- package/template/.agents/skills/debug/SKILL.md +43 -104
- package/template/.agents/skills/deploy/SKILL.md +37 -65
- 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/insight/SKILL.md +27 -116
- package/template/.agents/skills/overview/SKILL.md +114 -0
- package/template/.agents/skills/preview/SKILL.md +24 -103
- package/template/.agents/skills/report-html/SKILL.md +45 -0
- package/template/.agents/skills/review/SKILL.md +53 -37
- package/template/.agents/skills/rollback/SKILL.md +1 -0
- package/template/.agents/skills/security-review/SKILL.md +44 -147
- package/template/.agents/skills/simplify/SKILL.md +48 -57
- package/template/.agents/skills/spec/SKILL.md +105 -0
- package/template/.agents/skills/test/SKILL.md +63 -51
- 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 +7 -4
- package/template/.claude/skills/check/SKILL.md +68 -0
- package/template/.claude/skills/ci/SKILL.md +25 -78
- package/template/.claude/skills/commit/SKILL.md +39 -43
- package/template/.claude/skills/complete/SKILL.md +73 -0
- package/template/.claude/skills/debug/SKILL.md +43 -104
- package/template/.claude/skills/deploy/SKILL.md +37 -65
- 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/insight/SKILL.md +27 -116
- package/template/.claude/skills/overview/SKILL.md +114 -0
- package/template/.claude/skills/preview/SKILL.md +24 -103
- package/template/.claude/skills/report-html/SKILL.md +45 -0
- package/template/.claude/skills/review/SKILL.md +53 -37
- package/template/.claude/skills/rollback/SKILL.md +1 -0
- package/template/.claude/skills/security-review/SKILL.md +44 -147
- package/template/.claude/skills/simplify/SKILL.md +48 -57
- package/template/.claude/skills/spec/SKILL.md +105 -0
- package/template/.claude/skills/test/SKILL.md +63 -51
- 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 +31 -0
- package/template/devflow/ideas.md +15 -0
- package/template/devflow/reference/running-id-contract.md +1 -1
- 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 -379
- package/template/.agents/skills/9arm-skills/README.md +0 -51
- package/template/.agents/skills/9arm-skills/debug-mantra/SKILL.md +0 -86
- package/template/.agents/skills/9arm-skills/management-talk/SKILL.md +0 -79
- package/template/.agents/skills/9arm-skills/post-mortem/SKILL.md +0 -71
- package/template/.agents/skills/9arm-skills/scrutinize/SKILL.md +0 -72
- package/template/.agents/skills/browser-testing-with-devtools/SKILL.md +0 -302
- package/template/.agents/skills/ci-cd-and-automation/SKILL.md +0 -390
- package/template/.agents/skills/code-review-and-quality/SKILL.md +0 -392
- package/template/.agents/skills/code-simplification/SKILL.md +0 -331
- package/template/.agents/skills/debugging-and-error-recovery/SKILL.md +0 -298
- package/template/.agents/skills/deployment-procedures/SKILL.md +0 -241
- package/template/.agents/skills/deprecation-and-migration/SKILL.md +0 -206
- package/template/.agents/skills/diagnosing-bugs/SKILL.md +0 -93
- package/template/.agents/skills/git-workflow-and-versioning/SKILL.md +0 -300
- package/template/.agents/skills/human-review-decisions/SKILL.md +0 -74
- package/template/.agents/skills/idea-refine/SKILL.md +0 -178
- package/template/.agents/skills/idea-refine/examples.md +0 -238
- package/template/.agents/skills/idea-refine/frameworks.md +0 -99
- package/template/.agents/skills/idea-refine/refinement-criteria.md +0 -113
- package/template/.agents/skills/idea-refine/scripts/idea-refine.sh +0 -15
- package/template/.agents/skills/incremental-implementation/SKILL.md +0 -248
- package/template/.agents/skills/insight-capture/SKILL.md +0 -84
- package/template/.agents/skills/intelligent-routing/SKILL.md +0 -176
- package/template/.agents/skills/md2html/SKILL.md +0 -154
- package/template/.agents/skills/md2html/components.md +0 -505
- package/template/.agents/skills/md2html/template.html +0 -1152
- package/template/.agents/skills/planning-and-task-breakdown/SKILL.md +0 -239
- package/template/.agents/skills/pr-review/SKILL.md +0 -143
- package/template/.agents/skills/pr-review-analysis/SKILL.md +0 -89
- package/template/.agents/skills/preview-local-check/SKILL.md +0 -59
- package/template/.agents/skills/release-git-operations/SKILL.md +0 -97
- package/template/.agents/skills/review-followup-routing/SKILL.md +0 -98
- package/template/.agents/skills/security-and-hardening/SKILL.md +0 -349
- package/template/.agents/skills/security-and-hardening/security-checklist.md +0 -134
- package/template/.agents/skills/shipping-and-launch/SKILL.md +0 -311
- package/template/.agents/skills/silent-failure-audit/SKILL.md +0 -73
- package/template/.agents/skills/spec-orchestration/SKILL.md +0 -91
- package/template/.agents/skills/specialist-agent-routing/SKILL.md +0 -107
- package/template/.agents/skills/test-driven-development/SKILL.md +0 -422
- package/template/.agents/skills/test-driven-development/testing-patterns.md +0 -236
- package/template/.agents/skills/test-execution-and-coverage/SKILL.md +0 -56
- package/template/.agents/skills/using-agent-skills/SKILL.md +0 -171
- package/template/.agents/skills/verification-orchestration/SKILL.md +0 -68
- package/template/.agents/skills/vulnerability-scanner/SKILL.md +0 -276
- package/template/.agents/skills/vulnerability-scanner/checklists.md +0 -121
- package/template/.agents/skills/vulnerability-scanner/scripts/security_scan.py +0 -458
- package/template/.agents/skills/wiki/SKILL.md +0 -149
- package/template/.agents/skills/workflow-documentation-sync/SKILL.md +0 -87
- package/template/.claude/skills/9arm-skills/README.md +0 -51
- package/template/.claude/skills/9arm-skills/debug-mantra/SKILL.md +0 -86
- package/template/.claude/skills/9arm-skills/management-talk/SKILL.md +0 -79
- package/template/.claude/skills/9arm-skills/post-mortem/SKILL.md +0 -71
- package/template/.claude/skills/9arm-skills/scrutinize/SKILL.md +0 -72
- package/template/.claude/skills/browser-testing-with-devtools/SKILL.md +0 -302
- package/template/.claude/skills/ci-cd-and-automation/SKILL.md +0 -390
- package/template/.claude/skills/code-review-and-quality/SKILL.md +0 -392
- package/template/.claude/skills/code-simplification/SKILL.md +0 -331
- package/template/.claude/skills/debugging-and-error-recovery/SKILL.md +0 -298
- package/template/.claude/skills/deployment-procedures/SKILL.md +0 -241
- package/template/.claude/skills/deprecation-and-migration/SKILL.md +0 -206
- package/template/.claude/skills/diagnosing-bugs/SKILL.md +0 -93
- package/template/.claude/skills/git-workflow-and-versioning/SKILL.md +0 -300
- package/template/.claude/skills/human-review-decisions/SKILL.md +0 -74
- package/template/.claude/skills/idea-refine/SKILL.md +0 -178
- package/template/.claude/skills/idea-refine/examples.md +0 -238
- package/template/.claude/skills/idea-refine/frameworks.md +0 -99
- package/template/.claude/skills/idea-refine/refinement-criteria.md +0 -113
- package/template/.claude/skills/idea-refine/scripts/idea-refine.sh +0 -15
- package/template/.claude/skills/incremental-implementation/SKILL.md +0 -248
- package/template/.claude/skills/insight-capture/SKILL.md +0 -84
- package/template/.claude/skills/intelligent-routing/SKILL.md +0 -176
- package/template/.claude/skills/md2html/SKILL.md +0 -154
- package/template/.claude/skills/md2html/components.md +0 -505
- package/template/.claude/skills/md2html/template.html +0 -1152
- package/template/.claude/skills/planning-and-task-breakdown/SKILL.md +0 -239
- package/template/.claude/skills/pr-review/SKILL.md +0 -143
- package/template/.claude/skills/pr-review-analysis/SKILL.md +0 -89
- package/template/.claude/skills/preview-local-check/SKILL.md +0 -59
- package/template/.claude/skills/release-git-operations/SKILL.md +0 -97
- package/template/.claude/skills/review-followup-routing/SKILL.md +0 -98
- package/template/.claude/skills/security-and-hardening/SKILL.md +0 -349
- package/template/.claude/skills/security-and-hardening/security-checklist.md +0 -134
- package/template/.claude/skills/shipping-and-launch/SKILL.md +0 -311
- package/template/.claude/skills/silent-failure-audit/SKILL.md +0 -73
- package/template/.claude/skills/spec-orchestration/SKILL.md +0 -91
- package/template/.claude/skills/specialist-agent-routing/SKILL.md +0 -107
- package/template/.claude/skills/test-driven-development/SKILL.md +0 -422
- package/template/.claude/skills/test-driven-development/testing-patterns.md +0 -236
- package/template/.claude/skills/test-execution-and-coverage/SKILL.md +0 -56
- package/template/.claude/skills/using-agent-skills/SKILL.md +0 -171
- package/template/.claude/skills/verification-orchestration/SKILL.md +0 -68
- package/template/.claude/skills/vulnerability-scanner/SKILL.md +0 -276
- package/template/.claude/skills/vulnerability-scanner/checklists.md +0 -121
- package/template/.claude/skills/vulnerability-scanner/scripts/security_scan.py +0 -458
- package/template/.claude/skills/wiki/SKILL.md +0 -149
- package/template/.claude/skills/workflow-documentation-sync/SKILL.md +0 -87
- 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}`)
|
|
@@ -1,131 +1,42 @@
|
|
|
1
|
-
---
|
|
2
|
-
|
|
3
|
-
description: "[Devflow] Extract reusable lessons, patterns,
|
|
1
|
+
---
|
|
2
|
+
name: insight
|
|
3
|
+
description: "[Devflow] Extract reusable lessons, architectural patterns, post-mortem incident learning, and token optimizations from completed work."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
#
|
|
7
|
-
|
|
8
|
-
## Target: $ARGUMENTS
|
|
9
|
-
|
|
10
|
-
Use this workflow after implementation, QA, human approval, PR review, or a debugging session to preserve useful knowledge for future work.
|
|
11
|
-
|
|
12
|
-
Primary behavior now lives in the `insight-capture` skill. Keep this workflow as the compatibility wrapper and knowledge-capture entry point.
|
|
13
|
-
|
|
14
|
-
## Prompt Source
|
|
15
|
-
|
|
16
|
-
Adapted from:
|
|
17
|
-
|
|
18
|
-
- `insight_extractor.md`
|
|
19
|
-
|
|
20
|
-
Additional credited discipline when the source work is a bug, regression, or incident:
|
|
21
|
-
|
|
22
|
-
- `.agents/skills/9arm-skills/post-mortem/SKILL.md`
|
|
23
|
-
- Source pack: `9arm-skills`
|
|
24
|
-
- Credit: `thananon/9arm-skills`
|
|
25
|
-
- Upstream: https://github.com/thananon/9arm-skills
|
|
26
|
-
- Adapted for: Antigravity IDE / Nexus-DevFlow
|
|
27
|
-
|
|
28
|
-
## Process
|
|
29
|
-
|
|
30
|
-
### 1. Load Evidence
|
|
31
|
-
|
|
32
|
-
Inspect the available evidence:
|
|
33
|
-
|
|
34
|
-
- git diff or recent commits
|
|
35
|
-
- `40-implement.md`
|
|
36
|
-
- `50-verify.md`
|
|
37
|
-
- `70-release.md`
|
|
38
|
-
- `60-report.md`
|
|
39
|
-
- modified files
|
|
40
|
-
- human feedback or PR comments
|
|
41
|
-
|
|
42
|
-
### 2. Extract Reusable Knowledge
|
|
43
|
-
|
|
44
|
-
Capture only actionable knowledge:
|
|
45
|
-
|
|
46
|
-
- file purpose and important changes
|
|
47
|
-
- reusable patterns
|
|
48
|
-
- gotchas and triggers
|
|
49
|
-
- approach outcome
|
|
50
|
-
- alternatives tried
|
|
51
|
-
- context or token usage notes that explain avoidable overhead
|
|
52
|
-
- recommendations for future sessions
|
|
53
|
-
|
|
54
|
-
Avoid generic notes that do not help future work.
|
|
55
|
-
|
|
56
|
-
For bug, regression, or incident work, apply the `post-mortem` lens only after fix and validation evidence exist:
|
|
57
|
-
|
|
58
|
-
- what broke
|
|
59
|
-
- impact
|
|
60
|
-
- reliable repro or timeline
|
|
61
|
-
- root cause
|
|
62
|
-
- fix
|
|
63
|
-
- validation evidence
|
|
64
|
-
- why it slipped through
|
|
65
|
-
- prevention or follow-up
|
|
66
|
-
|
|
67
|
-
### 3. Save Or Route Insights
|
|
68
|
-
|
|
69
|
-
Use the smallest durable destination:
|
|
6
|
+
# Insight Extraction & Post-Mortem Learning
|
|
70
7
|
|
|
71
|
-
|
|
72
|
-
- `devflow/lessons.md` for project-wide lessons
|
|
73
|
-
- `60-report` for final narrative communication before release
|
|
74
|
-
- `70-release` for release-facing notes and execution details
|
|
8
|
+
## Overview
|
|
75
9
|
|
|
76
|
-
|
|
10
|
+
This is the insight and knowledge extraction master skill for Nexus-DevFlow. It captures reusable engineering lessons, architectural patterns, gotchas, post-mortem incident analyses, and token-efficiency notes from completed implementation and verification work.
|
|
77
11
|
|
|
78
|
-
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
12
|
+
**9arm Post-Mortem Pattern**:
|
|
13
|
+
```text
|
|
14
|
+
What Broke ➔ Business Impact ➔ Root Cause ➔ Fix Evidence ➔ Prevention & Guardrails
|
|
15
|
+
```
|
|
82
16
|
|
|
83
|
-
|
|
17
|
+
---
|
|
84
18
|
|
|
85
|
-
|
|
19
|
+
## 1. Types of Knowledge Extracted
|
|
86
20
|
|
|
87
|
-
|
|
21
|
+
1. **Architectural Patterns**: Reusable structural patterns, data transformations, or component designs.
|
|
22
|
+
2. **Gotchas & Hidden Invariants**: Subtle platform bugs, async timing issues, ORM quirks, or browser edge cases.
|
|
23
|
+
3. **Incident Post-Mortems**: Rigorous root cause analysis and why tests/checks failed to catch the bug initially.
|
|
24
|
+
4. **Context & Token Optimization**: Notes on avoidable context reading or redundant artifact parsing.
|
|
88
25
|
|
|
89
|
-
|
|
26
|
+
---
|
|
90
27
|
|
|
91
|
-
|
|
28
|
+
## 2. Process & Recording Destinations
|
|
92
29
|
|
|
93
|
-
-
|
|
94
|
-
-
|
|
95
|
-
|
|
96
|
-
-
|
|
97
|
-
-
|
|
98
|
-
- recommendations
|
|
99
|
-
- where the insight was recorded or should be recorded
|
|
30
|
+
1. **Load Evidence**: Review `git diff`, `40-implement.md`, `50-verify.md`, or test logs.
|
|
31
|
+
2. **Distill Insights**: Formulate clear, actionable, non-generic takeaways.
|
|
32
|
+
3. **Save to Persistent Memory**:
|
|
33
|
+
- Save project-wide engineering lessons to `devflow/context/lessons.md` (or `knowledge/lessons.md`).
|
|
34
|
+
- Feed run-specific learnings into `60-report.md` and `70-release.md`.
|
|
100
35
|
|
|
101
|
-
|
|
36
|
+
---
|
|
102
37
|
|
|
103
38
|
## Relationship To DevFlow 2.0
|
|
104
39
|
|
|
105
|
-
- Classification
|
|
106
|
-
- Mainline
|
|
107
|
-
-
|
|
108
|
-
- Typical handoff targets: `Wiki`, `60-report`, `Help`
|
|
109
|
-
|
|
110
|
-
## Sources
|
|
111
|
-
|
|
112
|
-
- `AGENTS.md`
|
|
113
|
-
- `.agent/resources/schemas/lessons.template.md`
|
|
114
|
-
- Related commands: `Debug`, `50-verify`, `Wiki`, `60-report`, `Help`
|
|
115
|
-
|
|
116
|
-
## Next Workflow Recommendation
|
|
117
|
-
|
|
118
|
-
- **Primary**: `Wiki project ingest {source}` when the insight is reusable project knowledge.
|
|
119
|
-
- **Why**: `Insight` extracts lessons; `Wiki` compiles selected lessons into navigable knowledge pages.
|
|
120
|
-
- **Alternatives**:
|
|
121
|
-
- `60-report {ID}` - choose this when the insight should become the final communication summary before release.
|
|
122
|
-
- `70-release {ID}` - choose this when the insight should shape release packaging or execution details.
|
|
123
|
-
- `Help {ID}` - choose this when the next route is unclear.
|
|
124
|
-
|
|
125
|
-
## Wiki Update Recommendation
|
|
126
|
-
|
|
127
|
-
- **Needed**: `yes` for reusable lessons, gotchas, decisions, validated root causes, or token/context optimizations.
|
|
128
|
-
- **Scope**: `project` for target-project lessons, `framework` for DevFlow workflow lessons.
|
|
129
|
-
- **Reason**: Insight extraction is the safest handoff point for wiki compilation.
|
|
130
|
-
- **Suggested Command**: `Wiki project ingest {source}`
|
|
131
|
-
|
|
40
|
+
- **Classification**: Companion command & Continuous learning
|
|
41
|
+
- **Mainline integration**: Invoked after `50-verify` or `60-report`.
|
|
42
|
+
- **Handoff**: `60-report`, `70-release`
|
|
@@ -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.
|