@jakkrichm/create-nexus-devflow 2.0.25 → 2.1.0

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 (147) hide show
  1. package/README.md +30 -8
  2. package/dist/bin/create-nexus-devflow.d.ts +22 -1
  3. package/dist/bin/create-nexus-devflow.js +658 -11
  4. package/dist/bin/create-nexus-devflow.js.map +1 -1
  5. package/dist/lib/branch-context.d.ts +39 -0
  6. package/dist/lib/branch-context.js +196 -0
  7. package/dist/lib/branch-context.js.map +1 -0
  8. package/dist/lib/code-graph.d.ts +30 -0
  9. package/dist/lib/code-graph.js +209 -0
  10. package/dist/lib/code-graph.js.map +1 -0
  11. package/dist/lib/command-catalog.d.ts +11 -0
  12. package/dist/lib/command-catalog.js +63 -0
  13. package/dist/lib/command-catalog.js.map +1 -0
  14. package/dist/lib/context-slicer.d.ts +31 -0
  15. package/dist/lib/context-slicer.js +234 -0
  16. package/dist/lib/context-slicer.js.map +1 -0
  17. package/dist/lib/current-work.js +97 -49
  18. package/dist/lib/current-work.js.map +1 -1
  19. package/dist/lib/dashboard-page.d.ts +2 -0
  20. package/dist/lib/dashboard-page.js +285 -0
  21. package/dist/lib/dashboard-page.js.map +1 -0
  22. package/dist/lib/dashboard-snapshot.d.ts +62 -0
  23. package/dist/lib/dashboard-snapshot.js +114 -0
  24. package/dist/lib/dashboard-snapshot.js.map +1 -0
  25. package/dist/lib/dashboard.d.ts +2 -0
  26. package/dist/lib/dashboard.js +398 -8
  27. package/dist/lib/dashboard.js.map +1 -1
  28. package/dist/lib/discoveries.d.ts +19 -0
  29. package/dist/lib/discoveries.js +81 -0
  30. package/dist/lib/discoveries.js.map +1 -0
  31. package/dist/lib/doctor.d.ts +26 -0
  32. package/dist/lib/doctor.js +474 -0
  33. package/dist/lib/doctor.js.map +1 -0
  34. package/dist/lib/drift-reconciler.d.ts +38 -0
  35. package/dist/lib/drift-reconciler.js +155 -0
  36. package/dist/lib/drift-reconciler.js.map +1 -0
  37. package/dist/lib/findings.d.ts +26 -2
  38. package/dist/lib/findings.js +165 -1
  39. package/dist/lib/findings.js.map +1 -1
  40. package/dist/lib/gatekeeper.d.ts +20 -0
  41. package/dist/lib/gatekeeper.js +106 -0
  42. package/dist/lib/gatekeeper.js.map +1 -0
  43. package/dist/lib/git-hooks.d.ts +16 -0
  44. package/dist/lib/git-hooks.js +103 -0
  45. package/dist/lib/git-hooks.js.map +1 -0
  46. package/dist/lib/history.d.ts +6 -1
  47. package/dist/lib/history.js +98 -11
  48. package/dist/lib/history.js.map +1 -1
  49. package/dist/lib/ide-extension.d.ts +38 -0
  50. package/dist/lib/ide-extension.js +61 -0
  51. package/dist/lib/ide-extension.js.map +1 -0
  52. package/dist/lib/ideas.d.ts +26 -0
  53. package/dist/lib/ideas.js +179 -0
  54. package/dist/lib/ideas.js.map +1 -0
  55. package/dist/lib/mcp.d.ts +36 -0
  56. package/dist/lib/mcp.js +653 -0
  57. package/dist/lib/mcp.js.map +1 -0
  58. package/dist/lib/status.d.ts +3 -1
  59. package/dist/lib/status.js +60 -6
  60. package/dist/lib/status.js.map +1 -1
  61. package/dist/lib/swarm-orchestrator.d.ts +31 -0
  62. package/dist/lib/swarm-orchestrator.js +134 -0
  63. package/dist/lib/swarm-orchestrator.js.map +1 -0
  64. package/dist/lib/update.js +2 -2
  65. package/dist/lib/update.js.map +1 -1
  66. package/dist/lib/version-check.d.ts +22 -0
  67. package/dist/lib/version-check.js +59 -0
  68. package/dist/lib/version-check.js.map +1 -0
  69. package/dist/lib/webview-studio.d.ts +8 -0
  70. package/dist/lib/webview-studio.js +463 -0
  71. package/dist/lib/webview-studio.js.map +1 -0
  72. package/dist/lib/workflow-state.d.ts +23 -0
  73. package/dist/lib/workflow-state.js +128 -0
  74. package/dist/lib/workflow-state.js.map +1 -0
  75. package/dist/scripts/prepare-template.js +3 -3
  76. package/package.json +1 -1
  77. package/template/{.claude/skills/00-discover → .agents/skills/00-explore}/SKILL.md +10 -10
  78. package/template/.agents/skills/10-define/SKILL.md +4 -4
  79. package/template/.agents/skills/20-spec/SKILL.md +2 -3
  80. package/template/.agents/skills/30-plan/SKILL.md +2 -3
  81. package/template/.agents/skills/40-execute/SKILL.md +2 -2
  82. package/template/.agents/skills/50-verify/SKILL.md +2 -2
  83. package/template/.agents/skills/60-report/SKILL.md +3 -3
  84. package/template/{.claude/skills/70-release → .agents/skills/70-deliver}/SKILL.md +7 -13
  85. package/template/.agents/skills/adopt/SKILL.md +136 -73
  86. package/template/.agents/skills/audit/SKILL.md +275 -0
  87. package/template/.agents/skills/autopilot/SKILL.md +228 -147
  88. package/template/.agents/skills/brainstorm/SKILL.md +3 -3
  89. package/template/.agents/skills/brief/SKILL.md +74 -51
  90. package/template/.agents/skills/check/SKILL.md +96 -76
  91. package/template/.agents/skills/ci/SKILL.md +140 -61
  92. package/template/.agents/skills/complete/SKILL.md +156 -101
  93. package/template/.agents/skills/convert-any-to-md/SKILL.md +2 -2
  94. package/template/.agents/skills/debug/SKILL.md +124 -49
  95. package/template/.agents/skills/devflow/SKILL.md +16 -10
  96. package/template/.agents/skills/discovery/SKILL.md +166 -0
  97. package/template/.agents/skills/doctor/SKILL.md +188 -72
  98. package/template/.agents/skills/feature/SKILL.md +195 -102
  99. package/template/.agents/skills/fix/SKILL.md +41 -90
  100. package/template/.agents/skills/idea/SKILL.md +3 -3
  101. package/template/.agents/skills/implement/SKILL.md +189 -46
  102. package/template/.agents/skills/onboard/SKILL.md +215 -85
  103. package/template/.agents/skills/overview/SKILL.md +51 -85
  104. package/template/.agents/skills/prototype/SKILL.md +82 -27
  105. package/template/.agents/skills/release/SKILL.md +160 -0
  106. package/template/.agents/skills/report-html/SKILL.md +2 -2
  107. package/template/.agents/skills/rollback/SKILL.md +123 -77
  108. package/template/.agents/skills/status/SKILL.md +109 -0
  109. package/template/.agents/skills/test/SKILL.md +2 -2
  110. package/template/.agents/skills/tests/SKILL.md +126 -0
  111. package/template/.agents/skills/try/SKILL.md +77 -65
  112. package/template/{.agents/skills/00-discover → .claude/skills/00-explore}/SKILL.md +9 -9
  113. package/template/.claude/skills/10-define/SKILL.md +2 -2
  114. package/template/.claude/skills/20-spec/SKILL.md +1 -1
  115. package/template/.claude/skills/30-plan/SKILL.md +1 -1
  116. package/template/.claude/skills/60-report/SKILL.md +1 -1
  117. package/template/{.agents/skills/70-release → .claude/skills/70-deliver}/SKILL.md +6 -12
  118. package/template/.claude/skills/adopt/SKILL.md +2 -2
  119. package/template/.claude/skills/audit/SKILL.md +141 -0
  120. package/template/.claude/skills/autopilot/SKILL.md +74 -52
  121. package/template/.claude/skills/brief/SKILL.md +67 -45
  122. package/template/.claude/skills/ci/SKILL.md +1 -1
  123. package/template/.claude/skills/complete/SKILL.md +1 -1
  124. package/template/.claude/skills/debug/SKILL.md +1 -1
  125. package/template/.claude/skills/devflow/SKILL.md +7 -7
  126. package/template/.claude/skills/discovery/SKILL.md +145 -0
  127. package/template/.claude/skills/doctor/SKILL.md +1 -1
  128. package/template/.claude/skills/feature/SKILL.md +67 -18
  129. package/template/.claude/skills/fix/SKILL.md +1 -1
  130. package/template/.claude/skills/idea/SKILL.md +2 -2
  131. package/template/.claude/skills/onboard/SKILL.md +3 -3
  132. package/template/.claude/skills/overview/SKILL.md +39 -88
  133. package/template/.claude/skills/prototype/SKILL.md +1 -1
  134. package/template/.claude/skills/release/SKILL.md +171 -0
  135. package/template/.claude/skills/rollback/SKILL.md +2 -2
  136. package/template/AGENTS.md +5 -5
  137. package/template/devflow/build-plan.md +62 -0
  138. package/template/devflow/context/ai-interaction.md +4 -4
  139. package/template/devflow/context/coding-standards.md +3 -3
  140. package/template/devflow/context/current-stage.md +1 -1
  141. package/template/devflow/context/findings.md +1 -1
  142. package/template/devflow/history/HISTORY.md +2 -2
  143. package/template/devflow/project-plan.md +79 -0
  144. package/template/devflow/reference/mockup.html +476 -0
  145. package/template/devflow/reference/project-overview-template.md +39 -0
  146. package/template/devflow/reference/running-id-contract.md +24 -2
  147. package/template/devflow/reference/studio.html +504 -0
@@ -1,114 +1,80 @@
1
1
  ---
2
2
  name: overview
3
- description: "[Devflow] Scan codebase architecture, data models, and shipped history to synthesize or refresh devflow/context/project-overview.md as the living source of truth."
3
+ description: "[devflow][B] Distill user-owned planning docs into `devflow/context/project-overview.md` using a deterministic compiler. The overview is the living source of truth that agents read every session."
4
4
  ---
5
5
 
6
- # overview - Living Context Synthesis & Sync
6
+ # overview - dynamic project overview compiler
7
7
 
8
- Where this sits in the workflow:
8
+ ## Position in workflow
9
9
 
10
10
  ```text
11
- codebase + devflow/history/HISTORY.md -> [overview] -> devflow/context/project-overview.md -> 00-discover / 10-define / 20-spec
12
- (reality & shipped runs) (sync & (living source of truth) (informed planning)
13
- synthesize)
11
+ project-plan.md + build-plan.md + history + codebase signals
12
+ -> scripts/overview.ts
13
+ -> devflow/context/project-overview.md
14
+ -> /feature / fix / check / complete
14
15
  ```
15
16
 
16
- `overview` is the context synchronization and synthesis engine for Nexus-DevFlow. It inspects the actual codebase (manifest, dependencies, directory layout, models/schemas, entry points) along with the completed delivery history (`devflow/history/HISTORY.md` and `devflow/history/`) to build or refresh `devflow/context/project-overview.md`.
17
+ `/overview` updates the living context from planning documents and runtime signals.
17
18
 
18
- It ensures that `project-overview.md` remains a **Living Source of Truth** that evolves alongside your software, rather than a stale artifact left behind after onboarding.
19
+ ## Input
19
20
 
20
- ## Usage
21
+ - `devflow/project-plan.md` - Product vision, users, stack, constraints, roadmap
22
+ - `devflow/build-plan.md` - Ordered checkbox feature queue
23
+ - `devflow/history/HISTORY.md` - Shipped capability context
24
+ - `devflow/ideas.md` - Current idea pressure and backlog pulse
25
+ - `package.json` (if present) - Verified commands and language/tooling signals
21
26
 
22
- ```text
23
- /overview
24
- $overview
25
- overview
26
- ```
27
-
28
- Use this when:
29
- - Multiple delivery runs (`xxx-slug`) have shipped and `project-overview.md` needs to reflect newly added capabilities.
30
- - New database schemas, ORM models, or API boundaries were introduced.
31
- - Major dependencies or architectural patterns were added or modified.
32
- - After completing `70-release` to keep project context perfectly aligned.
33
- - Preparing for a new initiative or discovery pass.
34
-
35
- ---
36
-
37
- ## Process
38
-
39
- ### Step 1 - Scan Reality (Codebase Survey)
40
-
41
- Inspect the actual codebase to establish hard facts:
42
-
43
- 1. **Manifest & Tooling**:
44
- - Read `package.json`, `pyproject.toml`, `go.mod`, `Cargo.toml`, `pom.xml`, or `Gemfile`.
45
- - Identify language versions, primary framework, state management, and build tools.
46
- 2. **Directory Architecture**:
47
- - Map high-level directory layout (`src/`, `app/`, `api/`, `lib/`, `components/`, etc.).
48
- - Identify major modules, entry points, and routing conventions.
49
- 3. **Concrete Data Models & Schemas**:
50
- - Search for ORM schemas (`schema.prisma`, Drizzle schemas, TypeORM entities, SQLAlchemy models, Zod schemas, or core TypeScript types).
51
- - Extract entity names, core fields, relationships, and invariants.
52
- 4. **Verified Commands**:
53
- - Inspect package scripts (`dev`, `build`, `test`, `lint`, `check`, `verify`).
54
-
55
- ---
56
-
57
- ### Step 2 - Scan History (Delivered Capabilities)
58
-
59
- Inspect DevFlow history records:
60
-
61
- 1. Read `devflow/history/HISTORY.md` for completed and released milestones.
62
- 2. Scan completed delivery runs in `devflow/history/features/`, `devflow/history/fixes/`, and `devflow/history/rollbacks/` to extract shipped user-visible capabilities and core system features.
63
-
64
- ---
27
+ If either primary plan file is missing or still placeholder-only, stop and ask for
28
+ actual planning content first.
65
29
 
66
- ### Step 3 - Synthesize `project-overview.md`
30
+ ## Step 1 - read and validate planning docs
67
31
 
68
- Write or update `devflow/context/project-overview.md` following standard structure:
32
+ 1. Read `devflow/project-plan.md` and `devflow/build-plan.md`.
33
+ 2. Validate shape:
34
+ - `build-plan.md` must be a checkbox list in tracked order (`- [ ]`, `- [x]`).
35
+ - plan items must be feature-sized and executable by `/feature`.
36
+ - unresolved feature mismatch between plan and overview is reported in the final note.
69
37
 
70
- ```markdown
71
- # Project Overview & Source of Truth
38
+ ### Stub plan hard-stop (existing contract)
72
39
 
73
- > Living context artifact automatically synchronized with codebase reality and DevFlow delivery history.
40
+ - If `build-plan.md` is still a template stub but `project-plan.md` contains real features,
41
+ **do not** generate a fake overview from `project-plan.md` alone.
42
+ - Offer normalization first, then ask for approval before writing.
74
43
 
75
- ## 1. Project Purpose & Target Users
76
- - High-level summary of what the system does, who it serves, and the core problem it solves.
44
+ ## Step 2 - compile overview payload
77
45
 
78
- ## 2. Architecture & Directory Layout
79
- - Visual directory layout tree with short descriptions for major modules and boundaries.
46
+ Run:
80
47
 
81
- ## 3. Technology Stack & Key Tooling
82
- - Frontend, Backend, Database, ORM, Testing frameworks, CI/CD, and Package Manager.
48
+ ```bash
49
+ npm run overview
50
+ ```
83
51
 
84
- ## 4. Concrete Data Models & Entities
85
- - Field-level definitions of major entities, types, and relationships.
52
+ The compiler writes:
86
53
 
87
- ## 5. Shipped Capabilities & Key Modules
88
- - Consolidated list of active features and subsystems verified in the codebase.
54
+ - purpose + architecture summary (from `project-plan.md`)
55
+ - ordered queue (from `build-plan.md`)
56
+ - shipped features snapshot (from `devflow/history/HISTORY.md`)
57
+ - idea status and backlog pulse (from `devflow/ideas.md`)
58
+ - stack/tooling context (from project root signals)
89
59
 
90
- ## 6. Verified Commands & Developer Workflow
91
- - Exact commands for Dev, Build, Test, Lint, and Verify.
60
+ The generated output follows `devflow/reference/project-overview-template.md`.
92
61
 
93
- ## 7. Known Architectural Focus Areas
94
- - Known technical debt, active migrations, or upcoming architectural focus points.
95
- ```
62
+ ## Step 3 - output and report
96
63
 
97
- ---
64
+ After compilation:
98
65
 
99
- ### Step 4 - Review & Report
66
+ - report what changed in structure and which sections are now `TODO`
67
+ - list conflicts or unresolved questions between the two plans
68
+ - suggest `/feature` as the next action when the queue is ready
100
69
 
101
- Present a concise summary of the sync:
102
- - Models or entities detected and added
103
- - Shipped capabilities refreshed from history
104
- - Stack and tooling updates
105
- - Any inconsistencies or gaps found between code and documentation
70
+ ## Rules
106
71
 
107
- ---
72
+ - `project-overview.md` is generated, not authored manually.
73
+ - Do not invent features, data models, or stack claims not sourced from inputs.
74
+ - Keep user-owned plans intact unless the user explicitly approved normalization.
75
+ - Re-run `/overview` whenever plan docs or shipped-history change materially.
108
76
 
109
- ## Rules & Guardrails
77
+ ## Formatting
110
78
 
111
- 1. **Grounded in Reality**: Never invent non-existent packages, fictional data models, or unverified endpoints. Everything in `project-overview.md` must be traceable to real code or recorded history.
112
- 2. **Preserve User Intent**: Do not erase custom business rules or user-written notes. Integrate new facts smoothly around existing intent.
113
- 3. **Concrete Over Vague**: Provide actual model names, field types, and route paths rather than vague one-line summaries.
114
- 4. **Non-Destructive**: `overview` only writes to `devflow/context/project-overview.md`. It never modifies source code, runs migrations, or touches git history.
79
+ - Use concise lists and tables for matrices.
80
+ - Follow `devflow/context/ai-interaction.md` language and tone conventions.
@@ -1,44 +1,99 @@
1
1
  ---
2
2
  name: prototype
3
- description: "[Devflow] Build a throwaway prototype to answer a design question during Discover, Define, Spec, Research, or Plan."
4
- disable-model-invocation: true
3
+ description: "[devflow][B] Interactively prototype the look of a project. Asks about the desired look and feel and which pages to draft, proposes a plan, and only then writes throwaway static HTML/CSS mockups to prototypes/ that share one theme (a set of CSS theme variables). A plan-first, pre-build helper that sits outside the spec-driven feature loop, like scaffolding. Use when the user runs /prototype, names screens to mock up, or asks to prototype the layout, theme, or look and feel."
5
4
  ---
6
5
 
7
- # Prototype
6
+ # prototype - lock the look before you build
8
7
 
9
- A prototype is throwaway code that answers one question.
8
+ Where this sits in the workflow:
10
9
 
11
- Use this support skill behind `Research`, `Brainstorm`, `00-discover`, `10-define`, `20-spec`, or `30-plan` when conversation alone cannot settle the uncertainty.
10
+ plan -> /overview -> [prototype] -> /feature -> build
11
+ (you (project- (lock the (one spec (real
12
+ write) overview.md) look) at a time) code)
12
13
 
13
- ## Branches
14
+ Prototyping is a pre-build step, not a feature. It's fast, visual, and throwaway.
15
+ Its one durable output is the theme: a set of CSS theme variables that port into
16
+ the real app's `globals.css` `@theme` when you build the first UI feature.
17
+ Everything else here gets discarded.
14
18
 
15
- Choose one:
19
+ **This skill is plan-first.** Gather the look and the page list, agree on a plan,
20
+ and only then write any files. Never generate mockups before the user approves.
16
21
 
17
- - **Logic prototype**: use when the question is about state, business rules, parsing, scheduling, or algorithm behavior.
18
- - **UI prototype**: use when the question is about interaction, visual hierarchy, layout, or user flow.
22
+ ## Step 1 - read what the plan already says
19
23
 
20
- If the branch is ambiguous, state the assumption and choose the one closest to the surrounding code.
24
+ Pull the stated look and feel and the screen/route list from
25
+ `devflow/context/project-overview.md` (its UI/UX section); fall back to the UI/UX section
26
+ of `devflow/project-plan.md` if the overview isn't generated yet. Use this
27
+ as the starting point, so you're refining the user's intent, not asking from
28
+ scratch.
21
29
 
22
- ## Rules
30
+ ## Step 2 - ask about the look and the pages
23
31
 
24
- - Mark it as throwaway.
25
- - Keep it close to the relevant module or task workspace.
26
- - Provide one command to run it.
27
- - Avoid persistence unless the question is specifically about persistence.
28
- - Skip polish, broad error handling, and abstractions.
29
- - Show state clearly after each action or variant switch.
30
- - Delete, absorb, or explicitly mark the prototype after it answers the question.
32
+ Work in plan mode. Ask the user a short set of questions (use the current tool's
33
+ short user-input prompt for discrete choices when available), seeded with what
34
+ the plan already says:
31
35
 
32
- ## Durable Capture
36
+ - **Look and feel** - confirm or adjust the vibe (light/dark, minimal/rich,
37
+ density, editor-like, and so on), and ask for any reference apps or sites they
38
+ want it to feel like.
39
+ - **Color and type** - any accent color or font direction (for example,
40
+ mono-forward for code).
41
+ - **Which pages** - which screens to draft now. Default to the key routes from the
42
+ plan; let the user add, drop, or reorder. Lean to a few, not every screen.
33
43
 
34
- The answer is the artifact worth keeping.
44
+ Keep it short. The user's answers, plus the plan, are the brief for the mockups.
35
45
 
36
- Capture:
46
+ ## Step 3 - propose the plan, then wait
37
47
 
38
- - the question
39
- - prototype path and command
40
- - what was learned
41
- - decision or remaining uncertainty
42
- - next DevFlow route
48
+ Present a short plan and stop for approval:
43
49
 
44
- Use an ADR only if the prototype resolves a hard-to-reverse, surprising trade-off.
50
+ - the theme direction in a sentence or two (the vibe, accent, fonts), and
51
+ - the list of screens you'll mock, one line each on what each will show (the real
52
+ states that exercise the theme, not empty shells).
53
+
54
+ Write nothing until the user approves. Adjust the plan if they push back.
55
+
56
+ ## Step 4 - lock one theme
57
+
58
+ Once approved, write a single shared `prototypes/theme.css` that defines the theme
59
+ as CSS variables, following `reference/theme-variables.css`: surfaces, text,
60
+ accent, any component-specific states, font stacks, and a small scale. Derive the
61
+ values from the agreed brief.
62
+
63
+ This file is the deliverable. Keep it the single source of the theme, so tweaking
64
+ it restyles every mockup at once.
65
+
66
+ ## Step 5 - mock each screen
67
+
68
+ For each approved screen, write a self-contained `prototypes/<screen>.html` that
69
+ links `theme.css` and lays out that screen with realistic dummy content and the
70
+ states that matter (a typing page mid-type with correct/wrong/pending chars and a
71
+ caret; a dashboard with believable stats and history rows; and so on).
72
+
73
+ - Plain HTML + CSS only. No framework, no build step. A few lines of inline JS for
74
+ a view toggle is fine; nothing more.
75
+ - Pull every color, font, and spacing value from the `theme.css` variables, never
76
+ hard-coded. That's what keeps the look consistent and portable.
77
+ - Realistic placeholder content over lorem ipsum. Desktop-first is enough.
78
+
79
+ ## Then stop
80
+
81
+ Tell the user to open the files in a browser and iterate on the look. Point them
82
+ at the concrete next step: run `/feature` on the first UI feature - it detects
83
+ `prototypes/`, links these mockups as the spec's Design reference, and makes
84
+ porting `theme.css` into the app's `@theme` its first build step. When the theme
85
+ feels right the tokens carry into the real stylesheet; the HTML mockups are
86
+ reference and get discarded at that feature's `/complete`.
87
+
88
+ **Commit `prototypes/`, do not ignore it.** `theme.css` is the durable output and
89
+ until it is ported it lives nowhere else, and the mockups are the build reference
90
+ the next feature needs - both must survive a context clear or a switch between
91
+ machines. So do not add `prototypes/` to `.gitignore`; it is short-lived in git
92
+ (born here, discarded at the first UI feature's `/complete`), not throwaway that
93
+ never lands. This skill locks the look, it does not build the app.
94
+
95
+ ## Formatting
96
+
97
+ Format the output to match the project's conventions in
98
+ `devflow/context/ai-interaction.md`: concise, scannable markdown, with lists for
99
+ enumerations and tables for matrices rather than dense paragraphs.
@@ -0,0 +1,160 @@
1
+ ---
2
+ name: release
3
+ description: "[devflow][B] Prepare a Blueprint project for deployment to Render or Vercel. Reads the plans, project commands, app config, and current repo state; verifies build, start, output, env, health checks, and provider config; can create or update render.yaml or vercel.json when requested; and stops before any external deploy, service creation, remote env change, push, publish, or destructive action unless the user explicitly approves. Use when the user runs /release, invokes $release, asks for Render setup, Vercel setup, deploy readiness, deployment config, render.yaml, or vercel.json."
4
+ ---
5
+
6
+ # release - deployment readiness for Render and Vercel
7
+
8
+ Where this sits in the workflow:
9
+
10
+ /complete -> [release] -> deploy with explicit approval
11
+ (feature (config, (human confirms
12
+ finished) checks) external action)
13
+
14
+ `/release` is an optional deployment prep step. It gets the app ready to ship,
15
+ but it is not a deploy button. It can inspect, recommend, create local config
16
+ files, and run local checks. It must stop before any external provider action
17
+ unless the user gives an explicit yes in the current chat.
18
+
19
+ Initial targets:
20
+
21
+ - **Render** - static sites, web services, background workers, cron jobs, and
22
+ `render.yaml` when useful.
23
+ - **Vercel** - frontend apps, full-stack framework apps, serverless functions,
24
+ and `vercel.json` when useful.
25
+
26
+ ## Input
27
+
28
+ Optional scope:
29
+
30
+ - no argument: inspect the project and recommend Render or Vercel if the target
31
+ is obvious; otherwise ask which target to prepare
32
+ - `render`: prepare Render readiness and config
33
+ - `vercel`: prepare Vercel readiness and config
34
+ - `check`: read-only deployment readiness report
35
+ - `config`: focus on creating or updating local provider config files
36
+
37
+ If the user asks to deploy, connect a provider, create a remote service, set
38
+ remote env vars, push, publish, or run provider commands that affect a remote,
39
+ pause and ask for explicit confirmation before doing it.
40
+
41
+ ## Step 1 - read the project
42
+
43
+ Read:
44
+
45
+ - `AGENTS.md`
46
+ - `devflow/project-plan.md`
47
+ - `devflow/build-plan.md`
48
+ - `devflow/context/project-overview.md`
49
+ - `devflow/context/current-feature.md`
50
+ - package or build files such as `package.json`, lockfiles, framework config,
51
+ Dockerfile, `render.yaml`, `vercel.json`, `.env.example`, and README files
52
+ - git branch and working tree status
53
+
54
+ Identify:
55
+
56
+ - app type: static frontend, SSR app, API service, worker, CLI, monorepo, or
57
+ hybrid
58
+ - build command, start command, dev command, test command, output directory, and
59
+ package manager
60
+ - runtime needs: Node version, Python version, Docker, database, cache, object
61
+ storage, queues, background jobs, cron, migrations, or file uploads
62
+ - env vars by name only; never print or write secret values
63
+ - health path or smoke test path
64
+
65
+ ## Step 2 - choose the provider shape
66
+
67
+ For **Render**, decide whether the app should be:
68
+
69
+ - static site
70
+ - web service
71
+ - background worker
72
+ - cron job
73
+ - database paired with a service
74
+
75
+ For **Vercel**, decide whether the app should be:
76
+
77
+ - framework deployment with auto-detected settings
78
+ - static output deployment
79
+ - serverless or edge function app
80
+ - monorepo project with a root directory
81
+
82
+ If the provider is a poor fit, say that plainly and recommend the better target.
83
+ Examples: long-running workers usually fit Render better; a mostly frontend
84
+ Next.js or Astro site usually fits Vercel well.
85
+
86
+ ## Step 3 - verify local readiness
87
+
88
+ Run only local, non-destructive checks that match `AGENTS.md`:
89
+
90
+ - install check only if dependencies are already present or the user approves an
91
+ install
92
+ - build command
93
+ - test command when declared
94
+ - preview or start command if safe, then smoke test the health path
95
+ - lint or typecheck only when listed in project commands or package scripts
96
+
97
+ If a command is missing, report the gap instead of inventing certainty. If a
98
+ command needs secrets, list the env var names needed and skip that check.
99
+
100
+ ## Step 4 - prepare local config
101
+
102
+ Only create or update local config files when the target is clear or the user
103
+ asked for config.
104
+
105
+ For **Render**, prefer `render.yaml` when the app needs repeatable setup or has
106
+ more than one service. Include:
107
+
108
+ - service type
109
+ - build command
110
+ - start command for web services
111
+ - static publish path for static sites
112
+ - health check path when known
113
+ - env var names without values
114
+ - region or plan only if the user specified it
115
+
116
+ For **Vercel**, create `vercel.json` only when the defaults are not enough.
117
+ Many Vercel projects need no config file. Include:
118
+
119
+ - build command only when it differs from defaults
120
+ - output directory only when needed
121
+ - rewrites or headers only when the app requires them
122
+ - install command only when the package manager cannot be inferred
123
+
124
+ For both providers:
125
+
126
+ - update `.env.example` with required names when useful
127
+ - add a short deployment note to README only if the project already has a
128
+ deployment section or the user asks
129
+ - never write secret values
130
+
131
+ ## Step 5 - report the release packet
132
+
133
+ Finish with a concise packet:
134
+
135
+ - **Target** - Render or Vercel, and why
136
+ - **Shape** - static site, web service, framework app, worker, or hybrid
137
+ - **Config changed** - files created or edited, or "none"
138
+ - **Checks run** - commands and result
139
+ - **Env needed** - names only
140
+ - **Smoke test** - exact path or command to verify after deploy
141
+ - **Blockers** - anything that must be fixed before shipping
142
+ - **Next action** - exact command or provider step, stopping before external
143
+ action unless approved
144
+
145
+ ## Rules
146
+
147
+ - Optional only. Do not add `/release` to the mandatory build loop.
148
+ - Do not deploy, create remote services, set remote env vars, push, publish, or
149
+ transmit externally without explicit approval in the current chat.
150
+ - Do not write secret values to files or chat.
151
+ - Do not hide failing builds, missing env vars, or unknown output paths.
152
+ - Do not add provider config if the platform defaults are better.
153
+ - Keep the change small. Deployment setup should not become a full DevOps
154
+ framework.
155
+
156
+ ## Formatting
157
+
158
+ Format the output to match the project's conventions in
159
+ `devflow/context/ai-interaction.md`: concise, scannable markdown, with lists for
160
+ enumerations and tables for matrices rather than dense paragraphs.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: report-html
3
- description: "[Devflow] Standalone HTML Report Generator - render an interactive standalone HTML dashboard from current-feature.md or 60-report.md on demand."
3
+ description: "[devflow][B] Standalone HTML Report Generator - render an interactive standalone HTML dashboard from current-feature.md or 60-report.md on demand."
4
4
  argument-hint: "{running-id or workspace path}"
5
5
  ---
6
6
 
@@ -42,4 +42,4 @@ Or execute the renderer to transform Markdown into a styled, standalone HTML doc
42
42
  Provide:
43
43
  - Generated HTML file path: `file:///devflow/runs/{RUNNING_ID}/report.html`
44
44
  - Summary of sections rendered (Spec, Plan, Progress, QA Evidence, Release Notes)
45
- - Instructions to open the file in any browser
45
+ - Instructions to open the file in any browser