@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.
Files changed (102) hide show
  1. package/README.md +4 -4
  2. package/dist/bin/create-nexus-devflow.d.ts +2 -0
  3. package/dist/bin/create-nexus-devflow.js +233 -0
  4. package/dist/bin/create-nexus-devflow.js.map +1 -0
  5. package/dist/lib/starter-templates.d.ts +6 -0
  6. package/dist/lib/starter-templates.js +8 -0
  7. package/dist/lib/starter-templates.js.map +1 -0
  8. package/dist/lib/update.d.ts +68 -0
  9. package/dist/lib/update.js +325 -0
  10. package/dist/lib/update.js.map +1 -0
  11. package/dist/scripts/clean-template.d.ts +1 -0
  12. package/dist/scripts/clean-template.js +14 -0
  13. package/dist/scripts/clean-template.js.map +1 -0
  14. package/dist/scripts/prepare-template.d.ts +1 -0
  15. package/dist/scripts/prepare-template.js +89 -0
  16. package/dist/scripts/prepare-template.js.map +1 -0
  17. package/package.json +11 -9
  18. package/template/.agents/skills/00-discover/SKILL.md +2 -0
  19. package/template/.agents/skills/30-plan/SKILL.md +6 -6
  20. package/template/{.claude/skills/40-implement → .agents/skills/40-execute}/SKILL.md +21 -26
  21. package/template/.agents/skills/50-verify/SKILL.md +10 -10
  22. package/template/.agents/skills/60-report/SKILL.md +22 -76
  23. package/template/.agents/skills/70-release/SKILL.md +11 -10
  24. package/template/.agents/skills/agent/SKILL.md +3 -3
  25. package/template/.agents/skills/autopilot/SKILL.md +6 -6
  26. package/template/.agents/skills/brainstorm/SKILL.md +1 -1
  27. package/template/.agents/skills/brief/SKILL.md +1 -1
  28. package/template/.agents/skills/check/SKILL.md +68 -0
  29. package/template/.agents/skills/codebase-design/SKILL.md +2 -2
  30. package/template/.agents/skills/commit/SKILL.md +1 -1
  31. package/template/.agents/skills/complete/SKILL.md +73 -0
  32. package/template/.agents/skills/debug/SKILL.md +2 -2
  33. package/template/.agents/skills/devflow/SKILL.md +89 -80
  34. package/template/.agents/skills/doctor/SKILL.md +1 -1
  35. package/template/.agents/skills/feature/SKILL.md +103 -0
  36. package/template/.agents/skills/fix/SKILL.md +102 -0
  37. package/template/.agents/skills/followup/SKILL.md +5 -5
  38. package/template/.agents/skills/help/SKILL.md +4 -4
  39. package/template/.agents/skills/idea/SKILL.md +57 -0
  40. package/template/.agents/skills/implement/SKILL.md +64 -0
  41. package/template/.agents/skills/insight/SKILL.md +1 -1
  42. package/template/.agents/skills/overview/SKILL.md +114 -0
  43. package/template/.agents/skills/pr/SKILL.md +1 -1
  44. package/template/.agents/skills/preview/SKILL.md +1 -1
  45. package/template/.agents/skills/report-html/SKILL.md +45 -0
  46. package/template/.agents/skills/review/SKILL.md +1 -1
  47. package/template/.agents/skills/rollback/SKILL.md +3 -3
  48. package/template/.agents/skills/security-review/SKILL.md +2 -2
  49. package/template/.agents/skills/simplify/SKILL.md +1 -1
  50. package/template/.agents/skills/spec/SKILL.md +38 -0
  51. package/template/.agents/skills/test/SKILL.md +2 -2
  52. package/template/.agents/skills/try/SKILL.md +2 -2
  53. package/template/.claude/skills/00-discover/SKILL.md +2 -0
  54. package/template/.claude/skills/30-plan/SKILL.md +6 -6
  55. package/template/{.agents/skills/40-implement → .claude/skills/40-execute}/SKILL.md +21 -26
  56. package/template/.claude/skills/50-verify/SKILL.md +10 -10
  57. package/template/.claude/skills/60-report/SKILL.md +22 -76
  58. package/template/.claude/skills/70-release/SKILL.md +11 -10
  59. package/template/.claude/skills/agent/SKILL.md +3 -3
  60. package/template/.claude/skills/autopilot/SKILL.md +6 -6
  61. package/template/.claude/skills/brainstorm/SKILL.md +1 -1
  62. package/template/.claude/skills/brief/SKILL.md +1 -1
  63. package/template/.claude/skills/check/SKILL.md +68 -0
  64. package/template/.claude/skills/codebase-design/SKILL.md +2 -2
  65. package/template/.claude/skills/commit/SKILL.md +1 -1
  66. package/template/.claude/skills/complete/SKILL.md +73 -0
  67. package/template/.claude/skills/debug/SKILL.md +2 -2
  68. package/template/.claude/skills/devflow/SKILL.md +89 -80
  69. package/template/.claude/skills/doctor/SKILL.md +1 -1
  70. package/template/.claude/skills/feature/SKILL.md +103 -0
  71. package/template/.claude/skills/fix/SKILL.md +102 -0
  72. package/template/.claude/skills/followup/SKILL.md +5 -5
  73. package/template/.claude/skills/help/SKILL.md +4 -4
  74. package/template/.claude/skills/idea/SKILL.md +57 -0
  75. package/template/.claude/skills/implement/SKILL.md +64 -0
  76. package/template/.claude/skills/insight/SKILL.md +1 -1
  77. package/template/.claude/skills/overview/SKILL.md +114 -0
  78. package/template/.claude/skills/pr/SKILL.md +1 -1
  79. package/template/.claude/skills/preview/SKILL.md +1 -1
  80. package/template/.claude/skills/report-html/SKILL.md +45 -0
  81. package/template/.claude/skills/review/SKILL.md +1 -1
  82. package/template/.claude/skills/rollback/SKILL.md +3 -3
  83. package/template/.claude/skills/security-review/SKILL.md +2 -2
  84. package/template/.claude/skills/simplify/SKILL.md +1 -1
  85. package/template/.claude/skills/spec/SKILL.md +38 -0
  86. package/template/.claude/skills/test/SKILL.md +2 -2
  87. package/template/.claude/skills/try/SKILL.md +2 -2
  88. package/template/AGENTS.md +72 -74
  89. package/template/devflow/context/ai-interaction.md +3 -2
  90. package/template/devflow/context/coding-standards.md +31 -18
  91. package/template/devflow/context/current-stage.md +4 -3
  92. package/template/devflow/context/findings.md +10 -6
  93. package/template/devflow/context/project-overview.md +33 -11
  94. package/template/devflow/discoveries/.gitkeep +0 -0
  95. package/template/devflow/history/HISTORY.md +6 -0
  96. package/template/devflow/ideas.md +15 -0
  97. package/template/devflow/reference/running-id-contract.md +2 -2
  98. package/template/devflow/runs/.gitkeep +0 -0
  99. package/bin/create-nexus-devflow.js +0 -287
  100. package/lib/starter-templates.js +0 -111
  101. package/lib/update.js +0 -393
  102. package/template/.nexus/nexus-devflow.json +0 -44
@@ -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.
@@ -40,7 +40,7 @@ You are an orchestrator. Your goal is to call the specialized Git PR Maker agent
40
40
  - Prefer markdown-first stage artifacts as the source narrative:
41
41
  - `20-spec.md`
42
42
  - `30-plan.md`
43
- - `40-implement.md`
43
+ - `40-execute.md`
44
44
  - `50-verify.md`
45
45
  - `60-report.md` when the final summary already exists
46
46
  - `70-release.md` when release execution notes already exist
@@ -38,5 +38,5 @@ This is the preview master skill for Nexus-DevFlow. It manages local development
38
38
  ## Relationship To DevFlow 2.0
39
39
 
40
40
  - **Classification**: Companion command & Runtime support
41
- - **Mainline stages**: `40-implement` (interactive visual check), `50-verify` (smoke test check)
41
+ - **Mainline stages**: `40-execute` (interactive visual check), `50-verify` (smoke test check)
42
42
  - **Handoff**: `50-verify`
@@ -0,0 +1,45 @@
1
+ ---
2
+ name: report-html
3
+ description: "[Devflow] Standalone HTML Report Generator - render an interactive standalone HTML dashboard from spec.md or 60-report.md on demand."
4
+ argument-hint: "{running-id or workspace path}"
5
+ ---
6
+
7
+ # Standalone: Report HTML
8
+
9
+ $ARGUMENTS
10
+
11
+ Standalone companion command to generate an interactive, self-contained HTML report dashboard on demand from either a Fast-Track `spec.md` or a Deep-Track `60-report.md`.
12
+
13
+ > [!NOTE]
14
+ > HTML reports are **never automatically generated** during normal mainline stages (`/complete` or `60-report`). Use this command whenever you or stakeholders wish to view or share an interactive web report.
15
+
16
+ ## Invocations & Aliases
17
+
18
+ - `/report:html`: Generate HTML report for the active or most recent run
19
+ - `/report:html {running-id}`: Generate HTML report for the specified running ID
20
+ - `npm run report:html -- {running-id}`: CLI npm script invocation
21
+ - `$report:html`: Codex CLI invocation
22
+
23
+ ## Behavior & Contract
24
+
25
+ When invoked:
26
+
27
+ ### 1. Identify Target Run
28
+ 1. Locate target run directory in `devflow/runs/{running-id}` from argument or `devflow/context/current-stage.md`.
29
+ 2. Check for either:
30
+ - Fast-Track Living Spec: `devflow/runs/{RUNNING_ID}/spec.md` (or `blueprint.md`)
31
+ - Deep-Track Report Digest: `devflow/runs/{RUNNING_ID}/60-report.md`
32
+
33
+ ### 2. Render Interactive HTML Dashboard
34
+ Execute the HTML generation engine:
35
+ ```bash
36
+ npm run report:html -- {RUNNING_ID}
37
+ ```
38
+ Or execute the renderer to transform Markdown into a styled, standalone HTML document:
39
+ - Path: `devflow/runs/{RUNNING_ID}/report.html`
40
+
41
+ ### 3. Output
42
+ Provide:
43
+ - Generated HTML file path: `file:///devflow/runs/{RUNNING_ID}/report.html`
44
+ - Summary of sections rendered (Spec, Plan, Progress, QA Evidence, Release Notes)
45
+ - Instructions to open the file in any browser
@@ -68,4 +68,4 @@ Categorize all findings into actionable severities:
68
68
 
69
69
  - **Classification**: Companion command & Verification support
70
70
  - **Mainline stages**: `50-verify` (QA & Code Review lane), `70-release` (Pre-merge review)
71
- - **Handoff**: `40-implement` (for fixes), `50-verify`, `70-release`
71
+ - **Handoff**: `40-execute` (for fixes), `50-verify`, `70-release`
@@ -8,7 +8,7 @@ description: "[Devflow] Plan safe feature or run reversal with dependency and co
8
8
  Where this sits in the workflow:
9
9
 
10
10
  ```text
11
- completed run + git history -> [rollback] -> 40-implement (or fix run) -> 50-verify -> 70-release
11
+ completed run + git history -> [rollback] -> 40-execute (or fix run) -> 50-verify -> 70-release
12
12
  (run archive + commits) (risk review (reverse product diff) (prove) (log & finalize)
13
13
  + plan)
14
14
  ```
@@ -51,7 +51,7 @@ Identify:
51
51
 
52
52
  - Exact commit SHA(s) introducing the feature.
53
53
  - Parent commit before the feature was introduced.
54
- - Associated stage artifacts (`20-spec.md`, `40-implement.md`, `70-release.md`).
54
+ - Associated stage artifacts (`20-spec.md`, `40-execute.md`, `70-release.md`).
55
55
 
56
56
  ## Step 2 - Separate Product Changes From DevFlow History
57
57
 
@@ -98,7 +98,7 @@ Draft the rollback plan containing:
98
98
  Present the rollback plan to the user:
99
99
 
100
100
  - Summarize affected files and dependency risks.
101
- - If approved, route to `40-implement` (or allocate a dedicated Fixrollback Run) to safely execute the reversal steps behind review gates.
101
+ - If approved, route to `40-execute` (or allocate a dedicated Fixrollback Run) to safely execute the reversal steps behind review gates.
102
102
 
103
103
  ## Rules
104
104
 
@@ -59,5 +59,5 @@ This is the comprehensive security master skill for Nexus-DevFlow. It combines s
59
59
  ## Relationship To DevFlow 2.0
60
60
 
61
61
  - **Classification**: Companion command & Safety gate
62
- - **Mainline integration**: Run during `40-implement` or `50-verify` before `70-release`.
63
- - **Handoff**: P0/P1 security findings block release and return to `40-implement` for immediate remediation.
62
+ - **Mainline integration**: Run during `40-execute` or `50-verify` before `70-release`.
63
+ - **Handoff**: P0/P1 security findings block release and return to `40-execute` for immediate remediation.
@@ -66,5 +66,5 @@ Delete commented-out code blocks, `// removed` notes, and unused variables (`_un
66
66
  ## Relationship To DevFlow 2.0
67
67
 
68
68
  - **Classification**: Companion command & Refactoring support
69
- - **Mainline integration**: Used during `40-implement` (Refactor step of TDD) or `50-verify`.
69
+ - **Mainline integration**: Used during `40-execute` (Refactor step of TDD) or `50-verify`.
70
70
  - **Handoff**: `50-verify` (proves zero regressions).
@@ -0,0 +1,38 @@
1
+ ---
2
+ name: spec
3
+ description: "[Devflow] Fast-Track Spec router in DevFlow (Blueprint Mode) - aliases and routes to /feature or /fix to create the single living spec.md contract."
4
+ argument-hint: "{feature title, bug description, IDEA-xxx, or running-id}"
5
+ ---
6
+
7
+ # Fast-Track: Spec Router (Blueprint Mode)
8
+
9
+ $ARGUMENTS
10
+
11
+ Unified Fast-Track entry point that routes to `/feature` or `/fix` to create and maintain the **Single Living Spec (`spec.md`)**.
12
+
13
+ > [!TIP]
14
+ > **Preferred Commands**:
15
+ > - ใช้ **`/feature <title>`** สำหรับฟีเจอร์ใหม่หรืองานพัฒนาทั่วไป
16
+ > - ใช้ **`/fix <bug-description>`** สำหรับแก้บั๊กหรือ hotfix
17
+
18
+ ## Invocations & Aliases
19
+
20
+ - `/feature <title>`: Fast-Track feature workflow (แนะนำ)
21
+ - `/fix <bug-description>`: Fast-Track ad-hoc bugfix workflow (แนะนำ)
22
+ - `/spec <title>` or `/spec IDEA-xxx`: Generic Fast-Track specification
23
+ - `$feature`, `$fix`, `$spec`: Codex CLI invocation
24
+
25
+ ## Fast-Track Mainline Workflow
26
+
27
+ ```text
28
+ /feature (หรือ /fix) ──▶ /implement ──▶ /check ──▶ /complete
29
+ ```
30
+
31
+ ## Behavior & Contract
32
+
33
+ When invoked:
34
+
35
+ 1. If the input describes a bug or hotfix, routes to `/fix` behavior.
36
+ 2. Otherwise, routes to `/feature` behavior.
37
+ 3. Allocates sequential Running ID (`RUN-xxx`), creates directory `devflow/runs/{RUNNING_ID}/`, and generates `spec.md` in **Thai (`th`)**.
38
+ 4. Updates `devflow/context/current-stage.md` and reports next step: `/implement`.
@@ -81,7 +81,7 @@ For browser and UI features, unit tests alone are insufficient:
81
81
 
82
82
  ## 6. Test Generation & Persistent Execution Reports
83
83
 
84
- When generating or logging test runs during `40-implement` or `50-verify`:
84
+ When generating or logging test runs during `40-execute` or `50-verify`:
85
85
  - Save summary reports to `devflow/reports/{date}-test-report-{slug}.md`
86
86
  - Include: Target, Test Cases (Happy Path, Error, Edge Cases), Pass/Fail statistics, and gaps/risks.
87
87
 
@@ -90,5 +90,5 @@ When generating or logging test runs during `40-implement` or `50-verify`:
90
90
  ## Relationship To DevFlow 2.0
91
91
 
92
92
  - **Classification**: Companion command & Engineering standard
93
- - **Mainline stages**: `30-plan` (TDD decisions), `40-implement` (TDD execution), `50-verify` (QA gate)
93
+ - **Mainline stages**: `30-plan` (TDD decisions), `40-execute` (TDD execution), `50-verify` (QA gate)
94
94
  - **Handoff**: `50-verify`, `Debug`, `autopilot`
@@ -8,7 +8,7 @@ description: "[Devflow] Generate human manual QA review walkthrough guide (where
8
8
  Where this sits in the workflow:
9
9
 
10
10
  ```text
11
- 40-implement or 50-verify or 60-report -> [try] -> human review & verification
11
+ 40-execute or 50-verify or 60-report -> [try] -> human review & verification
12
12
  (work implemented / verified) (manual (where to go,
13
13
  steps) what to click)
14
14
  ```
@@ -36,7 +36,7 @@ Read:
36
36
  - `devflow/context/current-stage.md`
37
37
  - `devflow/context/project-overview.md`
38
38
  - `devflow/context/coding-standards.md`
39
- - Active run artifacts: `20-spec.md`, `30-plan.md`, `40-implement.md`, `50-verify.md` (or archived run artifacts)
39
+ - Active run artifacts: `20-spec.md`, `30-plan.md`, `40-execute.md`, `50-verify.md` (or archived run artifacts)
40
40
  - Current git branch and status
41
41
 
42
42
  Do not dump the full spec. Extract only the concrete routes, screens, CLI commands, API endpoints, test data, and expected outcomes that a human needs to verify the feature.
@@ -1,10 +1,14 @@
1
- # Nexus-DevFlow 2.0 (Blueprint-Style Model)
1
+ # Nexus-DevFlow 2.0 (Dual-Track Blueprint & Architect Model)
2
2
 
3
3
  Instructions for AI coding agents working in this project. This is the cross-tool entry point: Codex, Google Antigravity, Cursor, GitHub Copilot, Gemini CLI, Aider, Zed, Windsurf, and others read `AGENTS.md`. Claude Code reads `CLAUDE.md`, which imports this file (`@AGENTS.md`), so there is a single source of truth.
4
4
 
5
5
  ## What this is
6
6
 
7
- This project uses **Nexus-DevFlow**, an agentic stage-based workflow layer. To start a new project, scaffold the application first in an empty folder, then run `npx @jakkrichm/create-nexus-devflow` to overlay DevFlow onto your codebase.
7
+ This project uses **Nexus-DevFlow**, an agentic workflow layer supporting **Dual-Track Delivery**:
8
+ 1. **🏎️ Fast-Track (Blueprint Mode - 4 Steps)**: High-velocity spec-driven loop driven by a **Single Living Spec (`spec.md`)**.
9
+ 2. **🏗️ Deep-Track (Architect Mode - 8 Steps)**: Full-lifecycle delivery pipeline with modular stage artifacts (`00-70`).
10
+
11
+ To start a new project, scaffold the application first in an empty folder, then run `npx @jakkrichm/create-nexus-devflow` to overlay DevFlow onto your codebase.
8
12
 
9
13
  ## Read these for full context
10
14
 
@@ -25,66 +29,70 @@ Unused adapter families can be removed. Codex and Antigravity projects keep `.ag
25
29
 
26
30
  ### Universal Invocation & Agent Directives:
27
31
 
28
- 1. **Canonical Command Names & AI Provider Invocation**: Each workflow stage and companion tool has exactly **one Canonical Name** (e.g. `00-discover`, `10-define`, `20-spec`, `30-plan`, `40-implement`, `50-verify`, `60-report`, `70-release`, `devflow`, `onboard`, `adopt`, `doctor`, `try`, `rollback`, `ci`, `brief`, `autopilot`). The way you invoke commands depends on your AI Provider / Tool:
29
- - **Canonical Name (Plain text)**: Directly invoke or prompt the command by its standard name (e.g., `00-discover`, `devflow`).
30
- - **Slash Prefix (`/`)**: For tools supporting slash commands (Claude Code, Google Antigravity, Gemini CLI), e.g., `/00-discover`, `/devflow`.
31
- - **Dollar Prefix (`$`)**: For OpenAI Codex CLI or skill-invocation tools, e.g., `$00-discover`, `$devflow`.
32
+ 1. **Canonical Command Names & AI Provider Invocation**: Each workflow stage and companion tool has exactly **one Canonical Name** (e.g. `feature`, `fix`, `implement`, `check`, `complete`, `00-discover`, `10-define`, `20-spec`, `30-plan`, `40-execute`, `50-verify`, `60-report`, `70-release`, `report-html`, `devflow`, `onboard`, `adopt`, `doctor`, `try`, `rollback`, `ci`, `brief`, `autopilot`, `idea`, `spec`). The way you invoke commands depends on your AI Provider / Tool:
33
+ - **Canonical Name (Plain text)**: Directly invoke or prompt the command by its standard name (e.g., `feature`, `40-execute`, `devflow`).
34
+ - **Slash Prefix (`/`)**: For tools supporting slash commands (Claude Code, Google Antigravity, Gemini CLI), e.g., `/feature`, `/fix`, `/implement`, `/40-execute`, `/devflow`.
35
+ - **Dollar Prefix (`$`)**: For OpenAI Codex CLI or skill-invocation tools, e.g., `$feature`, `$fix`, `$40-execute`, `$devflow`.
32
36
  2. **OpenAI Codex & Non-Native CLI Tools**: In environments without automatic background skill discovery (such as OpenAI Codex CLI, Aider, or generic terminals), **you MUST use your file reading tool to inspect `.agents/skills/<skill>/SKILL.md` before executing the stage** to strictly follow its schema, artifact contract, and quality gates.
33
37
  3. **Google Antigravity & Claude Code**: Native skill engines automatically discover and surface `.agents/skills/` and `.claude/skills/`.
34
38
  4. **State-Aware Inspection**: When unsure what to do next, invoke `devflow` to automatically inspect `devflow/context/current-stage.md` and active runs in `devflow/runs/`.
35
- 5. **Default Artifact & Communication Language (Thai)**: All generated markdown stage artifacts (`00-discover.md`, `10-define.md`, `20-spec.md`, `30-plan.md`, `40-implement.md`, `50-verify.md`, `60-report.md`, `70-release.md`) and user communication MUST default to **Thai (`th`)**, while code, technical terms, file paths, and identifiers remain in English.
39
+ 5. **Default Artifact & Communication Language (Thai)**: All generated markdown stage artifacts (`spec.md`, `00-discover.md`...`70-release.md`) and user communication MUST default to **Thai (`th`)**, while code, technical terms, file paths, and identifiers remain in English.
40
+
41
+ ---
42
+
43
+ ## 🏎️ Track 1: Fast-Track (Blueprint Mode - 4 Steps)
36
44
 
37
- ## Timeline Workflow
45
+ Recommended for 85% of daily work (features, bug fixes, UI improvements, iterative tasks):
38
46
 
39
47
  ```text
40
- 00-discover -> 10-define -> 20-spec -> 30-plan -> 40-implement -> 50-verify -> 60-report -> 70-release
48
+ /feature (หรือ /fix) ──▶ /implement ──▶ /check ──▶ /complete
41
49
  ```
42
50
 
43
- ### Mainline Stages:
51
+ 1. **`feature` / `fix` (`/feature`, `/fix`, `/spec`)**:
52
+ - **Purpose**: Combines Discover, Define, Spec, and Plan into one unified step. Allocates sequential Running ID (`RUN-xxx`) and creates the **Single Living Spec (`spec.md`)**.
53
+ - **Artifact**: `devflow/runs/{running-id}-{slug}/spec.md`
54
+ 2. **`implement` (`/implement`)**:
55
+ - **Purpose**: Incrementally executes checklist tasks with TDD discipline and appends progress to `spec.md`.
56
+ 3. **`check` (`/check`)**:
57
+ - **Purpose**: Senior QA review, multi-lane verification matrix (Typecheck, Lint, Test suites, manual proof), and records evidence into `spec.md`.
58
+ 4. **`complete` (`/complete`)**:
59
+ - **Purpose**: Final safety pass, records Release Digest in `spec.md`, performs git merge, and closes the run without auto HTML generation.
44
60
 
45
- 1. `00-discover`
46
- - **Purpose**: Explore a request before delivery commitment without allocating a running ID.
47
- - **Artifact**: `devflow/discoveries/{discovery-id}-{slug}/00-discover.md`
48
- - **Gate**: Produces `Proceed`, `Defer`, or `Reject` decision.
61
+ ---
49
62
 
50
- 2. `10-define`
51
- - **Purpose**: Turn an approved discovery into one or more bounded delivery runs with stable scope and sequential Running IDs.
52
- - **Artifact**: `devflow/runs/{running-id}-{slug}/10-define.md`
53
- - **Gate**: Approved run map and explicit in-scope / out-of-scope boundaries.
63
+ ## 🏗️ Track 2: Deep-Track (Architect Mode - 8 Steps)
54
64
 
55
- 3. `20-spec`
56
- - **Purpose**: Formalize markdown-first delivery contract and testable acceptance criteria from a stable definition.
57
- - **Artifact**: `devflow/runs/{running-id}-{slug}/20-spec.md`
58
- - **Gate**: Unambiguous acceptance criteria and hard constraints.
65
+ Recommended for large architectural epics, database migrations, and multi-agent coordination:
66
+
67
+ ```text
68
+ 00-discover ──▶ 10-define ──▶ 20-spec ──▶ 30-plan ──▶ 40-execute ──▶ 50-verify ──▶ 60-report ──▶ 70-release
69
+ ```
59
70
 
60
- 4. `30-plan`
61
- - **Purpose**: Transform `20-spec.md` into phased executable tasks with explicit test decisions (Required / Manual / Not Required).
62
- - **Artifacts**: `30-plan.md`, `checklists/implementation-checklist.md`, `checklists/verification-checklist.md`
63
- - **Gate**: Ordered dependencies, scoped subtasks, and TDD decisions.
71
+ 1. `00-discover`: Explore request before delivery commitment without allocating running ID (`00-discover.md`).
72
+ 2. `10-define`: Turn approved discovery into bounded delivery run(s) with sequential Running IDs (`10-define.md`).
73
+ 3. `20-spec`: Formalize markdown-first delivery contract & acceptance criteria (`20-spec.md`).
74
+ 4. `30-plan`: Breakdown spec into executable tasks with test decisions (`30-plan.md` + checklists).
75
+ 5. `40-execute`: Incremental task execution behind review gates (`40-execute.md`).
76
+ 6. `50-verify`: Senior QA review & multi-lane verification checks (`50-verify.md`).
77
+ 7. `60-report`: Standardized markdown delivery digest (`60-report.md`).
78
+ 8. `70-release`: Release packaging, release notes, git merge, and deployment (`70-release.md`).
64
79
 
65
- 5. `40-implement`
66
- - **Purpose**: Execute planned tasks incrementally one scoped unit at a time behind review gates.
67
- - **Artifact**: `40-implement.md` (and updated checklists)
68
- - **Gate**: Code changes tested, verification recorded, deviations documented.
80
+ ---
69
81
 
70
- 6. `50-verify`
71
- - **Purpose**: Senior QA review and multi-lane validation check across functionality, regressions, and quality standards.
72
- - **Artifact**: `50-verify.md` (optional `50-verify-impact.md`)
73
- - **Gate**: Pass or return-to-implement decision with evidence.
82
+ ## 🌐 Standalone HTML Reporting Policy
74
83
 
75
- 7. `60-report`
76
- - **Purpose**: Produce the standardized final markdown and self-contained HTML summary report for the completed run.
77
- - **Artifacts**: `60-report.md`, `60-report.html`
78
- - **Gate**: Completed delivery digest ready for stakeholder review.
84
+ > [!IMPORTANT]
85
+ > **No Auto-Generated HTML**: Mainline flows (`/complete` and `60-report`) strictly output Markdown only.
86
+ > When an interactive web dashboard is desired for presentation or sharing, invoke the standalone companion command:
87
+ > `/report:html` (or `npm run report:html -- {RUNNING_ID}`).
79
88
 
80
- 8. `70-release`
81
- - **Purpose**: Package verified work for delivery, git merge, pull request, changelog update, or deployment.
82
- - **Artifact**: `70-release.md`
83
- - **Gate**: Safe handoff, release notes, and deployment readiness.
89
+ ---
84
90
 
85
- ### Public Companion Commands:
91
+ ## Public Companion Commands
86
92
 
87
93
  - `devflow`: Flagship interactive guide, state inspector, and intent router.
94
+ - `idea` (`/idea`): Quick idea capture and AI feasibility enrichment into `devflow/ideas.md`.
95
+ - `report-html` (`/report:html`): Standalone interactive HTML report dashboard generator.
88
96
  - `onboard`: Initial stack detection and baseline setup for fresh/scaffolded projects.
89
97
  - `adopt`: Survey existing brownfield codebases and bootstrap DevFlow context.
90
98
  - `doctor`: Read-only health check for context files, adapters, commands, and workflow drift.
@@ -92,49 +100,39 @@ Unused adapter families can be removed. Codex and Antigravity projects keep `.ag
92
100
  - `rollback`: Safe feature/run reversal planner with dependency and commit risk analysis.
93
101
  - `ci`: Automatic GitHub Actions workflow (`.github/workflows/verify.yml`) setup and alignment.
94
102
  - `brief`: Read-only scope, dependency, and size pre-briefing before speccing a run.
95
- - `autopilot`: Optional explicit mode for one bounded spec/plan/implement/verify/report pass with checkpoint commits and review packet.
103
+ - `autopilot`: Optional explicit mode for one bounded spec/plan/implement/verify/report pass.
96
104
  - `goal`: Route broad, open-ended goals before Discovery.
97
105
  - `brainstorm`: Structured divergent & convergent ideation without creating running IDs.
98
106
  - `research`: Conduct deep codebase or web research with source-backed citations.
99
107
  - `debug`: Root cause investigation before or during implementation without editing code.
100
- - `prd`: Product Requirements Document drafting before delivery commitment.
101
- - `issue-triage`: Intake, categorize, and prioritize incoming issues and bug reports.
102
- - `security-review`: High-severity vulnerability and security review.
103
- - `wiki`: Knowledge base management and ingestion under `devflow/wiki/`.
108
+ - `overview`: Refresh `devflow/context/project-overview.md`.
109
+ - `wiki`: Knowledge base management under `devflow/wiki/`.
104
110
  - `check-for-updates`: Verify or upgrade DevFlow setup.
105
111
  - `help`: Routing and process assistance across DevFlow workflows.
106
112
 
107
- ## Invocation Reference
113
+ ---
108
114
 
109
- > **Note on AI Providers**: Commands use a single Canonical Name. Use the prefix appropriate for your tool (`/` for Claude/Antigravity, `$` for Codex, or plain text).
115
+ ## Invocation Reference
110
116
 
111
- | Stage / Category | Canonical Name | Claude / Antigravity (`/`) | OpenAI Codex (`$`) | Purpose / Action |
117
+ | Track / Category | Canonical Name | Claude / Antigravity (`/`) | OpenAI Codex (`$`) | Purpose / Action |
112
118
  | :--- | :--- | :--- | :--- | :--- |
113
- | **Setup (Fresh)** | `onboard` | `/onboard` | `$onboard` | Detect tech stack and establish initial project baseline |
114
- | **Adopt (Exist)** | `adopt` | `/adopt` | `$adopt` | Adopt existing brownfield codebase into DevFlow |
115
- | **Diagnostics** | `doctor` | `/doctor` | `$doctor` | Read-only health check for configs, tools, and drift |
116
- | **Manual QA** | `try` | `/try` | `$try` | Step-by-step manual testing guide for human verification |
117
- | **Reversal** | `rollback` | `/rollback` | `$rollback` | Reversal planner with dependency & commit risk analysis |
118
- | **CI Setup** | `ci` | `/ci` | `$ci` | Generate GitHub Actions automated verify workflow |
119
- | **Pre-Check** | `brief` | `/brief` | `$brief` | Read-only scope, dependency, and size pre-briefing |
120
- | **Autopilot** | `autopilot` | `/autopilot` | `$autopilot` | Bounded autonomous spec/plan/implement/verify pass |
121
- | **Stage 00** | `00-discover` | `/00-discover` | `$00-discover` | Explore request and decide Proceed, Defer, or Reject |
122
- | **Stage 10** | `10-define` | `/10-define` | `$10-define` | Turn approved discovery into bounded delivery run(s) |
123
- | **Stage 20** | `20-spec` | `/20-spec` | `$20-spec` | Formal markdown delivery contract & acceptance criteria |
124
- | **Stage 30** | `30-plan` | `/30-plan` | `$30-plan` | Breakdown spec into executable tasks with test decisions |
125
- | **Stage 40** | `40-implement` | `/40-implement` | `$40-implement` | Implement tasks in small reviewable increments |
126
- | **Stage 50** | `50-verify` | `/50-verify` | `$50-verify` | Senior QA review & multi-lane verification checks |
127
- | **Stage 60** | `60-report` | `/60-report` | `$60-report` | Standalone markdown & HTML summary report |
128
- | **Stage 70** | `70-release` | `/70-release` | `$70-release` | Package for delivery, git merge, PR, or deployment |
119
+ | **Fast: Feature** | `feature` | `/feature` | `$feature` | 4-step Fast-Track spec & living spec creation for new features (supports `IDEA-xxx`) |
120
+ | **Fast: Fix** | `fix` | `/fix` | `$fix` | 4-step Fast-Track spec & living spec creation for bug fixes (supports `IDEA-xxx`) |
121
+ | **Fast: Implement** | `implement` | `/implement` | `$implement` | Fast-Track incremental execution with TDD |
122
+ | **Fast: Check** | `check` | `/check` | `$check` | Fast-Track QA review & multi-lane verification |
123
+ | **Fast: Complete** | `complete` | `/complete` | `$complete` | Fast-Track safety pass, release digest & git merge |
124
+ | **Idea Capture** | `idea` | `/idea` | `$idea` | Quick idea capture and AI feasibility enrichment |
125
+ | **HTML Report** | `report-html` | `/report:html` | `$report:html` | Standalone interactive HTML dashboard generator |
126
+ | **Deep: 00** | `00-discover` | `/00-discover` | `$00-discover` | Explore request and decide Proceed, Defer, or Reject |
127
+ | **Deep: 10** | `10-define` | `/10-define` | `$10-define` | Turn approved discovery into bounded delivery run(s) |
128
+ | **Deep: 20** | `20-spec` | `/20-spec` | `$20-spec` | Formal markdown delivery contract & acceptance criteria |
129
+ | **Deep: 30** | `30-plan` | `/30-plan` | `$30-plan` | Breakdown spec into executable tasks with test decisions |
130
+ | **Deep: 40** | `40-execute` | `/40-execute` | `$40-execute` | Execute planned tasks in small reviewable increments (`40-execute.md`) |
131
+ | **Deep: 50** | `50-verify` | `/50-verify` | `$50-verify` | Senior QA review & multi-lane verification checks |
132
+ | **Deep: 60** | `60-report` | `/60-report` | `$60-report` | Standalone markdown summary report |
133
+ | **Deep: 70** | `70-release` | `/70-release` | `$70-release` | Package for delivery, git merge, PR, or deployment |
129
134
  | **Router** | `devflow` | `/devflow` | `$devflow` | Interactive guide, state inspector, and intent router |
130
135
 
131
- ## Mainline Rules
132
-
133
- 1. Numbered workflows exist only for the linear mainline.
134
- 2. Mainline numbers must move from lower to higher with no backward jump.
135
- 3. If a command is not a true mainline state, do not give it a number.
136
- 4. Companion commands may be suggested by a mainline workflow but do not replace that workflow.
137
-
138
136
  ## Commands
139
137
 
140
138
  - Dev Server: `npm run dev`
@@ -24,11 +24,12 @@
24
24
  ## DevFlow Timeline Lifecycle
25
25
 
26
26
  ```text
27
- /00-Discover -> /10-Define -> /20-Spec -> /30-Plan -> /40-Implement -> /50-Verify -> /60-Report -> /70-Release
27
+ /00-Discover -> /10-Define -> /20-Spec -> /30-Plan -> /40-Execute -> /50-Verify -> /60-Report -> /70-Release
28
28
  ```
29
29
 
30
30
  - Run `/00-Discover` to explore requests under a Discovery ID.
31
31
  - Run `/10-Define` to set delivery boundaries and allocate Running IDs.
32
32
  - Run `/20-Spec` and `/30-Plan` to establish formal delivery specifications and execution plans.
33
- - Run `/40-Implement` for step-by-step code implementation with evidence.
33
+ - Run `/40-Execute` for step-by-step code implementation with evidence.
34
34
  - Run `/50-Verify`, `/60-Report`, and `/70-Release` for quality verification, reporting, and release packaging.
35
+ - Use **Fast-Track / Quick-Fix mode** for minor hotfixes to skip heavy ceremony while keeping test evidence.
@@ -1,27 +1,40 @@
1
- # Coding Standards
1
+ # Coding Standards & Guidelines
2
2
 
3
- > Project conventions and rules to follow during development.
4
- > Run `/onboard` (or `/adopt` for existing codebases) to tune these standards to your specific stack.
3
+ General engineering standards for code, tests, and documentation in Nexus-DevFlow.
5
4
 
6
- ## Architecture and Conventions
5
+ ## 1. Code Quality & Architecture
7
6
 
8
- - Write clean, modular, and maintainable code with clear single responsibilities.
9
- - Prefer TypeScript and explicit interfaces where available.
10
- - Keep dependencies lean and justified.
7
+ - Write clear, self-documenting code with single-responsibility functions.
8
+ - Avoid unnecessary complexity (prefer simple solutions over indirect abstractions).
9
+ - Maintain type safety and static validation across module boundaries.
10
+ - Treat `project-overview.md` as the single source of truth for concrete data models and entity definitions.
11
11
 
12
- ## Code Organization & Style
12
+ ## 2. Testing & Empirical Proof Standards
13
13
 
14
- - Structure source code following framework-native conventions.
15
- - Keep functions focused and avoid deeply nested logic.
16
- - Use consistent naming conventions (camelCase for functions/variables, PascalCase for components/types).
14
+ - **Unit Test Mandate**: Any logic modification or bug fix must be accompanied by new or updated unit tests.
15
+ - **Empirical Proof Contract**: Never claim "passed", "verified", or "working" without citing exact command outputs, test run reports, route responses, logs, or screenshots.
16
+ - **Manual Try Guide**: Every delivery run must provide a human-testable Try Guide ("Where to go", "What to click", "What to expect") for manual validation.
17
17
 
18
- ## Error Handling & Security
18
+ ## 3. Findings Ledger & Quality Gates (`findings.md`)
19
19
 
20
- - Handle errors explicitly and provide meaningful error messages.
21
- - Never hardcode credentials, secrets, or API keys in source code.
22
- - Sanitize and validate all user inputs.
20
+ - All audit, security, and verification issues must be tracked in `devflow/context/findings.md`.
21
+ - **Finding State Machine**:
22
+ - `open`: Confirmed defect not yet repaired.
23
+ - `fixed`: Repaired in code, pending verification.
24
+ - `closed`: Verified in `50-verify` as completely resolved without regressions.
25
+ - `accepted`: Waived with recorded user rationale.
26
+ - `invalid`: Proven non-issue with concrete evidence.
27
+ - **P0/P1 Blockers**: P0 and P1 findings in `open` or `fixed` status block `70-release` unconditionally. `fixed` status must be promoted to `closed` via `50-verify` re-examination.
23
28
 
24
- ## Testing & Quality
29
+ ## 4. Git Workflow & Release Safety
30
+
31
+ - Commit messages follow conventional/imperative format (e.g., `feat(RUN-007): ...`).
32
+ - Feature branches follow `feature/{slug}-{running-id}` or `fix/{slug}-{running-id}`.
33
+ - **2-Stage Release Approvals**: Explicit consent to merge into `main` is strictly separate from consent to `git push` to remote repositories or deploy to production.
25
34
 
26
- - Follow the TDD workflow for behavior-changing code units.
27
- - Run tests and linting before completing features or fixes.
35
+ ## 5. Fast-Track & Quick-Fix Guidelines (Lean Mode)
36
+
37
+ - For trivial bug fixes, typo corrections, or single-file non-architectural changes, developers and agents may use the **Quick-Fix Fast-Track**:
38
+ - Consolidate Discovery, Define, and Spec into an inline fix brief (`devflow/runs/{fix-id}/fix-brief.md`).
39
+ - Jump directly to `40-execute` (with reproduction unit test) ➔ `50-verify` ➔ `70-release`.
40
+ - Avoid creating heavy redundant documentation for changes under 20 lines of code while preserving Empirical Proof and Unit Test requirements.
@@ -2,6 +2,7 @@
2
2
 
3
3
  - **Active Discovery ID**: None
4
4
  - **Active Running ID**: None
5
- - **Current Stage**: Idle
6
- - **Last Completed Run**: None
7
- - **Last Updated**: -
5
+ - **Current Stage**: Idle (Ready for next run)
6
+ - **Living Spec**: None
7
+ - **Last Completed Run**: RUN-018-update-documentation-and-guides (2026-08-20)
8
+ - **Last Updated**: 2026-08-20
@@ -1,9 +1,13 @@
1
- # Findings Ledger
1
+ # Audit Findings Ledger
2
2
 
3
- > Review findings raised by `/security-review` or QA audits.
4
- > Resolved findings are tracked with durable IDs.
3
+ Summary of audit findings, quality checks, security bugs, and debt tracked across DevFlow runs.
5
4
 
6
- - **Total Open P0/P1**: 0
7
- - **Total Tracked**: 0
5
+ ## Open Findings
8
6
 
9
- _No findings recorded._
7
+ | ID | Severity | Category | Title | Discovered Run | Status |
8
+ | :- | :--- | :--- | :--- | :--- | :--- |
9
+
10
+ ## Resolved Findings
11
+
12
+ | ID | Severity | Category | Title | Resolved Run | Date |
13
+ | :- | :--- | :--- | :--- | :--- | :--- |