@jakkrichm/create-nexus-devflow 2.0.20 → 2.0.22

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 (258) hide show
  1. package/dist/bin/create-nexus-devflow.js +73 -59
  2. package/dist/bin/create-nexus-devflow.js.map +1 -1
  3. package/dist/lib/ui.d.ts +36 -0
  4. package/dist/lib/ui.js +115 -0
  5. package/dist/lib/ui.js.map +1 -0
  6. package/dist/lib/update.js +19 -8
  7. package/dist/lib/update.js.map +1 -1
  8. package/package.json +1 -1
  9. package/template/.agents/skills/00-discover/SKILL.md +28 -116
  10. package/template/.agents/skills/40-execute/SKILL.md +1 -1
  11. package/template/.agents/skills/50-verify/SKILL.md +28 -161
  12. package/template/.agents/skills/60-report/SKILL.md +19 -92
  13. package/template/.agents/skills/70-release/SKILL.md +36 -11
  14. package/template/.agents/skills/check/SKILL.md +19 -7
  15. package/template/.agents/skills/complete/SKILL.md +21 -10
  16. package/template/.claude/skills/00-discover/SKILL.md +28 -116
  17. package/template/.claude/skills/40-execute/SKILL.md +1 -1
  18. package/template/.claude/skills/50-verify/SKILL.md +28 -161
  19. package/template/.claude/skills/60-report/SKILL.md +19 -92
  20. package/template/.claude/skills/70-release/SKILL.md +36 -11
  21. package/template/.claude/skills/check/SKILL.md +19 -7
  22. package/template/.claude/skills/complete/SKILL.md +21 -10
  23. package/template/AGENTS.md +1 -1
  24. package/template/devflow/context/coding-standards.md +40 -29
  25. package/template/.agents/skills/agent/SKILL.md +0 -165
  26. package/template/.agents/skills/api-and-interface-design/SKILL.md +0 -294
  27. package/template/.agents/skills/app-builder/SKILL.md +0 -75
  28. package/template/.agents/skills/app-builder/agent-coordination.md +0 -71
  29. package/template/.agents/skills/app-builder/feature-building.md +0 -53
  30. package/template/.agents/skills/app-builder/project-detection.md +0 -34
  31. package/template/.agents/skills/app-builder/scaffolding.md +0 -118
  32. package/template/.agents/skills/app-builder/tech-stack.md +0 -40
  33. package/template/.agents/skills/app-builder/templates/SKILL.md +0 -39
  34. package/template/.agents/skills/app-builder/templates/astro-static/TEMPLATE.md +0 -76
  35. package/template/.agents/skills/app-builder/templates/chrome-extension/TEMPLATE.md +0 -92
  36. package/template/.agents/skills/app-builder/templates/cli-tool/TEMPLATE.md +0 -88
  37. package/template/.agents/skills/app-builder/templates/electron-desktop/TEMPLATE.md +0 -88
  38. package/template/.agents/skills/app-builder/templates/express-api/TEMPLATE.md +0 -83
  39. package/template/.agents/skills/app-builder/templates/flutter-app/TEMPLATE.md +0 -90
  40. package/template/.agents/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +0 -90
  41. package/template/.agents/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +0 -122
  42. package/template/.agents/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +0 -122
  43. package/template/.agents/skills/app-builder/templates/nextjs-static/TEMPLATE.md +0 -169
  44. package/template/.agents/skills/app-builder/templates/nuxt-app/TEMPLATE.md +0 -134
  45. package/template/.agents/skills/app-builder/templates/python-fastapi/TEMPLATE.md +0 -83
  46. package/template/.agents/skills/app-builder/templates/react-native-app/TEMPLATE.md +0 -119
  47. package/template/.agents/skills/architecture/SKILL.md +0 -55
  48. package/template/.agents/skills/architecture/context-discovery.md +0 -43
  49. package/template/.agents/skills/architecture/examples.md +0 -94
  50. package/template/.agents/skills/architecture/pattern-selection.md +0 -68
  51. package/template/.agents/skills/architecture/patterns-reference.md +0 -50
  52. package/template/.agents/skills/architecture/trade-off-analysis.md +0 -77
  53. package/template/.agents/skills/bash-linux/SKILL.md +0 -199
  54. package/template/.agents/skills/behavioral-modes/SKILL.md +0 -242
  55. package/template/.agents/skills/brainstorm/SKILL.md +0 -168
  56. package/template/.agents/skills/changelog/SKILL.md +0 -109
  57. package/template/.agents/skills/codebase-design/DEEPENING.md +0 -24
  58. package/template/.agents/skills/codebase-design/DESIGN-IT-TWICE.md +0 -28
  59. package/template/.agents/skills/codebase-design/SKILL.md +0 -58
  60. package/template/.agents/skills/commit/SKILL.md +0 -59
  61. package/template/.agents/skills/competitor-analysis/SKILL.md +0 -66
  62. package/template/.agents/skills/context-engineering/SKILL.md +0 -290
  63. package/template/.agents/skills/database-design/SKILL.md +0 -52
  64. package/template/.agents/skills/database-design/database-selection.md +0 -43
  65. package/template/.agents/skills/database-design/indexing.md +0 -39
  66. package/template/.agents/skills/database-design/migrations.md +0 -48
  67. package/template/.agents/skills/database-design/optimization.md +0 -36
  68. package/template/.agents/skills/database-design/orm-selection.md +0 -30
  69. package/template/.agents/skills/database-design/schema-design.md +0 -56
  70. package/template/.agents/skills/database-design/scripts/schema_validator.py +0 -172
  71. package/template/.agents/skills/deploy/SKILL.md +0 -63
  72. package/template/.agents/skills/documentation-and-adrs/SKILL.md +0 -278
  73. package/template/.agents/skills/domain-modeling/ADR-FORMAT.md +0 -47
  74. package/template/.agents/skills/domain-modeling/CONTEXT-FORMAT.md +0 -60
  75. package/template/.agents/skills/domain-modeling/SKILL.md +0 -74
  76. package/template/.agents/skills/followup/SKILL.md +0 -83
  77. package/template/.agents/skills/frontend-ui-engineering/SKILL.md +0 -326
  78. package/template/.agents/skills/frontend-ui-engineering/accessibility-checklist.md +0 -159
  79. package/template/.agents/skills/goal/SKILL.md +0 -148
  80. package/template/.agents/skills/handoff/SKILL.md +0 -46
  81. package/template/.agents/skills/help/SKILL.md +0 -253
  82. package/template/.agents/skills/i18n-localization/SKILL.md +0 -154
  83. package/template/.agents/skills/i18n-localization/scripts/i18n_checker.py +0 -241
  84. package/template/.agents/skills/insight/SKILL.md +0 -42
  85. package/template/.agents/skills/issue-triage/SKILL.md +0 -115
  86. package/template/.agents/skills/lint-and-validate/SKILL.md +0 -45
  87. package/template/.agents/skills/lint-and-validate/scripts/lint_runner.py +0 -184
  88. package/template/.agents/skills/lint-and-validate/scripts/type_coverage.py +0 -173
  89. package/template/.agents/skills/mcp-builder/SKILL.md +0 -176
  90. package/template/.agents/skills/merge/SKILL.md +0 -76
  91. package/template/.agents/skills/mobile-design/SKILL.md +0 -394
  92. package/template/.agents/skills/mobile-design/decision-trees.md +0 -516
  93. package/template/.agents/skills/mobile-design/mobile-backend.md +0 -491
  94. package/template/.agents/skills/mobile-design/mobile-color-system.md +0 -420
  95. package/template/.agents/skills/mobile-design/mobile-debugging.md +0 -122
  96. package/template/.agents/skills/mobile-design/mobile-design-thinking.md +0 -357
  97. package/template/.agents/skills/mobile-design/mobile-navigation.md +0 -458
  98. package/template/.agents/skills/mobile-design/mobile-performance.md +0 -767
  99. package/template/.agents/skills/mobile-design/mobile-testing.md +0 -356
  100. package/template/.agents/skills/mobile-design/mobile-typography.md +0 -433
  101. package/template/.agents/skills/mobile-design/platform-android.md +0 -666
  102. package/template/.agents/skills/mobile-design/platform-ios.md +0 -561
  103. package/template/.agents/skills/mobile-design/scripts/mobile_audit.py +0 -670
  104. package/template/.agents/skills/mobile-design/touch-psychology.md +0 -537
  105. package/template/.agents/skills/nextjs-react-expert/1-async-eliminating-waterfalls.md +0 -312
  106. package/template/.agents/skills/nextjs-react-expert/2-bundle-bundle-size-optimization.md +0 -240
  107. package/template/.agents/skills/nextjs-react-expert/3-server-server-side-performance.md +0 -490
  108. package/template/.agents/skills/nextjs-react-expert/4-client-client-side-data-fetching.md +0 -264
  109. package/template/.agents/skills/nextjs-react-expert/5-rerender-re-render-optimization.md +0 -581
  110. package/template/.agents/skills/nextjs-react-expert/6-rendering-rendering-performance.md +0 -432
  111. package/template/.agents/skills/nextjs-react-expert/7-js-javascript-performance.md +0 -684
  112. package/template/.agents/skills/nextjs-react-expert/8-advanced-advanced-patterns.md +0 -150
  113. package/template/.agents/skills/nextjs-react-expert/SKILL.md +0 -286
  114. package/template/.agents/skills/nextjs-react-expert/scripts/convert_rules.py +0 -222
  115. package/template/.agents/skills/nextjs-react-expert/scripts/react_performance_checker.py +0 -252
  116. package/template/.agents/skills/nodejs-best-practices/SKILL.md +0 -333
  117. package/template/.agents/skills/package-json-generator/SKILL.md +0 -60
  118. package/template/.agents/skills/package-json-generator/scripts/generate.js +0 -120
  119. package/template/.agents/skills/package-json-generator/scripts/run.sh +0 -19
  120. package/template/.agents/skills/parallel-agents/SKILL.md +0 -144
  121. package/template/.agents/skills/performance-optimization/SKILL.md +0 -299
  122. package/template/.agents/skills/performance-optimization/performance-checklist.md +0 -113
  123. package/template/.agents/skills/powershell-windows/SKILL.md +0 -167
  124. package/template/.agents/skills/pr/SKILL.md +0 -93
  125. package/template/.agents/skills/prd/SKILL.md +0 -127
  126. package/template/.agents/skills/preview/SKILL.md +0 -42
  127. package/template/.agents/skills/python-patterns/SKILL.md +0 -441
  128. package/template/.agents/skills/research/SKILL.md +0 -143
  129. package/template/.agents/skills/review/SKILL.md +0 -71
  130. package/template/.agents/skills/roadmap-strategy/SKILL.md +0 -94
  131. package/template/.agents/skills/security-review/SKILL.md +0 -63
  132. package/template/.agents/skills/seo-fundamentals/SKILL.md +0 -129
  133. package/template/.agents/skills/seo-fundamentals/scripts/seo_checker.py +0 -219
  134. package/template/.agents/skills/server-management/SKILL.md +0 -161
  135. package/template/.agents/skills/simplify/SKILL.md +0 -70
  136. package/template/.agents/skills/skill-development/SKILL.md +0 -86
  137. package/template/.agents/skills/spec/SKILL.md +0 -39
  138. package/template/.agents/skills/spec-driven-development/SKILL.md +0 -207
  139. package/template/.agents/skills/tailwind-patterns/SKILL.md +0 -269
  140. package/template/.agents/skills/type-design/SKILL.md +0 -84
  141. package/template/.agents/skills/ui-ux-pro-max/SKILL.md +0 -75
  142. package/template/.claude/skills/agent/SKILL.md +0 -165
  143. package/template/.claude/skills/api-and-interface-design/SKILL.md +0 -294
  144. package/template/.claude/skills/app-builder/SKILL.md +0 -75
  145. package/template/.claude/skills/app-builder/agent-coordination.md +0 -71
  146. package/template/.claude/skills/app-builder/feature-building.md +0 -53
  147. package/template/.claude/skills/app-builder/project-detection.md +0 -34
  148. package/template/.claude/skills/app-builder/scaffolding.md +0 -118
  149. package/template/.claude/skills/app-builder/tech-stack.md +0 -40
  150. package/template/.claude/skills/app-builder/templates/SKILL.md +0 -39
  151. package/template/.claude/skills/app-builder/templates/astro-static/TEMPLATE.md +0 -76
  152. package/template/.claude/skills/app-builder/templates/chrome-extension/TEMPLATE.md +0 -92
  153. package/template/.claude/skills/app-builder/templates/cli-tool/TEMPLATE.md +0 -88
  154. package/template/.claude/skills/app-builder/templates/electron-desktop/TEMPLATE.md +0 -88
  155. package/template/.claude/skills/app-builder/templates/express-api/TEMPLATE.md +0 -83
  156. package/template/.claude/skills/app-builder/templates/flutter-app/TEMPLATE.md +0 -90
  157. package/template/.claude/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +0 -90
  158. package/template/.claude/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +0 -122
  159. package/template/.claude/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +0 -122
  160. package/template/.claude/skills/app-builder/templates/nextjs-static/TEMPLATE.md +0 -169
  161. package/template/.claude/skills/app-builder/templates/nuxt-app/TEMPLATE.md +0 -134
  162. package/template/.claude/skills/app-builder/templates/python-fastapi/TEMPLATE.md +0 -83
  163. package/template/.claude/skills/app-builder/templates/react-native-app/TEMPLATE.md +0 -119
  164. package/template/.claude/skills/architecture/SKILL.md +0 -55
  165. package/template/.claude/skills/architecture/context-discovery.md +0 -43
  166. package/template/.claude/skills/architecture/examples.md +0 -94
  167. package/template/.claude/skills/architecture/pattern-selection.md +0 -68
  168. package/template/.claude/skills/architecture/patterns-reference.md +0 -50
  169. package/template/.claude/skills/architecture/trade-off-analysis.md +0 -77
  170. package/template/.claude/skills/bash-linux/SKILL.md +0 -199
  171. package/template/.claude/skills/behavioral-modes/SKILL.md +0 -242
  172. package/template/.claude/skills/brainstorm/SKILL.md +0 -168
  173. package/template/.claude/skills/changelog/SKILL.md +0 -109
  174. package/template/.claude/skills/codebase-design/DEEPENING.md +0 -24
  175. package/template/.claude/skills/codebase-design/DESIGN-IT-TWICE.md +0 -28
  176. package/template/.claude/skills/codebase-design/SKILL.md +0 -58
  177. package/template/.claude/skills/commit/SKILL.md +0 -59
  178. package/template/.claude/skills/competitor-analysis/SKILL.md +0 -66
  179. package/template/.claude/skills/context-engineering/SKILL.md +0 -290
  180. package/template/.claude/skills/database-design/SKILL.md +0 -52
  181. package/template/.claude/skills/database-design/database-selection.md +0 -43
  182. package/template/.claude/skills/database-design/indexing.md +0 -39
  183. package/template/.claude/skills/database-design/migrations.md +0 -48
  184. package/template/.claude/skills/database-design/optimization.md +0 -36
  185. package/template/.claude/skills/database-design/orm-selection.md +0 -30
  186. package/template/.claude/skills/database-design/schema-design.md +0 -56
  187. package/template/.claude/skills/database-design/scripts/schema_validator.py +0 -172
  188. package/template/.claude/skills/deploy/SKILL.md +0 -63
  189. package/template/.claude/skills/documentation-and-adrs/SKILL.md +0 -278
  190. package/template/.claude/skills/domain-modeling/ADR-FORMAT.md +0 -47
  191. package/template/.claude/skills/domain-modeling/CONTEXT-FORMAT.md +0 -60
  192. package/template/.claude/skills/domain-modeling/SKILL.md +0 -74
  193. package/template/.claude/skills/followup/SKILL.md +0 -83
  194. package/template/.claude/skills/frontend-ui-engineering/SKILL.md +0 -326
  195. package/template/.claude/skills/frontend-ui-engineering/accessibility-checklist.md +0 -159
  196. package/template/.claude/skills/goal/SKILL.md +0 -148
  197. package/template/.claude/skills/handoff/SKILL.md +0 -46
  198. package/template/.claude/skills/help/SKILL.md +0 -253
  199. package/template/.claude/skills/i18n-localization/SKILL.md +0 -154
  200. package/template/.claude/skills/i18n-localization/scripts/i18n_checker.py +0 -241
  201. package/template/.claude/skills/insight/SKILL.md +0 -42
  202. package/template/.claude/skills/issue-triage/SKILL.md +0 -115
  203. package/template/.claude/skills/lint-and-validate/SKILL.md +0 -45
  204. package/template/.claude/skills/lint-and-validate/scripts/lint_runner.py +0 -184
  205. package/template/.claude/skills/lint-and-validate/scripts/type_coverage.py +0 -173
  206. package/template/.claude/skills/mcp-builder/SKILL.md +0 -176
  207. package/template/.claude/skills/merge/SKILL.md +0 -76
  208. package/template/.claude/skills/mobile-design/SKILL.md +0 -394
  209. package/template/.claude/skills/mobile-design/decision-trees.md +0 -516
  210. package/template/.claude/skills/mobile-design/mobile-backend.md +0 -491
  211. package/template/.claude/skills/mobile-design/mobile-color-system.md +0 -420
  212. package/template/.claude/skills/mobile-design/mobile-debugging.md +0 -122
  213. package/template/.claude/skills/mobile-design/mobile-design-thinking.md +0 -357
  214. package/template/.claude/skills/mobile-design/mobile-navigation.md +0 -458
  215. package/template/.claude/skills/mobile-design/mobile-performance.md +0 -767
  216. package/template/.claude/skills/mobile-design/mobile-testing.md +0 -356
  217. package/template/.claude/skills/mobile-design/mobile-typography.md +0 -433
  218. package/template/.claude/skills/mobile-design/platform-android.md +0 -666
  219. package/template/.claude/skills/mobile-design/platform-ios.md +0 -561
  220. package/template/.claude/skills/mobile-design/scripts/mobile_audit.py +0 -670
  221. package/template/.claude/skills/mobile-design/touch-psychology.md +0 -537
  222. package/template/.claude/skills/nextjs-react-expert/1-async-eliminating-waterfalls.md +0 -312
  223. package/template/.claude/skills/nextjs-react-expert/2-bundle-bundle-size-optimization.md +0 -240
  224. package/template/.claude/skills/nextjs-react-expert/3-server-server-side-performance.md +0 -490
  225. package/template/.claude/skills/nextjs-react-expert/4-client-client-side-data-fetching.md +0 -264
  226. package/template/.claude/skills/nextjs-react-expert/5-rerender-re-render-optimization.md +0 -581
  227. package/template/.claude/skills/nextjs-react-expert/6-rendering-rendering-performance.md +0 -432
  228. package/template/.claude/skills/nextjs-react-expert/7-js-javascript-performance.md +0 -684
  229. package/template/.claude/skills/nextjs-react-expert/8-advanced-advanced-patterns.md +0 -150
  230. package/template/.claude/skills/nextjs-react-expert/SKILL.md +0 -286
  231. package/template/.claude/skills/nextjs-react-expert/scripts/convert_rules.py +0 -222
  232. package/template/.claude/skills/nextjs-react-expert/scripts/react_performance_checker.py +0 -252
  233. package/template/.claude/skills/nodejs-best-practices/SKILL.md +0 -333
  234. package/template/.claude/skills/package-json-generator/SKILL.md +0 -60
  235. package/template/.claude/skills/package-json-generator/scripts/generate.js +0 -120
  236. package/template/.claude/skills/package-json-generator/scripts/run.sh +0 -19
  237. package/template/.claude/skills/parallel-agents/SKILL.md +0 -144
  238. package/template/.claude/skills/performance-optimization/SKILL.md +0 -299
  239. package/template/.claude/skills/performance-optimization/performance-checklist.md +0 -113
  240. package/template/.claude/skills/powershell-windows/SKILL.md +0 -167
  241. package/template/.claude/skills/pr/SKILL.md +0 -93
  242. package/template/.claude/skills/prd/SKILL.md +0 -127
  243. package/template/.claude/skills/preview/SKILL.md +0 -42
  244. package/template/.claude/skills/python-patterns/SKILL.md +0 -441
  245. package/template/.claude/skills/research/SKILL.md +0 -143
  246. package/template/.claude/skills/review/SKILL.md +0 -71
  247. package/template/.claude/skills/roadmap-strategy/SKILL.md +0 -94
  248. package/template/.claude/skills/security-review/SKILL.md +0 -63
  249. package/template/.claude/skills/seo-fundamentals/SKILL.md +0 -129
  250. package/template/.claude/skills/seo-fundamentals/scripts/seo_checker.py +0 -219
  251. package/template/.claude/skills/server-management/SKILL.md +0 -161
  252. package/template/.claude/skills/simplify/SKILL.md +0 -70
  253. package/template/.claude/skills/skill-development/SKILL.md +0 -86
  254. package/template/.claude/skills/spec/SKILL.md +0 -39
  255. package/template/.claude/skills/spec-driven-development/SKILL.md +0 -207
  256. package/template/.claude/skills/tailwind-patterns/SKILL.md +0 -269
  257. package/template/.claude/skills/type-design/SKILL.md +0 -84
  258. package/template/.claude/skills/ui-ux-pro-max/SKILL.md +0 -75
@@ -8,7 +8,7 @@ argument-hint: "{running-id or workspace path}"
8
8
 
9
9
  $ARGUMENTS
10
10
 
11
- Package approved work for delivery after the report stage has captured the final verified story. Archives the active run from `devflow/context/current-run/` to `devflow/history/{features|fixes|rollbacks}/{xxx-slug}/`, updates `HISTORY.md`, performs git merge, and closes the run.
11
+ Package approved work for delivery after the report stage has captured the final verified story. Archives the active run from `devflow/context/current-run/` to `devflow/history/{features|fixes|rollbacks}/{xxx-slug}/`, updates `HISTORY.md` and `CHANGELOG.md`, executes pre-flight smoke checks, performs conventional git commit & merge, and closes the run.
12
12
 
13
13
  ## Usage
14
14
 
@@ -40,14 +40,39 @@ Before packaging, merging, or releasing:
40
40
  - Inspect `devflow/context/findings.md`.
41
41
  - No Finding of severity `P0` or `P1` in `open` or `fixed` status is permitted.
42
42
  - `fixed` still blocks release until reviewed and closed in `50-verify`.
43
- 2. **2-Stage Approval Separation**:
43
+ 2. **Pre-flight & Deployment Smoke Validation**:
44
+ - Verify environment variables and configuration parameters.
45
+ - Run production build or package smoke check (`npm run build` or `npm run test:package`).
46
+ - Validate that clean state exists with no untracked experimental files.
47
+ 3. **2-Stage Approval Separation**:
44
48
  - Consent to merge into `main` is strictly separate from consent to `git push` to remote or deploy.
45
- 3. **Archive Resolved Findings**:
46
- - Move resolved findings (`closed`, `accepted`, `invalid`) into release archive notes and clean `findings.md`.
47
- 4. **Archive Run Folder to Categorized History**:
48
- - Determine Category (`features`, `fixes`, `rollbacks`).
49
- - Move directory `devflow/context/current-run/` (or `devflow/runs/{xxx-slug}/`) `devflow/history/{category}/{xxx-slug}/`.
50
- 5. **Append to Master History Ledger**:
51
- - Append entry to `devflow/history/HISTORY.md` linking to `history/{category}/{xxx-slug}/60-report.md`.
52
- 6. **Update Workspace State**:
53
- - Set `devflow/context/current-stage.md` to `Idle`.
49
+
50
+ ### 1. Changelog & SemVer Version Bump
51
+
52
+ 1. Calculate next version according to **Semantic Versioning (SemVer)**:
53
+ - `Major`: Breaking architectural changes, removed public APIs
54
+ - `Minor`: New backward-compatible features added
55
+ - `Patch`: Bug fixes, optimizations, documentation
56
+ 2. Append new release entry to `CHANGELOG.md` in [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) format (`Added`, `Changed`, `Fixed`, `Removed`, `Security`).
57
+
58
+ ### 2. Conventional Commit & Git Merge
59
+
60
+ 1. Stage all release and tracking files.
61
+ 2. Commit with conventional format: `chore(release): release {version}` or `feat({scope}): {summary}`.
62
+ 3. Squash-merge to base branch (`main`) with explicit user approval.
63
+
64
+ ### 3. Archive Run Folder to Categorized History
65
+
66
+ 1. Determine Category (`features`, `fixes`, `rollbacks`).
67
+ 2. Move directory `devflow/context/current-run/` ➔ `devflow/history/{category}/{xxx-slug}/`.
68
+ 3. Clean resolved findings (`closed`, `accepted`, `invalid`) from `devflow/context/findings.md` and append to the release notes.
69
+ 4. Append entry to `devflow/history/HISTORY.md` linking to `history/{category}/{xxx-slug}/60-report.md`.
70
+
71
+ ### 4. Update Workspace State
72
+
73
+ Set `devflow/context/current-stage.md` to:
74
+ - `Active Discovery ID`: `None`
75
+ - `Active Running ID`: `None (Idle)`
76
+ - `Current Stage`: `Idle (Ready for new run)`
77
+ - `Last Completed Run`: `{ID} ({YYYY-MM-DD})`
78
+ - `Last Updated`: `{YYYY-MM-DD}`
@@ -8,7 +8,7 @@ argument-hint: "{running-id or workspace path}"
8
8
 
9
9
  $ARGUMENTS
10
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 (`devflow/context/current-feature.md`).
11
+ Quality assurance and multi-lane verification stage in Fast-Track. Validates implementation against Acceptance Criteria, executes Scrutinize QA & Security checks, runs test suites, checks for regressions, and records evidence in the Single Living Spec (`devflow/context/current-feature.md`).
12
12
 
13
13
  ## Invocations & Aliases
14
14
 
@@ -31,15 +31,26 @@ When invoked:
31
31
  2. Read `devflow/context/current-feature.md`.
32
32
  3. Locate `## 1. Specification & Scope` (Acceptance Criteria) and `## 3. Implementation Checklist`.
33
33
 
34
- ### 2. Multi-lane Verification Execution
35
- Execute the verification gates across all lanes:
36
- 1. **Lane 1 (Type & Syntax Safety)**:
34
+ ### 2. Multi-lane Verification & Scrutinize QA
35
+
36
+ Execute verification gates across all lanes:
37
+
38
+ 1. **Lane 1: Typecheck & Static Code Quality**:
37
39
  - Run typecheck and linting (e.g. `npm run typecheck`, `npm run lint`).
38
- 2. **Lane 2 (Test Suites & Coverage)**:
40
+ - Confirm 0 type errors, 0 lint warnings.
41
+ 2. **Lane 2: Automated Test Suites (TDD Gate)**:
39
42
  - Run automated unit and integration tests (e.g. `npm test`).
40
- 3. **Lane 3 (Manual / Scenario Proof)**:
43
+ - Confirm 100% tests pass with no disabled/skipped tests.
44
+ 3. **Lane 3: Scrutinize & Edge Cases Review**:
45
+ - **Boundary Conditions**: Check empty collections, 0/1 limits, off-by-one errors.
46
+ - **Null / Undefined Safety**: Verify optional chaining and nullish coalescing.
47
+ - **Error Handling & Propagation**: Verify errors are logged and handled without swallow.
48
+ 4. **Lane 4: Security & Hygiene Audit**:
49
+ - **Secrets Check**: No hardcoded API keys, passwords, or tokens in source code.
50
+ - **Injection & Sanitization**: Ensure inputs are validated and parameterized.
51
+ 5. **Lane 5: Manual Scenario Proof**:
41
52
  - Verify specific scenarios against Acceptance Criteria (`AC-1`, `AC-2`).
42
- - Summarize "Where to go", "What to click/call", and "What to expect".
53
+ - Provide concrete walkthrough: "Where to go", "What to run/click", "What to expect".
43
54
 
44
55
  ### 3. Update Living Spec (`current-feature.md`)
45
56
  Append or update `## 5. Verification Evidence` in `devflow/context/current-feature.md` in **Thai (`th`)**:
@@ -48,6 +59,7 @@ Append or update `## 5. Verification Evidence` in `devflow/context/current-featu
48
59
  ## 5. Verification Evidence
49
60
  - **Typecheck & Linter**: Passed (0 errors, 0 warnings)
50
61
  - **Automated Test Suites**: All tests passed (e.g. 12/12 passed, 0 failed)
62
+ - **Scrutinize & Security Audit**: Clean (No boundary issues, 0 secrets, safe inputs)
51
63
  - **Acceptance Criteria Verification**:
52
64
  - [x] AC-1: {ผลการตรวจสอบเงื่อนไขที่ 1 ผ่าน 100%}
53
65
  - [x] AC-2: {ผลการตรวจสอบเงื่อนไขที่ 2 ผ่าน 100%}
@@ -8,7 +8,7 @@ argument-hint: "{running-id or workspace path}"
8
8
 
9
9
  $ARGUMENTS
10
10
 
11
- Final delivery, safety pass, archive, and run closure stage in Fast-Track. Validates verification status, archives `devflow/context/current-feature.md` to `devflow/history/{features|fixes|rollbacks}/{xxx-slug}.md`, resets the stub, performs git merge, and closes the run **without auto-generating HTML reports**.
11
+ Final delivery, safety pass, archive, and run closure stage in Fast-Track. Validates verification status, archives `devflow/context/current-feature.md` to `devflow/history/{features|fixes|rollbacks}/{xxx-slug}.md`, resets the stub, updates changelog, performs conventional commit & git merge, and closes the run **without auto-generating HTML reports**.
12
12
 
13
13
  ## Invocations & Aliases
14
14
 
@@ -62,20 +62,30 @@ When invoked:
62
62
  _Nothing in progress. Run /feature, /fix, or /rollback to start._
63
63
  ```
64
64
 
65
- ### 4. Update Master Ledger (`HISTORY.md`)
66
- Append a new row to `devflow/history/HISTORY.md` under `## 📜 Master Release Log`:
67
- ```markdown
68
- | {YYYY-MM-DD} | `{ID}` | {Category} | {Title} | `{commit_hash}` | `Released` | [`{xxx-slug}.md`]({category}/{xxx-slug}.md) |
69
- ```
65
+ ### 4. Update Master Ledger (`HISTORY.md`) & CHANGELOG.md
66
+ 1. Append a new row to `devflow/history/HISTORY.md` under `## 📜 Master Release Log`:
67
+ ```markdown
68
+ | {YYYY-MM-DD} | `{ID}` | {Category} | {Title} | `{commit_hash}` | `Released` | [`{xxx-slug}.md`]({category}/{xxx-slug}.md) |
69
+ ```
70
+ 2. **Keep a Changelog & SemVer**:
71
+ - If `CHANGELOG.md` exists, append a new version block following SemVer principles:
72
+ - `Major (+1.0.0)`: Breaking architectural changes or API removal
73
+ - `Minor (0.+1.0)`: New user-facing feature additions (`Added`)
74
+ - `Patch (0.0.+1)`: Bug fixes (`Fixed`), documentation (`Docs`), or tweaks (`Changed`)
70
75
 
71
76
  ### 5. Policy on HTML Reports (Strict Rule)
72
77
  > [!IMPORTANT]
73
78
  > **No Auto-Generated HTML**: ห้ามสร้างไฟล์ `report.html` หรือ `60-report.html` แบบอัตโนมัติในขั้นตอนนี้โดยเด็ดขาด!
74
79
  > หากผู้ใช้ต้องการดู HTML Dashboard สวยงาม ให้แจ้งผู้ใช้ว่าสามารถเรียกคำสั่งแยกได้: `/report:html`
75
80
 
76
- ### 6. Git Merge & Branch Cleanup
77
- 1. Commit all modified tracking files.
78
- 2. Squash-merge feature branch into target base branch (`main` / `master`) with explicit user approval.
81
+ ### 6. Conventional Commits, Git Merge & Branch Cleanup
82
+ 1. **Conventional Commits Format**:
83
+ - Stage relevant files explicitly.
84
+ - Use imperative mood: `<type>(<scope>): <short imperative summary>` (e.g. `feat(auth): add password reset flow`, `fix(cli): handle missing config gracefully`).
85
+ - Types: `feat`, `fix`, `docs`, `refactor`, `test`, `chore`.
86
+ 2. **Squash-Merge**:
87
+ - Squash-merge feature branch into target base branch (`main` / `master`) with explicit user approval.
88
+ - Clean up short-lived feature branch.
79
89
 
80
90
  ### 7. Close Active Run
81
91
  Update `devflow/context/current-stage.md`:
@@ -86,9 +96,10 @@ Update `devflow/context/current-stage.md`:
86
96
  - `Last Completed Run`: `{ID} ({YYYY-MM-DD})`
87
97
  - `Last Updated`: `{YYYY-MM-DD}`
88
98
 
89
- ### 8. Output Completion Report
99
+ ### 8. Output Completion Report & PR Template
90
100
  Report to the user:
91
101
  - Run successfully completed and merged
92
102
  - Archived path: `devflow/history/{category}/{xxx-slug}.md`
93
103
  - Standalone HTML command tip: `/report:html` (if HTML view is desired)
104
+ - Pull Request summary block (if PR creation is needed)
94
105
  - Workspace is now Idle and ready for the next task.
@@ -30,7 +30,7 @@ Unused adapter families can be removed. Codex and Antigravity projects keep `.ag
30
30
 
31
31
  ### Universal Invocation & Agent Directives:
32
32
 
33
- 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
+ 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`, `devflow`, `doctor`, `overview`, `debug`, `onboard`, `adopt`, `try`, `rollback`, `idea`, `ci`, `test`, `autopilot`, `prototype`, `report-html`, `brief`). The way you invoke commands depends on your AI Provider / Tool:
34
34
  - **Canonical Name (Plain text)**: Directly invoke or prompt the command by its standard name (e.g., `feature`, `40-execute`, `devflow`).
35
35
  - **Slash Prefix (`/`)**: For tools supporting slash commands (Claude Code, Google Antigravity, Gemini CLI), e.g., `/feature`, `/fix`, `/implement`, `/40-execute`, `/devflow`.
36
36
  - **Dollar Prefix (`$`)**: For OpenAI Codex CLI or skill-invocation tools, e.g., `$feature`, `$fix`, `$40-execute`, `$devflow`.
@@ -16,9 +16,14 @@
16
16
 
17
17
  ## 2. CLI Architecture & Engineering Principles
18
18
 
19
- - **Separation of Concerns (Deep Modules)**:
19
+ - **Separation of Concerns (Deep Modules & Information Hiding)**:
20
20
  - Keep CLI entry points (`bin/create-nexus-devflow.ts`) thin: handle argument parsing, option normalization, and terminal formatting.
21
21
  - Encapsulate all core business logic, filesystem operations, and parsing inside modular libraries (`lib/current-work.ts`, `lib/findings.ts`, `lib/git.ts`, `lib/uninstall.ts`, `lib/update.ts`).
22
+ - **Deep Modules**: Strive for simple, narrow interfaces that hide extensive implementation complexity internally.
23
+ - **Refactoring & Code Simplification (Simplify Discipline)**:
24
+ - **Early Returns**: Guard conditions should exit early to eliminate deep nesting.
25
+ - **Single Responsibility (SRP)**: Functions should do one cohesive thing and stay under 50 lines whenever possible.
26
+ - **Pure Functions**: Favor deterministic functions without side effects for data transformation and parsing.
22
27
  - **Safety Flags & Idempotency**:
23
28
  - Destructive or mutating operations (e.g. `uninstall`, `update`, `install`) must support safety flags:
24
29
  - `--dry-run`: Preview actions and affected files without modifying the disk.
@@ -33,18 +38,33 @@
33
38
 
34
39
  ---
35
40
 
36
- ## 3. File Organization & Directory Structure
41
+ ## 3. Stable API & Interface Design Standards
42
+
43
+ - **Contract Stability**: Public exports, CLI options, and stage artifact schemas form immutable delivery contracts. Never break contracts without a major version bump.
44
+ - **Explicit Parameter Objects**: For functions with more than 2 arguments, use an options object interface with descriptive property names.
45
+ - **Defensive Input Validation**: Validate all inputs at module boundaries before processing. Never trust user or external JSON input without structural validation.
46
+
47
+ ---
48
+
49
+ ## 4. Database & Storage Architecture (When Applicable)
50
+
51
+ - **Migration Safety**: Schema changes must be backward-compatible (Expand and Contract pattern). Never drop columns or rename fields in a single step.
52
+ - **Indexing Strategy**: Always index foreign keys, search filters, and unique constraints.
53
+ - **Connection Hygiene**: Use connection pooling and ensure connections/file handles are closed cleanly in `finally` blocks.
54
+
55
+ ---
56
+
57
+ ## 5. File Organization & Directory Structure
37
58
 
38
59
  ```text
39
60
  nexus-devflow/
40
61
  ├── .agents/skills/ # Codex & Google Antigravity skill definitions
41
62
  ├── .claude/skills/ # Claude Code mirrored skill adapters
42
63
  ├── .nexus/ # Metadata tracking & upstream baseline ledger
43
- ├── devflow/ # Framework workspace context, runs, and discoveries
64
+ ├── devflow/ # Framework workspace context, history, and discoveries
44
65
  │ ├── context/ # Living source-of-truth context files
45
66
  │ ├── discoveries/ # Pre-delivery discovery records (00-discover.md)
46
- │ ├── runs/ # Running delivery artifacts (current-feature.md / 00-70)
47
- │ ├── history/ # Master delivery archive (HISTORY.md)
67
+ │ ├── history/ # Master delivery archive (features/, fixes/, rollbacks/, HISTORY.md)
48
68
  │ └── ideas.md # Idea Inbox and backlog
49
69
  ├── packages/
50
70
  │ └── create-nexus-devflow/ # Distribution npm package source
@@ -56,7 +76,7 @@ nexus-devflow/
56
76
 
57
77
  ---
58
78
 
59
- ## 4. Naming Conventions
79
+ ## 6. Naming Conventions
60
80
 
61
81
  - **Files & Directories**:
62
82
  - Skills and command directories: `kebab-case` (e.g. `00-discover`, `report-html`, `sync-upstream`).
@@ -70,7 +90,7 @@ nexus-devflow/
70
90
 
71
91
  ---
72
92
 
73
- ## 5. Testing & Empirical Proof Standards
93
+ ## 7. Testing & Empirical Proof Standards
74
94
 
75
95
  Testing is a core quality gate in Nexus-DevFlow, not an afterthought:
76
96
 
@@ -81,14 +101,15 @@ Testing is a core quality gate in Nexus-DevFlow, not an afterthought:
81
101
  - Use isolated temporary directories (`fs.mkdtemp` in `os.tmpdir()`) and ensure cleanup in `finally` blocks.
82
102
  - **Empirical Proof Contract**:
83
103
  - Never claim a task is "working", "tested", or "verified" without providing concrete empirical proof (exact command executed, terminal output, pass/fail counts, exit code).
84
- - **3-Lane Verification Matrix**:
104
+ - **Multi-Lane Verification Matrix**:
85
105
  - **Lane 1 (Type & Syntax Safety)**: `tsc --noEmit` (0 type errors).
86
106
  - **Lane 2 (Automated Test Suites & Evals)**: `npm test` (Unit tests 100% pass) + `npm run test:routing` (Skill routing accuracy).
87
- - **Lane 3 (Manual / Scenario Proof)**: Concrete walkthrough steps ("Where to go", "What to run", "What to expect").
107
+ - **Lane 3 (Scrutinize & Security Audit)**: Edge cases, null-safety, 0 secrets, safe inputs.
108
+ - **Lane 4 (Manual / Scenario Proof)**: Concrete walkthrough steps ("Where to go", "What to run", "What to expect").
88
109
 
89
110
  ---
90
111
 
91
- ## 6. Findings Ledger & Quality Gates (`findings.md`)
112
+ ## 8. Findings Ledger & Quality Gates (`findings.md`)
92
113
 
93
114
  - All quality defects, security findings, or regression issues identified during review must be logged in `devflow/context/findings.md`.
94
115
  - **Finding State Machine**:
@@ -100,7 +121,7 @@ Testing is a core quality gate in Nexus-DevFlow, not an afterthought:
100
121
 
101
122
  ---
102
123
 
103
- ## 7. Error Handling & Exit Codes
124
+ ## 9. Error Handling & Exit Codes
104
125
 
105
126
  - Use structured `try / catch` blocks around filesystem and process operations.
106
127
  - Create meaningful, actionable error messages for the user (explain what failed and how to resolve it).
@@ -110,22 +131,12 @@ Testing is a core quality gate in Nexus-DevFlow, not an afterthought:
110
131
 
111
132
  ---
112
133
 
113
- ## 8. Comments & Documentation Discipline
114
-
115
- Write code that explains itself; comment only what the code cannot say:
116
-
117
- - Comment the **why**, not the **what**. Avoid comments that simply rephrase the line of code.
118
- - Avoid noisy banner blocks, section divider lines (`// ====================`), or obvious step narrations.
119
- - Comments earn their place when documenting:
120
- - Non-obvious architectural decisions.
121
- - Upstream compatibility quirks or workarounds.
122
- - Edge-case handling rationale.
123
- - Keep JSDoc minimal and useful: provide a one-line summary and document non-obvious parameters.
124
-
125
- ---
126
-
127
- ## 9. Writing & Language Conventions
134
+ ## 10. Conventional Commits & Release Discipline
128
135
 
129
- - **Default Communication & Artifacts**: Thai (`th`) for all generated markdown stage artifacts (`current-feature.md`, `00-discover.md`, etc.), explanations, and user interactions.
130
- - **Code & Identifiers**: English for all source code, variable names, file paths, CLI flags, and commit messages.
131
- - **Typography**: Do not use em dashes (`—`) in AI-generated commit messages or technical summaries; use standard hyphens (`-`) or colons.
136
+ - **Conventional Commits**:
137
+ - Format: `<type>(<scope>): <short imperative summary>`
138
+ - Types: `feat`, `fix`, `docs`, `refactor`, `test`, `chore`
139
+ - **SemVer Versioning**:
140
+ - `Major`: Breaking architectural change
141
+ - `Minor`: New feature addition
142
+ - `Patch`: Bug fix or documentation update
@@ -1,165 +0,0 @@
1
- ---name: agent
2
-
3
- description: "[Devflow] Invoke specialist persona or role-based agent on a target file, folder, stage artifact, or concern."
4
- ---
5
- # Phase 90: Invoke Agent
6
-
7
- Run a specialist agent persona for targeted expertise while preserving the DevFlow 2.0 stage-first contract.
8
-
9
- Primary behavior now lives in the `specialist-agent-routing` skill. Keep this workflow as the compatibility wrapper and advanced user-facing agent entry point.
10
-
11
- ## Usage
12
-
13
- ```text
14
- Agent {AGENT_NAME} {TARGET}
15
- ```
16
-
17
- Examples:
18
-
19
- ```text
20
- Agent requirements-engineer devflow/runs/007-auth-refactor20-spec.md
21
- Agent codebase-explorer src/services/
22
- Agent code-reviewer devflow/runs/007-auth-refactor
23
- ```
24
-
25
- ## Available Agents
26
-
27
- Agent definitions live in `../agents/`.
28
-
29
- Planning and requirements:
30
-
31
- | Agent | Purpose |
32
- | :--- | :--- |
33
- | `prp-core-planner` | Create implementation plans from specs and codebase patterns. |
34
- | `requirements-engineer` | Refine `10-define.md` and `20-spec.md` before planning. |
35
- | `prp-core-prd-architect` | Draft PRD documents from early ideas. |
36
- | `orchestrator` | Coordinate complex work and recommend next specialist steps. |
37
- | `prp-core-boss` | Route `/goal` requests, decompose work, enforce turn budgets, and validate worker output. |
38
-
39
- Research and exploration:
40
-
41
- | Agent | Purpose |
42
- | :--- | :--- |
43
- | `codebase-explorer` | Find files and patterns; analyze architecture, data flow, and module relationships. |
44
- | `web-researcher` | Research external APIs, docs, and best practices. |
45
-
46
- Implementation:
47
-
48
- | Agent | Purpose |
49
- | :--- | :--- |
50
- | `prp-core-coder` | Implement planned subtasks. |
51
- | `prp-core-worker` | Execute focused Boss-assigned `/goal` subtasks and report validation status. |
52
- | `backend-specialist` | Backend, APIs, database, server logic. |
53
- | `frontend-specialist` | UI/UX and frontend implementation. |
54
- | `database-architect` | Schema, indexing, and query design. |
55
-
56
- Quality and debugging:
57
-
58
- | Agent | Purpose |
59
- | :--- | :--- |
60
- | `test-engineer` | Unit and integration tests. |
61
- | `prp-core-debugger` | Root cause analysis. |
62
- | `code-reviewer` | Code review, risk, regressions. |
63
- | `security-auditor` | Security and logic risk. |
64
- | `performance-engineer` | Performance bottlenecks. |
65
-
66
- Git and docs:
67
-
68
- | Agent | Purpose |
69
- | :--- | :--- |
70
- | `prp-core-git-committer` | Commit preparation and message quality. |
71
- | `prp-core-git-pr-maker` | Pull request summary and preparation. |
72
- | `documentation-maintainer` | Documentation impact analysis. |
73
-
74
- Maintenance and infrastructure:
75
-
76
- | Agent | Purpose |
77
- | :--- | :--- |
78
- | `ob-loop-engineer` | Overnight infrastructure maintenance, code debt pruning, and variant branch testing loops. |
79
-
80
-
81
- ## Reusable Skills
82
-
83
- The following former narrow agents are now skills. Invoke them through the responsible agent or workflow instead of `Agent`:
84
-
85
- | Skill | Apply Through |
86
- | :--- | :--- |
87
- | `code-simplification` | `prp-core-coder`, `code-reviewer`, or `Simplify` |
88
- | `type-design` | `backend-specialist`, `frontend-specialist`, `database-architect`, or `code-reviewer` |
89
- | `silent-failure-audit` | `code-reviewer`, `test-engineer`, `backend-specialist`, or `security-auditor` |
90
-
91
- ## Artifact Contract
92
-
93
- Specialist agents must use the DevFlow 2.0 stage-first contract:
94
-
95
- - Prefer `00-discover.md`, `10-define.md`, `20-spec.md`, `30-plan.md`, `40-execute.md`, `50-verify.md`, `70-release.md`, and `60-report.md` as the primary artifacts.
96
- - Do not silently rewrite legacy JSON artifacts.
97
- - If migration work still requires JSON, prefer CLI-backed minimal updates instead of full-file rewrites.
98
- - If the specialist is only reviewing, recommend exact commands instead of mutating artifacts.
99
- - Keep reports readable without requiring a dashboard or JSON viewer.
100
-
101
- ## 9arm-Skills Discipline Routing
102
-
103
- When the target task matches one of these review or communication modes, apply the credited local pack under `.agents/skills/9arm-skills/` while preserving the normal specialist output contract:
104
-
105
- | Situation | Apply |
106
- | :--- | :--- |
107
- | `code-reviewer`, PR review, plan critique, or change risk review | `9arm-skills/scrutinize` |
108
- | debug or RCA specialist work | `9arm-skills/debug-mantra` |
109
- | completed bug or regression lesson extraction | `9arm-skills/post-mortem` |
110
- | stakeholder-readable summary, PR body, release note, standup, or status update | `9arm-skills/management-talk` |
111
-
112
- Reports that use the pack should include a short `Source Discipline` note with credit to `thananon/9arm-skills`.
113
-
114
- ## Process
115
-
116
- 1. Load the persona from `../agents/{AGENT_NAME}.md`.
117
- 2. Read the target file, folder, stage directory, or recent changes.
118
- 3. Apply the persona's specialist logic.
119
- 4. If artifact changes are needed, prefer stage markdown updates first.
120
- 5. Record lightweight context usage in the report when the agent loads notable context.
121
- 6. Produce either a concise report or a focused set of changes.
122
-
123
- ## Output
124
-
125
- If a report is substantial, save it to:
126
-
127
- ```text
128
- devflow/reports/{date}-{agent-name}-{timestamp}.md
129
- ```
130
-
131
- Before saving a substantial agent report, inspect `.agent/resources/schemas/agent_report.template.md` and use its required headings unless the target workflow provides a more specific template.
132
-
133
- Before reporting completion, run:
134
-
135
- Review `{report_path}` against `agent_report.template.md`, keep the required headings, and remove placeholder text before completion.
136
-
137
- Replace any placeholder or template text with concrete files reviewed, findings, recommendations, and validation needs.
138
-
139
- For substantial reports, add a short `Context Usage Notes` subsection under the context reviewed area with files or artifacts loaded, any known token counts, and one practical optimization note for future runs.
140
-
141
- Short reports can be returned directly in chat.
142
-
143
- ## Relationship To DevFlow 2.0
144
-
145
- - Classification: Companion command
146
- - Mainline status: Specialist invocation command, not a numbered stage
147
- - Typical entry points: any stage that needs focused specialist judgment
148
- - Typical handoff targets: return to the owning workflow such as `10-define`, `20-spec`, `30-plan`, `40-execute`, `50-verify`, `60-report`, `70-release`
149
-
150
- ## Sources
151
-
152
- - `AGENTS.md`
153
- - `.agent/agents/README.md`
154
- - `.agent/resources/schemas/agent_report.template.md`
155
- - Related commands: `Research`, `PR-Review`, `Debug`, `Help`, all mainline stages
156
-
157
- ## Next Workflow Recommendation
158
-
159
- - **Primary**: the workflow that owns the target's lifecycle, such as `10-define`, `20-spec`, `30-plan`, `40-execute`, `50-verify`, `60-report`, `70-release`, or `PR-Review`.
160
- - **Why**: `Agent` supplies specialist judgment; the owning workflow should execute the next lifecycle step.
161
- - **Alternatives**:
162
- - `Research` when the specialist work uncovered unresolved external uncertainty
163
- - `Wiki` when the specialist report contains reusable project knowledge
164
- - `Help {target}` when the correct next route is unclear
165
-