@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.
- package/README.md +58 -45
- package/dist/bin/create-nexus-devflow.js +9 -1
- package/dist/bin/create-nexus-devflow.js.map +1 -1
- package/dist/lib/command-catalog.js +1 -1
- package/dist/lib/command-catalog.js.map +1 -1
- package/dist/lib/core-skill-inventory.d.ts +16 -0
- package/dist/lib/core-skill-inventory.js +96 -0
- package/dist/lib/core-skill-inventory.js.map +1 -0
- package/dist/lib/dashboard-page.d.ts +1 -1
- package/dist/lib/dashboard-page.js +42 -20
- package/dist/lib/dashboard-page.js.map +1 -1
- package/dist/lib/dashboard-snapshot.js +16 -12
- package/dist/lib/dashboard-snapshot.js.map +1 -1
- package/dist/lib/dashboard.js +10 -1
- package/dist/lib/dashboard.js.map +1 -1
- package/dist/lib/doctor.js +14 -11
- package/dist/lib/doctor.js.map +1 -1
- package/dist/lib/gatekeeper.d.ts +4 -0
- package/dist/lib/gatekeeper.js +2 -2
- package/dist/lib/gatekeeper.js.map +1 -1
- package/dist/lib/git-status.d.ts +10 -2
- package/dist/lib/git-status.js +57 -29
- package/dist/lib/git-status.js.map +1 -1
- package/dist/lib/swarm-orchestrator.d.ts +4 -1
- package/dist/lib/swarm-orchestrator.js +2 -2
- package/dist/lib/swarm-orchestrator.js.map +1 -1
- package/dist/lib/update.js +5 -8
- package/dist/lib/update.js.map +1 -1
- package/dist/lib/version-check.js +1 -1
- package/dist/lib/workflow-state.js +19 -32
- package/dist/lib/workflow-state.js.map +1 -1
- package/dist/scripts/prepare-template.js +19 -16
- package/dist/scripts/prepare-template.js.map +1 -1
- package/package.json +1 -1
- package/template/.agents/skills/check/SKILL.md +78 -75
- package/template/.agents/skills/complete/SKILL.md +47 -36
- package/template/.agents/skills/debug/SKILL.md +76 -94
- package/template/.agents/skills/devflow/SKILL.md +51 -79
- package/template/.agents/skills/discovery/SKILL.md +7 -9
- package/template/.claude/skills/check/SKILL.md +78 -75
- package/template/.claude/skills/complete/SKILL.md +47 -36
- package/template/.claude/skills/debug/SKILL.md +76 -94
- package/template/.claude/skills/devflow/SKILL.md +51 -79
- package/template/.claude/skills/discovery/SKILL.md +7 -9
- package/template/AGENTS.md +21 -30
- package/template/devflow/build-plan.md +9 -0
- package/template/devflow/context/ai-interaction.md +43 -45
- package/template/devflow/context/coding-standards.md +31 -6
- package/template/devflow/context/current-stage.md +10 -7
- package/template/devflow/context/findings.md +8 -11
- package/template/devflow/context/glossary.md +31 -0
- package/template/devflow/history/HISTORY.md +1 -1
- package/template/devflow/project-plan.md +2 -2
- package/template/devflow/reference/build-plan-template.md +65 -0
- package/template/devflow/reference/feature-spec-template.md +110 -0
- package/template/devflow/reference/project-plan-template.md +128 -0
- package/template/devflow/reference/running-id-contract.md +12 -11
- package/template/.agents/skills/10-define/SKILL.md +0 -54
- package/template/.agents/skills/20-spec/SKILL.md +0 -155
- package/template/.agents/skills/30-plan/SKILL.md +0 -226
- package/template/.agents/skills/40-execute/SKILL.md +0 -158
- package/template/.agents/skills/50-verify/SKILL.md +0 -62
- package/template/.agents/skills/60-report/SKILL.md +0 -57
- package/template/.agents/skills/70-deliver/SKILL.md +0 -72
- package/template/.claude/skills/10-define/SKILL.md +0 -54
- package/template/.claude/skills/20-spec/SKILL.md +0 -155
- package/template/.claude/skills/30-plan/SKILL.md +0 -226
- package/template/.claude/skills/40-execute/SKILL.md +0 -158
- package/template/.claude/skills/50-verify/SKILL.md +0 -62
- package/template/.claude/skills/60-report/SKILL.md +0 -57
- 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
|
|
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 -
|
|
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
|
-
|
|
17
|
-
|
|
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.
|
|
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
|
|
25
|
+
/debug why does the build fail on Windows?
|
|
26
26
|
|
|
27
|
-
With no useful symptom, ask for
|
|
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
|
-
|
|
29
|
+
---
|
|
31
30
|
|
|
32
|
-
|
|
31
|
+
## π¬ The 6-Phase Scientific Debugging Loop
|
|
33
32
|
|
|
34
|
-
-
|
|
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
|
-
|
|
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
|
-
|
|
45
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
57
|
+
Run the feedback loop and watch it go RED.
|
|
71
58
|
|
|
72
|
-
|
|
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
|
-
|
|
63
|
+
---
|
|
75
64
|
|
|
76
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
72
|
+
If you cannot state the prediction, it is a vibe: sharpen or discard it.
|
|
91
73
|
|
|
92
|
-
|
|
93
|
-
2. the responsible code, configuration, or contract
|
|
94
|
-
3. the observed failure
|
|
74
|
+
---
|
|
95
75
|
|
|
96
|
-
|
|
97
|
-
confirm the connection. Do not change implementation or tests to prove the fix.
|
|
76
|
+
### Phase 4: Targeted Instrumentation & Isolation
|
|
98
77
|
|
|
99
|
-
|
|
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
|
-
|
|
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
|
-
|
|
85
|
+
### Phase 5: Confirm Root Cause at Real Seam
|
|
107
86
|
|
|
108
|
-
|
|
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
|
-
-
|
|
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
|
-
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
### Phase 6: Report & Hand-off
|
|
97
|
+
|
|
98
|
+
Give a structured, concise debug report:
|
|
119
99
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
-
|
|
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
|
|
128
|
-
|
|
129
|
-
- Never
|
|
130
|
-
-
|
|
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
|
-
|
|
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`,
|
|
19
|
-
- **With user request (`devflow "<request>"`)**: Classify the user's intent and guide them to the matching DevFlow workflow
|
|
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
|
-
##
|
|
15
|
+
## The Unified Living Spec Architecture (DevFlow 2.5.0)
|
|
22
16
|
|
|
23
|
-
Nexus-DevFlow
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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
|
|
37
|
-
-
|
|
38
|
-
|
|
39
|
-
|
|
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 `/
|
|
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
|
-
-
|
|
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 `/
|
|
55
|
-
- If no run is active and user wants deep architectural exploration -> Recommend
|
|
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 |
|
|
48
|
+
| User Intent / Request Type | Recommended Skill | Normal Name / Alias | Lifecycle Path |
|
|
63
49
|
| :--- | :--- | :--- | :--- |
|
|
64
|
-
| **"Spec new feature /
|
|
65
|
-
| **"Quick bugfix / ad-hoc change"** | `
|
|
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
|
-
| **"
|
|
68
|
-
| **"
|
|
69
|
-
| **"
|
|
70
|
-
| **"
|
|
71
|
-
| "
|
|
72
|
-
| "
|
|
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"
|
|
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"
|
|
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.
|
|
95
|
-
- `
|
|
96
|
-
- `
|
|
97
|
-
- `
|
|
98
|
-
- `
|
|
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.
|
|
81
|
+
### 2. Pre-Flight Discovery Engine
|
|
101
82
|
- `discovery` - Project roadmap planning or feature exploration before delivery commitment
|
|
102
|
-
- `
|
|
103
|
-
- `
|
|
104
|
-
- `
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
- `
|
|
108
|
-
- `
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
- `
|
|
112
|
-
- `
|
|
113
|
-
- `
|
|
114
|
-
- `
|
|
115
|
-
- `
|
|
116
|
-
- `
|
|
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
|
|
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 (
|
|
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 (
|
|
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 (
|
|
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
|
-
-
|
|
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
|
|
90
|
-
- **From Micro
|
|
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.
|