You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. **Language:** Use `{communication_language}` for all output.
  2. **Output Language:** Use `{document_output_language}` for documents.
  3. **Output Location:** `{planning_artifacts}`
  4. **Paths:** Bare paths (e.g. `prompts/foo.md`) resolve from the skill root.
  5. # Stage 5: Finalize
  6. **Goal:** Save the polished brief, offer the LLM distillate, and point the user forward.
  7. ## Step 1: Polish and Save
  8. Update the product brief document at `{planning_artifacts}/product-brief-{project_name}.md`:
  9. - Update frontmatter `status` to `"complete"`
  10. - Update `updated` timestamp
  11. - Ensure formatting is clean and consistent
  12. - Confirm the document reads well as a standalone 1-2 page executive summary
  13. ## Step 2: Offer the Distillate
  14. Throughout the discovery process, you likely captured detail that doesn't belong in a 1-2 page executive summary but is valuable for downstream work — requirements hints, platform preferences, rejected ideas, technical constraints, detailed user scenarios, competitive deep-dives, etc.
  15. **Ask the user:**
  16. "Your product brief is complete. During our conversation, I captured additional detail that goes beyond the executive summary — things like [mention 2-3 specific examples of overflow you captured]. Would you like me to create a detail pack for PRD creation? It distills all that extra context into a concise, structured format optimized for the next phase."
  17. **If yes, create the distillate** at `{planning_artifacts}/product-brief-{project_name}-distillate.md`:
  18. ```yaml
  19. ---
  20. title: "Product Brief Distillate: {project_name}"
  21. type: llm-distillate
  22. source: "product-brief-{project_name}.md"
  23. created: "{timestamp}"
  24. purpose: "Token-efficient context for downstream PRD creation"
  25. ---
  26. ```
  27. **Distillate content principles:**
  28. - Dense bullet points, not prose
  29. - Each bullet carries enough context to be understood standalone (don't assume the reader has the full brief loaded)
  30. - Group by theme, not by when it was mentioned
  31. - Include:
  32. - **Rejected ideas** — so downstream workflows don't re-propose them, with brief rationale
  33. - **Requirements hints** — anything the user mentioned that sounds like a requirement
  34. - **Technical context** — platforms, integrations, constraints, preferences
  35. - **Detailed user scenarios** — richer than what fits in the exec summary
  36. - **Competitive intelligence** — specifics from web research worth preserving
  37. - **Open questions** — things surfaced but not resolved during discovery
  38. - **Scope signals** — what the user indicated is in/out/maybe for MVP
  39. - Token-conscious: be concise, but give enough context per bullet so an LLM reading this later understands WHY each point matters
  40. **Headless mode:** Always create the distillate automatically — unless the session was too brief to capture meaningful overflow (in that case, note this in the completion output instead of creating an empty file).
  41. ## Step 3: Present Completion
  42. "Your product brief for {project_name} is complete!
  43. **Executive Brief:** `{planning_artifacts}/product-brief-{project_name}.md`
  44. [If distillate created:] **Detail Pack:** `{planning_artifacts}/product-brief-{project_name}-distillate.md`
  45. **Recommended next step:** Use the product brief (and detail pack) as input for PRD creation — tell your assistant 'create a PRD' and point it to these files."
  46. [If distillate created:] "The detail pack contains all the overflow context (requirements hints, rejected ideas, technical constraints) specifically structured for the PRD workflow to consume."
  47. **Headless mode:** Output the file paths as structured JSON and exit:
  48. ```json
  49. {
  50. "status": "complete",
  51. "brief": "{planning_artifacts}/product-brief-{project_name}.md",
  52. "distillate": "{path or null}",
  53. "confidence": "high|medium|low",
  54. "open_questions": ["any unresolved items"]
  55. }
  56. ```
  57. ## Stage Complete
  58. Run: `python3 {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --key workflow.on_complete`
  59. If the resolved `workflow.on_complete` is non-empty, follow it as the final terminal instruction before exiting. After delivering the completion message and file paths, the workflow is done. If the user requests further revisions, loop back to `prompts/draft-and-review.md`. Otherwise, exit.