@morozinc/opencode-bmad-plugin 0.0.0-stage → 0.1.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/LICENSE +31 -0
- package/NOTICE.md +6 -0
- package/README.md +64 -2
- package/dist/gui-experimental.cjs +64 -0
- package/docs/screenshots/artifact-storage.png +0 -0
- package/package.json +53 -4
- package/skills/bmad-code-review/SKILL.md +23 -0
- package/skills/bmad-code-review/reference/SKILL.md +90 -0
- package/skills/bmad-code-review/reference/customize.toml +41 -0
- package/skills/bmad-code-review/reference/steps/step-01-gather-context.md +85 -0
- package/skills/bmad-code-review/reference/steps/step-02-review.md +35 -0
- package/skills/bmad-code-review/reference/steps/step-03-triage.md +49 -0
- package/skills/bmad-code-review/reference/steps/step-04-present.md +132 -0
- package/skills/bmad-create-architecture/SKILL.md +23 -0
- package/skills/bmad-create-architecture/reference/SKILL.md +74 -0
- package/skills/bmad-create-architecture/reference/architecture-decision-template.md +12 -0
- package/skills/bmad-create-architecture/reference/customize.toml +41 -0
- package/skills/bmad-create-architecture/reference/data/domain-complexity.csv +13 -0
- package/skills/bmad-create-architecture/reference/data/project-types.csv +7 -0
- package/skills/bmad-create-architecture/reference/steps/step-01-init.md +153 -0
- package/skills/bmad-create-architecture/reference/steps/step-01b-continue.md +173 -0
- package/skills/bmad-create-architecture/reference/steps/step-02-context.md +224 -0
- package/skills/bmad-create-architecture/reference/steps/step-03-starter.md +329 -0
- package/skills/bmad-create-architecture/reference/steps/step-04-decisions.md +318 -0
- package/skills/bmad-create-architecture/reference/steps/step-05-patterns.md +359 -0
- package/skills/bmad-create-architecture/reference/steps/step-06-structure.md +379 -0
- package/skills/bmad-create-architecture/reference/steps/step-07-validation.md +361 -0
- package/skills/bmad-create-architecture/reference/steps/step-08-complete.md +82 -0
- package/skills/bmad-create-epics-and-stories/SKILL.md +23 -0
- package/skills/bmad-create-epics-and-stories/reference/SKILL.md +93 -0
- package/skills/bmad-create-epics-and-stories/reference/customize.toml +41 -0
- package/skills/bmad-create-epics-and-stories/reference/steps/step-01-validate-prerequisites.md +255 -0
- package/skills/bmad-create-epics-and-stories/reference/steps/step-02-design-epics.md +242 -0
- package/skills/bmad-create-epics-and-stories/reference/steps/step-03-create-stories.md +255 -0
- package/skills/bmad-create-epics-and-stories/reference/steps/step-04-final-validation.md +143 -0
- package/skills/bmad-create-epics-and-stories/reference/templates/epics-template.md +61 -0
- package/skills/bmad-create-story/SKILL.md +23 -0
- package/skills/bmad-create-story/reference/SKILL.md +429 -0
- package/skills/bmad-create-story/reference/checklist.md +357 -0
- package/skills/bmad-create-story/reference/customize.toml +41 -0
- package/skills/bmad-create-story/reference/discover-inputs.md +88 -0
- package/skills/bmad-create-story/reference/template.md +49 -0
- package/skills/bmad-dev-story/SKILL.md +23 -0
- package/skills/bmad-dev-story/reference/SKILL.md +500 -0
- package/skills/bmad-dev-story/reference/checklist.md +80 -0
- package/skills/bmad-dev-story/reference/customize.toml +41 -0
- package/skills/bmad-document-project/SKILL.md +23 -0
- package/skills/bmad-document-project/reference/SKILL.md +62 -0
- package/skills/bmad-document-project/reference/checklist.md +245 -0
- package/skills/bmad-document-project/reference/customize.toml +41 -0
- package/skills/bmad-document-project/reference/documentation-requirements.csv +12 -0
- package/skills/bmad-document-project/reference/instructions.md +128 -0
- package/skills/bmad-document-project/reference/templates/deep-dive-template.md +345 -0
- package/skills/bmad-document-project/reference/templates/index-template.md +169 -0
- package/skills/bmad-document-project/reference/templates/project-overview-template.md +103 -0
- package/skills/bmad-document-project/reference/templates/project-scan-report-schema.json +160 -0
- package/skills/bmad-document-project/reference/templates/source-tree-template.md +135 -0
- package/skills/bmad-document-project/reference/workflows/deep-dive-instructions.md +300 -0
- package/skills/bmad-document-project/reference/workflows/deep-dive-workflow.md +34 -0
- package/skills/bmad-document-project/reference/workflows/full-scan-instructions.md +1108 -0
- package/skills/bmad-document-project/reference/workflows/full-scan-workflow.md +34 -0
- package/skills/bmad-generate-project-context/SKILL.md +23 -0
- package/skills/bmad-generate-project-context/reference/SKILL.md +81 -0
- package/skills/bmad-generate-project-context/reference/customize.toml +41 -0
- package/skills/bmad-generate-project-context/reference/project-context-template.md +21 -0
- package/skills/bmad-generate-project-context/reference/steps/step-01-discover.md +186 -0
- package/skills/bmad-generate-project-context/reference/steps/step-02-generate.md +321 -0
- package/skills/bmad-generate-project-context/reference/steps/step-03-complete.md +284 -0
- package/skills/bmad-help/SKILL.md +19 -0
- package/skills/bmad-help/reference/SKILL.md +75 -0
- package/skills/bmad-prd/SKILL.md +23 -0
- package/skills/bmad-prd/reference/SKILL.md +92 -0
- package/skills/bmad-prd/reference/assets/headless-schemas.md +76 -0
- package/skills/bmad-prd/reference/assets/prd-template.md +165 -0
- package/skills/bmad-prd/reference/assets/prd-validation-checklist.md +135 -0
- package/skills/bmad-prd/reference/assets/validation-report-template.html +325 -0
- package/skills/bmad-prd/reference/customize.toml +147 -0
- package/skills/bmad-prd/reference/references/headless.md +39 -0
- package/skills/bmad-prd/reference/references/validate.md +97 -0
- package/skills/bmad-product-brief/SKILL.md +22 -0
- package/skills/bmad-product-brief/reference/SKILL.md +91 -0
- package/skills/bmad-product-brief/reference/assets/brief-template.md +41 -0
- package/skills/bmad-product-brief/reference/customize.toml +99 -0
- package/skills/bmad-quick-dev/SKILL.md +26 -0
- package/skills/bmad-quick-dev/reference/SKILL.md +111 -0
- package/skills/bmad-quick-dev/reference/compile-epic-context.md +62 -0
- package/skills/bmad-quick-dev/reference/customize.toml +41 -0
- package/skills/bmad-quick-dev/reference/spec-template.md +88 -0
- package/skills/bmad-quick-dev/reference/step-01-clarify-and-route.md +100 -0
- package/skills/bmad-quick-dev/reference/step-02-plan.md +47 -0
- package/skills/bmad-quick-dev/reference/step-03-implement.md +41 -0
- package/skills/bmad-quick-dev/reference/step-04-review.md +50 -0
- package/skills/bmad-quick-dev/reference/step-05-present.md +78 -0
- package/skills/bmad-quick-dev/reference/step-oneshot.md +71 -0
- package/skills/bmad-quick-dev/reference/sync-sprint-status.md +19 -0
- package/skills/bmad-sprint-planning/SKILL.md +23 -0
- package/skills/bmad-sprint-planning/reference/SKILL.md +300 -0
- package/skills/bmad-sprint-planning/reference/checklist.md +33 -0
- package/skills/bmad-sprint-planning/reference/customize.toml +41 -0
- package/skills/bmad-sprint-planning/reference/sprint-status-template.yaml +56 -0
- package/src/gui.tsx +127 -0
- package/src/index.ts +114 -0
- package/src/rpc.ts +27 -0
- package/src/storage.ts +21 -0
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: bmad-product-brief
|
|
3
|
+
description: Create, update, or validate a product brief. Use when the user wants help producing, editing, or validating a brief.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Overview
|
|
7
|
+
|
|
8
|
+
You are an expert product analyst coach and facilitator. The user has an idea, an existing brief to refine, or a brief to pressure-test. You will conversationally help them craft or refine a brief appropriate to their purpose.
|
|
9
|
+
|
|
10
|
+
You are not in a hurry. You will not do the thinking for them. Coach, do not quiz. Make them sweat: push hardest when assumptions are unexamined, ease as the brief firms up or they signal fatigue. Get out what is stuck in their head and what they may have forgotten. Push back when an answer is thin.
|
|
11
|
+
|
|
12
|
+
Briefs produced here are honest, right-sized to purpose, and built for what comes next — they do not pad, they do not fabricate moats, they surface what is unknown alongside what is known - the user must feel that it is their own creation.
|
|
13
|
+
|
|
14
|
+
At the opening greeting, let the user know they can invoke `bmad-party-mode` for multi-agent perspectives or `bmad-advanced-elicitation` for deeper exploration at any point.
|
|
15
|
+
|
|
16
|
+
## On Activation
|
|
17
|
+
|
|
18
|
+
1. Resolve customization: `python3 {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --key workflow`. On failure, read `{skill-root}/customize.toml` directly and use defaults.
|
|
19
|
+
2. Execute each entry in `{workflow.activation_steps_prepend}` in order.
|
|
20
|
+
3. Treat every entry in `{workflow.persistent_facts}` as foundational context for the rest of the run. Entries prefixed `file:` are paths or globs under `{project-root}` — load the referenced contents as facts. All other entries are facts verbatim.
|
|
21
|
+
4. `{workflow.external_sources}` is an org-configured registry of internal tools (knowledge bases, MCP tools); consult them alongside generic web research on the same triggers in `## Discovery`, org tools preferred when their directive matches. If a named tool is unavailable at runtime, fall back to standard behavior and note the gap when relevant.
|
|
22
|
+
5. Load `{project-root}/_bmad/bmm/config.yaml` (and `config.user.yaml` if present). Resolve `{user_name}`, `{communication_language}`, `{document_output_language}`, `{planning_artifacts}`, `{project_name}`, `{date}`.
|
|
23
|
+
6. Greet `{user_name}` in `{communication_language}` — and stay in `{communication_language}` for every turn for the entire run, not just the greeting. Detect intent (create / update / validate). If interactive and intent is unclear, ask; for headless behavior see `## Headless Mode`.
|
|
24
|
+
|
|
25
|
+
Execute each entry in `{workflow.activation_steps_append}` in order.
|
|
26
|
+
|
|
27
|
+
Activation is complete. If `activation_steps_prepend` or `activation_steps_append` were non-empty, confirm every entry was executed in order before proceeding. Do not begin the main workflow until all activation steps have been completed.
|
|
28
|
+
|
|
29
|
+
## Intent Operating Modes
|
|
30
|
+
|
|
31
|
+
**Create.** A brief the user is proud of, that meets their needs, drawn out through real conversation — do not assume: instead converse and understand, and then help craft the best product brief for their needs. Begin in `## Discovery` before drafting; the brief comes after the picture is on the table. Shape follows the product and need. Treat `{workflow.brief_template}` as a starting structure, not a contract: drop sections that do not earn their place, add sections the product needs, reorder freely - create sections for specialized domains or concerns also as needed. The brief serves the product's story, not the template's shape. Bind `{doc_workspace}` to a fresh folder at `{workflow.brief_output_path}/{workflow.run_folder_pattern}/` and write `brief.md` there with YAML frontmatter (title, status, created, updated). For Update and Validate, `{doc_workspace}` is the existing folder of the brief being targeted.
|
|
32
|
+
|
|
33
|
+
**Update.** Reconcile an existing brief with a change signal. Before proposing changes, read the brief, addendum, `.decision-log.md`, and original inputs — and run the `## Discovery` posture against the change signal (a patch applied without context becomes drift). Surface conflicts with prior decisions before changing. Headless override: log the reversal to `.decision-log.md`, then apply; halt `blocked` if intent is ambiguous. If the change is fundamental, offer Create instead of patching.
|
|
34
|
+
|
|
35
|
+
**Validate.** Honest critique against the brief's own purpose. Read the brief, the addendum if present, `.decision-log.md`, and any original inputs first — a validation that ignores prior decisions, rejected ideas, or context the user supplied is shallow. Cite specific lines. Caveat what cannot be evaluated. Return inline — no separate file unless asked. Always offer to roll findings into an Update, even in headless mode — include `"offer_to_update": true` in the JSON status block.
|
|
36
|
+
|
|
37
|
+
## Headless Mode
|
|
38
|
+
|
|
39
|
+
When invoked headless, do not ask. Complete the intent using what is provided, what exists in `{doc_workspace}`, or what you can discover yourself. If intent remains ambiguous after inference, halt with a `blocked` JSON status and a `reason` field — do not prompt. End with a JSON response listing status, intent, and artifact paths. The `intent` field must match the detected intent: `"create"`, `"update"`, or `"validate"`. Examples:
|
|
40
|
+
|
|
41
|
+
```json
|
|
42
|
+
{
|
|
43
|
+
"status": "complete",
|
|
44
|
+
"intent": "create",
|
|
45
|
+
"brief": "{doc_workspace}/brief.md",
|
|
46
|
+
"addendum": "{doc_workspace}/addendum.md",
|
|
47
|
+
"decision_log": "{doc_workspace}/.decision-log.md",
|
|
48
|
+
"open_questions": [],
|
|
49
|
+
"external_handoffs": [
|
|
50
|
+
{"directive": "Confluence upload", "tool": "corp:confluence_upload", "url": "https://confluence.corp/PROD/123", "status": "ok"}
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
```json
|
|
56
|
+
{
|
|
57
|
+
"status": "complete",
|
|
58
|
+
"intent": "validate",
|
|
59
|
+
"offer_to_update": true
|
|
60
|
+
}
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Omit keys for artifacts that were not produced.
|
|
64
|
+
|
|
65
|
+
## Discovery
|
|
66
|
+
|
|
67
|
+
Conversationally surface what the user brings, why this brief exists, the domain, and the form-factor (mobile / web / desktop / multi-surface / hardware / API — what *is* this thing) — echo back how each shapes your approach. Open with space for the full picture: invite a brain dump and ask up front for any source material they already have (memo, deck, transcript, prior brief, slack thread). Read what exists first; ask only what is missing. After the dump, a simple "anything else?" often surfaces what they almost forgot. Drill into specifics only after the broad shape is on the table; premature granular questions interrupt the dump and miss the room. Get a read on stakes early (passion project, internal pitch, investor input, public launch), and let that calibrate how hard you push. During the dump, spawn web-research subagents to ground the picture — landscape, comparables, current state — AI especially, where training data ages by the week. Subagent searches; parent gets a digest. Deep work (full market sizing, exhaustive teardowns) → suggest `bmad-market-research` or `bmad-domain-research`.
|
|
68
|
+
|
|
69
|
+
Once stakes are read and the dump is captured, offer the working mode in the user's language:
|
|
70
|
+
|
|
71
|
+
- **Fast path** — I batch the remaining gaps into one or two consolidated questions, then draft the full brief with `[ASSUMPTION]` tags where I inferred. You review and we iterate. Best for "I'm pitching tomorrow."
|
|
72
|
+
- **Coaching path** — we walk through together; I pull the picture out of you, push back where assumptions are thin, draft section by section. Best for "I want a brief I'm proud of and time isn't the constraint."
|
|
73
|
+
|
|
74
|
+
The workspace persists; stop and resume freely. The opener's philosophy (not in a hurry, make them sweat, push back when an answer is thin) primarily shapes Coaching path; Fast path swaps pushback for `[ASSUMPTION]` tags the user can correct in review.
|
|
75
|
+
|
|
76
|
+
## Constraints
|
|
77
|
+
|
|
78
|
+
- **Right-size to purpose.** A passion project does not need investor-grade rigor. A VC pitch input does. Read the room.
|
|
79
|
+
- **Persistence is real-time.** Once Create intent is confirmed, the workspace (run folder, `brief.md` skeleton with `status: draft`, `.decision-log.md`) exists on disk and the user knows the path.
|
|
80
|
+
- **File roles.** `.decision-log.md` is canonical memory and audit trail — every decision, change, and override (including headless overrides) is recorded there as the conversation unfolds. `addendum.md` preserves user-contributed depth that belongs in a downstream document (PRD, architecture, solution design) or earned a place but does not fit the brief (rejected-alternative rationale, options-considered matrices, parked-roadmap context, technical constraints, in-depth personas, sizing data). Capture to the addendum *during* the conversation when the user volunteers such content — do not wait for finalize. Audit and override information never goes in the addendum.
|
|
81
|
+
- **Continuity across sessions.** If a prior in-progress draft for this project exists, the user is offered to resume.
|
|
82
|
+
- **Extract, don't ingest.** Source artifacts (provided by the user or discovered during the run — transcripts, brainstorms, research reports, code, web results, prior briefs) enter the parent conversation as relevance-filtered extracts, not loaded wholesale. Subagents do the extraction against the user's stated focus; the parent context stays lean.
|
|
83
|
+
- **Length and coherence.** Aim for 1-2 pages — if it is longer, the detail belongs in the addendum. Structure in service of the product; downstream consumers (PRD workflow, etc.) read this, so coherent shape matters.
|
|
84
|
+
|
|
85
|
+
## Finalize
|
|
86
|
+
|
|
87
|
+
1. Decision log audit + addendum review: the user ends this step with an explicit, shared accounting of how the meaningful contents of `.decision-log.md` were handled — captured in the brief, captured in `addendum.md` (which may already hold detail captured during the conversation — see `## Constraints` for what belongs there), or set aside as process noise.
|
|
88
|
+
2. Polish: apply each entry in `{workflow.doc_standards}` (a `skill:`, `file:`, or plain-text directive) to `brief.md` (and `addendum.md` if it exists). Run passes as parallel subagents - apply all doc standards to `brief.md` first, then `addendum.md` so we present a high-quality draft for the user to review and finalize.
|
|
89
|
+
3. External handoffs: execute each entry in `{workflow.external_handoffs}` to route artifacts beyond local files (Confluence, Notion, ticket systems, etc.) — each directive names the MCP tool and the fields it needs. Invoke the tool, capture any URLs or IDs returned, and surface them in the user message. If a named tool is unavailable, skip that handoff and flag it; local files always exist regardless.
|
|
90
|
+
4. Tell the user it is ready: local paths and external destinations (URLs returned from handoffs). Invoke `bmad-help` to suggest what next steps make sense in the bmad method ecosystem.
|
|
91
|
+
5. Run `{workflow.on_complete}` if non-empty. Treat a string scalar as a single instruction and an array as a sequence of instructions executed in order.
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Product Brief Template
|
|
2
|
+
|
|
3
|
+
A flexible starting structure for the executive product brief. Adapt aggressively to the product, the purpose, and the domain. Drop sections that do not earn their place, add sections the product needs, reorder freely. The brief serves the product's story, not the template's shape.
|
|
4
|
+
|
|
5
|
+
## Default Structure
|
|
6
|
+
|
|
7
|
+
```markdown
|
|
8
|
+
# Product Brief: {Product Name}
|
|
9
|
+
|
|
10
|
+
## Executive Summary
|
|
11
|
+
|
|
12
|
+
[2-3 paragraph narrative: what this is, what problem it solves, why it matters, why now. Compelling enough to stand alone — if someone reads only this section, they should understand the vision.]
|
|
13
|
+
|
|
14
|
+
## The Problem
|
|
15
|
+
|
|
16
|
+
[What pain exists, who feels it, how they cope today, the cost of the status quo. Be specific: real scenarios, real frustrations, real consequences.]
|
|
17
|
+
|
|
18
|
+
## The Solution
|
|
19
|
+
|
|
20
|
+
[What is being built, how it solves the problem. Focus on the experience and the outcome, not the implementation.]
|
|
21
|
+
|
|
22
|
+
## What Makes This Different
|
|
23
|
+
|
|
24
|
+
[Key differentiators. Why this approach over alternatives, what is the unfair advantage. Be honest. If the moat is execution speed, say so. Do not fabricate technical moats.]
|
|
25
|
+
|
|
26
|
+
## Who This Serves
|
|
27
|
+
|
|
28
|
+
[Primary users — vivid but brief. Who they are, what they need, what success looks like for them. Secondary users if relevant.]
|
|
29
|
+
|
|
30
|
+
## Success Criteria
|
|
31
|
+
|
|
32
|
+
[How we know this is working. Mix of user success signals and business objectives. Measurable.]
|
|
33
|
+
|
|
34
|
+
## Scope
|
|
35
|
+
|
|
36
|
+
[What is in for the first version. What is explicitly out. Keep this tight — boundary document, not a feature list.]
|
|
37
|
+
|
|
38
|
+
## Vision
|
|
39
|
+
|
|
40
|
+
[Where this goes if it succeeds. What it becomes in 2-3 years. Inspiring but grounded.]
|
|
41
|
+
```
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# DO NOT EDIT -- overwritten on every update.
|
|
2
|
+
#
|
|
3
|
+
# Workflow customization surface for bmad-product-brief.
|
|
4
|
+
#
|
|
5
|
+
# Override files (not edited here):
|
|
6
|
+
# {project-root}/_bmad/custom/bmad-product-brief.toml (team)
|
|
7
|
+
# {project-root}/_bmad/custom/bmad-product-brief.user.toml (personal)
|
|
8
|
+
|
|
9
|
+
[workflow]
|
|
10
|
+
|
|
11
|
+
# --- Configurable below. Overrides merge per BMad structural rules: ---
|
|
12
|
+
# scalars: override wins • arrays: append
|
|
13
|
+
|
|
14
|
+
# Steps to run before the standard activation (config load, greet).
|
|
15
|
+
# Use for pre-flight loads, compliance checks, etc.
|
|
16
|
+
activation_steps_prepend = []
|
|
17
|
+
|
|
18
|
+
# Steps to run after greet but before the workflow begins.
|
|
19
|
+
# Use for context-heavy setup that should happen once the user has been acknowledged.
|
|
20
|
+
activation_steps_append = []
|
|
21
|
+
|
|
22
|
+
# Persistent facts the workflow keeps in mind for the whole run
|
|
23
|
+
# (standards, compliance constraints, stylistic guardrails).
|
|
24
|
+
# Each entry is either a literal sentence, a skill prefixed with `skill:`, or a `file:`-prefixed path/glob
|
|
25
|
+
# whose contents are loaded as facts.
|
|
26
|
+
#
|
|
27
|
+
# Default loads project-context.md if bmad-generate-project-context has produced one — this gives
|
|
28
|
+
# the facilitator persistent awareness of the project's tech, domain, and constraints without
|
|
29
|
+
# re-asking. Common opt-ins (set in team/user override TOML):
|
|
30
|
+
# "skill:acme-co:terms-and-conditions" # a skill that contains some relevant info
|
|
31
|
+
# "Elvis has left the building" # generic agent instruction
|
|
32
|
+
persistent_facts = [
|
|
33
|
+
"file:{project-root}/**/project-context.md",
|
|
34
|
+
]
|
|
35
|
+
|
|
36
|
+
# Executed when the workflow completes (after the user has been told the
|
|
37
|
+
# brief is ready). Accepts either a string scalar (single instruction)
|
|
38
|
+
# or an array of instructions executed in order. Empty for none.
|
|
39
|
+
on_complete = ""
|
|
40
|
+
|
|
41
|
+
# Default brief structure. Treated as a starting point — the LLM adapts it
|
|
42
|
+
# to the product, purpose, and domain. Override the path in team/user TOML
|
|
43
|
+
# to enforce a different structure (e.g. regulated-industry, investor-deck).
|
|
44
|
+
brief_template = "assets/brief-template.md"
|
|
45
|
+
|
|
46
|
+
# Run folder location. The brief and optional addendum land inside `{brief_output_path}/{run_folder_pattern}/`.
|
|
47
|
+
# Resume-check scans `{brief_output_path}` for prior unfinished runs.
|
|
48
|
+
brief_output_path = "{planning_artifacts}/briefs"
|
|
49
|
+
run_folder_pattern = "brief-{project_name}-{date}"
|
|
50
|
+
|
|
51
|
+
# Document standards applied to human-consumed docs at finalize. Each entry is
|
|
52
|
+
# a `skill:`, `file:`, or plain-text directive; the parent LLM applies the
|
|
53
|
+
# findings before the user sees the draft. Encodes standards, not options.
|
|
54
|
+
#
|
|
55
|
+
# Examples:
|
|
56
|
+
# "skill:bmad-editorial-review-prose"
|
|
57
|
+
# "file:{project-root}/_bmad/style-guides/company-voice.md"
|
|
58
|
+
# "Convert all dates to ISO 8601 format."
|
|
59
|
+
#
|
|
60
|
+
# Suggested order (broader passes first, narrower last):
|
|
61
|
+
# 1. Structural (cuts, reorganization, section sizing)
|
|
62
|
+
# 2. Content/voice/conventions (org standards, tone, terminology, compliance)
|
|
63
|
+
# 3. Prose mechanics (grammar, clarity, typos)
|
|
64
|
+
#
|
|
65
|
+
# Override the array in team/user TOML to add additional standards. Append-only:
|
|
66
|
+
# base entries cannot be removed or replaced (resolver has no removal mechanism).
|
|
67
|
+
doc_standards = [
|
|
68
|
+
"skill:bmad-editorial-review-structure",
|
|
69
|
+
"skill:bmad-editorial-review-prose",
|
|
70
|
+
]
|
|
71
|
+
|
|
72
|
+
# External-source registry. Natural-language directives describing knowledge
|
|
73
|
+
# bases, MCP tools, or internal systems the LLM may consult during the workflow
|
|
74
|
+
# when a relevant need surfaces. The LLM does NOT query these preemptively —
|
|
75
|
+
# it consults them on demand (during Discovery, validation, drafting, etc.).
|
|
76
|
+
# Each entry names the tool, the conditions for using it, and any fields the
|
|
77
|
+
# tool needs. If a named MCP tool is unavailable at runtime, the LLM falls
|
|
78
|
+
# back to standard behavior and notes the gap. Empty by default.
|
|
79
|
+
#
|
|
80
|
+
# Examples (set in team/user override TOML):
|
|
81
|
+
# "When researching internal product context, consult corp:kb_search (database='product-docs') before web search."
|
|
82
|
+
# "For voice-of-customer signal during Discovery, query corp:feedback_search with project={project_name}."
|
|
83
|
+
# "When validating domain-compliance claims for a healthcare brief, cross-check against corp:hipaa_reference."
|
|
84
|
+
external_sources = []
|
|
85
|
+
|
|
86
|
+
# External-handoff routing. Natural-language directives the LLM applies at
|
|
87
|
+
# Finalize to route outputs beyond local files (Confluence, Notion, Google
|
|
88
|
+
# Drive, ticket systems, etc.). Each entry names the MCP tool, the destination,
|
|
89
|
+
# and the fields the tool needs. Handoffs run after the artifact is polished
|
|
90
|
+
# and before the final user-facing message. URLs or IDs returned by the
|
|
91
|
+
# destination are captured and surfaced to the user. If a named tool is
|
|
92
|
+
# unavailable at runtime, the handoff is skipped and flagged in the JSON
|
|
93
|
+
# status; local files always exist regardless. Fires automatically — users
|
|
94
|
+
# can opt out in their prompt for a specific run. Empty by default.
|
|
95
|
+
#
|
|
96
|
+
# Examples (set in team/user override TOML):
|
|
97
|
+
# "After finalize, upload brief.md and addendum.md to Confluence via corp:confluence_upload (space_key='PROD', parent_page='Product Briefs', label='brief', author={user_name})."
|
|
98
|
+
# "Post a ready-for-review ping to Slack via corp:slack_post (channel='#product', text='New brief: '+{confluence_url})."
|
|
99
|
+
external_handoffs = []
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
# bmad-quick-dev · OpenCode edition
|
|
7
|
+
|
|
8
|
+
## Artifact storage
|
|
9
|
+
|
|
10
|
+
Use the **BMAD artifact storage** contract injected by the OpenCode BMAD plugin for this project. It names the selected backend, project root and exact artifact prefix. Call `bmad_storage` if the contract is missing or you need to refresh it. Read existing artifacts before editing, write complete Markdown, then read back and verify. Keep each artifact's logical name stable. Do not switch storage backends silently. The plugin is installed globally; project artifacts are scoped to the current repository. Source code changes remain in the repository. Bundled references may mention upstream project-local `_bmad` setup, config or scripts; use their methodology without requiring those files in the project. The selected storage contract overrides artifact paths in references.
|
|
11
|
+
|
|
12
|
+
## Workflow
|
|
13
|
+
|
|
14
|
+
This adapter changes artifact storage only. Follow the original step workflow in `reference/`; do not replace it with an immediate implement-and-report loop.
|
|
15
|
+
|
|
16
|
+
- Respect the current request's scope. “Inspect”, “explain”, or “prepare a spec” does not authorize implementation. An already approved specification resumes through its original state route; an explicit user waiver of a checkpoint for this task also persists. General permission to fix something is not approval of a newly drafted specification.
|
|
17
|
+
- Bind `{planning_artifacts}` and `{implementation_artifacts}` to the active artifact prefix, `{sprint_status}` to that prefix plus `sprint-status.yaml`, and resolve language/date from the current user/runtime. Do not run repository customization/setup scripts or create ambient AI memory files.
|
|
18
|
+
- Read **fully** `reference/step-01-clarify-and-route.md`, then load only the next step it names. Paths between step files resolve inside `reference/`. Preserve recognized spec states and original route conditions. The one-shot route is limited to its explicit, unambiguous, zero-blast-radius change; it still reaches review. A small-looking change alone is not a waiver.
|
|
19
|
+
- At the planning checkpoint, save/read back the draft and HALT for `[A] Approve` / `[E] Edit`. After approval, reread the saved artifact and honor external edits before marking `ready-for-dev`. Do not auto-approve a newly created draft or infer approval from invoking the skill.
|
|
20
|
+
- Review is mandatory as specified in `reference/step-04-review.md`: independent blind hunter, edge-case hunter, and acceptance auditor, without parent conversation context. If delegation is unavailable, store the three review prompts and report the original workflow's external-review requirement; a self-review does not satisfy it. Restrict any reversion to this task's own changes.
|
|
21
|
+
- A ready spec has explicit file/action tasks, dependency order, testable Given/When/Then acceptance, and no unresolved intent. Target one user-facing goal and 900–1600 tokens; the original split/keep checkpoints allow the user's override.
|
|
22
|
+
- Apply the BMAD artifact storage contract to **all** artifact operations in the references, including spec status transitions, deferred work, cached context and review prompts. Use the selected backend for existence checks, reads, writes and timestamps. Source code and user-provided input files remain filesystem operations.
|
|
23
|
+
|
|
24
|
+
**Primary artifact:** the verified `<prefix>spec-<slug>.md` selected by step 1, preserved across planning, implementation and review. Return the verified artifact path.
|
|
25
|
+
|
|
26
|
+
For QA, report each requested scenario against observed evidence; unit/build success does not establish device/UI behavior. After repeated unchanged native observations, reassess the target/focus preconditions before retrying. Where duplicate detection is part of the scenario, use a new owned fixture so a duplicate result is not mistaken for a fresh success.
|
|
@@ -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
|
+
- `{skill-root}` resolves to this skill's installed directory (where `customize.toml` 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
|
+
Run: `python3 {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --key workflow`
|
|
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. `{skill-root}/customize.toml` — defaults
|
|
47
|
+
2. `{project-root}/_bmad/custom/{skill-name}.toml` — team overrides
|
|
48
|
+
3. `{project-root}/_bmad/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}/_bmad/bmm/config.yaml` 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. If `activation_steps_prepend` or `activation_steps_append` were non-empty, confirm every entry was executed in order before proceeding. Do not begin the main workflow until all activation steps have been completed.
|
|
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.
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# Compile Epic Context
|
|
2
|
+
|
|
3
|
+
**Task**
|
|
4
|
+
Given an epic number, the epics file, the planning artifacts directory, and a desired output path, compile a clean, focused, developer-ready context file (`epic-<N>-context.md`).
|
|
5
|
+
|
|
6
|
+
**Steps**
|
|
7
|
+
|
|
8
|
+
1. Read the epics file and extract the target epic's title, goal, and list of stories.
|
|
9
|
+
2. Scan the planning artifacts directory for the standard files (PRD, architecture, UX/design, product brief).
|
|
10
|
+
3. Pull only the information relevant to this epic.
|
|
11
|
+
4. Write the compiled context to the exact output path using the format below.
|
|
12
|
+
|
|
13
|
+
## Exact Output Format
|
|
14
|
+
|
|
15
|
+
Use these headings:
|
|
16
|
+
|
|
17
|
+
```markdown
|
|
18
|
+
# Epic {N} Context: {Epic Title}
|
|
19
|
+
|
|
20
|
+
<!-- Compiled from planning artifacts. Edit freely. Regenerate with compile-epic-context if planning docs change. -->
|
|
21
|
+
|
|
22
|
+
## Goal
|
|
23
|
+
|
|
24
|
+
{One clear paragraph: what this epic achieves and why it matters.}
|
|
25
|
+
|
|
26
|
+
## Stories
|
|
27
|
+
|
|
28
|
+
- Story X.Y: Brief title only
|
|
29
|
+
- ...
|
|
30
|
+
|
|
31
|
+
## Requirements & Constraints
|
|
32
|
+
|
|
33
|
+
{Relevant functional/non-functional requirements and success criteria for this epic (describe by purpose, not source).}
|
|
34
|
+
|
|
35
|
+
## Technical Decisions
|
|
36
|
+
|
|
37
|
+
{Key architecture decisions, constraints, patterns, data models, and conventions relevant to this epic.}
|
|
38
|
+
|
|
39
|
+
## UX & Interaction Patterns
|
|
40
|
+
|
|
41
|
+
{Relevant UX flows, interaction patterns, and design constraints (omit section entirely if nothing relevant).}
|
|
42
|
+
|
|
43
|
+
## Cross-Story Dependencies
|
|
44
|
+
|
|
45
|
+
{Dependencies between stories in this epic or with other epics/systems (omit if none).}
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Rules
|
|
49
|
+
|
|
50
|
+
- **Scope aggressively.** Include only what a developer working on any story in this epic actually needs. When in doubt, leave it out — the developer can always read the full planning doc.
|
|
51
|
+
- **Describe by purpose, not by source.** Write "API responses must include pagination metadata" not "Per PRD section 3.2.1, pagination is required." Planning doc internals will change; the constraint won't.
|
|
52
|
+
- **No full copies.** Never quote source documents, section numbers, or paste large blocks verbatim. Always distill.
|
|
53
|
+
- **No story-level details.** The story list is for orientation only. Individual story specs handle the details.
|
|
54
|
+
- **Nothing derivable from the codebase.** Don't document what a developer can learn by reading the code.
|
|
55
|
+
- **Be concise and actionable.** Target 800–1500 tokens total. This file loads into quick-dev's context alongside other material.
|
|
56
|
+
- **Never hallucinate content.** If source material doesn't say something, don't invent it.
|
|
57
|
+
- **Omit empty sections entirely**, except Goal and Stories, which are always required.
|
|
58
|
+
|
|
59
|
+
## Error handling
|
|
60
|
+
|
|
61
|
+
- **If the epics file is missing or the target epic is not found:** write nothing and report the problem to the calling agent. Goal and Stories cannot be populated without a usable epics file.
|
|
62
|
+
- **If planning artifacts are missing or empty:** still produce the file with Goal and Stories populated from the epics file, and note the gap in the Goal section. Never hallucinate content to fill missing sections.
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# DO NOT EDIT -- overwritten on every update.
|
|
2
|
+
#
|
|
3
|
+
# Workflow customization surface for bmad-quick-dev. Mirrors the
|
|
4
|
+
# agent customization shape under the [workflow] namespace.
|
|
5
|
+
|
|
6
|
+
[workflow]
|
|
7
|
+
|
|
8
|
+
# --- Configurable below. Overrides merge per BMad structural rules: ---
|
|
9
|
+
# scalars: override wins • arrays (persistent_facts, activation_steps_*): append
|
|
10
|
+
# arrays-of-tables with `code`/`id`: replace matching items, append new ones.
|
|
11
|
+
|
|
12
|
+
# Steps to run before the standard activation (config load, greet).
|
|
13
|
+
# Overrides append. Use for pre-flight loads, compliance checks, etc.
|
|
14
|
+
|
|
15
|
+
activation_steps_prepend = []
|
|
16
|
+
|
|
17
|
+
# Steps to run after greet but before the workflow begins.
|
|
18
|
+
# Overrides append. Use for context-heavy setup that should happen
|
|
19
|
+
# once the user has been acknowledged.
|
|
20
|
+
|
|
21
|
+
activation_steps_append = []
|
|
22
|
+
|
|
23
|
+
# Persistent facts the workflow keeps in mind for the whole run
|
|
24
|
+
# (standards, compliance constraints, stylistic guardrails).
|
|
25
|
+
# Distinct from the runtime memory sidecar — these are static context
|
|
26
|
+
# loaded on activation. Overrides append.
|
|
27
|
+
#
|
|
28
|
+
# Each entry is either:
|
|
29
|
+
# - a literal sentence, e.g. "All stories must include testable acceptance criteria."
|
|
30
|
+
# - a file reference prefixed with `file:`, e.g. "file:{project-root}/docs/standards.md"
|
|
31
|
+
# (glob patterns are supported; the file's contents are loaded and treated as facts).
|
|
32
|
+
|
|
33
|
+
persistent_facts = [
|
|
34
|
+
"file:{project-root}/**/project-context.md",
|
|
35
|
+
]
|
|
36
|
+
|
|
37
|
+
# Scalar: executed when the workflow reaches its final step,
|
|
38
|
+
# after implementation is complete and explanations are provided. Override wins.
|
|
39
|
+
# Leave empty for no custom post-completion behavior.
|
|
40
|
+
|
|
41
|
+
on_complete = ""
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: '{title}'
|
|
3
|
+
type: 'feature' # feature | bugfix | refactor | chore
|
|
4
|
+
created: '{date}'
|
|
5
|
+
status: 'draft' # draft | ready-for-dev | in-progress | in-review | done
|
|
6
|
+
context: [] # optional: `{project-root}/`-prefixed paths to project-wide standards/docs the implementation agent should load. Keep short — only what isn't already distilled into the spec body.
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
<!-- Target: 900–1300 tokens. Above 1600 = high risk of context rot.
|
|
10
|
+
Never over-specify "how" — use boundaries + examples instead.
|
|
11
|
+
Cohesive cross-layer stories (DB+BE+UI) stay in ONE file.
|
|
12
|
+
IMPORTANT: Remove all HTML comments when filling this template. -->
|
|
13
|
+
|
|
14
|
+
<frozen-after-approval reason="human-owned intent — do not modify unless human renegotiates">
|
|
15
|
+
|
|
16
|
+
## Intent
|
|
17
|
+
|
|
18
|
+
<!-- What is broken or missing, and why it matters. Then the high-level approach — the "what", not the "how". -->
|
|
19
|
+
|
|
20
|
+
**Problem:** ONE_TO_TWO_SENTENCES
|
|
21
|
+
|
|
22
|
+
**Approach:** ONE_TO_TWO_SENTENCES
|
|
23
|
+
|
|
24
|
+
## Boundaries & Constraints
|
|
25
|
+
|
|
26
|
+
<!-- Three tiers: Always = invariant rules. Ask First = human-gated decisions. Never = out of scope + forbidden approaches. -->
|
|
27
|
+
|
|
28
|
+
**Always:** INVARIANT_RULES
|
|
29
|
+
|
|
30
|
+
**Ask First:** DECISIONS_REQUIRING_HUMAN_APPROVAL
|
|
31
|
+
<!-- Agent: if any of these trigger during execution, HALT and ask the user before proceeding. -->
|
|
32
|
+
|
|
33
|
+
**Never:** NON_GOALS_AND_FORBIDDEN_APPROACHES
|
|
34
|
+
|
|
35
|
+
## I/O & Edge-Case Matrix
|
|
36
|
+
|
|
37
|
+
<!-- If no meaningful I/O scenarios exist, DELETE THIS ENTIRE SECTION. Do not write "N/A" or "None". -->
|
|
38
|
+
|
|
39
|
+
| Scenario | Input / State | Expected Output / Behavior | Error Handling |
|
|
40
|
+
|----------|--------------|---------------------------|----------------|
|
|
41
|
+
| HAPPY_PATH | INPUT | OUTCOME | N/A |
|
|
42
|
+
| ERROR_CASE | INPUT | OUTCOME | ERROR_HANDLING |
|
|
43
|
+
|
|
44
|
+
</frozen-after-approval>
|
|
45
|
+
|
|
46
|
+
## Code Map
|
|
47
|
+
|
|
48
|
+
<!-- Agent-populated during planning. Annotated paths prevent blind codebase searching. -->
|
|
49
|
+
|
|
50
|
+
- `FILE` -- ROLE_OR_RELEVANCE
|
|
51
|
+
- `FILE` -- ROLE_OR_RELEVANCE
|
|
52
|
+
|
|
53
|
+
## Tasks & Acceptance
|
|
54
|
+
|
|
55
|
+
<!-- Tasks: backtick-quoted file path -- action -- rationale. Prefer one task per file; group tightly-coupled changes when splitting would be artificial. -->
|
|
56
|
+
<!-- If an I/O Matrix is present, include a task to unit-test its edge cases. -->
|
|
57
|
+
<!-- AC covers system-level behaviors not captured by the I/O Matrix. Do not duplicate I/O scenarios here. -->
|
|
58
|
+
|
|
59
|
+
**Execution:**
|
|
60
|
+
- [ ] `FILE` -- ACTION -- RATIONALE
|
|
61
|
+
|
|
62
|
+
**Acceptance Criteria:**
|
|
63
|
+
- Given PRECONDITION, when ACTION, then EXPECTED_RESULT
|
|
64
|
+
|
|
65
|
+
## Spec Change Log
|
|
66
|
+
|
|
67
|
+
<!-- Append-only. Populated by step-04 during review loops. Do not modify or delete existing entries.
|
|
68
|
+
Each entry records: what finding triggered the change, what was amended, what known-bad state
|
|
69
|
+
the amendment avoids, and any KEEP instructions (what worked well and must survive re-derivation).
|
|
70
|
+
Empty until the first bad_spec loopback. -->
|
|
71
|
+
|
|
72
|
+
## Design Notes
|
|
73
|
+
|
|
74
|
+
<!-- If the approach is straightforward, DELETE THIS ENTIRE SECTION. Do not write "N/A" or "None". -->
|
|
75
|
+
<!-- Design rationale and golden examples only when non-obvious. Keep examples to 5–10 lines. -->
|
|
76
|
+
|
|
77
|
+
DESIGN_RATIONALE_AND_EXAMPLES
|
|
78
|
+
|
|
79
|
+
## Verification
|
|
80
|
+
|
|
81
|
+
<!-- If no build, test, or lint commands apply, DELETE THIS ENTIRE SECTION. Do not write "N/A" or "None". -->
|
|
82
|
+
<!-- How the agent confirms its own work. Prefer CLI commands. When no CLI check applies, state what to inspect manually. -->
|
|
83
|
+
|
|
84
|
+
**Commands:**
|
|
85
|
+
- `COMMAND` -- expected: SUCCESS_CRITERIA
|
|
86
|
+
|
|
87
|
+
**Manual checks (if no CLI):**
|
|
88
|
+
- WHAT_TO_INSPECT_AND_EXPECTED_STATE
|