@jakkrichm/create-nexus-devflow 2.1.0 → 2.2.1

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 (82) hide show
  1. package/README.md +1 -1
  2. package/dist/bin/create-nexus-devflow.js +29 -5
  3. package/dist/bin/create-nexus-devflow.js.map +1 -1
  4. package/dist/lib/command-catalog.js +5 -2
  5. package/dist/lib/command-catalog.js.map +1 -1
  6. package/dist/lib/dashboard.js +1 -1
  7. package/dist/lib/discoveries.js +18 -6
  8. package/dist/lib/discoveries.js.map +1 -1
  9. package/dist/lib/ideas.js +2 -2
  10. package/dist/lib/ideas.js.map +1 -1
  11. package/dist/lib/project-metadata.d.ts +1 -1
  12. package/dist/lib/project-metadata.js +3 -2
  13. package/dist/lib/project-metadata.js.map +1 -1
  14. package/dist/lib/update.js +13 -5
  15. package/dist/lib/update.js.map +1 -1
  16. package/dist/lib/workflow-state.js +9 -6
  17. package/dist/lib/workflow-state.js.map +1 -1
  18. package/dist/scripts/prepare-template.js +10 -2
  19. package/dist/scripts/prepare-template.js.map +1 -1
  20. package/package.json +1 -1
  21. package/template/.agents/skills/10-define/SKILL.md +1 -1
  22. package/template/.agents/skills/adopt/SKILL.md +58 -5
  23. package/template/.agents/skills/brainstorm/SKILL.md +1 -1
  24. package/template/.agents/skills/devflow/SKILL.md +9 -7
  25. package/template/.agents/skills/discovery/SKILL.md +75 -150
  26. package/template/.agents/skills/doctor/SKILL.md +23 -16
  27. package/template/.agents/skills/feature/SKILL.md +1 -0
  28. package/template/.agents/skills/grill/SKILL.md +93 -0
  29. package/template/.agents/skills/implement/SKILL.md +2 -2
  30. package/template/.agents/skills/onboard/SKILL.md +18 -17
  31. package/template/.agents/skills/rollback/SKILL.md +1 -1
  32. package/template/.claude/skills/10-define/SKILL.md +3 -3
  33. package/template/.claude/skills/20-spec/SKILL.md +1 -2
  34. package/template/.claude/skills/30-plan/SKILL.md +1 -2
  35. package/template/.claude/skills/40-execute/SKILL.md +2 -2
  36. package/template/.claude/skills/50-verify/SKILL.md +2 -2
  37. package/template/.claude/skills/60-report/SKILL.md +2 -2
  38. package/template/.claude/skills/70-deliver/SKILL.md +2 -2
  39. package/template/.claude/skills/adopt/SKILL.md +191 -75
  40. package/template/.claude/skills/audit/SKILL.md +267 -133
  41. package/template/.claude/skills/autopilot/SKILL.md +226 -167
  42. package/template/.claude/skills/brainstorm/SKILL.md +62 -0
  43. package/template/.claude/skills/brief/SKILL.md +93 -92
  44. package/template/.claude/skills/check/SKILL.md +96 -76
  45. package/template/.claude/skills/ci/SKILL.md +140 -61
  46. package/template/.claude/skills/complete/SKILL.md +156 -101
  47. package/template/.claude/skills/convert-any-to-md/SKILL.md +2 -2
  48. package/template/.claude/skills/convert-any-to-md/references/setup.md +29 -0
  49. package/template/.claude/skills/convert-any-to-md/scripts/convert_any_to_md.py +487 -0
  50. package/template/.claude/skills/convert-any-to-md/scripts/requirements.txt +3 -0
  51. package/template/.claude/skills/debug/SKILL.md +124 -49
  52. package/template/.claude/skills/devflow/SKILL.md +18 -10
  53. package/template/.claude/skills/discovery/SKILL.md +65 -119
  54. package/template/.claude/skills/doctor/SKILL.md +195 -72
  55. package/template/.claude/skills/feature/SKILL.md +197 -152
  56. package/template/.claude/skills/fix/SKILL.md +41 -90
  57. package/template/.claude/skills/grill/SKILL.md +93 -0
  58. package/template/.claude/skills/idea/SKILL.md +2 -2
  59. package/template/.claude/skills/implement/SKILL.md +189 -46
  60. package/template/.claude/skills/onboard/SKILL.md +216 -85
  61. package/template/.claude/skills/overview/SKILL.md +44 -29
  62. package/template/.claude/skills/prototype/SKILL.md +82 -27
  63. package/template/.claude/skills/release/SKILL.md +119 -130
  64. package/template/.claude/skills/report-html/SKILL.md +2 -2
  65. package/template/.claude/skills/rollback/SKILL.md +123 -77
  66. package/template/.claude/skills/status/SKILL.md +109 -0
  67. package/template/.claude/skills/test/SKILL.md +2 -2
  68. package/template/.claude/skills/tests/SKILL.md +126 -0
  69. package/template/.claude/skills/try/SKILL.md +77 -65
  70. package/template/AGENTS.md +8 -7
  71. package/template/devflow/build-plan.md +8 -0
  72. package/template/devflow/context/ai-interaction.md +11 -0
  73. package/template/devflow/context/coding-standards.md +15 -1
  74. package/template/devflow/context/current-stage.md +1 -1
  75. package/template/devflow/decisions/.gitkeep +0 -0
  76. package/template/devflow/decisions/README.md +24 -0
  77. package/template/devflow/history/HISTORY.md +1 -1
  78. package/template/devflow/history/features/README.md +5 -0
  79. package/template/devflow/history/fixes/README.md +5 -0
  80. package/template/devflow/history/rollbacks/README.md +5 -0
  81. package/template/.agents/skills/00-explore/SKILL.md +0 -84
  82. package/template/.claude/skills/00-explore/SKILL.md +0 -84
@@ -1,108 +1,120 @@
1
1
  ---
2
2
  name: try
3
- description: "[Devflow] Generate human manual QA review walkthrough guide (where to go, what to click, what to expect)."
3
+ description: "[devflow][B] Generate a human manual try guide for the current or most recently completed Blueprint feature, fix, or rollback. Reads the spec, project commands, and available app context, then tells the user exactly what to start, where to go, what to click or run, what to expect, and what would count as wrong. Read-only. Use when the user runs /try, invokes $try, asks how to test manually, asks where to click, asks how to see the change, or wants a manual review path after /implement, /autopilot, /check, or /complete."
4
4
  ---
5
5
 
6
- # try - Manual QA & Review Walkthrough Guide
6
+ # try - manual review guide
7
7
 
8
8
  Where this sits in the workflow:
9
9
 
10
- ```text
11
- 40-execute or 50-verify or 60-report -> [try] -> human review & verification
12
- (work implemented / verified) (manual (where to go,
13
- steps) what to click)
14
- ```
10
+ /implement or /complete -> [try] -> human review
11
+ (work exists) (manual (where to go,
12
+ path) what to click)
15
13
 
16
- `50-verify` proves behavior from automated QA and test runs. `try` gives the user and testers an actionable, step-by-step manual walkthrough: start this command, open this route, click these controls, expect this result, and watch for these failure signs.
14
+ `/check` proves behavior from the agent side. `/try` gives the user a practical
15
+ manual walkthrough: start this command, open this route, click these controls,
16
+ expect this result, and watch for these failure signs.
17
17
 
18
- It is always **read-only 100%**. It does not edit files, install dependencies, commit, merge, push, or run destructive commands.
18
+ It is always read-only. It does not edit files, install dependencies, commit,
19
+ merge, push, or run destructive commands.
19
20
 
20
21
  ## Input
21
22
 
22
23
  Optional scope:
23
24
 
24
- - **no argument**: use the active run in `devflow/context/current-stage.md` (or the latest completed run under `devflow/runs/`)
25
- - `latest`: use the most recent completed run in `devflow/runs/`
26
- - a run ID or path: e.g. `try RUN-002-add-onboard-adopt-doctor-skills`
27
- - a specific route, endpoint, or CLI command: focus the walkthrough on that surface
25
+ - no argument: use the active feature, fix, or rollback in
26
+ `devflow/context/current-feature.md`
27
+ - `latest`: use the most recent archive under `devflow/history/features/`,
28
+ `devflow/history/fixes/`, or `devflow/history/rollbacks/`
29
+ - a step name or number: focus the guide on that current-feature step
30
+ - a path, route, or command: include it as the main thing to try
28
31
 
29
- If there is no active run and no run history, ask what change or feature the user wants to test manually.
32
+ If there is no active feature and no useful archive, ask what change the user
33
+ wants to try instead of guessing.
30
34
 
31
- ## Step 1 - Find The Work To Explain
35
+ ## Step 1 - find the work to explain
32
36
 
33
37
  Read:
34
38
 
35
- - `AGENTS.md` (Commands section)
36
- - `devflow/context/current-stage.md`
39
+ - `AGENTS.md`
40
+ - `devflow/context/current-feature.md`
37
41
  - `devflow/context/project-overview.md`
38
42
  - `devflow/context/coding-standards.md`
39
- - Active run artifacts: `20-spec.md`, `30-plan.md`, `40-execute.md`, `50-verify.md` (or archived run artifacts)
40
- - Current git branch and status
43
+ - `devflow/build-plan.md`
44
+ - latest files under `devflow/history/features/`,
45
+ `devflow/history/fixes/`, and `devflow/history/rollbacks/`, if the current
46
+ feature is reset
47
+ - git branch and working tree status
41
48
 
42
- Do not dump the full spec. Extract only the concrete routes, screens, CLI commands, API endpoints, test data, and expected outcomes that a human needs to verify the feature.
49
+ Prefer the active spec. If `current-feature.md` is the reset stub, use the most
50
+ recent archived feature, fix, or rollback by filename or modification time and
51
+ say that is what you used.
43
52
 
44
- ## Step 2 - Identify How To Run The App
53
+ Do not dump the spec. Pull out the routes, commands, UI surfaces, CLI commands,
54
+ API endpoints, data states, and done-whens that matter for a human trying it.
55
+ For a rollback, lead with the path that proves the removed behavior is gone, then
56
+ include one unaffected regression path from the rollback spec.
45
57
 
46
- Check the Commands section in `AGENTS.md`. Adapt to the project type:
58
+ ## Step 2 - identify how to run the app
47
59
 
48
- - **Web app**: dev server command (e.g. `npm run dev`), local URL (e.g. `http://localhost:3000`), and specific route/screen.
49
- - **Server / API**: start command, base URL, endpoint, HTTP method, payload, and expected response shape.
50
- - **CLI**: exact CLI command, flags, arguments, and expected terminal output.
51
- - **Library / Module**: sample usage snippet, REPL call, or interactive test command.
52
- - **Fullstack / Microservices**: minimal combined startup commands (e.g. backend + frontend).
60
+ Use the Commands section in `AGENTS.md`. Match the project type:
53
61
 
54
- If a startup command is missing or unclear in `AGENTS.md`, report that as a configuration gap rather than guessing.
62
+ - **Web app** - dev server command, URL, and the route or screen to open.
63
+ - **Server/API** - server command, base URL, endpoint, method, and expected
64
+ response shape.
65
+ - **CLI** - exact command(s), arguments, and expected output.
66
+ - **Library** - example command, test fixture, REPL snippet, or sample call.
67
+ - **Hybrid app** - list the smallest set of commands needed, such as backend plus
68
+ web dev server.
55
69
 
56
- ## Step 3 - Produce The Manual Walkthrough Guide
70
+ If the app may already be running, say how to reuse it. If a command is missing
71
+ from `AGENTS.md`, report that as a gap rather than inventing certainty.
57
72
 
58
- Format the guide with these 5 standard sections:
73
+ ## Step 3 - write the manual guide
59
74
 
60
- 1. **1. Start** - exact command(s) to start the system and where to run them.
61
- 2. **2. Open** - URL(s), screens, tabs, API endpoints, or terminal locations.
62
- 3. **3. Do** - specific clicks, form inputs, toggles, selections, or arguments.
63
- 4. **4. Expect** - expected visible UI change, response payload, state change, output, or absence of errors.
64
- 5. **5. Watch For** - common failure symptoms, console errors, network 4xx/5xx errors, stale state, layout breakage, or safety warnings.
75
+ Produce a short guide with these sections:
65
76
 
66
- ### Example Walkthrough Style:
77
+ 1. **Start** - commands to run and where to run them.
78
+ 2. **Open** - URLs, screens, tabs, API endpoints, or CLI commands.
79
+ 3. **Do** - clicks, inputs, selections, or command arguments.
80
+ 4. **Expect** - visible result, output, response, state change, file, or lack of
81
+ error.
82
+ 5. **Watch For** - common wrong outcomes, console or network errors, stale data,
83
+ missing fields, bad empty states, layout issues, or safety warnings.
67
84
 
68
- ```markdown
69
- ### 1. Start
70
- Run `npm run dev` in the project root.
85
+ Keep it concrete. Prefer:
71
86
 
72
- ### 2. Open
73
- Navigate to `http://localhost:3000/dashboard/reports`.
87
+ Open http://127.0.0.1:7788/api/snapshot
88
+ Expect a JSON object with `generated_at`, `services`, `projects`, and
89
+ `conflicts`.
74
90
 
75
- ### 3. Do
76
- 1. Click the **"Export Report"** button in the top right.
77
- 2. Select **"Format: HTML"** from the dropdown.
78
- 3. Click **"Download"**.
91
+ Avoid:
79
92
 
80
- ### 4. Expect
81
- - A new file `report.html` is downloaded.
82
- - The UI displays a green success toast: *"Report exported successfully"*.
83
- - The downloaded HTML file opens in the browser with full styling and charts.
93
+ Check that the snapshot works.
84
94
 
85
- ### 5. Watch For
86
- - Spinner hanging indefinitely without downloading.
87
- - Console error related to `Blob` or `URL.createObjectURL`.
88
- - Broken styling or unrendered Mermaid charts in the exported HTML.
89
- ```
95
+ ## Step 4 - include confidence and gaps
90
96
 
91
- ## Step 4 - Include Confidence, Best Signal & Gaps
97
+ End with:
92
98
 
93
- Conclude with:
99
+ - **Best signal** - the one thing the user should try first.
100
+ - **Optional deeper checks** - only if useful.
101
+ - **Gaps** - anything the guide cannot know from the docs, such as missing route
102
+ names, seed data, credentials, or external services.
94
103
 
95
- - **Best Signal**: the single most critical action the user should try first to confirm functionality.
96
- - **Edge Cases & Error Flows**: optional secondary checks (e.g. invalid input, empty state, network failure).
97
- - **Gaps & Assumptions**: anything the guide cannot know for certain (e.g. seed credentials, third-party API keys, required database fixtures).
104
+ If the feature is not user-visible, say so and provide the closest manual signal,
105
+ such as an API response, CLI output, log line, or unit test command.
98
106
 
99
107
  ## Rules
100
108
 
101
- - **Strictly Read-Only**: Never edit code, commit, push, install packages, or mutate repository state.
102
- - **Do Not Run Automatically**: Do not launch the server or run commands unless the user explicitly instructs you to do so in the chat.
103
- - **Be Concrete & Specific**: Provide exact URLs, button labels, and payloads.
104
- - **Acknowledge Uncertainty**: If a route or behavior is not specified in the spec, state it clearly as an assumption.
109
+ - Read-only only. Do not edit, commit, merge, push, install, or delete.
110
+ - Do not run the app unless the user explicitly asks you to try it for them.
111
+ - Do not pretend a path is known when the spec does not say it. Give the best
112
+ likely path and label uncertainty.
113
+ - Keep the guide short enough to follow while the app is open.
114
+ - Match the project's commands from `AGENTS.md`.
105
115
 
106
- ## Output Formatting
116
+ ## Formatting
107
117
 
108
- Follow the project conventions in `devflow/context/ai-interaction.md`: concise, scannable markdown with numbered steps and clear bold headers.
118
+ Format the output to match the project's conventions in
119
+ `devflow/context/ai-interaction.md`: concise, scannable markdown, with numbered
120
+ steps for the manual path and short bullets for warnings.
@@ -25,15 +25,16 @@ The workflow and skills are exposed through tool-specific adapters:
25
25
 
26
26
  - **OpenAI Codex, Google Antigravity & GitHub Copilot**: `.agents/skills/<skill>/SKILL.md`
27
27
  - **Claude Code**: `.claude/skills/<skill>/SKILL.md`
28
+ - **OpenCode**: `AGENTS.md` plus the compatible `.agents/skills/` or `.claude/skills/` tree already installed for the selected tools
28
29
 
29
- Unused adapter families can be removed. Codex, Antigravity, and GitHub Copilot share `.agents/` and `AGENTS.md`. Claude Code projects keep `.claude/` and `AGENTS.md` (via `CLAUDE.md`).
30
+ Unused adapter families can be removed. Codex, Antigravity, GitHub Copilot, and OpenCode share `.agents/` and `AGENTS.md`. OpenCode can also reuse `.claude/` when Claude Code is selected. Claude Code projects keep `.claude/` and `AGENTS.md` (via `CLAUDE.md`). Do not duplicate the same DevFlow skills under `.opencode/skills/`; OpenCode already discovers the compatible trees.
30
31
 
31
32
  ### Universal Invocation & Agent Directives:
32
33
 
33
- 1. **Canonical Command Names & AI Provider Invocation**: Each workflow stage and companion tool has exactly **one Canonical Name** (e.g. `feature`, `fix`, `implement`, `check`, `complete`, `00-explore`, `10-define`, `20-spec`, `30-plan`, `40-execute`, `50-verify`, `60-report`, `70-deliver`, `devflow`, `doctor`, `overview`, `debug`, `onboard`, `adopt`, `try`, `rollback`, `idea`, `ci`, `test`, `autopilot`, `prototype`, `report-html`, `brief`, `discovery`, `audit`, `release`). The way you invoke commands depends on your AI Provider / Tool:
34
- - **Canonical Name (Plain text)**: Directly invoke or prompt the command by its standard name (e.g., `feature`, `40-execute`, `devflow`).
35
- - **Slash Prefix (`/`)**: For tools supporting slash commands (Claude Code, Google Antigravity, Gemini CLI), e.g., `/feature`, `/fix`, `/implement`, `/40-execute`, `/devflow`.
36
- - **Dollar Prefix (`$`)**: For OpenAI Codex CLI or skill-invocation tools, e.g., `$feature`, `$fix`, `$40-execute`, `$devflow`.
34
+ 1. **Canonical Command Names & AI Provider Invocation**: Each workflow stage and companion tool has exactly **one Canonical Name** (e.g. `feature`, `fix`, `implement`, `check`, `complete`, `discovery`, `10-define`, `20-spec`, `30-plan`, `40-execute`, `50-verify`, `60-report`, `70-deliver`, `devflow`, `doctor`, `overview`, `debug`, `onboard`, `adopt`, `try`, `rollback`, `idea`, `ci`, `test`, `autopilot`, `prototype`, `report-html`, `brief`, `audit`, `release`, `brainstorm`, `grill`). The way you invoke commands depends on your AI Provider / Tool:
35
+ - **Canonical Name (Plain text)**: Directly invoke or prompt the command by its standard name (e.g., `feature`, `40-execute`, `devflow`, `discovery`).
36
+ - **Slash Prefix (`/`)**: For tools supporting slash commands (Claude Code, Google Antigravity, Gemini CLI), e.g., `/feature`, `/fix`, `/implement`, `/40-execute`, `/devflow`, `/discovery`.
37
+ - **Dollar Prefix (`$`)**: For OpenAI Codex CLI or skill-invocation tools, e.g., `$feature`, `$fix`, `$40-execute`, `$devflow`, `$discovery`.
37
38
  2. **OpenAI Codex & Non-Native CLI Tools**: In environments without automatic background skill discovery (such as OpenAI Codex CLI, Aider, or generic terminals), **you MUST use your file reading tool to inspect `.agents/skills/<skill>/SKILL.md` before executing the stage** to strictly follow its schema, artifact contract, and quality gates.
38
39
  3. **Google Antigravity & Claude Code**: Native skill engines automatically discover and surface `.agents/skills/` and `.claude/skills/`.
39
40
  4. **State-Aware Inspection**: When unsure what to do next, invoke `devflow` to automatically inspect `devflow/context/current-stage.md` and active context in `devflow/context/`.
@@ -66,10 +67,10 @@ Recommended for 85% of daily work (features, bug fixes, UI improvements, iterati
66
67
  Recommended for large architectural epics, database migrations, and multi-agent coordination:
67
68
 
68
69
  ```text
69
- 00-explore ──▶ 10-define ──▶ 20-spec ──▶ 30-plan ──▶ 40-execute ──▶ 50-verify ──▶ 60-report ──▶ 70-deliver
70
+ discovery ──▶ 10-define ──▶ 20-spec ──▶ 30-plan ──▶ 40-execute ──▶ 50-verify ──▶ 60-report ──▶ 70-deliver
70
71
  ```
71
72
 
72
- 1. `00-explore`: Explore request before delivery commitment without allocating running ID (`00-explore.md`).
73
+ 1. `discovery`: Unified pre-delivery discovery & exploration (project-level roadmap planning or feature-level exploration with 5 lenses: Brainstorm, Research, PRD, Bug Triage, Grill) before delivery commitment (`devflow/discoveries/{DISC-ID}/discovery.md`).
73
74
  2. `10-define`: Turn approved discovery into bounded delivery run in `devflow/context/current-run/10-define.md`.
74
75
  3. `20-spec`: Formalize markdown-first delivery contract & acceptance criteria (`20-spec.md`).
75
76
  4. `30-plan`: Breakdown spec into executable tasks with test decisions (`30-plan.md` + checklists).
@@ -60,3 +60,11 @@
60
60
  - *Dependencies*: Feature 6
61
61
  - *Scope*: พัฒนาระบบกระจายงานแบบคู่ขนานให้ Subagents (Coder, QA Verifier, Security Auditor) และระบบ Indexing Local Codebase Graph เพื่อดึงบริบทที่แม่นยำสูงสุด
62
62
 
63
+ ---
64
+
65
+ ## 🔄 Phase 8: Upstream Synchronization & Multi-Adapter Expansion
66
+
67
+ - [x] **8. Sync Upstream v0.13.0 (Adopt Visibility, OpenCode & Multi-Adapter Selection)** `[Size: M]`
68
+ - *Dependencies*: None
69
+ - *Scope*: ผสานความสามารถ Adopt Workflow Visibility (Commit vs Local-only), การรองรับ OpenCode และ Multi-Adapter Checkbox Prompt ใน CLI พร้อมอัปเดต Doctor checks และซิงก์ Baseline SHA เป็น v0.13.0 (`0b65166`)
70
+
@@ -120,3 +120,14 @@ Progress lives in persistent files, not in transient chat history:
120
120
  - `autopilot` is an explicit opt-in command (`/autopilot`). Never suggest it as the default next action.
121
121
  - When invoked, it runs one bounded spec/plan/implement/verify pass.
122
122
  - Autopilot **MUST stop** before `/complete`, merge, push, deploy, or any destructive action.
123
+
124
+ ---
125
+
126
+ ## 9. Socratic Alignment & Grilling Discipline (`/grill`)
127
+
128
+ - **Align Before You Build**: When plans, domain language, or architectural boundaries are fuzzy, invoke `/grill` (or use the Grilling Lens in `00-explore`) to conduct a structured interview before creating specifications.
129
+ - **Codebase-Grounded Inquiry**: Inspect existing context and code before asking questions. Never ask questions the codebase already answers.
130
+ - **Turn Discipline**: Ask only 1–2 high-leverage questions per turn with clear recommended defaults. Never dump a wall of questions.
131
+ - **Lazy Inline Persistence**:
132
+ - Immediately append resolved terms to `devflow/context/glossary.md`.
133
+ - Immediately record major, hard-to-reverse architectural decisions as Architecture Decision Records in `devflow/decisions/ADR-xxx-{slug}.md`.
@@ -58,11 +58,12 @@
58
58
 
59
59
  ```text
60
60
  nexus-devflow/
61
- ├── .agents/skills/ # Codex & Google Antigravity skill definitions
61
+ ├── .agents/skills/ # Codex, Google Antigravity & Copilot skill definitions
62
62
  ├── .claude/skills/ # Claude Code mirrored skill adapters
63
63
  ├── .nexus/ # Metadata tracking & upstream baseline ledger
64
64
  ├── devflow/ # Framework workspace context, history, and discoveries
65
65
  │ ├── context/ # Living source-of-truth context files
66
+ │ ├── decisions/ # Architecture Decision Records (ADRs)
66
67
  │ ├── discoveries/ # Pre-delivery discovery records (00-explore.md)
67
68
  │ ├── history/ # Master delivery archive (features/, fixes/, rollbacks/, HISTORY.md)
68
69
  │ └── ideas.md # Idea Inbox and backlog
@@ -140,3 +141,16 @@ Testing is a core quality gate in Nexus-DevFlow, not an afterthought:
140
141
  - `Major`: Breaking architectural change
141
142
  - `Minor`: New feature addition
142
143
  - `Patch`: Bug fix or documentation update
144
+
145
+ ---
146
+
147
+ ## 11. Architecture Decision Records (ADRs) & Domain Glossary
148
+
149
+ - **Domain Glossary (`devflow/context/glossary.md`)**:
150
+ - Keep domain terms concise, precise, and unambiguous.
151
+ - Define entity boundaries, invariants, and lifecycle rules.
152
+ - Do NOT store implementation specs or ephemeral task lists in the glossary.
153
+ - **Architecture Decision Records (`devflow/decisions/ADR-xxx-{slug}.md`)**:
154
+ - Store durable, high-impact, hard-to-reverse architectural decisions in `devflow/decisions/`.
155
+ - Number sequentially (`ADR-001`, `ADR-002`, ...).
156
+ - Must include: Context, Decision, Alternatives Considered (with trade-offs), and Consequences (positive gains and accepted risks).
@@ -2,7 +2,7 @@
2
2
 
3
3
  - **Active Discovery ID**: `None`
4
4
  - **Active Running ID**: `None`
5
- - **Current Stage**: `Idle (Ready for new /feature, /fix, /00-explore, or /10-define)`
5
+ - **Current Stage**: `Idle (Ready for new /feature, /fix, /discovery, or /10-define)`
6
6
  - **Living Spec**: `None`
7
7
  - **Last Completed Run**: `None`
8
8
  - **Last Updated**: `None`
File without changes
@@ -0,0 +1,24 @@
1
+ # 🏛️ Architecture Decision Records (ADRs)
2
+
3
+ This directory stores durable Architecture Decision Records (ADRs) produced during `/grill`, `00-explore`, or high-stakes architectural design sessions.
4
+
5
+ ---
6
+
7
+ ## 📋 ADR Format & Standards
8
+
9
+ Each ADR is named `ADR-xxx-{slug}.md` (e.g. `ADR-001-database-schema-migration.md`) and follows this structure:
10
+
11
+ ```markdown
12
+ # ADR-xxx: {Title}
13
+
14
+ - **Status**: Accepted | Proposed | Deprecated | Superseded by ADR-yyy
15
+ - **Date**: YYYY-MM-DD
16
+ - **Context**: Problem statement, background, and why this decision was needed.
17
+ - **Decision**: The selected architectural approach or invariant.
18
+ - **Alternatives Considered**:
19
+ - *Option 1*: Pros / Cons
20
+ - *Option 2*: Pros / Cons
21
+ - **Consequences**:
22
+ - *Positive*: Benefits and capabilities unlocked
23
+ - *Trade-offs / Risks*: Costs, complexity, or constraints
24
+ ```
@@ -8,7 +8,7 @@ This master ledger tracks all released delivery runs, milestones, and rollbacks
8
8
 
9
9
  | Completed Date | Run ID | Category | Title | Git Commit | Status | Archive Link |
10
10
  | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
11
- | _No shipped runs yet_ | - | - | Run `/feature` or `/00-explore` to start your first delivery run | - | - | - |
11
+ | _No shipped runs yet_ | - | - | Run `/feature` or `/discovery` to start your first delivery run | - | - | - |
12
12
 
13
13
  ---
14
14
 
@@ -0,0 +1,5 @@
1
+ # Completed Features Archive
2
+
3
+ Finished feature specs, enhancements, architecture migrations, and tooling runs are archived here as `xxx-name.md` (for Fast-Track single living specs) or `xxx-name/` (for Deep-Track stage runs).
4
+
5
+ Together they form the project's permanent feature build history, recording what was built, why, and how it was verified.
@@ -0,0 +1,5 @@
1
+ # Completed Fixes Archive
2
+
3
+ Finished bug fixes, hotfixes, regressions, security patches, and performance optimizations are archived here as `xxx-name.md` (for Fast-Track single living specs) or `xxx-name/` (for Deep-Track stage runs).
4
+
5
+ Together they form the project's permanent bug resolution history, recording root causes, TDD test decisions, and empirical proof.
@@ -0,0 +1,5 @@
1
+ # Completed Rollbacks Archive
2
+
3
+ Safely reversed features and rollback execution records are archived here as `YYYY-MM-DD-xxx-name.md` (or `YYYY-MM-DD-xxx-name/`).
4
+
5
+ Together they form the project's safe feature reversal ledger, documenting target commits, dependency review, and post-reversal verification.
@@ -1,84 +0,0 @@
1
- ---
2
- name: 00-explore
3
- description: "[devflow][D] Explore stage in DevFlow 2.0 - explore a request, route supporting inquiry, and decide whether delivery work should begin without allocating a running ID."
4
- argument-hint: "{title, request, or discovery-id}"
5
- ---
6
-
7
- # Phase 00: Explore
8
-
9
- $ARGUMENTS
10
-
11
- Explore a request before delivery commitment. Create or resume a Discovery ID, choose only the supporting route that the uncertainty requires, and finish with a visible `Proceed`, `Defer`, or `Reject` decision. Do not create a Running ID in this stage.
12
-
13
- ## Usage
14
-
15
- ```text
16
- 00-explore {title or request}
17
- 00-explore IDEA-xxx
18
- 00-explore {discovery-id}
19
- ```
20
-
21
- Use this when:
22
-
23
- - a new request needs discussion before the team commits to delivery
24
- - exploring a pending idea from `devflow/ideas.md` (`00-explore IDEA-xxx`)
25
- - the best route may be `Brainstorm`, `PRD`, `Research`, or `Debug`
26
- - supporting findings need to be synthesized into a go/no-go decision
27
-
28
- ## Markdown-First Contract
29
-
30
- Write the primary discovery artifact to:
31
-
32
- ```text
33
- devflow/discoveries/{DISCOVERY_ID}-{slug}/00-explore.md
34
- ```
35
-
36
- A Discovery ID uses a separate namespace such as `DISC-YYYYMMDD-NNN`. It is not a Running ID and must not reserve a numeric delivery run.
37
-
38
- ## Process
39
-
40
- ### Loop Contract
41
-
42
- Run discovery as a decision-and-routing loop, not as task initialization.
43
-
44
- - **Intent**: understand the request, select proportionate supporting inquiry, and decide whether the idea should enter delivery definition.
45
- - **Context**: read the request, discovery artifact when resuming, project context, constraints, and available evidence.
46
- - **Action**: restate the problem, identify the decision-blocking uncertainty, select `Brainstorm`, `PRD`, `Research`, `Debug`, or direct decision, then synthesize returned findings.
47
- - **Observation**: use concrete evidence such as option tradeoffs, product framing, research results, root cause, stakeholder constraints, open questions, and visible risk.
48
- - **Stop Condition**: stop when the selected route and evidence are recorded, open questions are visible, and the decision is `Proceed`, `Defer`, or `Reject`.
49
- - **Handoff**: only an approved `Proceed` discovery may hand off to `10-define {discovery_id}`.
50
-
51
- ### 1. Supporting Routes & Built-in Lenses
52
-
53
- 1. **Brainstorming Lens (Divergent & Convergent)**:
54
- - Formulate 2-3 viable options.
55
- - Construct a **Trade-off Comparison Table**:
56
- | Option | Pros | Cons | Recommendation |
57
- | :--- | :--- | :--- | :--- |
58
- 2. **Research & Empirical Proof Lens**:
59
- - Inspect existing codebase patterns with search tools (`grep_search`, `rg`).
60
- - Conduct external web search if library feasibility or API contracts are uncertain.
61
- - Record verifiable empirical facts.
62
- 3. **PRD & Scoping Lens**:
63
- - Problem Statement & Target User Persona.
64
- - Core User Stories (`As a... I want to... So that...`).
65
- - In-Scope vs. Out-of-Scope boundaries.
66
- 4. **Issue & Bug Triage Lens**:
67
- - Classify severity (`Critical/Blocker`, `Major`, `Minor`).
68
- - Determine whether root-cause analysis (`debug`) is required before spec.
69
-
70
- ### 2. Decision & Approval Gate
71
-
72
- Set one decision:
73
- - `Proceed`: enough value and evidence exist to define delivery work
74
- - `Defer`: the idea remains relevant but timing, evidence, or ownership is not ready
75
- - `Reject`: the idea should not proceed under the current framing
76
-
77
- ### 3. Write `00-explore.md`
78
-
79
- Record selected routes, returned findings, open questions, decision, and rationale.
80
-
81
- ## Next Workflow Recommendation
82
-
83
- - **Primary**: `10-define {discovery_id}` only after approved Proceed
84
- - **Defer/Reject**: No next command needed
@@ -1,84 +0,0 @@
1
- ---
2
- name: 00-explore
3
- description: "[Devflow] Explore stage in DevFlow 2.0 - explore a request, route supporting inquiry, and decide whether delivery work should begin without allocating a running ID."
4
- argument-hint: "{title, request, or discovery-id}"
5
- ---
6
-
7
- # Phase 00: Explore
8
-
9
- $ARGUMENTS
10
-
11
- Explore a request before delivery commitment. Create or resume a Discovery ID, choose only the supporting route that the uncertainty requires, and finish with a visible `Proceed`, `Defer`, or `Reject` decision. Do not create a Running ID in this stage.
12
-
13
- ## Usage
14
-
15
- ```text
16
- 00-explore {title or request}
17
- 00-explore IDEA-xxx
18
- 00-explore {discovery-id}
19
- ```
20
-
21
- Use this when:
22
-
23
- - a new request needs discussion before the team commits to delivery
24
- - exploring a pending idea from `devflow/ideas.md` (`00-explore IDEA-xxx`)
25
- - the best route may be `Brainstorm`, `PRD`, `Research`, or `Debug`
26
- - supporting findings need to be synthesized into a go/no-go decision
27
-
28
- ## Markdown-First Contract
29
-
30
- Write the primary discovery artifact to:
31
-
32
- ```text
33
- devflow/discoveries/{DISCOVERY_ID}-{slug}/00-explore.md
34
- ```
35
-
36
- A Discovery ID uses a separate namespace such as `DISC-YYYYMMDD-NNN`. It is not a Running ID and must not reserve a numeric delivery run.
37
-
38
- ## Process
39
-
40
- ### Loop Contract
41
-
42
- Run discovery as a decision-and-routing loop, not as task initialization.
43
-
44
- - **Intent**: understand the request, select proportionate supporting inquiry, and decide whether the idea should enter delivery definition.
45
- - **Context**: read the request, discovery artifact when resuming, project context, constraints, and available evidence.
46
- - **Action**: restate the problem, identify the decision-blocking uncertainty, select `Brainstorm`, `PRD`, `Research`, `Debug`, or direct decision, then synthesize returned findings.
47
- - **Observation**: use concrete evidence such as option tradeoffs, product framing, research results, root cause, stakeholder constraints, open questions, and visible risk.
48
- - **Stop Condition**: stop when the selected route and evidence are recorded, open questions are visible, and the decision is `Proceed`, `Defer`, or `Reject`.
49
- - **Handoff**: only an approved `Proceed` discovery may hand off to `10-define {discovery_id}`.
50
-
51
- ### 1. Supporting Routes & Built-in Lenses
52
-
53
- 1. **Brainstorming Lens (Divergent & Convergent)**:
54
- - Formulate 2-3 viable options.
55
- - Construct a **Trade-off Comparison Table**:
56
- | Option | Pros | Cons | Recommendation |
57
- | :--- | :--- | :--- | :--- |
58
- 2. **Research & Empirical Proof Lens**:
59
- - Inspect existing codebase patterns with search tools (`grep_search`, `rg`).
60
- - Conduct external web search if library feasibility or API contracts are uncertain.
61
- - Record verifiable empirical facts.
62
- 3. **PRD & Scoping Lens**:
63
- - Problem Statement & Target User Persona.
64
- - Core User Stories (`As a... I want to... So that...`).
65
- - In-Scope vs. Out-of-Scope boundaries.
66
- 4. **Issue & Bug Triage Lens**:
67
- - Classify severity (`Critical/Blocker`, `Major`, `Minor`).
68
- - Determine whether root-cause analysis (`debug`) is required before spec.
69
-
70
- ### 2. Decision & Approval Gate
71
-
72
- Set one decision:
73
- - `Proceed`: enough value and evidence exist to define delivery work
74
- - `Defer`: the idea remains relevant but timing, evidence, or ownership is not ready
75
- - `Reject`: the idea should not proceed under the current framing
76
-
77
- ### 3. Write `00-explore.md`
78
-
79
- Record selected routes, returned findings, open questions, decision, and rationale.
80
-
81
- ## Next Workflow Recommendation
82
-
83
- - **Primary**: `10-define {discovery_id}` only after approved Proceed
84
- - **Defer/Reject**: No next command needed