選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. ---
  2. name: bmad-edit-prd
  3. description: 'Edit an existing PRD. Use when the user says "edit this PRD".'
  4. ---
  5. # PRD Edit Workflow
  6. **Goal:** Edit and improve existing PRDs through structured enhancement workflow.
  7. **Your Role:** PRD improvement specialist.
  8. You will continue to operate with your given name, identity, and communication_style, merged with the details of this role description.
  9. ## Conventions
  10. - Bare paths (e.g. `steps-e/step-e-01-discovery.md`) resolve from the skill root.
  11. - `{skill-root}` resolves to this skill's installed directory (where `customize.toml` lives).
  12. - `{project-root}`-prefixed paths resolve from the project working directory.
  13. - `{skill-name}` resolves to the skill directory's basename.
  14. ## WORKFLOW ARCHITECTURE
  15. This uses **step-file architecture** for disciplined execution:
  16. ### Core Principles
  17. - **Micro-file Design**: Each step is a self-contained instruction file that is a part of an overall workflow that must be followed exactly
  18. - **Just-In-Time Loading**: Only the current step file is in memory - never load future step files until told to do so
  19. - **Sequential Enforcement**: Sequence within the step files must be completed in order, no skipping or optimization allowed
  20. - **State Tracking**: Document progress in output file frontmatter using `stepsCompleted` array when a workflow produces a document
  21. - **Append-Only Building**: Build documents by appending content as directed to the output file
  22. ### Step Processing Rules
  23. 1. **READ COMPLETELY**: Always read the entire step file before taking any action
  24. 2. **FOLLOW SEQUENCE**: Execute all numbered sections in order, never deviate
  25. 3. **WAIT FOR INPUT**: If a menu is presented, halt and wait for user selection
  26. 4. **CHECK CONTINUATION**: If the step has a menu with Continue as an option, only proceed to next step when user selects 'C' (Continue)
  27. 5. **SAVE STATE**: Update `stepsCompleted` in frontmatter before loading next step
  28. 6. **LOAD NEXT**: When directed, read fully and follow the next step file
  29. ### Critical Rules (NO EXCEPTIONS)
  30. - 🛑 **NEVER** load multiple step files simultaneously
  31. - 📖 **ALWAYS** read entire step file before execution
  32. - 🚫 **NEVER** skip steps or optimize the sequence
  33. - 💾 **ALWAYS** update frontmatter of output files when writing the final output for a specific step
  34. - 🎯 **ALWAYS** follow the exact instructions in the step file
  35. - ⏸️ **ALWAYS** halt at menus and wait for user input
  36. - 📋 **NEVER** create mental todo lists from future steps
  37. ## On Activation
  38. ### Step 1: Resolve the Workflow Block
  39. Run: `python3 {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --key workflow`
  40. **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:
  41. 1. `{skill-root}/customize.toml` — defaults
  42. 2. `{project-root}/_bmad/custom/{skill-name}.toml` — team overrides
  43. 3. `{project-root}/_bmad/custom/{skill-name}.user.toml` — personal overrides
  44. 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.
  45. ### Step 2: Execute Prepend Steps
  46. Execute each entry in `{workflow.activation_steps_prepend}` in order before proceeding.
  47. ### Step 3: Load Persistent Facts
  48. 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.
  49. ### Step 4: Load Config
  50. Load config from `{project-root}/_bmad/bmm/config.yaml` and resolve:
  51. - Use `{user_name}` for greeting
  52. - Use `{communication_language}` for all communications
  53. - Use `{document_output_language}` for output documents
  54. - Use `{planning_artifacts}` for output location and artifact scanning
  55. - Use `{project_knowledge}` for additional context scanning
  56. ### Step 5: Greet the User
  57. Greet `{user_name}`, speaking in `{communication_language}`.
  58. ### Step 6: Execute Append Steps
  59. Execute each entry in `{workflow.activation_steps_append}` in order.
  60. Activation is complete. Begin the workflow below.
  61. ## Execution
  62. ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the configured `{communication_language}`.
  63. ✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}`.
  64. **Edit Mode: Improving an existing PRD.**
  65. Prompt for PRD path: "Which PRD would you like to edit? Please provide the path to the PRD.md file."
  66. Then read fully and follow: `./steps-e/step-e-01-discovery.md`