bmad-plus 0.5.0 → 0.7.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 (84) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/README.md +144 -142
  3. package/package.json +1 -1
  4. package/readme-international/README.de.md +125 -125
  5. package/readme-international/README.es.md +215 -215
  6. package/readme-international/README.fr.md +213 -213
  7. package/src/bmad-plus/module.yaml +46 -0
  8. package/src/bmad-plus/packs/pack-dev-studio/README.md +162 -0
  9. package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/analyst-agent.md +74 -0
  10. package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/document-project.md +62 -0
  11. package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/domain-research.md +96 -0
  12. package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/market-research.md +96 -0
  13. package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/prfaq.md +135 -0
  14. package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/product-brief.md +81 -0
  15. package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/tech-writer-agent.md +74 -0
  16. package/src/bmad-plus/packs/pack-dev-studio/categories/analysis/technical-research.md +96 -0
  17. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/architect-agent.md +74 -0
  18. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/create-architecture.md +74 -0
  19. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/create-epics-stories.md +93 -0
  20. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/generate-project-context.md +81 -0
  21. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/implementation-readiness.md +91 -0
  22. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-01-init.md +153 -0
  23. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-01b-continue.md +173 -0
  24. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-02-context.md +224 -0
  25. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-03-starter.md +329 -0
  26. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-04-decisions.md +318 -0
  27. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-05-patterns.md +359 -0
  28. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-06-structure.md +379 -0
  29. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-07-validation.md +361 -0
  30. package/src/bmad-plus/packs/pack-dev-studio/categories/architecture/steps/step-08-complete.md +82 -0
  31. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/checkpoint-preview.md +68 -0
  32. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/code-review-steps/step-01-gather-context.md +85 -0
  33. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/code-review-steps/step-02-review.md +35 -0
  34. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/code-review-steps/step-03-triage.md +49 -0
  35. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/code-review-steps/step-04-present.md +132 -0
  36. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/code-review.md +90 -0
  37. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/correct-course.md +301 -0
  38. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/create-story.md +429 -0
  39. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/dev-agent.md +74 -0
  40. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/dev-story-checklist.md +80 -0
  41. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/dev-story.md +485 -0
  42. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/investigate.md +194 -0
  43. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/qa-e2e-tests.md +176 -0
  44. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/quick-dev.md +111 -0
  45. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/retrospective.md +1512 -0
  46. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/sprint-planning.md +299 -0
  47. package/src/bmad-plus/packs/pack-dev-studio/categories/implementation/sprint-status.md +297 -0
  48. package/src/bmad-plus/packs/pack-dev-studio/categories/planning/create-prd.md +30 -0
  49. package/src/bmad-plus/packs/pack-dev-studio/categories/planning/create-ux-design.md +75 -0
  50. package/src/bmad-plus/packs/pack-dev-studio/categories/planning/edit-prd.md +30 -0
  51. package/src/bmad-plus/packs/pack-dev-studio/categories/planning/pm-agent.md +74 -0
  52. package/src/bmad-plus/packs/pack-dev-studio/categories/planning/prd.md +90 -0
  53. package/src/bmad-plus/packs/pack-dev-studio/categories/planning/ux-designer-agent.md +74 -0
  54. package/src/bmad-plus/packs/pack-dev-studio/categories/planning/validate-prd.md +30 -0
  55. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/advanced-elicitation.md +142 -0
  56. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/adversarial-review.md +37 -0
  57. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/bmad-help.md +75 -0
  58. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/brainstorming.md +6 -0
  59. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/customize.md +111 -0
  60. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/distillator.md +177 -0
  61. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/edge-case-hunter.md +67 -0
  62. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/editorial-review-prose.md +86 -0
  63. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/editorial-review-structure.md +179 -0
  64. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/index-docs.md +66 -0
  65. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/party-mode.md +128 -0
  66. package/src/bmad-plus/packs/pack-dev-studio/categories/utilities/shard-doc.md +105 -0
  67. package/src/bmad-plus/packs/pack-dev-studio/dev-studio-orchestrator.md +120 -0
  68. package/src/bmad-plus/packs/pack-dev-studio/shared/architecture-decision-template.md +12 -0
  69. package/src/bmad-plus/packs/pack-dev-studio/shared/bwml-spec.md +328 -0
  70. package/src/bmad-plus/packs/pack-dev-studio/shared/module-help.csv +32 -0
  71. package/src/bmad-plus/packs/pack-dev-studio/upstream-sync.yaml +81 -0
  72. package/src/bmad-plus/packs/pack-memory/README.md +106 -0
  73. package/src/bmad-plus/packs/pack-memory/memory-orchestrator.md +79 -0
  74. package/src/bmad-plus/packs/pack-memory/shared/karpathy-guardrails.md +86 -0
  75. package/src/bmad-plus/packs/pack-memory/shared/memory-protocol.md +143 -0
  76. package/src/bmad-plus/packs/pack-memory/templates/context.md +39 -0
  77. package/src/bmad-plus/packs/pack-memory/templates/decisions.md +25 -0
  78. package/src/bmad-plus/packs/pack-memory/templates/identity.yaml +39 -0
  79. package/src/bmad-plus/packs/pack-memory/templates/lessons.md +31 -0
  80. package/src/bmad-plus/packs/pack-memory/templates/patterns.md +24 -0
  81. package/src/bmad-plus/packs/pack-memory/templates/session-handoff.md +25 -0
  82. package/src/bmad-plus/packs/pack-memory/zecher-agent.md +157 -0
  83. package/tools/cli/commands/install.js +145 -1
  84. package/tools/cli/i18n.js +10 -10
@@ -0,0 +1,194 @@
1
+ ---
2
+ name: bmad-investigate
3
+ description: Forensic case investigation with evidence-graded findings, calibrated to the input. Use when the user asks to investigate a bug, trace what caused an incident, walk through unfamiliar code, or build a mental model of a code area before working on it.
4
+ ---
5
+
6
+ # Investigate
7
+
8
+ ## Overview
9
+
10
+ Reconstruct what's happening, or what an unfamiliar area does, from the available evidence. Produce a structured case
11
+ file another engineer can pick up cold. Calibrate continuously between defect-chasing (symptom-driven) and
12
+ area-exploration (no symptom); the same discipline applies on both ends.
13
+
14
+ **Args:** A ticket ID, log file path, diagnostic archive, error message, code area name, problem description, or a path
15
+ to an existing case file. The last form resumes a prior investigation; everything else opens a new case.
16
+
17
+ **Output:** `{implementation_artifacts}/{workflow.case_file_subdir}/{workflow.case_file_filename}`. Reference inputs
18
+ are recorded; raw content is not read into the parent context until an outcome calls for it.
19
+
20
+ `{slug}` is the ticket ID when one is provided, otherwise a short descriptive name agreed with the user, sanitized to
21
+ lowercase alphanumeric with hyphens. On collision with an existing case file at the resolved path, ask whether to
22
+ rename to `slug-YYYY-MM-DD.md` or resume the existing file (resuming routes to Outcome 0).
23
+
24
+ After every outcome, present what was learned and pause for the user before continuing.
25
+
26
+ ## Principles
27
+
28
+ - **Evidence grading.**
29
+ - **Confirmed.** Directly observed; cite `path:line`, log timestamp, or commit hash.
30
+ - **Deduced.** Logically follows from Confirmed evidence; show the chain.
31
+ - **Hypothesized.** Plausible but unconfirmed; state what would confirm or refute it.
32
+ - **Stronghold first.** Anchor in one Confirmed piece of evidence and expand outward. Never start from a theory and
33
+ hunt for support. When evidence is sparse, switch to evidence-light mode (Outcome 1 branch).
34
+ - **Challenge the premise.** The user's description is a hypothesis, not a fact. Verify independently; if evidence
35
+ contradicts, say so.
36
+ - **Follow the evidence, not the narrative.** When evidence contradicts the working theory, update the theory — never
37
+ the other way around. Resist confirmation bias even when the user is convinced.
38
+ - **Hypotheses are never deleted.** Update Status (Open / Confirmed / Refuted) and add a Resolution. Wrong turns are
39
+ part of the deliverable.
40
+ - **Missing evidence is itself a finding.** Document the gap, what it would resolve, and how to obtain it.
41
+ - **Write it down early.** Initialize the case file as soon as the slug is agreed; it is the persistent state across
42
+ interruptions.
43
+ - **Path:line citations** use CWD-relative format, no leading `/`, so they're clickable in IDE-embedded terminals.
44
+ - **Delegation discipline.** When a step requires reading 5+ files or any file >10K tokens, delegate to a subagent
45
+ that returns structured JSON only. Cite `path:line` from the result; don't re-read in the parent.
46
+ - **Issue independent operations in parallel** (multi-grep, multi-read, parallel inventories) — one message, multiple
47
+ tool calls.
48
+ - **Communication.** Evidence-first language ("the evidence shows", "unconfirmed, requires X to verify"). No hedging,
49
+ no narrative.
50
+
51
+ ## On Activation
52
+
53
+ ### Step 1: Resolve the workflow block
54
+
55
+ <!-- Adapted for BMAD+: original script dependency removed -->
56
+
57
+ If the script fails, stop and surface the error.
58
+
59
+ ### Step 2: Execute prepend steps
60
+
61
+ Run each entry in `{workflow.activation_steps_prepend}` in order.
62
+
63
+ ### Step 3: Load persistent facts
64
+
65
+ Treat each entry in `{workflow.persistent_facts}` as foundational context. `file:` prefixes are paths or globs under
66
+ `{project-root}` (load contents); other entries are facts verbatim.
67
+
68
+ ### Step 4: Load config
69
+
70
+ Load `{project-root}/project config` and resolve `{user_name}`, `{communication_language}`,
71
+ `{document_output_language}`, `{implementation_artifacts}`, `{project_knowledge}`. If `{implementation_artifacts}` is
72
+ unresolved, fall back to `./investigations/` and surface the fallback before initializing.
73
+
74
+ ### Step 5: Greet
75
+
76
+ Greet `{user_name}` in `{communication_language}`.
77
+
78
+ ### Step 6: Execute append steps
79
+
80
+ Run each entry in `{workflow.activation_steps_append}` in order.
81
+
82
+ ### Step 7: Acknowledge and route
83
+
84
+ Acknowledge the input as a reference (record paths and IDs; don't read raw content). Path to an existing case file →
85
+ Outcome 0. Otherwise → Outcome 1.
86
+
87
+ ## Procedure
88
+
89
+ ### Outcome 0: Existing case is loaded and surfaced
90
+
91
+ Read the case file. Surface, in order: open hypotheses (Status = Open) with their confirm/refute criteria; open
92
+ backlog (Status ≠ Done); missing-evidence rows; last Conclusion with confidence. Ask which thread to pull. New
93
+ evidence opens a new `## Follow-up: {YYYY-MM-DD}` block (append `#2`, `#3` on same-day reentry). Pause for user with the recap above; wait for direction.
94
+
95
+ ### Outcome 1: Scope and stronghold are established
96
+
97
+ Acknowledge each input shape — record location, scope, time window only; bulk reads happen in Outcome 2.
98
+
99
+ - **Issue tracker ticket.** Fetch full details via available MCP tools.
100
+ - **Diagnostic archive.** Record path, file count, time window.
101
+ - **Log file or stack trace.** Record path and time window; only the stack frame already in the user's message is in
102
+ scope here.
103
+ - **Free-text description.** Capture verbatim; treat as hypothesis.
104
+ - **Code area name** (no symptom). Record entry point.
105
+ - **Recent commit area.** Record commit range.
106
+
107
+ If the user arrived with a hypothesis, register it as Hypothesis #1. Find the stronghold *independently*; the user's
108
+ hypothesis is one of the things the stronghold validates or refutes.
109
+
110
+ Find a stronghold: a Confirmed piece of evidence (error message, function name, HTTP route, config parameter, test
111
+ case). Anchor here.
112
+
113
+ **Initialize `{case_file}` before branching.** The path is
114
+ `{implementation_artifacts}/{workflow.case_file_subdir}/{workflow.case_file_filename}` with `{slug}` substituted (slug
115
+ and collision rules in Overview). Create the file from `{workflow.case_file_template}` and fill Hand-off Brief
116
+ (rough), Case Info, Problem Statement, initial Evidence Inventory.
117
+
118
+ **Evidence-light branch.** When no Confirmed evidence is reachable: mark the case evidence-light in the Hand-off
119
+ Brief; populate the Investigation Backlog with prioritized data-collection items; record "to make progress, I need one
120
+ of: …"; pause for the user to provide evidence or authorize Outcome 2 to scan more broadly.
121
+
122
+ Otherwise present scope, stronghold, file path, proposed approach. Pause for user with the recap above; wait for direction.
123
+
124
+ ### Outcome 2: Evidence perimeter is mapped
125
+
126
+ Survey the scene: inventory available evidence in parallel across these independent categories: diagnostic archives;
127
+ issue tracker; version control; test results; static analysis; source code. For any category exceeding ~10K tokens,
128
+ delegate to a subagent that returns a JSON manifest (paths, sizes, time windows, key fragments cited as `path:line`).
129
+
130
+ Classify each Available, Partial, or Missing — Missing is itself a finding. Update Evidence Inventory and Investigation
131
+ Backlog. Pause for user with the recap above; wait for direction.
132
+
133
+ ### Outcome 3: Cause is reasoned about with discipline
134
+
135
+ - **Trace causality.** Symptom-driven: trace backward from the symptom to producing conditions and the state that
136
+ emerged. Exploration: trace backward from outputs (returns, side effects, messages sent) to producing conditions.
137
+ Same technique, different anchor.
138
+ - **Reconstruct the timeline** by cross-referencing logs, system events, version control, user observations.
139
+ - **Form and test hypotheses.** State, identify confirming/refuting evidence, search, grade
140
+ (Confirmed / Refuted / Open). Update Status. Never delete.
141
+ - **Refutation pass.** Each time a hypothesis transitions toward Confirmed, actively look for refuting evidence first.
142
+ Record the attempt in Resolution.
143
+ - **Verify the user's premise.** If evidence contradicts, say so explicitly.
144
+ - **Add discovered paths to the backlog.** Stay focused on the current thread.
145
+
146
+ Update Confirmed Findings, Deduced Conclusions, Hypothesized Paths, Backlog, Timeline. Highlight contradictions to the
147
+ original premise. Pause for user with the recap above; wait for direction.
148
+
149
+ ### Outcome 4: Source has been traced where it matters
150
+
151
+ Issue these first-pass scans as parallel tool calls in one message: grep for exact error strings; glob the affected
152
+ directory for parallel implementations; `git log` for recent changes.
153
+
154
+ Then sequentially: read the surrounding code; follow the caller chain; watch for language and process boundary
155
+ crossings (compiled→scripts, IPC, host→device, configuration flow).
156
+
157
+ Lean by case type:
158
+
159
+ - **Exploration:** I/O mapping (triggers, outputs, dependencies); frequent-terms scan; control-flow filtering
160
+ (branches, loops, error handling, state-machine transitions).
161
+ - **Symptom-driven:** depth assessment — is the root cause reachable from local context, or is a broader area model
162
+ required? Surface escalations; never silently expand scope. Trivial-fix assessment — off-by-one, missing null check,
163
+ swapped argument → one-line code suggestion or draft diff in the report; non-trivial → stop at the root cause area.
164
+
165
+ Investigation stops at the diagnosis; implementation is out of scope. Update Source Code Trace (Error origin, Trigger,
166
+ Condition, Related files; area model when broader). Pause for user with the recap above; wait for direction.
167
+
168
+ ### Outcome 5: Report is finalized and the hand-off is clean
169
+
170
+ Update `{case_file}`:
171
+
172
+ - **Hand-off Brief** rewritten to final form (3 sentences, 15-second read).
173
+ - **Final Conclusion** with confidence: **High** (Confirmed root cause, deterministic repro), **Medium** (Deduced;
174
+ minor uncertainty), **Low** (Hypothesized; clear data gap).
175
+ - **Fix direction** when applicable (categorize by mechanism if multiple combine).
176
+ - **Diagnostic steps** if uncertainty remains.
177
+ - **Reproduction Plan** when applicable, or a verification plan for exploration cases.
178
+ - **Status:** Active / Concluded / Blocked on evidence.
179
+
180
+ Present the conclusion, then a concrete next-steps menu: trivial fix → `bmad-quick-dev`; scope/plan adjustment →
181
+ `bmad-correct-course`; tracked story → `bmad-create-story`; fresh review → `bmad-code-review`. Recommend the
182
+ highest-value action. Mitigations and workarounds are generated only on explicit request — investigation stops at the
183
+ diagnosis. Execute `{workflow.on_complete}` if non-empty. Pause for user with the recap above; wait for direction.
184
+
185
+ ## Follow-up Iterations
186
+
187
+ Continue work by appending to `{case_file}` under a new `## Follow-up: {YYYY-MM-DD}` block (`#2`, `#3` on same-day
188
+ reentry). The investigation is complete when:
189
+
190
+ - Root cause is Confirmed.
191
+ - Root cause is Hypothesized with a clear data gap.
192
+ - The mental model is sufficient for the user's stated goal (exploration cases).
193
+ - The backlog contains only items requiring unavailable evidence.
194
+ - The user explicitly concludes.
@@ -0,0 +1,176 @@
1
+ ---
2
+ name: bmad-qa-generate-e2e-tests
3
+ description: 'Generate end to end automated tests for existing features. Use when the user says "create qa automated tests for [feature]"'
4
+ ---
5
+
6
+ # QA Generate E2E Tests Workflow
7
+
8
+ **Goal:** Generate automated API and E2E tests for implemented code.
9
+
10
+ **Your Role:** You are a QA automation engineer. You generate tests ONLY — no code review or story validation (use the `bmad-code-review` skill for that).
11
+
12
+ ## Conventions
13
+
14
+ - Bare paths (e.g. `checklist.md`) resolve from the skill root.
15
+ - `this skill directory` resolves to this skill's installed directory (where `agent configuration` lives).
16
+ - `{project-root}`-prefixed paths resolve from the project working directory.
17
+ - `{skill-name}` resolves to the skill directory's basename.
18
+
19
+ ## On Activation
20
+
21
+ ### Step 1: Resolve the Workflow Block
22
+
23
+ <!-- Adapted for BMAD+: original script dependency removed -->
24
+
25
+ **If the script fails**, resolve the `workflow` block yourself by reading these three files in base → team → user order and applying the same structural merge rules as the resolver:
26
+
27
+ 1. `this skill file` — defaults
28
+ 2. `{project-root}/custom/{skill-name}.toml` — team overrides
29
+ 3. `{project-root}/custom/{skill-name}.user.toml` — personal overrides
30
+
31
+ Any missing file is skipped. Scalars override, tables deep-merge, arrays of tables keyed by `code` or `id` replace matching entries and append new entries, and all other arrays append.
32
+
33
+ ### Step 2: Execute Prepend Steps
34
+
35
+ Execute each entry in `{workflow.activation_steps_prepend}` in order before proceeding.
36
+
37
+ ### Step 3: Load Persistent Facts
38
+
39
+ Treat every entry in `{workflow.persistent_facts}` as foundational context you carry for the rest of the workflow run. Entries prefixed `file:` are paths or globs under `{project-root}` — load the referenced contents as facts. All other entries are facts verbatim.
40
+
41
+ ### Step 4: Load Config
42
+
43
+ Load config from `{project-root}/project config` and resolve:
44
+
45
+ - `project_name`, `user_name`
46
+ - `communication_language`, `document_output_language`
47
+ - `implementation_artifacts`
48
+ - `date` as system-generated current datetime
49
+ - YOU MUST ALWAYS SPEAK OUTPUT in your Agent communication style with the config `{communication_language}`
50
+
51
+ ### Step 5: Greet the User
52
+
53
+ Greet `{user_name}`, speaking in `{communication_language}`.
54
+
55
+ ### Step 6: Execute Append Steps
56
+
57
+ Execute each entry in `{workflow.activation_steps_append}` in order.
58
+
59
+ Activation is complete. Begin the workflow below.
60
+
61
+ ## Paths
62
+
63
+ - `test_dir` = `{project-root}/tests`
64
+ - `source_dir` = `{project-root}`
65
+ - `default_output_file` = `{implementation_artifacts}/tests/test-summary.md`
66
+
67
+ ## Execution
68
+
69
+ ### Step 0: Detect Test Framework
70
+
71
+ Check project for existing test framework:
72
+
73
+ - Look for `package.json` dependencies (playwright, jest, vitest, cypress, etc.)
74
+ - Check for existing test files to understand patterns
75
+ - Use whatever test framework the project already has
76
+ - If no framework exists:
77
+ - Analyze source code to determine project type (React, Vue, Node API, etc.)
78
+ - Search online for current recommended test framework for that stack
79
+ - Suggest the meta framework and use it (or ask user to confirm)
80
+
81
+ ### Step 1: Identify Features
82
+
83
+ Ask user what to test:
84
+
85
+ - Specific feature/component name
86
+ - Directory to scan (e.g., `src/components/`)
87
+ - Or auto-discover features in the codebase
88
+
89
+ ### Step 2: Generate API Tests (if applicable)
90
+
91
+ For API endpoints/services, generate tests that:
92
+
93
+ - Test status codes (200, 400, 404, 500)
94
+ - Validate response structure
95
+ - Cover happy path + 1-2 error cases
96
+ - Use project's existing test framework patterns
97
+
98
+ ### Step 3: Generate E2E Tests (if UI exists)
99
+
100
+ For UI features, generate tests that:
101
+
102
+ - Test user workflows end-to-end
103
+ - Use semantic locators (roles, labels, text)
104
+ - Focus on user interactions (clicks, form fills, navigation)
105
+ - Assert visible outcomes
106
+ - Keep tests linear and simple
107
+ - Follow project's existing test patterns
108
+
109
+ ### Step 4: Run Tests
110
+
111
+ Execute tests to verify they pass (use project's test command).
112
+
113
+ If failures occur, fix them immediately.
114
+
115
+ ### Step 5: Create Summary
116
+
117
+ Output markdown summary:
118
+
119
+ ```markdown
120
+ # Test Automation Summary
121
+
122
+ ## Generated Tests
123
+
124
+ ### API Tests
125
+ - [x] tests/api/endpoint.spec.ts - Endpoint validation
126
+
127
+ ### E2E Tests
128
+ - [x] tests/e2e/feature.spec.ts - User workflow
129
+
130
+ ## Coverage
131
+ - API endpoints: 5/10 covered
132
+ - UI features: 3/8 covered
133
+
134
+ ## Next Steps
135
+ - Run tests in CI
136
+ - Add more edge cases as needed
137
+ ```
138
+
139
+ ## Keep It Simple
140
+
141
+ **Do:**
142
+
143
+ - Use standard test framework APIs
144
+ - Focus on happy path + critical errors
145
+ - Write readable, maintainable tests
146
+ - Run tests to verify they pass
147
+
148
+ **Avoid:**
149
+
150
+ - Complex fixture composition
151
+ - Over-engineering
152
+ - Unnecessary abstractions
153
+
154
+ **For Advanced Features:**
155
+
156
+ If the project needs:
157
+
158
+ - Risk-based test strategy
159
+ - Test design planning
160
+ - Quality gates and NFR assessment
161
+ - Comprehensive coverage analysis
162
+ - Advanced testing patterns and utilities
163
+
164
+ > **Install Test Architect (TEA) module**: <https://bmad-code-org.github.io/bmad-method-test-architecture-enterprise/>
165
+
166
+ ## Output
167
+
168
+ Save summary to: `{default_output_file}`
169
+
170
+ **Done!** Tests generated and verified. Validate against `./checklist.md`.
171
+
172
+ ## On Complete
173
+
174
+ <!-- Adapted for BMAD+: original script dependency removed -->
175
+
176
+ If the resolved `workflow.on_complete` is non-empty, follow it as the final terminal instruction before exiting.
@@ -0,0 +1,111 @@
1
+ ---
2
+ name: bmad-quick-dev
3
+ description: 'Implements any user intent, requirement, story, bug fix or change request by producing clean working code artifacts that follow the project''s existing architecture, patterns and conventions. Use when the user wants to build, fix, tweak, refactor, add or modify any code, component or feature.'
4
+ ---
5
+
6
+ # Quick Dev New Preview Workflow
7
+
8
+ **Goal:** Turn user intent into a hardened, reviewable artifact.
9
+
10
+ **CRITICAL:** If a step says "read fully and follow step-XX", you read and follow step-XX. No exceptions.
11
+
12
+ ## READY FOR DEVELOPMENT STANDARD
13
+
14
+ A specification is "Ready for Development" when:
15
+
16
+ - **Actionable**: Every task has a file path and specific action.
17
+ - **Logical**: Tasks ordered by dependency.
18
+ - **Testable**: All ACs use Given/When/Then.
19
+ - **Complete**: No placeholders or TBDs.
20
+
21
+ ## SCOPE STANDARD
22
+
23
+ A specification should target a **single user-facing goal** within **900–1600 tokens**:
24
+
25
+ - **Single goal**: One cohesive feature, even if it spans multiple layers/files. Multi-goal means >=2 **top-level independent shippable deliverables** — each could be reviewed, tested, and merged as a separate PR without breaking the others. Never count surface verbs, "and" conjunctions, or noun phrases. Never split cross-layer implementation details inside one user goal.
26
+ - Split: "add dark mode toggle AND refactor auth to JWT AND build admin dashboard"
27
+ - Don't split: "add validation and display errors" / "support drag-and-drop AND paste AND retry"
28
+ - **900–1600 tokens**: Optimal range for LLM consumption. Below 900 risks ambiguity; above 1600 risks context-rot in implementation agents.
29
+ - **Neither limit is a gate.** Both are proposals with user override.
30
+
31
+ ## Conventions
32
+
33
+ - Bare paths (e.g. `step-01-clarify-and-route.md`) resolve from the skill root.
34
+ - `this skill directory` resolves to this skill's installed directory (where `agent configuration` lives).
35
+ - `{project-root}`-prefixed paths resolve from the project working directory.
36
+ - `{skill-name}` resolves to the skill directory's basename.
37
+
38
+ ## On Activation
39
+
40
+ ### Step 1: Resolve the Workflow Block
41
+
42
+ <!-- Adapted for BMAD+: original script dependency removed -->
43
+
44
+ **If the script fails**, resolve the `workflow` block yourself by reading these three files in base → team → user order and applying the same structural merge rules as the resolver:
45
+
46
+ 1. `this skill file` — defaults
47
+ 2. `{project-root}/custom/{skill-name}.toml` — team overrides
48
+ 3. `{project-root}/custom/{skill-name}.user.toml` — personal overrides
49
+
50
+ Any missing file is skipped. Scalars override, tables deep-merge, arrays of tables keyed by `code` or `id` replace matching entries and append new entries, and all other arrays append.
51
+
52
+ ### Step 2: Execute Prepend Steps
53
+
54
+ Execute each entry in `{workflow.activation_steps_prepend}` in order before proceeding.
55
+
56
+ ### Step 3: Load Persistent Facts
57
+
58
+ Treat every entry in `{workflow.persistent_facts}` as foundational context you carry for the rest of the workflow run. Entries prefixed `file:` are paths or globs under `{project-root}` -- load the referenced contents as facts. All other entries are facts verbatim.
59
+
60
+ ### Step 4: Load Config
61
+
62
+ Load config from `{project-root}/project config` and resolve:
63
+
64
+ - `project_name`, `planning_artifacts`, `implementation_artifacts`, `user_name`
65
+ - `communication_language`, `document_output_language`, `user_skill_level`
66
+ - `date` as system-generated current datetime
67
+ - `sprint_status` = `{implementation_artifacts}/sprint-status.yaml`
68
+ - `project_context` = `**/project-context.md` (load if exists)
69
+ - CLAUDE.md / memory files (load if exist)
70
+ - YOU MUST ALWAYS SPEAK OUTPUT in your Agent communication style with the config `{communication_language}`
71
+ - Language MUST be tailored to `{user_skill_level}`
72
+ - Generate all documents in `{document_output_language}`
73
+
74
+ ### Step 5: Greet the User
75
+
76
+ Greet `{user_name}`, speaking in `{communication_language}`.
77
+
78
+ ### Step 6: Execute Append Steps
79
+
80
+ Execute each entry in `{workflow.activation_steps_append}` in order.
81
+
82
+ Activation is complete. Begin the workflow below.
83
+
84
+ ## WORKFLOW ARCHITECTURE
85
+
86
+ This uses **step-file architecture** for disciplined execution:
87
+
88
+ - **Micro-file Design**: Each step is self-contained and followed exactly
89
+ - **Just-In-Time Loading**: Only load the current step file
90
+ - **Sequential Enforcement**: Complete steps in order, no skipping
91
+ - **State Tracking**: Persist progress via spec frontmatter and in-memory variables
92
+ - **Append-Only Building**: Build artifacts incrementally
93
+
94
+ ### Step Processing Rules
95
+
96
+ 1. **READ COMPLETELY**: Read the entire step file before acting
97
+ 2. **FOLLOW SEQUENCE**: Execute sections in order
98
+ 3. **WAIT FOR INPUT**: Halt at checkpoints and wait for human
99
+ 4. **LOAD NEXT**: When directed, read fully and follow the next step file
100
+
101
+ ### Critical Rules (NO EXCEPTIONS)
102
+
103
+ - **NEVER** load multiple step files simultaneously
104
+ - **ALWAYS** read entire step file before execution
105
+ - **NEVER** skip steps or optimize the sequence
106
+ - **ALWAYS** follow the exact instructions in the step file
107
+ - **ALWAYS** halt at checkpoints and wait for human input
108
+
109
+ ## FIRST STEP
110
+
111
+ Read fully and follow: `./step-01-clarify-and-route.md` to begin the workflow.