@jakkrichm/create-nexus-devflow 2.2.2 β†’ 2.6.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 (71) hide show
  1. package/README.md +58 -45
  2. package/dist/bin/create-nexus-devflow.js +9 -1
  3. package/dist/bin/create-nexus-devflow.js.map +1 -1
  4. package/dist/lib/command-catalog.js +1 -1
  5. package/dist/lib/command-catalog.js.map +1 -1
  6. package/dist/lib/core-skill-inventory.d.ts +16 -0
  7. package/dist/lib/core-skill-inventory.js +96 -0
  8. package/dist/lib/core-skill-inventory.js.map +1 -0
  9. package/dist/lib/dashboard-page.d.ts +1 -1
  10. package/dist/lib/dashboard-page.js +42 -20
  11. package/dist/lib/dashboard-page.js.map +1 -1
  12. package/dist/lib/dashboard-snapshot.js +16 -12
  13. package/dist/lib/dashboard-snapshot.js.map +1 -1
  14. package/dist/lib/dashboard.js +10 -1
  15. package/dist/lib/dashboard.js.map +1 -1
  16. package/dist/lib/doctor.js +14 -11
  17. package/dist/lib/doctor.js.map +1 -1
  18. package/dist/lib/gatekeeper.d.ts +4 -0
  19. package/dist/lib/gatekeeper.js +2 -2
  20. package/dist/lib/gatekeeper.js.map +1 -1
  21. package/dist/lib/git-status.d.ts +10 -2
  22. package/dist/lib/git-status.js +57 -29
  23. package/dist/lib/git-status.js.map +1 -1
  24. package/dist/lib/swarm-orchestrator.d.ts +4 -1
  25. package/dist/lib/swarm-orchestrator.js +2 -2
  26. package/dist/lib/swarm-orchestrator.js.map +1 -1
  27. package/dist/lib/update.js +5 -8
  28. package/dist/lib/update.js.map +1 -1
  29. package/dist/lib/version-check.js +1 -1
  30. package/dist/lib/workflow-state.js +19 -32
  31. package/dist/lib/workflow-state.js.map +1 -1
  32. package/dist/scripts/prepare-template.js +19 -16
  33. package/dist/scripts/prepare-template.js.map +1 -1
  34. package/package.json +1 -1
  35. package/template/.agents/skills/check/SKILL.md +78 -75
  36. package/template/.agents/skills/complete/SKILL.md +47 -36
  37. package/template/.agents/skills/debug/SKILL.md +76 -94
  38. package/template/.agents/skills/devflow/SKILL.md +51 -79
  39. package/template/.agents/skills/discovery/SKILL.md +7 -9
  40. package/template/.claude/skills/check/SKILL.md +78 -75
  41. package/template/.claude/skills/complete/SKILL.md +47 -36
  42. package/template/.claude/skills/debug/SKILL.md +76 -94
  43. package/template/.claude/skills/devflow/SKILL.md +51 -79
  44. package/template/.claude/skills/discovery/SKILL.md +7 -9
  45. package/template/AGENTS.md +21 -30
  46. package/template/devflow/build-plan.md +9 -0
  47. package/template/devflow/context/ai-interaction.md +43 -45
  48. package/template/devflow/context/coding-standards.md +31 -6
  49. package/template/devflow/context/current-stage.md +10 -7
  50. package/template/devflow/context/findings.md +8 -11
  51. package/template/devflow/context/glossary.md +31 -0
  52. package/template/devflow/history/HISTORY.md +1 -1
  53. package/template/devflow/project-plan.md +2 -2
  54. package/template/devflow/reference/build-plan-template.md +65 -0
  55. package/template/devflow/reference/feature-spec-template.md +110 -0
  56. package/template/devflow/reference/project-plan-template.md +128 -0
  57. package/template/devflow/reference/running-id-contract.md +12 -11
  58. package/template/.agents/skills/10-define/SKILL.md +0 -54
  59. package/template/.agents/skills/20-spec/SKILL.md +0 -155
  60. package/template/.agents/skills/30-plan/SKILL.md +0 -226
  61. package/template/.agents/skills/40-execute/SKILL.md +0 -158
  62. package/template/.agents/skills/50-verify/SKILL.md +0 -62
  63. package/template/.agents/skills/60-report/SKILL.md +0 -57
  64. package/template/.agents/skills/70-deliver/SKILL.md +0 -72
  65. package/template/.claude/skills/10-define/SKILL.md +0 -54
  66. package/template/.claude/skills/20-spec/SKILL.md +0 -155
  67. package/template/.claude/skills/30-plan/SKILL.md +0 -226
  68. package/template/.claude/skills/40-execute/SKILL.md +0 -158
  69. package/template/.claude/skills/50-verify/SKILL.md +0 -62
  70. package/template/.claude/skills/60-report/SKILL.md +0 -57
  71. package/template/.claude/skills/70-deliver/SKILL.md +0 -72
@@ -1,9 +1,9 @@
1
1
  ---
2
2
  name: debug
3
- description: "[devflow][B] Diagnose a failing test, broken build, crash, error, regression, or unexpected behavior without editing source or Blueprint state. Reproduces the symptom with the smallest safe command, localizes the failing path, tests competing hypotheses, identifies the root cause when evidence supports one, and reports a repair handoff to /fix or /implement. Use when the user runs /debug, invokes $debug, asks why something is failing or broken, wants a root-cause investigation, or asks to diagnose before fixing."
3
+ description: "[devflow][B] Diagnose a failing test, broken build, crash, error, regression, or unexpected behavior without editing source or DevFlow state. Follows a strict 6-Phase Scientific Debugging Loop: builds a red-capable tight feedback loop, reproduces & minimises, tests 3-5 falsifiable hypotheses, localizes the failure to a root cause, and reports a repair handoff to /fix or /implement. Use when the user runs /debug, invokes $debug, asks why something is failing or broken, wants a root-cause investigation, or asks to diagnose before fixing."
4
4
  ---
5
5
 
6
- # debug - find the cause before changing the code
6
+ # debug - 6-Phase Scientific Debugging Protocol
7
7
 
8
8
  Where this sits in the workflow:
9
9
 
@@ -12,130 +12,112 @@ Where this sits in the workflow:
12
12
  crash, behavior) isolate, repair active work)
13
13
  explain)
14
14
 
15
- `/debug` separates diagnosis from repair. It gathers evidence, narrows the
16
- failure to a specific cause when possible, and stops with a useful handoff. It
17
- does not make the code "temporarily work" while investigating.
15
+ `/debug` separates diagnosis from repair. It gathers empirical evidence, narrows the failure to a specific root cause using scientific method, and stops with an actionable repair handoff. It does not guess, assume, or perform ad-hoc "vibe debugging".
16
+
17
+ ---
18
18
 
19
19
  ## Input
20
20
 
21
21
  Accept a symptom, failing command, error message, or unexpected behavior. Examples:
22
22
 
23
- /debug npm test fails in cart-total.test.js
23
+ /debug npm test fails in cart-total.test.ts
24
24
  /debug the upload route returns 500 for PNG files
25
- /debug why does the production build fail?
25
+ /debug why does the build fail on Windows?
26
26
 
27
- With no useful symptom, ask for the expected behavior, actual behavior, and
28
- smallest known reproduction. Do not guess which problem the user means.
27
+ With no useful symptom, ask for expected behavior, actual behavior, and smallest known reproduction. Do not guess.
29
28
 
30
- ## Step 1 - establish the boundary
29
+ ---
31
30
 
32
- Read the project instructions and the context relevant to the failure:
31
+ ## πŸ”¬ The 6-Phase Scientific Debugging Loop
33
32
 
34
- - `AGENTS.md` and its real commands
35
- - `devflow/context/project-overview.md`
36
- - `devflow/context/coding-standards.md`
37
- - `devflow/context/current-feature.md`
38
- - the reported error, failing output, and affected files
39
- - git status, diff, and recent log when a regression is possible
33
+ ### Phase 1: Build a Red-Capable Feedback Loop (Golden Rule)
40
34
 
41
- State the symptom and what would count as reproducing it. Note whether the
42
- failure belongs to an active feature or is an unplanned bug.
35
+ **This is the core discipline.** If you have a **tight** pass/fail command that actively goes RED on this bug, you will find the root cause. If you do not have one, staring at code will not save you.
43
36
 
44
- Do not treat a dirty working tree as permission to discard or rewrite anything.
45
- Use the diff as evidence and preserve it.
37
+ **Spend disproportionate effort here. Ways to construct one (in order):**
38
+ 1. **Failing Unit / Integration Test** at the responsible module seam.
39
+ 2. **Curl / HTTP script** against the running local dev server.
40
+ 3. **CLI invocation** diffing stdout/stderr against expected output.
41
+ 4. **Headless browser script** (Playwright) asserting on DOM/network/console.
42
+ 5. **Replay captured trace**: Replay isolated payload/event log through the code path.
46
43
 
47
- ## Step 2 - reproduce safely
44
+ **Completion Criterion for Phase 1**:
45
+ You must name **one single command** (a test invocation, a script, or curl) that you have **already run at least once** and proven:
46
+ - [ ] **Red-capable**: It exercises the actual code path and catches the user's exact symptom (fails red now, will pass green once fixed).
47
+ - [ ] **Deterministic**: Returns the same verdict every run.
48
+ - [ ] **Fast & Agent-runnable**: Completes in seconds, executable without manual intervention.
48
49
 
49
- Run the smallest existing command or interaction that can reproduce the symptom.
50
+ > [!CAUTION]
51
+ > **No Red-Capable Command = No Phase 2.** If you catch yourself reading code to form theories before this command exists, **STOP**. Jumping straight to a hypothesis is the exact failure this protocol prevents.
50
52
 
51
- - Prefer one focused test, request, CLI command, or input over the entire suite.
52
- - Capture the exact exit code, error, stack trace, output, response, console
53
- error, or failed request.
54
- - Reuse an already-running local app when available. If reproduction requires a
55
- long-running server that is not running, ask the user to start it and provide
56
- the documented command.
57
- - Do not install dependencies, change configuration, run migrations, mutate
58
- production data, contact external users, or use destructive commands to force
59
- a reproduction.
60
- - Do not edit code to add logs or probes. Use existing logs, debuggers,
61
- read-only inspection, or one-off commands that do not change project files.
62
- - Compare git status after diagnostic commands. If one changes tracked or
63
- untracked project files, stop and report those paths. Do not clean, restore,
64
- or hide the changes.
53
+ ---
65
54
 
66
- If the symptom cannot be reproduced, say what was attempted and what evidence is
67
- missing. Continue with static investigation only when it can produce a clearly
68
- labeled hypothesis, not a claimed root cause.
55
+ ### Phase 2: Reproduce & Minimise
69
56
 
70
- ## Step 3 - localize the failure
57
+ Run the feedback loop and watch it go RED.
71
58
 
72
- Trace from the observed failure toward the smallest responsible area.
59
+ 1. **Confirm Symptom**: Ensure the failure mode matches what the user reported (not a nearby unrelated error).
60
+ 2. **Minimise the Repro**: Cut inputs, configs, dependencies, and steps **one at a time**, re-running the command after each cut. Keep only what is load-bearing for the failure.
61
+ 3. **Done when**: Every remaining parameter is load-bearing (removing any one makes the loop go green).
73
62
 
74
- Use the evidence that fits the project:
63
+ ---
75
64
 
76
- - the first relevant application frame in a stack trace
77
- - the smallest failing test and its inputs
78
- - request and response data at the failing boundary
79
- - console and network errors
80
- - callers, imports, data flow, and configuration reads
81
- - `git diff`, `git log`, and `git blame` for a suspected regression
82
- - comparison with a nearby working path or input
65
+ ### Phase 3: Form 3–5 Ranked Falsifiable Hypotheses
83
66
 
84
- Separate facts from hypotheses. Test the cheapest safe competing explanations
85
- first. Do not stop at the first plausible line, blame a dependency without
86
- evidence, or confuse the place an error surfaced with the place it originated.
67
+ Generate **3 to 5 ranked hypotheses** before testing or inspecting deeply. Never anchor on the first plausible idea.
87
68
 
88
- ## Step 4 - confirm or narrow
69
+ Every hypothesis MUST be **falsifiable** using this exact format:
70
+ > *"If `<X>` is the cause, then `<changing Y>` will make the bug disappear / `<changing Z>` will make it worse."*
89
71
 
90
- A root cause is confirmed only when the evidence connects all three:
72
+ If you cannot state the prediction, it is a vibe: sharpen or discard it.
91
73
 
92
- 1. the triggering input or state
93
- 2. the responsible code, configuration, or contract
94
- 3. the observed failure
74
+ ---
95
75
 
96
- When safe and read-only, vary one input or run a smaller focused command to
97
- confirm the connection. Do not change implementation or tests to prove the fix.
76
+ ### Phase 4: Targeted Instrumentation & Isolation
98
77
 
99
- Use one of these verdicts:
78
+ Test hypotheses by changing **one variable at a time**:
79
+ 1. **Tool preference**: Read-only inspection > REPL/debugger > Targeted probe logs.
80
+ 2. **Debug Tag Rule**: If temporary diagnostic logs are necessary, tag every log line with a unique prefix, e.g. `[DEBUG-a4f2]`. This guarantees a single `grep` can find and remove all probes.
81
+ 3. **Redaction**: Redact all secrets, tokens, and credentials in terminal outputs (`<REDACTED>`).
100
82
 
101
- - **Confirmed** - evidence identifies the cause and explains the failure.
102
- - **Likely** - evidence narrows the cause, but one specific proof is unavailable.
103
- - **Blocked** - the failure cannot be reproduced or required evidence is
104
- inaccessible.
83
+ ---
105
84
 
106
- ## Step 5 - report and hand off
85
+ ### Phase 5: Confirm Root Cause at Real Seam
107
86
 
108
- Give a concise debug report:
87
+ A root cause is **Confirmed** only when empirical evidence connects all three:
88
+ 1. The triggering input or state
89
+ 2. The responsible code / configuration boundary
90
+ 3. The observed failure
109
91
 
110
- - symptom and reproduction
111
- - verdict
112
- - root cause or leading hypothesis
113
- - evidence, including commands and relevant paths
114
- - affected behavior and likely repair boundary
115
- - what was not verified
116
- - exact next action
92
+ **Seam Identification**: Identify the exact architectural seam (per `devflow/context/coding-standards.md` Deep Modules) where the regression test must live. If no clean seam exists, note that as an architectural finding.
117
93
 
118
- Choose the next action without writing files:
94
+ ---
95
+
96
+ ### Phase 6: Report & Hand-off
97
+
98
+ Give a structured, concise debug report:
119
99
 
120
- - Active feature or fix caused the failure -> return the diagnosis to `/implement` with instructions to write a failing reproduction test ([TDD-Red]) first.
121
- - No active work item and the bug is confirmed -> recommend `/fix "<concise bug and confirmed cause>"` (which will write a failing test first before fixing).
122
- - Cause is only likely or blocked -> recommend the next diagnostic evidence, not a speculative repair.
123
- - The issue is planned product work rather than a defect -> point to `/feature`.
100
+ ```markdown
101
+ ### 🐞 Debug Report: <Concise Title>
102
+
103
+ - **Symptom**: <Exact user symptom observed>
104
+ - **Reproduction Command**: `<Single red-capable command>`
105
+ - **Verdict**: Confirmed | Likely | Blocked
106
+ - **Root Cause**: <Precise technical explanation of why it failed>
107
+ - **Responsible Seam**: `<path/to/file.ts#line>`
108
+ - **Evidence**:
109
+ - Test/Curl output confirming the red signal
110
+ - Trace connecting triggering state to failure
111
+ - **Next Action**:
112
+ - For active feature -> Hand back to `/implement` with instructions to write failing test first.
113
+ - For standalone bug -> Recommend `/fix "<concise description>"` to create spec and implement regression test.
114
+ ```
115
+
116
+ ---
124
117
 
125
118
  ## Rules
126
119
 
127
- - Diagnose, do not repair. Never edit source, tests, configuration, lockfiles, or
128
- Blueprint files.
129
- - Never create, switch, merge, or delete branches. Never commit or push.
130
- - Do not update the findings ledger. `/audit` owns recorded code-quality
131
- findings; `/debug` reports one investigated failure in chat.
132
- - Evidence outranks confidence. Label uncertainty and failed reproduction
133
- honestly.
134
- - Preserve the user's working tree and running processes.
135
- - Do not broaden one failure into a general audit or refactor.
136
-
137
- ## Formatting
138
-
139
- Format the output to match the project's conventions in
140
- `devflow/context/ai-interaction.md`: concise, scannable markdown with a short
141
- evidence list and a clear next action.
120
+ - **Diagnose, do not repair**: Never edit production source, package lockfiles, or DevFlow state inside `/debug`.
121
+ - **Evidence outranks confidence**: Label uncertainty honestly (`Likely` vs `Confirmed`).
122
+ - **Preserve git state**: Never switch branches, commit, reset, or clean the working tree.
123
+ - **Clean up probes**: Ensure any temporary test scripts in scratch/ are cleanly referenced.
@@ -5,26 +5,19 @@ description: "[devflow][B] Flagship interactive guide, state inspector, and inte
5
5
 
6
6
  # devflow - Interactive Workflow Guide & Intent Router for Nexus-DevFlow
7
7
 
8
- ## Command Track Policy
9
- - [F] Fast-Track only
10
- - [D] Deep-Track only
11
- - [B] Available in both tracks (Track-agnostic)
12
-
13
-
14
- Use this skill to guide the user on what to do next, inspect current workspace state, map their natural language intent to the right Nexus-DevFlow track (Fast-Track or Deep-Track) or companion command, or display a sitemap of available DevFlow skills.
8
+ Use this skill to guide the user on what to do next, inspect current workspace state, map their natural language intent to the matching Nexus-DevFlow stage or companion command, or display a sitemap of available DevFlow skills.
15
9
 
16
10
  ## Input
17
11
 
18
- - **No argument (`devflow`, `devflow`, `$devflow`, or `status`)**: Inspect current workspace state (active run in `devflow/runs/` or `devflow/context/current-stage.md`, active discovery in `devflow/discoveries/`, pending ideas in `devflow/ideas.md`, open findings in `devflow/context/findings.md`, and project overview in `devflow/context/project-overview.md`) and recommend the exact next action.
19
- - **With user request (`devflow "<request>"`)**: Classify the user's intent and guide them to the matching DevFlow workflow track or companion command path.
12
+ - **No argument (`devflow`, `/devflow`, `$devflow`, or `status`)**: Inspect current workspace state (active run in `devflow/context/current-stage.md`, active living spec in `devflow/context/current-feature.md`, active discovery in `devflow/discoveries/`, pending ideas in `devflow/ideas.md`, open findings in `devflow/context/findings.md`, and project overview in `devflow/context/project-overview.md`) and recommend the exact next action.
13
+ - **With user request (`devflow "<request>"`)**: Classify the user's intent and guide them to the matching DevFlow workflow stage or companion command path.
20
14
 
21
- ## Dual-Track Architecture
15
+ ## The Unified Living Spec Architecture (DevFlow 2.5.0)
22
16
 
23
- Nexus-DevFlow supports two seamless workflow tracks:
24
- 1. **🏎️ Fast-Track (Blueprint Mode - 4 Steps)**: `/spec` βž” `/implement` βž” `/check` βž” `/complete`
25
- *Driven by a **Single Living Spec (`current-feature.md`)** for fast, high-velocity daily development and bugfixes (85% of tasks).*
26
- 2. **πŸ—οΈ Deep-Track (Architect Mode - 8 Steps)**: `discovery` βž” `10-define` βž” `20-spec` βž” `30-plan` βž” `40-execute` βž” `50-verify` βž” `60-report` βž” `70-deliver`
27
- *Driven by modular separate stage files for large, high-stakes architectural epics and multi-agent coordination.*
17
+ Nexus-DevFlow uses a **Single Unified Living Spec Model**:
18
+ - **The 4-Stage Lifecycle**: `/feature` (or `/fix`) βž” `/implement` βž” `/check` βž” `/complete`
19
+ - Driven by a **Single Living Spec (`devflow/context/current-feature.md`)** that integrates architectural depth (Define, Spec, Plan, Execution Log, Multi-Lane QA, and Release Digest) into one clear living document.
20
+ - **Pre-Flight Inception Engine**: Companion skills (`/discovery`, `/idea`, `/grill`, `/brainstorm`) feed directly into `/feature`.
28
21
 
29
22
  ---
30
23
 
@@ -33,93 +26,72 @@ Nexus-DevFlow supports two seamless workflow tracks:
33
26
  When invoked without an argument (or when determining the next step), inspect:
34
27
 
35
28
  1. **Project Setup Baseline**: Read `devflow/context/project-overview.md` and `devflow/context/coding-standards.md`. If empty or default placeholders, recommend `onboard` (for fresh projects) or `adopt` (for existing codebases).
36
- 2. **Active Delivery Run**: Read `devflow/context/current-stage.md` and check `devflow/runs/{RUNNING_ID}/`.
37
- - **If Fast-Track (`current-feature.md`, `spec.md`, or `blueprint.md` present)**:
38
- - If `current-feature.md` (or `spec.md`) has incomplete checklist items -> Recommend `/implement` (or `implement {RUNNING_ID}`).
39
- - If all tasks done but no passing verification evidence -> Recommend `/check` (or `check {RUNNING_ID}`).
40
- - If verification evidence passed -> Recommend `/complete` (or `complete {RUNNING_ID}`).
41
- - **If Deep-Track (numbered stage files present)**:
42
- - If at `10-define.md` -> Recommend `20-spec {RUNNING_ID}`.
43
- - If at `20-spec.md` -> Recommend `30-plan {RUNNING_ID}`.
44
- - If at `30-plan.md` -> Recommend `40-execute {RUNNING_ID}`.
45
- - If at `40-execute.md` with all tasks done -> Recommend `50-verify {RUNNING_ID}`.
46
- - If passed `50-verify.md` -> Recommend `60-report {RUNNING_ID}` then `70-deliver {RUNNING_ID}`.
29
+ 2. **Active Delivery Run**: Read `devflow/context/current-stage.md` and `devflow/context/current-feature.md`.
30
+ - If `current-feature.md` has incomplete checklist tasks (`- [ ]`) -> Recommend `/implement`.
31
+ - If all tasks are completed (`- [x]`) but no passing verification evidence in Section 5 -> Recommend `/check`.
32
+ - If verification evidence passed in Section 5 -> Recommend `/complete`.
47
33
  3. **Active Discovery**: Check `devflow/discoveries/` for open discovery notes.
48
- 4. **Pending Ideas Inbox**: Check `devflow/ideas.md`. If items exist under `## πŸ“Œ Pending Ideas`, summarize them in a **πŸ’‘ Pending Ideas (Inbox)** list with their IDs (`[IDEA-xxx]`), feasibility, and mention that they can be started with `/spec IDEA-xxx` or `/discovery IDEA-xxx`.
34
+ 4. **Pending Ideas Inbox**: Check `devflow/ideas.md`. If items exist under `## πŸ“Œ Pending Ideas`, summarize them in a **πŸ’‘ Pending Ideas (Inbox)** list with their IDs (`[IDEA-xxx]`), feasibility, and mention that they can be started with `/feature IDEA-xxx` or `/discovery IDEA-xxx`.
49
35
  5. **Audit Findings Ledger**: Check `devflow/context/findings.md` for open high-severity findings.
50
36
 
51
37
  ### Default State Recommendations
52
- - if no run is active and user wants to start a feature -> Recommend `/feature <name>`.
38
+ - If no run is active and user wants to start a feature -> Recommend `/feature <name>`.
53
39
  - If no run is active and user wants to fix a bug -> Recommend `/fix <bug>`.
54
- - If no run is active and user has pending ideas in `devflow/ideas.md` -> Highlight `/spec IDEA-xxx` or `/discovery IDEA-xxx`.
55
- - If no run is active and user wants deep architectural exploration -> Recommend `discovery`.
40
+ - If no run is active and user has pending ideas in `devflow/ideas.md` -> Highlight `/feature IDEA-xxx` or `/discovery IDEA-xxx`.
41
+ - If no run is active and user wants deep architectural exploration -> Recommend `/discovery`.
56
42
  - If user asks to check system health -> Recommend `doctor`.
57
43
 
58
44
  ---
59
45
 
60
46
  ## Intent Classification & Skill Routing
61
47
 
62
- | User Intent / Request Type | Recommended Skill | Normal Name / Alias | Track / Lifecycle Path |
48
+ | User Intent / Request Type | Recommended Skill | Normal Name / Alias | Lifecycle Path |
63
49
  | :--- | :--- | :--- | :--- |
64
- | **"Spec new feature / lean workflow"** | `spec` | `/spec` / `/feature` | **Fast-Track**: `/spec` -> `/implement` -> `/check` -> `/complete` |
65
- | **"Quick bugfix / ad-hoc change"** | `spec` | `/fix` | **Fast-Track**: `/fix` -> `/implement` -> `/check` -> `/complete` |
50
+ | **"Spec new feature / living spec"** | `feature` | `/feature` / `/spec` | **Unified**: `/feature` -> `/implement` -> `/check` -> `/complete` |
51
+ | **"Quick bugfix / ad-hoc change"** | `fix` | `/fix` | **Unified**: `/fix` -> `/implement` -> `/check` -> `/complete` |
66
52
  | **"Capture quick idea / thought"** | `idea` | `/idea` | **Companion**: Enriches & saves to `devflow/ideas.md` |
67
- | **"Execute implementation tasks"** | `implement` | `/implement` | **Fast-Track**: `/implement` -> `/check` |
68
- | **"Run QA verification & check"** | `check` | `/check` | **Fast-Track**: `/check` -> `/complete` |
69
- | **"Complete run & git merge"** | `complete` | `/complete` | **Fast-Track**: `/complete` |
70
- | **"Generate HTML dashboard report"**| `report-html` | `/report:html` | **Standalone**: Converts `current-feature.md` / `60-report.md` to HTML |
71
- | "Setup DevFlow on fresh/new project" | `onboard` | `onboard` / `setup` | `onboard` -> `/spec` or `10-define` |
72
- | "Adopt DevFlow on existing codebase" | `adopt` | `adopt` / `bootstrap` | `adopt` -> `/spec` or `10-define` |
53
+ | **"Pre-delivery exploration / research"**| `discovery`| `/discovery` | **Pre-Flight**: `discovery` -> `/feature` |
54
+ | **"Socratic alignment / ADR / glossary"**| `grill` | `/grill` / `/align` | **Pre-Flight**: `grill` -> `/feature` |
55
+ | **"Execute implementation tasks"** | `implement` | `/implement` | **Core Loop**: `/implement` -> `/check` |
56
+ | **"Run QA verification & check"** | `check` | `/check` | **Core Loop**: `/check` -> `/complete` |
57
+ | **"Complete run & git merge"** | `complete` | `/complete` | **Core Loop**: `/complete` |
58
+ | **"Generate HTML dashboard report"**| `report-html` | `/report:html` | **Standalone**: Converts `current-feature.md` or archive to HTML |
59
+ | "Setup DevFlow on fresh/new project" | `onboard` | `onboard` / `setup` | `onboard` -> `/feature` |
60
+ | "Adopt DevFlow on existing codebase" | `adopt` | `adopt` / `bootstrap` | `adopt` -> `/feature` |
73
61
  | "Check setup health & diagnostics" | `doctor` | `doctor` / `health` | `doctor` |
74
- | "Explore a new request / deep idea" | `discovery` | `discovery` / `/discovery` | **Deep-Track**: `discovery` -> `10` -> `20` -> ... |
75
- | "Define delivery boundaries and ID" | `10-define` | `define` | **Deep-Track**: `10` -> `20` -> `30` |
76
- | "Break down spec into plan (Deep)" | `30-plan` | `plan` | **Deep-Track**: `30` -> `40` -> `50` |
77
- | "Deep code implementation" | `40-execute` | `implement` | **Deep-Track**: `40` -> `50` |
78
- | "Deep QA verification" | `50-verify` | `verify` | **Deep-Track**: `50` -> `60` -> `70` |
79
- | "Deep markdown digest report" | `60-report` | `report` | **Deep-Track**: `60` -> `70` |
80
- | "Deep release packaging & merge" | `70-deliver` | `release` | **Deep-Track**: `70-deliver` |
81
62
  | "Human manual QA walkthrough guide" | `try` | `try` | Companion (after implement or check) |
82
- | "Safely plan feature or run reversal" | `rollback` | `rollback` | Companion |
63
+ | "Safely plan feature or run reversal"| `rollback` | `rollback` | Companion |
83
64
  | "Set up automatic GitHub Actions CI" | `ci` | `ci` | Companion |
84
- | "Pre-check scope & risks before spec" | `brief` | `brief` | Companion |
65
+ | "Pre-check scope & risks before spec"| `brief` | `brief` | Companion |
85
66
  | "Run autonomous bounded delivery loop"| `autopilot` | `autopilot` | Companion |
86
67
  | "Brainstorm ideas without ID" | `brainstorm` | `brainstorm` | Companion |
87
- | "Socratic alignment / ADR / glossary" | `grill` | `/grill` / `align` | Companion (pre-spec / domain modeling) |
88
68
  | "Investigate failure or root cause" | `debug` | `debug` | Companion |
89
69
 
90
70
  ---
91
71
 
92
72
  ## Available Skills Sitemap
93
73
 
94
- ### 1. Fast-Track (Blueprint Mode - 4 Steps)
95
- - `spec` (`/spec`, `/feature`, `/fix`, `$spec`) - Define, spec, plan, and create `current-feature.md`
96
- - `implement` (`/implement`, `$implement`) - Execute planned checklist tasks with TDD
97
- - `check` (`/check`, `$check`) - Senior QA review, multi-lane verification, record evidence
98
- - `complete` (`/complete`, `$complete`) - Safety pass, release digest, git merge, close run
74
+ ### 1. Mainline Living Spec Loop (4 Steps)
75
+ - `feature` (`/feature`, `/spec`) - Define, spec, and plan in `current-feature.md`
76
+ - `fix` (`/fix`) - Document an ad-hoc bug or change in `current-feature.md`
77
+ - `implement` (`/implement`) - Execute planned checklist tasks with TDD
78
+ - `check` (`/check`) - Senior QA review, multi-lane verification, record evidence
79
+ - `complete` (`/complete`) - Safety pass, release digest, git merge, close run
99
80
 
100
- ### 2. Deep-Track (Architect Mode - 8 Steps)
81
+ ### 2. Pre-Flight Discovery Engine
101
82
  - `discovery` - Project roadmap planning or feature exploration before delivery commitment
102
- - `10-define` - Lock delivery boundaries and allocate Running ID
103
- - `20-spec` - Formalize markdown delivery contract
104
- - `30-plan` - Breakdown spec into phased tasks with test decisions
105
- - `40-execute` - Incremental task implementation
106
- - `50-verify` - Senior QA review and multi-lane validation
107
- - `60-report` - Generate standardized markdown digest report
108
- - `70-deliver` - Release packaging, release notes, and merge
109
-
110
- ### 3. Public Companion Commands
111
- - `devflow` (`status`, `/devflow`) - Interactive guide, state inspector, and router
112
- - `idea` (`/idea`) - Quick idea capture and AI feasibility enrichment into `devflow/ideas.md`
113
- - `grill` (`/grill`, `align`) - Codebase-grounded Socratic alignment, domain glossary, and ADR recorder
114
- - `brainstorm` - Ideate and compare trade-off options without allocating running IDs
115
- - `report-html` (`/report:html`) - Standalone interactive HTML report dashboard generator
116
- - `onboard` - Baseline stack setup for freshly scaffolded projects
117
- - `adopt` - Bootstrap DevFlow into existing brownfield projects
118
- - `doctor` - Read-only health check for setup and drift
119
- - `try` - Step-by-step human manual QA review guide
120
- - `rollback` - Safe feature/run reversal planner
121
- - `ci` - Automatic GitHub Actions workflow setup
122
- - `brief` - Read-only scope and risk pre-briefing
123
- - `autopilot` - Autonomous bounded delivery loop
124
- - `debug` - Root cause investigation before or during implementation
125
- - `overview` - Living context synchronization into project-overview.md
83
+ - `idea` - Quick idea capture with AI feasibility scoring
84
+ - `grill` (or `align`) - Socratic alignment, domain modeling, and ADR recording
85
+ - `brainstorm` - Multi-option ideation with trade-off analysis
86
+
87
+ ### 3. Verification & Diagnostic Companions
88
+ - `doctor` - Health check for setup, adapters, and workspace state
89
+ - `audit` - Branch-aware or full-project code, security, and quality review
90
+ - `test` / `tests` - Test suite runner and unit test scaffolding
91
+ - `ci` - Set up or normalize GitHub Actions checks
92
+ - `status` - Read-only progress summary and next action suggestion
93
+ - `try` - Human manual QA walkthrough guide
94
+ - `report-html` - Standalone interactive HTML report dashboard
95
+ - `debug` - Root-cause investigation without editing code
96
+ - `rollback` - Safe reversal of completed features
97
+ - `release` - Deployment readiness check
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: discovery
3
- description: "[devflow][D] Unified discovery and exploration stage in DevFlow 2.0 - conducts project-level roadmap discovery (project-plan.md/build-plan.md) or feature-level exploration (Stage 00) before delivery commitment."
3
+ description: "[devflow][D] Unified discovery and exploration stage in DevFlow 2.5.0 - conducts project-level roadmap discovery (project-plan.md/build-plan.md) or feature-level pre-delivery exploration before the Single Living Spec lifecycle."
4
4
  argument-hint: "[{title, request, IDEA-xxx, or discovery-id}]"
5
5
  ---
6
6
 
@@ -10,7 +10,7 @@ $ARGUMENTS
10
10
 
11
11
  `/discovery` is the central discovery entry point in Nexus-DevFlow. It operates in two adaptive modes based on input scope:
12
12
  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
- 2. **πŸ” Micro Feature Exploration (Stage 00)**: 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 `10-define`.
13
+ 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`.
14
14
 
15
15
  ---
16
16
 
@@ -21,7 +21,7 @@ $ARGUMENTS
21
21
  /discovery
22
22
  /discovery --project
23
23
 
24
- # 2. Micro Feature Exploration Mode (Stage 00 of Deep-Track)
24
+ # 2. Micro Feature Exploration Mode (Pre-Flight)
25
25
  /discovery {title or request}
26
26
  /discovery IDEA-xxx
27
27
  /discovery {discovery-id}
@@ -44,7 +44,7 @@ Use when:
44
44
 
45
45
  ---
46
46
 
47
- ## Mode 2: Micro Feature Exploration (Stage 00 of Deep-Track)
47
+ ## Mode 2: Micro Feature Exploration (Pre-Flight)
48
48
 
49
49
  Use when:
50
50
  - Exploring a specific feature, complex architectural change, or pending idea (`/discovery IDEA-xxx`).
@@ -76,8 +76,7 @@ devflow/discoveries/{DISCOVERY_ID}-{slug}/discovery.md
76
76
  ### Decision & Approval Gate:
77
77
  Set one visible decision:
78
78
  - `Proceed`: Enough value and evidence exist to define delivery work:
79
- - **🏎️ Fast-Track (Recommended for 85% of standard features/fixes)**: Handoff to `/feature {discovery_id}` or `/fix {discovery_id}` (writes `devflow/context/current-feature.md`).
80
- - **πŸ—οΈ Deep-Track (For large architectural epics/migrations)**: Handoff to `10-define {discovery_id}` (writes `devflow/context/current-run/10-define.md`).
79
+ - Handoff to `/feature {discovery_id}` or `/fix {discovery_id}` to create the Single Living Spec in `devflow/context/current-feature.md`.
81
80
  - `Defer`: The idea remains relevant but timing or evidence is not ready.
82
81
  - `Reject`: The idea should not proceed under current framing.
83
82
 
@@ -86,6 +85,5 @@ Set one visible decision:
86
85
  ## Next Workflow Recommendations
87
86
 
88
87
  - **From Macro Project Mode**: Run `/overview` to compile context into `devflow/context/project-overview.md`.
89
- - **From Micro Stage 00 (Approved Proceed βž” Fast-Track)**: Run `/feature {discovery_id}` to start lean living spec.
90
- - **From Micro Stage 00 (Approved Proceed βž” Deep-Track)**: Run `10-define {discovery_id}` to allocate a Running ID.
91
- - **From Micro Stage 00 (Defer / Reject)**: No next command needed.
88
+ - **From Micro Pre-Flight (Approved Proceed)**: Run `/feature {discovery_id}` or `/fix {discovery_id}` to start the Single Living Spec lifecycle.
89
+ - **From Micro Pre-Flight (Defer / Reject)**: No next command needed.