@jakkrichm/create-nexus-devflow 2.0.20 → 2.0.21
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/lib/update.js +19 -8
- package/dist/lib/update.js.map +1 -1
- package/package.json +1 -1
- package/template/.agents/skills/00-discover/SKILL.md +28 -116
- package/template/.agents/skills/40-execute/SKILL.md +1 -1
- package/template/.agents/skills/50-verify/SKILL.md +28 -161
- package/template/.agents/skills/60-report/SKILL.md +19 -92
- package/template/.agents/skills/70-release/SKILL.md +36 -11
- package/template/.agents/skills/check/SKILL.md +19 -7
- package/template/.agents/skills/complete/SKILL.md +21 -10
- package/template/.claude/skills/00-discover/SKILL.md +28 -116
- package/template/.claude/skills/40-execute/SKILL.md +1 -1
- package/template/.claude/skills/50-verify/SKILL.md +28 -161
- package/template/.claude/skills/60-report/SKILL.md +19 -92
- package/template/.claude/skills/70-release/SKILL.md +36 -11
- package/template/.claude/skills/check/SKILL.md +19 -7
- package/template/.claude/skills/complete/SKILL.md +21 -10
- package/template/AGENTS.md +1 -1
- package/template/devflow/context/coding-standards.md +40 -29
- package/template/.agents/skills/agent/SKILL.md +0 -165
- package/template/.agents/skills/api-and-interface-design/SKILL.md +0 -294
- package/template/.agents/skills/app-builder/SKILL.md +0 -75
- package/template/.agents/skills/app-builder/agent-coordination.md +0 -71
- package/template/.agents/skills/app-builder/feature-building.md +0 -53
- package/template/.agents/skills/app-builder/project-detection.md +0 -34
- package/template/.agents/skills/app-builder/scaffolding.md +0 -118
- package/template/.agents/skills/app-builder/tech-stack.md +0 -40
- package/template/.agents/skills/app-builder/templates/SKILL.md +0 -39
- package/template/.agents/skills/app-builder/templates/astro-static/TEMPLATE.md +0 -76
- package/template/.agents/skills/app-builder/templates/chrome-extension/TEMPLATE.md +0 -92
- package/template/.agents/skills/app-builder/templates/cli-tool/TEMPLATE.md +0 -88
- package/template/.agents/skills/app-builder/templates/electron-desktop/TEMPLATE.md +0 -88
- package/template/.agents/skills/app-builder/templates/express-api/TEMPLATE.md +0 -83
- package/template/.agents/skills/app-builder/templates/flutter-app/TEMPLATE.md +0 -90
- package/template/.agents/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +0 -90
- package/template/.agents/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +0 -122
- package/template/.agents/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +0 -122
- package/template/.agents/skills/app-builder/templates/nextjs-static/TEMPLATE.md +0 -169
- package/template/.agents/skills/app-builder/templates/nuxt-app/TEMPLATE.md +0 -134
- package/template/.agents/skills/app-builder/templates/python-fastapi/TEMPLATE.md +0 -83
- package/template/.agents/skills/app-builder/templates/react-native-app/TEMPLATE.md +0 -119
- package/template/.agents/skills/architecture/SKILL.md +0 -55
- package/template/.agents/skills/architecture/context-discovery.md +0 -43
- package/template/.agents/skills/architecture/examples.md +0 -94
- package/template/.agents/skills/architecture/pattern-selection.md +0 -68
- package/template/.agents/skills/architecture/patterns-reference.md +0 -50
- package/template/.agents/skills/architecture/trade-off-analysis.md +0 -77
- package/template/.agents/skills/bash-linux/SKILL.md +0 -199
- package/template/.agents/skills/behavioral-modes/SKILL.md +0 -242
- package/template/.agents/skills/brainstorm/SKILL.md +0 -168
- package/template/.agents/skills/changelog/SKILL.md +0 -109
- package/template/.agents/skills/codebase-design/DEEPENING.md +0 -24
- package/template/.agents/skills/codebase-design/DESIGN-IT-TWICE.md +0 -28
- package/template/.agents/skills/codebase-design/SKILL.md +0 -58
- package/template/.agents/skills/commit/SKILL.md +0 -59
- package/template/.agents/skills/competitor-analysis/SKILL.md +0 -66
- package/template/.agents/skills/context-engineering/SKILL.md +0 -290
- package/template/.agents/skills/database-design/SKILL.md +0 -52
- package/template/.agents/skills/database-design/database-selection.md +0 -43
- package/template/.agents/skills/database-design/indexing.md +0 -39
- package/template/.agents/skills/database-design/migrations.md +0 -48
- package/template/.agents/skills/database-design/optimization.md +0 -36
- package/template/.agents/skills/database-design/orm-selection.md +0 -30
- package/template/.agents/skills/database-design/schema-design.md +0 -56
- package/template/.agents/skills/database-design/scripts/schema_validator.py +0 -172
- package/template/.agents/skills/deploy/SKILL.md +0 -63
- package/template/.agents/skills/documentation-and-adrs/SKILL.md +0 -278
- package/template/.agents/skills/domain-modeling/ADR-FORMAT.md +0 -47
- package/template/.agents/skills/domain-modeling/CONTEXT-FORMAT.md +0 -60
- package/template/.agents/skills/domain-modeling/SKILL.md +0 -74
- package/template/.agents/skills/followup/SKILL.md +0 -83
- package/template/.agents/skills/frontend-ui-engineering/SKILL.md +0 -326
- package/template/.agents/skills/frontend-ui-engineering/accessibility-checklist.md +0 -159
- package/template/.agents/skills/goal/SKILL.md +0 -148
- package/template/.agents/skills/handoff/SKILL.md +0 -46
- package/template/.agents/skills/help/SKILL.md +0 -253
- package/template/.agents/skills/i18n-localization/SKILL.md +0 -154
- package/template/.agents/skills/i18n-localization/scripts/i18n_checker.py +0 -241
- package/template/.agents/skills/insight/SKILL.md +0 -42
- package/template/.agents/skills/issue-triage/SKILL.md +0 -115
- package/template/.agents/skills/lint-and-validate/SKILL.md +0 -45
- package/template/.agents/skills/lint-and-validate/scripts/lint_runner.py +0 -184
- package/template/.agents/skills/lint-and-validate/scripts/type_coverage.py +0 -173
- package/template/.agents/skills/mcp-builder/SKILL.md +0 -176
- package/template/.agents/skills/merge/SKILL.md +0 -76
- package/template/.agents/skills/mobile-design/SKILL.md +0 -394
- package/template/.agents/skills/mobile-design/decision-trees.md +0 -516
- package/template/.agents/skills/mobile-design/mobile-backend.md +0 -491
- package/template/.agents/skills/mobile-design/mobile-color-system.md +0 -420
- package/template/.agents/skills/mobile-design/mobile-debugging.md +0 -122
- package/template/.agents/skills/mobile-design/mobile-design-thinking.md +0 -357
- package/template/.agents/skills/mobile-design/mobile-navigation.md +0 -458
- package/template/.agents/skills/mobile-design/mobile-performance.md +0 -767
- package/template/.agents/skills/mobile-design/mobile-testing.md +0 -356
- package/template/.agents/skills/mobile-design/mobile-typography.md +0 -433
- package/template/.agents/skills/mobile-design/platform-android.md +0 -666
- package/template/.agents/skills/mobile-design/platform-ios.md +0 -561
- package/template/.agents/skills/mobile-design/scripts/mobile_audit.py +0 -670
- package/template/.agents/skills/mobile-design/touch-psychology.md +0 -537
- package/template/.agents/skills/nextjs-react-expert/1-async-eliminating-waterfalls.md +0 -312
- package/template/.agents/skills/nextjs-react-expert/2-bundle-bundle-size-optimization.md +0 -240
- package/template/.agents/skills/nextjs-react-expert/3-server-server-side-performance.md +0 -490
- package/template/.agents/skills/nextjs-react-expert/4-client-client-side-data-fetching.md +0 -264
- package/template/.agents/skills/nextjs-react-expert/5-rerender-re-render-optimization.md +0 -581
- package/template/.agents/skills/nextjs-react-expert/6-rendering-rendering-performance.md +0 -432
- package/template/.agents/skills/nextjs-react-expert/7-js-javascript-performance.md +0 -684
- package/template/.agents/skills/nextjs-react-expert/8-advanced-advanced-patterns.md +0 -150
- package/template/.agents/skills/nextjs-react-expert/SKILL.md +0 -286
- package/template/.agents/skills/nextjs-react-expert/scripts/convert_rules.py +0 -222
- package/template/.agents/skills/nextjs-react-expert/scripts/react_performance_checker.py +0 -252
- package/template/.agents/skills/nodejs-best-practices/SKILL.md +0 -333
- package/template/.agents/skills/package-json-generator/SKILL.md +0 -60
- package/template/.agents/skills/package-json-generator/scripts/generate.js +0 -120
- package/template/.agents/skills/package-json-generator/scripts/run.sh +0 -19
- package/template/.agents/skills/parallel-agents/SKILL.md +0 -144
- package/template/.agents/skills/performance-optimization/SKILL.md +0 -299
- package/template/.agents/skills/performance-optimization/performance-checklist.md +0 -113
- package/template/.agents/skills/powershell-windows/SKILL.md +0 -167
- package/template/.agents/skills/pr/SKILL.md +0 -93
- package/template/.agents/skills/prd/SKILL.md +0 -127
- package/template/.agents/skills/preview/SKILL.md +0 -42
- package/template/.agents/skills/python-patterns/SKILL.md +0 -441
- package/template/.agents/skills/research/SKILL.md +0 -143
- package/template/.agents/skills/review/SKILL.md +0 -71
- package/template/.agents/skills/roadmap-strategy/SKILL.md +0 -94
- package/template/.agents/skills/security-review/SKILL.md +0 -63
- package/template/.agents/skills/seo-fundamentals/SKILL.md +0 -129
- package/template/.agents/skills/seo-fundamentals/scripts/seo_checker.py +0 -219
- package/template/.agents/skills/server-management/SKILL.md +0 -161
- package/template/.agents/skills/simplify/SKILL.md +0 -70
- package/template/.agents/skills/skill-development/SKILL.md +0 -86
- package/template/.agents/skills/spec/SKILL.md +0 -39
- package/template/.agents/skills/spec-driven-development/SKILL.md +0 -207
- package/template/.agents/skills/tailwind-patterns/SKILL.md +0 -269
- package/template/.agents/skills/type-design/SKILL.md +0 -84
- package/template/.agents/skills/ui-ux-pro-max/SKILL.md +0 -75
- package/template/.claude/skills/agent/SKILL.md +0 -165
- package/template/.claude/skills/api-and-interface-design/SKILL.md +0 -294
- package/template/.claude/skills/app-builder/SKILL.md +0 -75
- package/template/.claude/skills/app-builder/agent-coordination.md +0 -71
- package/template/.claude/skills/app-builder/feature-building.md +0 -53
- package/template/.claude/skills/app-builder/project-detection.md +0 -34
- package/template/.claude/skills/app-builder/scaffolding.md +0 -118
- package/template/.claude/skills/app-builder/tech-stack.md +0 -40
- package/template/.claude/skills/app-builder/templates/SKILL.md +0 -39
- package/template/.claude/skills/app-builder/templates/astro-static/TEMPLATE.md +0 -76
- package/template/.claude/skills/app-builder/templates/chrome-extension/TEMPLATE.md +0 -92
- package/template/.claude/skills/app-builder/templates/cli-tool/TEMPLATE.md +0 -88
- package/template/.claude/skills/app-builder/templates/electron-desktop/TEMPLATE.md +0 -88
- package/template/.claude/skills/app-builder/templates/express-api/TEMPLATE.md +0 -83
- package/template/.claude/skills/app-builder/templates/flutter-app/TEMPLATE.md +0 -90
- package/template/.claude/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +0 -90
- package/template/.claude/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +0 -122
- package/template/.claude/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +0 -122
- package/template/.claude/skills/app-builder/templates/nextjs-static/TEMPLATE.md +0 -169
- package/template/.claude/skills/app-builder/templates/nuxt-app/TEMPLATE.md +0 -134
- package/template/.claude/skills/app-builder/templates/python-fastapi/TEMPLATE.md +0 -83
- package/template/.claude/skills/app-builder/templates/react-native-app/TEMPLATE.md +0 -119
- package/template/.claude/skills/architecture/SKILL.md +0 -55
- package/template/.claude/skills/architecture/context-discovery.md +0 -43
- package/template/.claude/skills/architecture/examples.md +0 -94
- package/template/.claude/skills/architecture/pattern-selection.md +0 -68
- package/template/.claude/skills/architecture/patterns-reference.md +0 -50
- package/template/.claude/skills/architecture/trade-off-analysis.md +0 -77
- package/template/.claude/skills/bash-linux/SKILL.md +0 -199
- package/template/.claude/skills/behavioral-modes/SKILL.md +0 -242
- package/template/.claude/skills/brainstorm/SKILL.md +0 -168
- package/template/.claude/skills/changelog/SKILL.md +0 -109
- package/template/.claude/skills/codebase-design/DEEPENING.md +0 -24
- package/template/.claude/skills/codebase-design/DESIGN-IT-TWICE.md +0 -28
- package/template/.claude/skills/codebase-design/SKILL.md +0 -58
- package/template/.claude/skills/commit/SKILL.md +0 -59
- package/template/.claude/skills/competitor-analysis/SKILL.md +0 -66
- package/template/.claude/skills/context-engineering/SKILL.md +0 -290
- package/template/.claude/skills/database-design/SKILL.md +0 -52
- package/template/.claude/skills/database-design/database-selection.md +0 -43
- package/template/.claude/skills/database-design/indexing.md +0 -39
- package/template/.claude/skills/database-design/migrations.md +0 -48
- package/template/.claude/skills/database-design/optimization.md +0 -36
- package/template/.claude/skills/database-design/orm-selection.md +0 -30
- package/template/.claude/skills/database-design/schema-design.md +0 -56
- package/template/.claude/skills/database-design/scripts/schema_validator.py +0 -172
- package/template/.claude/skills/deploy/SKILL.md +0 -63
- package/template/.claude/skills/documentation-and-adrs/SKILL.md +0 -278
- package/template/.claude/skills/domain-modeling/ADR-FORMAT.md +0 -47
- package/template/.claude/skills/domain-modeling/CONTEXT-FORMAT.md +0 -60
- package/template/.claude/skills/domain-modeling/SKILL.md +0 -74
- package/template/.claude/skills/followup/SKILL.md +0 -83
- package/template/.claude/skills/frontend-ui-engineering/SKILL.md +0 -326
- package/template/.claude/skills/frontend-ui-engineering/accessibility-checklist.md +0 -159
- package/template/.claude/skills/goal/SKILL.md +0 -148
- package/template/.claude/skills/handoff/SKILL.md +0 -46
- package/template/.claude/skills/help/SKILL.md +0 -253
- package/template/.claude/skills/i18n-localization/SKILL.md +0 -154
- package/template/.claude/skills/i18n-localization/scripts/i18n_checker.py +0 -241
- package/template/.claude/skills/insight/SKILL.md +0 -42
- package/template/.claude/skills/issue-triage/SKILL.md +0 -115
- package/template/.claude/skills/lint-and-validate/SKILL.md +0 -45
- package/template/.claude/skills/lint-and-validate/scripts/lint_runner.py +0 -184
- package/template/.claude/skills/lint-and-validate/scripts/type_coverage.py +0 -173
- package/template/.claude/skills/mcp-builder/SKILL.md +0 -176
- package/template/.claude/skills/merge/SKILL.md +0 -76
- package/template/.claude/skills/mobile-design/SKILL.md +0 -394
- package/template/.claude/skills/mobile-design/decision-trees.md +0 -516
- package/template/.claude/skills/mobile-design/mobile-backend.md +0 -491
- package/template/.claude/skills/mobile-design/mobile-color-system.md +0 -420
- package/template/.claude/skills/mobile-design/mobile-debugging.md +0 -122
- package/template/.claude/skills/mobile-design/mobile-design-thinking.md +0 -357
- package/template/.claude/skills/mobile-design/mobile-navigation.md +0 -458
- package/template/.claude/skills/mobile-design/mobile-performance.md +0 -767
- package/template/.claude/skills/mobile-design/mobile-testing.md +0 -356
- package/template/.claude/skills/mobile-design/mobile-typography.md +0 -433
- package/template/.claude/skills/mobile-design/platform-android.md +0 -666
- package/template/.claude/skills/mobile-design/platform-ios.md +0 -561
- package/template/.claude/skills/mobile-design/scripts/mobile_audit.py +0 -670
- package/template/.claude/skills/mobile-design/touch-psychology.md +0 -537
- package/template/.claude/skills/nextjs-react-expert/1-async-eliminating-waterfalls.md +0 -312
- package/template/.claude/skills/nextjs-react-expert/2-bundle-bundle-size-optimization.md +0 -240
- package/template/.claude/skills/nextjs-react-expert/3-server-server-side-performance.md +0 -490
- package/template/.claude/skills/nextjs-react-expert/4-client-client-side-data-fetching.md +0 -264
- package/template/.claude/skills/nextjs-react-expert/5-rerender-re-render-optimization.md +0 -581
- package/template/.claude/skills/nextjs-react-expert/6-rendering-rendering-performance.md +0 -432
- package/template/.claude/skills/nextjs-react-expert/7-js-javascript-performance.md +0 -684
- package/template/.claude/skills/nextjs-react-expert/8-advanced-advanced-patterns.md +0 -150
- package/template/.claude/skills/nextjs-react-expert/SKILL.md +0 -286
- package/template/.claude/skills/nextjs-react-expert/scripts/convert_rules.py +0 -222
- package/template/.claude/skills/nextjs-react-expert/scripts/react_performance_checker.py +0 -252
- package/template/.claude/skills/nodejs-best-practices/SKILL.md +0 -333
- package/template/.claude/skills/package-json-generator/SKILL.md +0 -60
- package/template/.claude/skills/package-json-generator/scripts/generate.js +0 -120
- package/template/.claude/skills/package-json-generator/scripts/run.sh +0 -19
- package/template/.claude/skills/parallel-agents/SKILL.md +0 -144
- package/template/.claude/skills/performance-optimization/SKILL.md +0 -299
- package/template/.claude/skills/performance-optimization/performance-checklist.md +0 -113
- package/template/.claude/skills/powershell-windows/SKILL.md +0 -167
- package/template/.claude/skills/pr/SKILL.md +0 -93
- package/template/.claude/skills/prd/SKILL.md +0 -127
- package/template/.claude/skills/preview/SKILL.md +0 -42
- package/template/.claude/skills/python-patterns/SKILL.md +0 -441
- package/template/.claude/skills/research/SKILL.md +0 -143
- package/template/.claude/skills/review/SKILL.md +0 -71
- package/template/.claude/skills/roadmap-strategy/SKILL.md +0 -94
- package/template/.claude/skills/security-review/SKILL.md +0 -63
- package/template/.claude/skills/seo-fundamentals/SKILL.md +0 -129
- package/template/.claude/skills/seo-fundamentals/scripts/seo_checker.py +0 -219
- package/template/.claude/skills/server-management/SKILL.md +0 -161
- package/template/.claude/skills/simplify/SKILL.md +0 -70
- package/template/.claude/skills/skill-development/SKILL.md +0 -86
- package/template/.claude/skills/spec/SKILL.md +0 -39
- package/template/.claude/skills/spec-driven-development/SKILL.md +0 -207
- package/template/.claude/skills/tailwind-patterns/SKILL.md +0 -269
- package/template/.claude/skills/type-design/SKILL.md +0 -84
- package/template/.claude/skills/ui-ux-pro-max/SKILL.md +0 -75
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: 60-report
|
|
3
|
-
description: "[Devflow] Report stage in DevFlow 2.0 - produce standardized markdown
|
|
3
|
+
description: "[Devflow] Report stage in DevFlow 2.0 - produce standardized markdown summary report with retrospective lessons learned."
|
|
4
4
|
argument-hint: "{running-id or workspace path}"
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -8,7 +8,7 @@ argument-hint: "{running-id or workspace path}"
|
|
|
8
8
|
|
|
9
9
|
$ARGUMENTS
|
|
10
10
|
|
|
11
|
-
Produce the final human-friendly summary of the full running flow in Markdown (`60-report.md`)
|
|
11
|
+
Produce the final human-friendly summary of the full running flow in Markdown (`60-report.md`) with retrospective lessons learned, findings summary, and release digest.
|
|
12
12
|
|
|
13
13
|
## Usage
|
|
14
14
|
|
|
@@ -21,110 +21,37 @@ Produce the final human-friendly summary of the full running flow in Markdown (`
|
|
|
21
21
|
Write the primary stage artifact to:
|
|
22
22
|
|
|
23
23
|
```text
|
|
24
|
-
devflow/
|
|
24
|
+
devflow/context/current-run/60-report.md
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
-
using:
|
|
28
|
-
|
|
29
|
-
```text
|
|
30
|
-
.agent/resources/schemas/report.template.md
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
Before writing `60-report.md`, read `artifact_language` from `report.template.md` and produce the markdown artifact in that language.
|
|
34
|
-
|
|
35
27
|
> [!IMPORTANT]
|
|
36
|
-
> **No Auto-Generated HTML**:
|
|
37
|
-
|
|
38
|
-
## Required Section Content
|
|
39
|
-
|
|
40
|
-
Before completing any generated artifact:
|
|
41
|
-
|
|
42
|
-
- preserve every heading required by the selected template
|
|
43
|
-
- write concrete information under every heading
|
|
44
|
-
- when no information exists or the section does not apply, write exactly `-`
|
|
45
|
-
- never leave a heading immediately followed by another heading with no body content
|
|
46
|
-
- remove template placeholders from the final artifact
|
|
47
|
-
- do not invent facts merely to avoid using `-`
|
|
48
|
-
- re-read the saved artifact and verify every heading satisfies this rule
|
|
28
|
+
> **No Auto-Generated HTML**: ห้ามสร้างไฟล์ `60-report.html` แบบอัตโนมัติในขั้นตอนนี้! ระบบจะสร้างเฉพาะ `60-report.md` เท่านั้น หากต้องการดู HTML Report ให้เรียกคำสั่งแยก: `/report:html`
|
|
49
29
|
|
|
50
30
|
## Process
|
|
51
31
|
|
|
52
|
-
###
|
|
53
|
-
|
|
54
|
-
Run reporting as an outcome-evidence loop, not as a dump of prior artifacts.
|
|
55
|
-
|
|
56
|
-
- **Intent**: produce a final markdown summary that lets a reader understand the outcome, evidence, decisions, risks, and next actions without replaying the whole run.
|
|
57
|
-
- **Context**: read all relevant stage artifacts, checklist files, verify impact notes, release notes, validation output, and supporting artifacts that materially explain the result.
|
|
58
|
-
- **Action**: summarize the problem, direction, completed work, validation outcome, checklist progress, final decision, open risks, and next actions.
|
|
59
|
-
- **Observation**: use concrete evidence such as checklist completion, blocked or skipped items, validation results, release state, impact notes, and unresolved follow-ups.
|
|
60
|
-
- **Adjustment**: if evidence is missing, return to the owning stage; if the report must support continuation, use `handoff`; if the run produced reusable lessons, use `insight-capture` or `Wiki`.
|
|
61
|
-
- **Stop Condition**: stop when `60-report.md` exists, summarizes the outcome accurately, includes checklist and evidence snapshots, and names any remaining follow-up work.
|
|
62
|
-
- **Handoff**: `60-report.md` must close the mainline run or tell the next reader exactly where follow-up work should continue.
|
|
63
|
-
|
|
64
|
-
### 1. Gather Full Run Context
|
|
65
|
-
|
|
32
|
+
### 1. Gather Full Run Context & Verification Evidence
|
|
66
33
|
Read all relevant stage artifacts:
|
|
67
|
-
|
|
68
|
-
- the shared `00-discover.md` referenced by `source_discovery` when it materially explains the delivery decision
|
|
69
34
|
- `10-define.md`
|
|
70
35
|
- `20-spec.md`
|
|
71
36
|
- `30-plan.md`
|
|
72
37
|
- `40-execute.md`
|
|
73
38
|
- `50-verify.md`
|
|
74
|
-
- `checklists/implementation-checklist.md` when present
|
|
75
|
-
- `checklists/verification-checklist.md` when present
|
|
76
|
-
|
|
77
|
-
Include supporting artifacts only when they add real context.
|
|
78
|
-
|
|
79
|
-
### 2. Summarize The Run
|
|
80
|
-
|
|
81
|
-
Explain:
|
|
82
|
-
|
|
83
|
-
- what problem was addressed
|
|
84
|
-
- what direction was chosen
|
|
85
|
-
- what was implemented
|
|
86
|
-
- how it was verified (พร้อมบันทึกสถานะ Findings Ledger ใน `devflow/context/findings.md`)
|
|
87
|
-
- how checklist progress moved across the run
|
|
88
|
-
- **Manual Try Guide**: สรุปขั้นตอนการทดสอบสำหรับมนุษย์ ("Where to go", "What to click", "What to expect")
|
|
89
|
-
- what approval or review state remained at each important gate
|
|
90
|
-
- what the release recommendation is
|
|
91
|
-
- what follow-up items still exist
|
|
92
|
-
|
|
93
|
-
### 3. Produce Standardized Outputs
|
|
94
|
-
|
|
95
|
-
Write:
|
|
96
|
-
|
|
97
|
-
- a readable Markdown report (`60-report.md`) for contributors
|
|
98
|
-
|
|
99
|
-
Keep checklist summaries and follow-up status inside `60-report.md`.
|
|
100
|
-
|
|
101
|
-
Both outputs should summarize checklist state when checklist artifacts exist, including:
|
|
102
|
-
|
|
103
|
-
- completion progress
|
|
104
|
-
- blocked or skipped items
|
|
105
|
-
- notable evidence snapshots
|
|
106
|
-
- approval status, review blockers, and next allowed command when they still matter
|
|
107
|
-
- remaining follow-up work
|
|
108
|
-
|
|
109
|
-
## Output
|
|
110
|
-
|
|
111
|
-
Report:
|
|
112
|
-
|
|
113
|
-
- what the run accomplished
|
|
114
|
-
- checklist completion status and remaining items
|
|
115
|
-
- important remaining follow-ups
|
|
116
|
-
- where `60-report.md` was written
|
|
117
|
-
- standalone HTML command tip: `/report:html` (if HTML view is desired)
|
|
118
39
|
|
|
119
|
-
|
|
40
|
+
### 2. Retrospective Lessons Learned & Gotchas (Insight Extraction)
|
|
41
|
+
Extract durable insights from the completed run:
|
|
42
|
+
- **Reusable Patterns**: Design choices or implementations that future runs should mirror.
|
|
43
|
+
- **Gotchas & Pitfalls**: Unforeseen issues or quirks encountered during execution.
|
|
44
|
+
- **Unresolved Follow-ups**: Route any residual out-of-scope ideas to `devflow/ideas.md`.
|
|
120
45
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
46
|
+
### 3. Produce Standardized Report (`60-report.md`)
|
|
47
|
+
Structure the report in **Thai (`th`)**:
|
|
48
|
+
1. **Executive Summary**: ปัญหาและแนวทางแก้ไข
|
|
49
|
+
2. **Delivery Scope**: รายการฟีเจอร์และคอมโพเนนต์ที่ส่งมอบ
|
|
50
|
+
3. **Verification Evidence Snapshot**: ผลการทดสอบทุก Lane
|
|
51
|
+
4. **Retrospective & Lessons Learned**: บทเรียนและข้อควรระวัง
|
|
52
|
+
5. **Manual Try Guide**: ขั้นตอนสำหรับมนุษย์ทดสอบระบบ
|
|
125
53
|
|
|
126
54
|
## Next Workflow Recommendation
|
|
127
55
|
|
|
128
|
-
- **Primary**: `70-release {ID}`
|
|
129
|
-
- **Optional Standalone HTML**: `/report:html`
|
|
130
|
-
- **Alternative**: `Wiki` when the completed run should be promoted into durable reusable knowledge before release packaging continues.
|
|
56
|
+
- **Primary**: `70-release {ID}`
|
|
57
|
+
- **Optional Standalone HTML**: `/report:html`
|
|
@@ -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. **
|
|
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
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
-
|
|
50
|
-
|
|
51
|
-
-
|
|
52
|
-
|
|
53
|
-
|
|
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
|
|
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
|
|
35
|
-
|
|
36
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
-
|
|
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.
|
|
78
|
-
|
|
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.
|
package/template/AGENTS.md
CHANGED
|
@@ -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`, `
|
|
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.
|
|
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,
|
|
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
|
-
│ ├──
|
|
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
|
-
##
|
|
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
|
-
##
|
|
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
|
-
- **
|
|
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 (
|
|
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
|
-
##
|
|
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
|
-
##
|
|
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
|
-
##
|
|
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
|
-
- **
|
|
130
|
-
-
|
|
131
|
-
-
|
|
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
|
-
|