@jakkrichm/create-nexus-devflow 2.8.0 → 2.9.3

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 (87) hide show
  1. package/dist/bin/create-nexus-devflow.d.ts +7 -3
  2. package/dist/bin/create-nexus-devflow.js +237 -4
  3. package/dist/bin/create-nexus-devflow.js.map +1 -1
  4. package/dist/lib/dashboard-page.d.ts +1 -1
  5. package/dist/lib/dashboard-page.js +76 -0
  6. package/dist/lib/dashboard-page.js.map +1 -1
  7. package/dist/lib/doctor.js +40 -0
  8. package/dist/lib/doctor.js.map +1 -1
  9. package/dist/lib/project-config.d.ts +1 -1
  10. package/dist/lib/project-config.js +4 -1
  11. package/dist/lib/project-config.js.map +1 -1
  12. package/dist/lib/run-state.d.ts +39 -0
  13. package/dist/lib/run-state.js +203 -0
  14. package/dist/lib/run-state.js.map +1 -0
  15. package/dist/lib/skill-manager.d.ts +73 -0
  16. package/dist/lib/skill-manager.js +510 -0
  17. package/dist/lib/skill-manager.js.map +1 -0
  18. package/dist/lib/status.d.ts +4 -1
  19. package/dist/lib/status.js +49 -3
  20. package/dist/lib/status.js.map +1 -1
  21. package/dist/lib/webview-studio.js +169 -47
  22. package/dist/lib/webview-studio.js.map +1 -1
  23. package/package.json +2 -2
  24. package/template/.agents/skills/adopt/SKILL.md +4 -0
  25. package/template/.agents/skills/audit/SKILL.md +4 -0
  26. package/template/.agents/skills/autopilot/SKILL.md +4 -0
  27. package/template/.agents/skills/check/SKILL.md +4 -0
  28. package/template/.agents/skills/ci/SKILL.md +4 -0
  29. package/template/.agents/skills/complete/SKILL.md +7 -1
  30. package/template/.agents/skills/continuous/SKILL.md +4 -0
  31. package/template/.agents/skills/debug/SKILL.md +4 -0
  32. package/template/.agents/skills/devflow/SKILL.md +6 -1
  33. package/template/.agents/skills/discovery/SKILL.md +10 -1
  34. package/template/.agents/skills/feature/SKILL.md +4 -0
  35. package/template/.agents/skills/fix/SKILL.md +4 -0
  36. package/template/.agents/skills/implement/SKILL.md +4 -0
  37. package/template/.agents/skills/onboard/SKILL.md +4 -0
  38. package/template/.agents/skills/overview/SKILL.md +4 -0
  39. package/template/.agents/skills/prototype/SKILL.md +4 -0
  40. package/template/.agents/skills/release/SKILL.md +4 -0
  41. package/template/.agents/skills/rollback/SKILL.md +18 -5
  42. package/template/.agents/skills/status/SKILL.md +7 -0
  43. package/template/.agents/skills/tests/SKILL.md +4 -0
  44. package/template/.claude/skills/adopt/SKILL.md +4 -0
  45. package/template/.claude/skills/audit/SKILL.md +4 -0
  46. package/template/.claude/skills/autopilot/SKILL.md +4 -0
  47. package/template/.claude/skills/check/SKILL.md +4 -0
  48. package/template/.claude/skills/ci/SKILL.md +4 -0
  49. package/template/.claude/skills/complete/SKILL.md +7 -1
  50. package/template/.claude/skills/continuous/SKILL.md +4 -0
  51. package/template/.claude/skills/debug/SKILL.md +4 -0
  52. package/template/.claude/skills/devflow/SKILL.md +6 -1
  53. package/template/.claude/skills/discovery/SKILL.md +10 -1
  54. package/template/.claude/skills/feature/SKILL.md +4 -0
  55. package/template/.claude/skills/fix/SKILL.md +4 -0
  56. package/template/.claude/skills/implement/SKILL.md +4 -0
  57. package/template/.claude/skills/onboard/SKILL.md +4 -0
  58. package/template/.claude/skills/overview/SKILL.md +4 -0
  59. package/template/.claude/skills/prototype/SKILL.md +4 -0
  60. package/template/.claude/skills/release/SKILL.md +4 -0
  61. package/template/.claude/skills/rollback/SKILL.md +18 -5
  62. package/template/.claude/skills/status/SKILL.md +7 -0
  63. package/template/.claude/skills/tests/SKILL.md +4 -0
  64. package/template/AGENTS.md +24 -5
  65. package/template/LICENSE +21 -21
  66. package/template/devflow/build-plan.md +16 -0
  67. package/template/devflow/context/ai-interaction.md +25 -0
  68. package/dist/lib/antigravity-artifacts.d.ts +0 -52
  69. package/dist/lib/antigravity-artifacts.js +0 -170
  70. package/dist/lib/antigravity-artifacts.js.map +0 -1
  71. package/dist/lib/antigravity-hooks.d.ts +0 -31
  72. package/dist/lib/antigravity-hooks.js +0 -85
  73. package/dist/lib/antigravity-hooks.js.map +0 -1
  74. package/dist/lib/antigravity-plugin.d.ts +0 -51
  75. package/dist/lib/antigravity-plugin.js +0 -179
  76. package/dist/lib/antigravity-plugin.js.map +0 -1
  77. package/dist/lib/antigravity-scheduler.d.ts +0 -39
  78. package/dist/lib/antigravity-scheduler.js +0 -95
  79. package/dist/lib/antigravity-scheduler.js.map +0 -1
  80. package/dist/lib/openai-tools.d.ts +0 -34
  81. package/dist/lib/openai-tools.js +0 -57
  82. package/dist/lib/openai-tools.js.map +0 -1
  83. package/dist/lib/visual-subagent.d.ts +0 -32
  84. package/dist/lib/visual-subagent.js +0 -98
  85. package/dist/lib/visual-subagent.js.map +0 -1
  86. package/template/.agents/skills/convert-any-to-md/scripts/__pycache__/convert_any_to_md.cpython-314.pyc +0 -0
  87. package/template/.claude/skills/convert-any-to-md/scripts/__pycache__/convert_any_to_md.cpython-314.pyc +0 -0
@@ -8,6 +8,10 @@ argument-hint: "[{title, request, IDEA-xxx, or discovery-id}]"
8
8
 
9
9
  $ARGUMENTS
10
10
 
11
+ **First action:** Before project inspection, preflight, or any other tool call,
12
+ publish `running` to `devflow/.state/run.json` using the dashboard activity
13
+ contract in `AGENTS.md`.
14
+
11
15
  `/discovery` is the central discovery entry point in Nexus-DevFlow. It operates in two adaptive modes based on input scope:
12
16
  1. **🗺️ Macro Project Discovery**: Develops high-level product and build roadmap plans (`devflow/project-plan.md` & `devflow/build-plan.md`) through an adaptive conversation before `/overview`.
13
17
  2. **🔍 Micro Feature Exploration (Pre-Flight)**: Explores a specific feature, request, or idea before committing to delivery, routes through supporting lenses, and finishes with a visible `Proceed`, `Defer`, or `Reject` decision before `/feature` or `/fix`.
@@ -57,7 +61,7 @@ devflow/discoveries/{DISCOVERY_ID}-{slug}/discovery.md
57
61
  ```
58
62
  *(A Discovery ID uses the namespace `DISC-YYYYMMDD-NNN`. It is not a Running ID and does not reserve a numeric delivery run.)*
59
63
 
60
- ### 5 Supporting Routes & Built-in Lenses:
64
+ ### 6 Supporting Routes & Built-in Lenses:
61
65
 
62
66
  1. **Brainstorming Lens (Divergent & Convergent)**:
63
67
  - Formulate 2-3 viable options with trade-offs.
@@ -72,6 +76,11 @@ devflow/discoveries/{DISCOVERY_ID}-{slug}/discovery.md
72
76
  5. **Socratic Grilling & Domain Alignment Lens (`grill`)**:
73
77
  - Codebase-grounded interactive inquiry to clarify entity boundaries, data flows, and edge cases.
74
78
  - Record agreed terminology in `devflow/context/glossary.md` and major architecture decisions in `devflow/decisions/ADR-xxx-{slug}.md`.
79
+ 6. **🎨 Visual Architecture & Diagram Design Lens (`archify` / `diagram-design`)**:
80
+ - When exploring system topologies, legacy IT modernizations, sequence flows, data platform pipelines, state machines, or user journeys, check for `archify` or `diagram-design` in `.agents/skills/`.
81
+ - **For interactive system architecture, dataflows, state transitions, and sequence traces**: Use `archify` (`.agents/skills/archify/SKILL.md`) to compile validated interactive HTML artifacts with dark/light themes, motion, and route probes.
82
+ - **For editorial, business, quadrant, or broad diagram types**: Use `diagram-design` (`.agents/skills/diagram-design/SKILL.md`).
83
+ - Save diagram artifacts to `devflow/discoveries/{DISCOVERY_ID}-{slug}/diagrams/{name}.html` and reference them directly in `discovery.md`.
75
84
 
76
85
  ### Decision & Approval Gate:
77
86
  Set one visible decision:
@@ -6,6 +6,10 @@ argument-hint: "[{number, name, DISC-id, or IDEA-id}]"
6
6
 
7
7
  # feature - turn a build-plan feature into a buildable spec
8
8
 
9
+ **First action:** Before project inspection, preflight, or any other tool call,
10
+ publish `running` to `devflow/.state/run.json` using the dashboard activity
11
+ contract in `AGENTS.md`.
12
+
9
13
  Where this sits in the workflow:
10
14
 
11
15
  project-overview.md + build-plan.md -> [this skill] -> build
@@ -6,6 +6,10 @@ argument-hint: "[{title or issue-description}]"
6
6
 
7
7
  # fix - document an ad-hoc fix, then build it like anything else
8
8
 
9
+ **First action:** Before project inspection, preflight, or any other tool call,
10
+ publish `running` to `devflow/.state/run.json` using the dashboard activity
11
+ contract in `AGENTS.md`.
12
+
9
13
  Where this sits in the workflow:
10
14
 
11
15
  /fix -> /implement -> /complete -> back to your features
@@ -6,6 +6,10 @@ argument-hint: "[{run-id, number, or name}]"
6
6
 
7
7
  # implement - build the target spec, one reviewed step at a time
8
8
 
9
+ **First action:** Before project inspection, preflight, or any other tool call,
10
+ publish `running` to `devflow/.state/run.json` using the dashboard activity
11
+ contract in `AGENTS.md`.
12
+
9
13
  Where this sits in the workflow:
10
14
 
11
15
  /feature, /fix, or /rollback -> [implement] -> /complete -> next
@@ -5,6 +5,10 @@ description: "[devflow] Set up the Blueprint after overlaying it onto a freshly
5
5
 
6
6
  # onboard - finish the Blueprint overlay setup
7
7
 
8
+ **First action:** Before project inspection, preflight, or any other tool call,
9
+ publish `running` to `devflow/.state/run.json` using the dashboard activity
10
+ contract in `AGENTS.md`.
11
+
8
12
  Where this sits in the workflow:
9
13
 
10
14
  scaffold app -> overlay Blueprint -> [onboard] -> project-plan + build-plan -> /overview
@@ -5,6 +5,10 @@ description: "[devflow] Distill user-owned planning docs into `devflow/context/p
5
5
 
6
6
  # overview - dynamic project overview compiler
7
7
 
8
+ **First action:** Before project inspection, preflight, or any other tool call,
9
+ publish `running` to `devflow/.state/run.json` using the dashboard activity
10
+ contract in `AGENTS.md`.
11
+
8
12
  ## Position in workflow
9
13
 
10
14
  ```text
@@ -5,6 +5,10 @@ description: "[devflow] Interactively prototype the look of a project. Asks abou
5
5
 
6
6
  # prototype - lock the look before you build
7
7
 
8
+ **First action:** Before project inspection, preflight, or any other tool call,
9
+ publish `running` to `devflow/.state/run.json` using the dashboard activity
10
+ contract in `AGENTS.md`.
11
+
8
12
  Where this sits in the workflow:
9
13
 
10
14
  plan -> /overview -> [prototype] -> /feature -> build
@@ -5,6 +5,10 @@ description: "[devflow] Prepare a Blueprint project for deployment to Render or
5
5
 
6
6
  # release - deployment readiness for Render and Vercel
7
7
 
8
+ **First action:** Before project inspection, preflight, or any other tool call,
9
+ publish `running` to `devflow/.state/run.json` using the dashboard activity
10
+ contract in `AGENTS.md`.
11
+
8
12
  Where this sits in the workflow:
9
13
 
10
14
  /complete -> [release] -> deploy with explicit approval
@@ -5,6 +5,10 @@ description: "[devflow] Plan a safe reversal of a completed Blueprint feature us
5
5
 
6
6
  # rollback - safely reverse a completed feature
7
7
 
8
+ **First action:** Before project inspection, preflight, or any other tool call,
9
+ publish `running` to `devflow/.state/run.json` using the dashboard activity
10
+ contract in `AGENTS.md`.
11
+
8
12
  Where this sits in the workflow:
9
13
 
10
14
  completed feature + git history -> [rollback] -> /implement -> /check -> /complete
@@ -57,10 +61,16 @@ Use the archive path to locate the commit that added it:
57
61
  git log --diff-filter=A --format="%H %s" HEAD -- <archive-path>
58
62
 
59
63
  Use the newest matching commit reachable from the current branch. Confirm the
60
- archive was added by that commit, the commit has exactly one parent, and its
61
- subject and diff are consistent with the requested feature. A merge commit needs
62
- mainline selection, so stop rather than guessing. If the archive was never
63
- committed, explain that git cannot reconstruct a safe rollback from it.
64
+ archive was added by that commit and its subject and diff are consistent with the
65
+ requested feature. If the target is a merge commit, stop before Step 2 and before
66
+ writing or changing `devflow/context/{xxx-slug}/spec.md`. Do not record a
67
+ target parent or choose a mainline. Publish `blocked` to
68
+ `devflow/.state/run.json`, explain that DevFlow cannot safely infer which
69
+ merge parent represents the pre-feature state, and include the exact `/rollback`
70
+ command the user can rerun after choosing a safe remediation or mainline
71
+ strategy. `/implement` retains its merge-target stop as defense in depth. If the
72
+ archive was never committed, explain that git cannot reconstruct a safe rollback
73
+ from it.
64
74
 
65
75
  ## Step 2 - separate product changes from Blueprint history
66
76
 
@@ -108,7 +118,8 @@ remediation or explicitly plan the dependent rollbacks.
108
118
  Allocate sequential ID (`xxx-slug`) and create `devflow/context/{xxx-slug}/`. Write `devflow/context/{xxx-slug}/spec.md` using
109
119
  `reference/rollback-spec-template.md`. Also initialize `stage.md` and `findings.md` in that folder. Fill in:
110
120
 
111
- - target feature, archive, exact commit, and parent commit
121
+ - target feature and archive
122
+ - target commit and parent commit as full 40-character SHA values
112
123
  - user's reason
113
124
  - product paths introduced or changed by the target
114
125
  - protected workflow paths
@@ -142,6 +153,8 @@ spec, then run `/implement` to create the rollback branch and apply it.
142
153
  - Preserve history. Never delete or rewrite the original feature archive.
143
154
  - Plan only. This skill writes the rollback spec and nothing else.
144
155
  - One completed feature per rollback.
156
+ - Record both the target commit and its parent as full 40-character SHA values.
157
+ Each value must resolve to the recorded commit in the current repository.
145
158
  - Never use `git reset --hard`, force-push, history rewriting, or broad file
146
159
  restoration.
147
160
  - Never infer permission to cascade into later features or destroy stored data.
@@ -51,6 +51,13 @@ state.
51
51
  6. **Progress drift** - flag active task on `main`, a spec in progress but no
52
52
  matching `feature/{xxx-slug}`, `fix/{xxx-slug}`, or `rollback/{xxx-slug}` branch, all spec steps checked but
53
53
  not completed, or disagreement between `build-plan.md` and active specs.
54
+ 7. **Dashboard activity** - read `devflow/.state/run.json` when it exists.
55
+ Report the command, mode, status, progress, boundary, and safe resume command.
56
+ A missing file simply means no activity has been recorded. Invalid activity
57
+ state is a warning, not a blocker for the underlying workflow.
58
+ 8. **Onboarding check** - Before recommending `/overview`, check whether `AGENTS.md`
59
+ still contains the `<!-- devflow:onboarding-required -->` marker or standard template commands.
60
+ When it does, onboarding is incomplete and `/onboard` is the next action.
54
61
 
55
62
  ## Output
56
63
 
@@ -5,6 +5,10 @@ description: "[devflow] Add or normalize unit testing for a Blueprint project. D
5
5
 
6
6
  # tests - add unit testing to the project
7
7
 
8
+ **First action:** Before project inspection, preflight, or any other tool call,
9
+ publish `running` to `devflow/.state/run.json` using the dashboard activity
10
+ contract in `AGENTS.md`.
11
+
8
12
  Where this sits in the workflow:
9
13
 
10
14
  any time -> [tests] -> test command in AGENTS.md -> /feature + /implement use it
@@ -5,6 +5,10 @@ description: "[devflow] Bring the blueprint into an existing (brownfield) codeba
5
5
 
6
6
  # adopt - bootstrap the blueprint from an existing codebase
7
7
 
8
+ **First action:** Before project inspection, preflight, or any other tool call,
9
+ publish `running` to `devflow/.state/run.json` using the dashboard activity
10
+ contract in `AGENTS.md`.
11
+
8
12
  Where this sits in the workflow:
9
13
 
10
14
  existing codebase -> [adopt] -> project-plan + build-plan + coding-standards -> /overview -> normal loop
@@ -5,6 +5,10 @@ description: "[devflow] Read-only code audit for a Blueprint project, except for
5
5
 
6
6
  # audit - review code quality against the project standards
7
7
 
8
+ **First action:** Before project inspection, preflight, or any other tool call,
9
+ publish `running` to `devflow/.state/run.json` using the dashboard activity
10
+ contract in `AGENTS.md`.
11
+
8
12
  Where this sits in the workflow:
9
13
 
10
14
  /implement or /autopilot -> [audit] -> fixes or /complete
@@ -5,6 +5,10 @@ description: "[devflow] Optional explicit Blueprint mode for one bounded spec/bu
5
5
 
6
6
  # autopilot - optional Blueprint loop
7
7
 
8
+ **First action:** Before project inspection, preflight, or any other tool call,
9
+ publish `running` to `devflow/.state/run.json` using the dashboard activity
10
+ contract in `AGENTS.md`.
11
+
8
12
  Where this sits in the workflow:
9
13
 
10
14
  /status -> [autopilot] -> review packet -> /complete
@@ -6,6 +6,10 @@ argument-hint: "[{run-id, number, or name}]"
6
6
 
7
7
  # check - Dual-Axis Independent Verification Engine
8
8
 
9
+ **First action:** Before project inspection, preflight, or any other tool call,
10
+ publish `running` to `devflow/.state/run.json` using the dashboard activity
11
+ contract in `AGENTS.md`.
12
+
9
13
  Where this sits in the workflow:
10
14
 
11
15
  /implement -> [check] -> /complete
@@ -5,6 +5,10 @@ description: "[devflow] Set up or normalize automatic GitHub checks for a Bluepr
5
5
 
6
6
  # ci - set up automatic GitHub checks
7
7
 
8
+ **First action:** Before project inspection, preflight, or any other tool call,
9
+ publish `running` to `devflow/.state/run.json` using the dashboard activity
10
+ contract in `AGENTS.md`.
11
+
8
12
  Where this sits in the workflow:
9
13
 
10
14
  /onboard or /adopt -> [ci] -> Verify locally -> GitHub runs Verify
@@ -6,6 +6,10 @@ argument-hint: "[{run-id, number, or name}]"
6
6
 
7
7
  # complete - log the finished work, make the work commit, and deliver
8
8
 
9
+ **First action:** Before project inspection, preflight, or any other tool call,
10
+ publish `running` to `devflow/.state/run.json` using the dashboard activity
11
+ contract in `AGENTS.md`.
12
+
9
13
  Where this sits in the workflow:
10
14
 
11
15
  /feature, /fix, or /rollback -> /implement -> [complete] -> next
@@ -70,7 +74,9 @@ and records the exact target feature, archive, commit, and parent.
70
74
  **Archive resolved findings.** If `devflow/context/{xxx-slug}/findings.md` holds any
71
75
  findings, append a `## Findings` section to the archive file just written with
72
76
  every `closed`, `accepted`, or `invalid` entry at its final status (`accepted`
73
- entries keep their recorded reason).
77
+ entries keep their recorded reason). Do not archive or remove a `fixed` finding
78
+ at any severity; repaired findings must remain in the ledger until an `/audit`
79
+ re-review closes them.
74
80
 
75
81
  **Clean up run workspace.** Delete the task directory `devflow/context/{xxx-slug}/`. In Pure Multi-Run architecture, completed work leaves zero residual stubs in `devflow/context/`.
76
82
 
@@ -6,6 +6,10 @@ argument-hint: "[{resume, max-features, or start-feature}]"
6
6
 
7
7
  # continuous - Complete the Build Plan One Local Feature at a Time
8
8
 
9
+ **First action:** Before project inspection, preflight, or any other tool call,
10
+ publish `running` to `devflow/.state/run.json` using the dashboard activity
11
+ contract in `AGENTS.md`.
12
+
9
13
  Where this sits in the workflow:
10
14
 
11
15
  ```text
@@ -5,6 +5,10 @@ description: "[devflow] Diagnose a failing test, broken build, crash, error, reg
5
5
 
6
6
  # debug - 6-Phase Scientific Debugging Protocol
7
7
 
8
+ **First action:** Before project inspection, preflight, or any other tool call,
9
+ publish `running` to `devflow/.state/run.json` using the dashboard activity
10
+ contract in `AGENTS.md`.
11
+
8
12
  Where this sits in the workflow:
9
13
 
10
14
  reported failure -> [debug] -> /fix or /implement
@@ -56,6 +56,7 @@ When invoked without an argument (or when determining the next step), inspect:
56
56
  | **"Run QA verification & check"** | `check` | `/check` | **Core Loop**: `/check` -> `/complete` |
57
57
  | **"Complete run & git merge"** | `complete` | `/complete` | **Core Loop**: `/complete` |
58
58
  | **"Generate HTML dashboard report"**| `report-html` | `/report:html` | **Standalone**: Converts living spec or archive to HTML |
59
+ | **"Create editorial diagram / flowchart"**| `diagram-design`| `/diagram-design` | **Third-Party**: 39 visual diagrams (HTML/SVG) |
59
60
  | "Setup DevFlow on fresh/new project" | `onboard` | `onboard` / `setup` | `onboard` -> `/feature` |
60
61
  | "Adopt DevFlow on existing codebase" | `adopt` | `adopt` / `bootstrap` | `adopt` -> `/feature` |
61
62
  | "Check setup health & diagnostics" | `doctor` | `doctor` / `health` | `doctor` |
@@ -94,4 +95,8 @@ When invoked without an argument (or when determining the next step), inspect:
94
95
  - `report-html` - Standalone interactive HTML report dashboard
95
96
  - `debug` - Root-cause investigation without editing code
96
97
  - `rollback` - Safe reversal of completed features
97
- - `release` - Deployment readiness check
98
+ - `release` - Deployment readiness check
99
+
100
+ ### 4. Installed Third-Party Skills & Extensions
101
+ - `diagram-design` (`/diagram-design`) - 39 editorial visual diagram types (HTML/SVG) for system architecture, sequence flows, ER models, data platform pipelines, and journeys.
102
+ - *Use `nexus-devflow skill add <url>` to install more third-party skills.*
@@ -8,6 +8,10 @@ argument-hint: "[{title, request, IDEA-xxx, or discovery-id}]"
8
8
 
9
9
  $ARGUMENTS
10
10
 
11
+ **First action:** Before project inspection, preflight, or any other tool call,
12
+ publish `running` to `devflow/.state/run.json` using the dashboard activity
13
+ contract in `AGENTS.md`.
14
+
11
15
  `/discovery` is the central discovery entry point in Nexus-DevFlow. It operates in two adaptive modes based on input scope:
12
16
  1. **🗺️ Macro Project Discovery**: Develops high-level product and build roadmap plans (`devflow/project-plan.md` & `devflow/build-plan.md`) through an adaptive conversation before `/overview`.
13
17
  2. **🔍 Micro Feature Exploration (Pre-Flight)**: Explores a specific feature, request, or idea before committing to delivery, routes through supporting lenses, and finishes with a visible `Proceed`, `Defer`, or `Reject` decision before `/feature` or `/fix`.
@@ -57,7 +61,7 @@ devflow/discoveries/{DISCOVERY_ID}-{slug}/discovery.md
57
61
  ```
58
62
  *(A Discovery ID uses the namespace `DISC-YYYYMMDD-NNN`. It is not a Running ID and does not reserve a numeric delivery run.)*
59
63
 
60
- ### 5 Supporting Routes & Built-in Lenses:
64
+ ### 6 Supporting Routes & Built-in Lenses:
61
65
 
62
66
  1. **Brainstorming Lens (Divergent & Convergent)**:
63
67
  - Formulate 2-3 viable options with trade-offs.
@@ -72,6 +76,11 @@ devflow/discoveries/{DISCOVERY_ID}-{slug}/discovery.md
72
76
  5. **Socratic Grilling & Domain Alignment Lens (`grill`)**:
73
77
  - Codebase-grounded interactive inquiry to clarify entity boundaries, data flows, and edge cases.
74
78
  - Record agreed terminology in `devflow/context/glossary.md` and major architecture decisions in `devflow/decisions/ADR-xxx-{slug}.md`.
79
+ 6. **🎨 Visual Architecture & Diagram Design Lens (`archify` / `diagram-design`)**:
80
+ - When exploring system topologies, legacy IT modernizations, sequence flows, data platform pipelines, state machines, or user journeys, check for `archify` or `diagram-design` in `.claude/skills/`.
81
+ - **For interactive system architecture, dataflows, state transitions, and sequence traces**: Use `archify` (`.claude/skills/archify/SKILL.md`) to compile validated interactive HTML artifacts with dark/light themes, motion, and route probes.
82
+ - **For editorial, business, quadrant, or broad diagram types**: Use `diagram-design` (`.claude/skills/diagram-design/SKILL.md`).
83
+ - Save diagram artifacts to `devflow/discoveries/{DISCOVERY_ID}-{slug}/diagrams/{name}.html` and reference them directly in `discovery.md`.
75
84
 
76
85
  ### Decision & Approval Gate:
77
86
  Set one visible decision:
@@ -6,6 +6,10 @@ argument-hint: "[{number, name, DISC-id, or IDEA-id}]"
6
6
 
7
7
  # feature - turn a build-plan feature into a buildable spec
8
8
 
9
+ **First action:** Before project inspection, preflight, or any other tool call,
10
+ publish `running` to `devflow/.state/run.json` using the dashboard activity
11
+ contract in `AGENTS.md`.
12
+
9
13
  Where this sits in the workflow:
10
14
 
11
15
  project-overview.md + build-plan.md -> [this skill] -> build
@@ -6,6 +6,10 @@ argument-hint: "[{title or issue-description}]"
6
6
 
7
7
  # fix - document an ad-hoc fix, then build it like anything else
8
8
 
9
+ **First action:** Before project inspection, preflight, or any other tool call,
10
+ publish `running` to `devflow/.state/run.json` using the dashboard activity
11
+ contract in `AGENTS.md`.
12
+
9
13
  Where this sits in the workflow:
10
14
 
11
15
  /fix -> /implement -> /complete -> back to your features
@@ -6,6 +6,10 @@ argument-hint: "[{run-id, number, or name}]"
6
6
 
7
7
  # implement - build the target spec, one reviewed step at a time
8
8
 
9
+ **First action:** Before project inspection, preflight, or any other tool call,
10
+ publish `running` to `devflow/.state/run.json` using the dashboard activity
11
+ contract in `AGENTS.md`.
12
+
9
13
  Where this sits in the workflow:
10
14
 
11
15
  /feature, /fix, or /rollback -> [implement] -> /complete -> next
@@ -5,6 +5,10 @@ description: "[devflow] Set up the Blueprint after overlaying it onto a freshly
5
5
 
6
6
  # onboard - finish the Blueprint overlay setup
7
7
 
8
+ **First action:** Before project inspection, preflight, or any other tool call,
9
+ publish `running` to `devflow/.state/run.json` using the dashboard activity
10
+ contract in `AGENTS.md`.
11
+
8
12
  Where this sits in the workflow:
9
13
 
10
14
  scaffold app -> overlay Blueprint -> [onboard] -> project-plan + build-plan -> /overview
@@ -5,6 +5,10 @@ description: "[devflow] Distill user-owned planning docs into `devflow/context/p
5
5
 
6
6
  # overview - dynamic project overview compiler
7
7
 
8
+ **First action:** Before project inspection, preflight, or any other tool call,
9
+ publish `running` to `devflow/.state/run.json` using the dashboard activity
10
+ contract in `AGENTS.md`.
11
+
8
12
  ## Position in workflow
9
13
 
10
14
  ```text
@@ -5,6 +5,10 @@ description: "[devflow] Interactively prototype the look of a project. Asks abou
5
5
 
6
6
  # prototype - lock the look before you build
7
7
 
8
+ **First action:** Before project inspection, preflight, or any other tool call,
9
+ publish `running` to `devflow/.state/run.json` using the dashboard activity
10
+ contract in `AGENTS.md`.
11
+
8
12
  Where this sits in the workflow:
9
13
 
10
14
  plan -> /overview -> [prototype] -> /feature -> build
@@ -5,6 +5,10 @@ description: "[devflow] Prepare a Blueprint project for deployment to Render or
5
5
 
6
6
  # release - deployment readiness for Render and Vercel
7
7
 
8
+ **First action:** Before project inspection, preflight, or any other tool call,
9
+ publish `running` to `devflow/.state/run.json` using the dashboard activity
10
+ contract in `AGENTS.md`.
11
+
8
12
  Where this sits in the workflow:
9
13
 
10
14
  /complete -> [release] -> deploy with explicit approval
@@ -5,6 +5,10 @@ description: "[devflow] Plan a safe reversal of a completed Blueprint feature us
5
5
 
6
6
  # rollback - safely reverse a completed feature
7
7
 
8
+ **First action:** Before project inspection, preflight, or any other tool call,
9
+ publish `running` to `devflow/.state/run.json` using the dashboard activity
10
+ contract in `AGENTS.md`.
11
+
8
12
  Where this sits in the workflow:
9
13
 
10
14
  completed feature + git history -> [rollback] -> /implement -> /check -> /complete
@@ -57,10 +61,16 @@ Use the archive path to locate the commit that added it:
57
61
  git log --diff-filter=A --format="%H %s" HEAD -- <archive-path>
58
62
 
59
63
  Use the newest matching commit reachable from the current branch. Confirm the
60
- archive was added by that commit, the commit has exactly one parent, and its
61
- subject and diff are consistent with the requested feature. A merge commit needs
62
- mainline selection, so stop rather than guessing. If the archive was never
63
- committed, explain that git cannot reconstruct a safe rollback from it.
64
+ archive was added by that commit and its subject and diff are consistent with the
65
+ requested feature. If the target is a merge commit, stop before Step 2 and before
66
+ writing or changing `devflow/context/{xxx-slug}/spec.md`. Do not record a
67
+ target parent or choose a mainline. Publish `blocked` to
68
+ `devflow/.state/run.json`, explain that DevFlow cannot safely infer which
69
+ merge parent represents the pre-feature state, and include the exact `/rollback`
70
+ command the user can rerun after choosing a safe remediation or mainline
71
+ strategy. `/implement` retains its merge-target stop as defense in depth. If the
72
+ archive was never committed, explain that git cannot reconstruct a safe rollback
73
+ from it.
64
74
 
65
75
  ## Step 2 - separate product changes from Blueprint history
66
76
 
@@ -108,7 +118,8 @@ remediation or explicitly plan the dependent rollbacks.
108
118
  Allocate sequential ID (`xxx-slug`) and create `devflow/context/{xxx-slug}/`. Write `devflow/context/{xxx-slug}/spec.md` using
109
119
  `reference/rollback-spec-template.md`. Also initialize `stage.md` and `findings.md` in that folder. Fill in:
110
120
 
111
- - target feature, archive, exact commit, and parent commit
121
+ - target feature and archive
122
+ - target commit and parent commit as full 40-character SHA values
112
123
  - user's reason
113
124
  - product paths introduced or changed by the target
114
125
  - protected workflow paths
@@ -142,6 +153,8 @@ spec, then run `/implement` to create the rollback branch and apply it.
142
153
  - Preserve history. Never delete or rewrite the original feature archive.
143
154
  - Plan only. This skill writes the rollback spec and nothing else.
144
155
  - One completed feature per rollback.
156
+ - Record both the target commit and its parent as full 40-character SHA values.
157
+ Each value must resolve to the recorded commit in the current repository.
145
158
  - Never use `git reset --hard`, force-push, history rewriting, or broad file
146
159
  restoration.
147
160
  - Never infer permission to cascade into later features or destroy stored data.
@@ -51,6 +51,13 @@ state.
51
51
  6. **Progress drift** - flag active task on `main`, a spec in progress but no
52
52
  matching `feature/{xxx-slug}`, `fix/{xxx-slug}`, or `rollback/{xxx-slug}` branch, all spec steps checked but
53
53
  not completed, or disagreement between `build-plan.md` and active specs.
54
+ 7. **Dashboard activity** - read `devflow/.state/run.json` when it exists.
55
+ Report the command, mode, status, progress, boundary, and safe resume command.
56
+ A missing file simply means no activity has been recorded. Invalid activity
57
+ state is a warning, not a blocker for the underlying workflow.
58
+ 8. **Onboarding check** - Before recommending `/overview`, check whether `AGENTS.md`
59
+ still contains the `<!-- devflow:onboarding-required -->` marker or standard template commands.
60
+ When it does, onboarding is incomplete and `/onboard` is the next action.
54
61
 
55
62
  ## Output
56
63
 
@@ -5,6 +5,10 @@ description: "[devflow] Add or normalize unit testing for a Blueprint project. D
5
5
 
6
6
  # tests - add unit testing to the project
7
7
 
8
+ **First action:** Before project inspection, preflight, or any other tool call,
9
+ publish `running` to `devflow/.state/run.json` using the dashboard activity
10
+ contract in `AGENTS.md`.
11
+
8
12
  Where this sits in the workflow:
9
13
 
10
14
  any time -> [tests] -> test command in AGENTS.md -> /feature + /implement use it
@@ -78,12 +78,31 @@ All development tasks execute through the 4-step progressive lifecycle:
78
78
 
79
79
  ---
80
80
 
81
- ## 🌐 Standalone HTML Reporting Policy
81
+ ## 📊 Dashboard Activity State Contract
82
+
83
+ The dashboard and status reporting can show the active or most recent substantial DevFlow command from `devflow/.state/run.json`. This file is generated local state, ignored by Git, and never part of a feature commit.
84
+
85
+ Commands with meaningful progress or a durable handoff should write it when the state directory exists: `onboard`, `adopt`, `discovery`, `overview`, `feature`, `fix`, `rollback`, `implement`, `debug`, `check`, `audit`, `tests`, `ci`, `prototype`, `autopilot`, `continuous`, `complete`, and `release`. Short read-only orientation commands such as `brief`, `try`, `status`, and `doctor` do not need activity state.
86
+
87
+ Writing the initial activity record is the first action of a tracked command, before project inspection, preflight, or other tool calls. This one generated state write does not authorize product changes or bypass any safety check. Set status to `running`, use the command name and a truthful initial summary, then replace the record at meaningful milestones. On a preflight stop or another blocker, set it to `blocked` with the exact recovery command. Leave the final state in place for the next session; the next tracked command replaces it. Use this schema:
88
+
89
+ ```json
90
+ {
91
+ "schemaVersion": 1,
92
+ "command": "continuous",
93
+ "status": "running",
94
+ "summary": "Completing the remaining build plan",
95
+ "detail": "Implementing feature 3.",
96
+ "boundary": "local-only",
97
+ "startedAt": "<ISO-8601 timestamp>",
98
+ "updatedAt": "<ISO-8601 timestamp>",
99
+ "resumeCommand": "/continuous resume",
100
+ "progress": { "current": 2, "total": 5, "label": "features" },
101
+ "feature": { "id": "3", "title": "Export reports" }
102
+ }
103
+ ```
82
104
 
83
- > [!IMPORTANT]
84
- > **No Auto-Generated HTML**: Mainline flows (`/complete`) strictly output Markdown only.
85
- > When an interactive web dashboard is desired for presentation or sharing, invoke the standalone companion command:
86
- > `/report:html` (or `npm run report:html -- {ID}`).
105
+ `status` must be `running`, `blocked`, `ready`, or `completed`. Use `ready` when the command reached its intended review handoff, such as Autopilot waiting for review before `/complete`. Use `blocked` with the exact recovery command when work can resume. `boundary` must be `read-only`, `reviewed`, or `local-only`. The progress, feature, detail, boundary, and resume fields are optional. Never put secrets, raw logs, prompts, or user content in this file. Activity tracking must not change a command's approval boundaries or turn a reporting failure into a workflow failure.
87
106
 
88
107
  ---
89
108
 
package/template/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Nexus-DevFlow contributors
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Nexus-DevFlow contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -116,4 +116,20 @@
116
116
  - *Dependencies*: Feature 11, Feature 12, Feature 13
117
117
  - *Scope*: ยกเลิกไฟล์ Single Living Spec ที่ Root (`current-feature.md`, `current-stage.md`, `findings.md`) อย่างสมบูรณ์ ปรับโครงสร้างสู่ Task-Isolated Subdirectories 100% (`devflow/context/{xxx-slug}/`), อัปเกรด Agent Directives, Core Context Resolver, Scaffolding Templates และ Workflow Skills ทั้งหมด
118
118
 
119
+ ---
120
+
121
+ ## 🔄 Phase 15: Upstream AI Blueprint v1.0.0 / v1.0.1 Synchronization
122
+
123
+ - [x] **15. Sync Upstream v1.0.0 (Activity Contract, Rollback & Complete Safeguards, Local Linking)** `[Size: M]`
124
+ - *Dependencies*: Feature 14, DISC-20260828-001-sync-upstream-ai-blueprint-v100
125
+ - *Scope*: ผสาน Activity State Contract (`devflow/.state/run.json`) และ Live Dashboard Activity, เสริม Rollback 40-char SHA & Merge Commit Protection, Complete Fixed Finding Persistence, คำสั่ง `npm run link:local` / `unlink:local` พร้อม `findPackageRoot()`, Onboarding Markers และ Windows Smoke/Path Fixes
126
+
127
+ ---
128
+
129
+ ## 🖥️ Phase 16: Multi-Task Dashboard & Live Kanban Studio UI
130
+
131
+ - [x] **16. Multi-Task Dashboard & Live Kanban Studio UI (`DISC-20260828-002`)** `[Size: M]`
132
+ - *Dependencies*: Feature 14, Feature 15
133
+ - *Scope*: ปรับปรุง Full Web Dashboard (`dashboard-page.ts`) และ Live Kanban Studio (`webview-studio.ts`) ให้อ่านและวนลูปแสดงผลรายการ Task ทั้งหมดใน `status.activeRuns` จาก `devflow/context/{xxx-slug}/` พร้อม Task Progress Bar, Branch Pill, Findings Indicator และปุ่ม Quick Actions แบบเจาะจง Target Run ID
134
+
119
135