Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. ---
  2. name: bmad-advanced-elicitation
  3. description: 'Push the LLM to reconsider, refine, and improve its recent output. Use when user asks for deeper critique or mentions a known deeper critique method, e.g. socratic, first principles, pre-mortem, red team.'
  4. ---
  5. # Advanced Elicitation
  6. **Goal:** Push the LLM to reconsider, refine, and improve its recent output.
  7. ---
  8. ## CRITICAL LLM INSTRUCTIONS
  9. - **MANDATORY:** Execute ALL steps in the flow section IN EXACT ORDER
  10. - DO NOT skip steps or change the sequence
  11. - HALT immediately when halt-conditions are met
  12. - Each action within a step is a REQUIRED action to complete that step
  13. - Sections outside flow (validation, output, critical-context) provide essential context - review and apply throughout execution
  14. - **YOU MUST ALWAYS SPEAK OUTPUT in your Agent communication style with the `communication_language`**
  15. ---
  16. ## INTEGRATION (When Invoked Indirectly)
  17. When invoked from another prompt or process:
  18. 1. Receive or review the current section content that was just generated
  19. 2. Apply elicitation methods iteratively to enhance that specific content
  20. 3. Return the enhanced version back when user selects 'x' to proceed and return back
  21. 4. The enhanced content replaces the original section content in the output document
  22. ---
  23. ## FLOW
  24. ### Step 1: Method Registry Loading
  25. **Action:** Load `./methods.csv` for elicitation methods. If party-mode may participate, resolve the agent roster via:
  26. ```bash
  27. python3 {project-root}/_bmad/scripts/resolve_config.py --project-root {project-root} --key agents
  28. ```
  29. The resolver merges four layers in order: `_bmad/config.toml` (installer base, team-scoped), `_bmad/config.user.toml` (installer base, user-scoped), `_bmad/custom/config.toml` (team overrides), and `_bmad/custom/config.user.toml` (personal overrides). Each entry under `agents` is keyed by the agent's `code` and carries `name`, `title`, `icon`, `description`, `module`, and `team`.
  30. #### CSV Structure
  31. - **category:** Method grouping (core, structural, risk, etc.)
  32. - **method_name:** Display name for the method
  33. - **description:** Rich explanation of what the method does, when to use it, and why it's valuable
  34. - **output_pattern:** Flexible flow guide using arrows (e.g., "analysis -> insights -> action")
  35. #### Context Analysis
  36. - Use conversation history
  37. - Analyze: content type, complexity, stakeholder needs, risk level, and creative potential
  38. #### Smart Selection
  39. 1. Analyze context: Content type, complexity, stakeholder needs, risk level, creative potential
  40. 2. Parse descriptions: Understand each method's purpose from the rich descriptions in CSV
  41. 3. Select 5 methods: Choose methods that best match the context based on their descriptions
  42. 4. Balance approach: Include mix of foundational and specialized techniques as appropriate
  43. ---
  44. ### Step 2: Present Options and Handle Responses
  45. #### Display Format
  46. ```
  47. **Advanced Elicitation Options**
  48. _If party mode is active, agents will join in._
  49. Choose a number (1-5), [r] to Reshuffle, [a] List All, or [x] to Proceed:
  50. 1. [Method Name]
  51. 2. [Method Name]
  52. 3. [Method Name]
  53. 4. [Method Name]
  54. 5. [Method Name]
  55. r. Reshuffle the list with 5 new options
  56. a. List all methods with descriptions
  57. x. Proceed / No Further Actions
  58. ```
  59. #### Response Handling
  60. **Case 1-5 (User selects a numbered method):**
  61. - Execute the selected method using its description from the CSV
  62. - Adapt the method's complexity and output format based on the current context
  63. - Apply the method creatively to the current section content being enhanced
  64. - Display the enhanced version showing what the method revealed or improved
  65. - **CRITICAL:** Ask the user if they would like to apply the changes to the doc (y/n/other) and HALT to await response.
  66. - **CRITICAL:** ONLY if Yes, apply the changes. IF No, discard your memory of the proposed changes. If any other reply, try best to follow the instructions given by the user.
  67. - **CRITICAL:** Re-present the same 1-5,r,x prompt to allow additional elicitations
  68. **Case r (Reshuffle):**
  69. - Select 5 random methods from methods.csv, present new list with same prompt format
  70. - When selecting, try to think and pick a diverse set of methods covering different categories and approaches, with 1 and 2 being potentially the most useful for the document or section being discovered
  71. **Case x (Proceed):**
  72. - Complete elicitation and proceed
  73. - Return the fully enhanced content back to the invoking skill
  74. - The enhanced content becomes the final version for that section
  75. - Signal completion back to the invoking skill to continue with next section
  76. **Case a (List All):**
  77. - List all methods with their descriptions from the CSV in a compact table
  78. - Allow user to select any method by name or number from the full list
  79. - After selection, execute the method as described in the Case 1-5 above
  80. **Case: Direct Feedback:**
  81. - Apply changes to current section content and re-present choices
  82. **Case: Multiple Numbers:**
  83. - Execute methods in sequence on the content, then re-offer choices
  84. ---
  85. ### Step 3: Execution Guidelines
  86. - **Method execution:** Use the description from CSV to understand and apply each method
  87. - **Output pattern:** Use the pattern as a flexible guide (e.g., "paths -> evaluation -> selection")
  88. - **Dynamic adaptation:** Adjust complexity based on content needs (simple to sophisticated)
  89. - **Creative application:** Interpret methods flexibly based on context while maintaining pattern consistency
  90. - Focus on actionable insights
  91. - **Stay relevant:** Tie elicitation to specific content being analyzed (the current section from the document being created unless user indicates otherwise)
  92. - **Identify personas:** For single or multi-persona methods, clearly identify viewpoints, and use party members if available in memory already
  93. - **Critical loop behavior:** Always re-offer the 1-5,r,a,x choices after each method execution
  94. - Continue until user selects 'x' to proceed with enhanced content, confirm or ask the user what should be accepted from the session
  95. - Each method application builds upon previous enhancements
  96. - **Content preservation:** Track all enhancements made during elicitation
  97. - **Iterative enhancement:** Each selected method (1-5) should:
  98. 1. Apply to the current enhanced version of the content
  99. 2. Show the improvements made
  100. 3. Return to the prompt for additional elicitations or completion