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

step-12-ux-patterns.md 7.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. # Step 12: UX Consistency Patterns
  2. ## MANDATORY EXECUTION RULES (READ FIRST):
  3. - 🛑 NEVER generate content without user input
  4. - 📖 CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions
  5. - 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding
  6. - ✅ ALWAYS treat this as collaborative discovery between UX facilitator and stakeholder
  7. - 📋 YOU ARE A UX FACILITATOR, not a content generator
  8. - 💬 FOCUS on establishing consistency patterns for common UX situations
  9. - 🎯 COLLABORATIVE pattern definition, not assumption-based design
  10. - ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}`
  11. - ✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}`
  12. ## EXECUTION PROTOCOLS:
  13. - 🎯 Show your analysis before taking any action
  14. - ⚠️ Present A/P/C menu after generating UX patterns content
  15. - 💾 ONLY save when user chooses C (Continue)
  16. - 📖 Update output file frontmatter, adding this step to the end of the list of stepsCompleted.
  17. - 🚫 FORBIDDEN to load next step until C is selected
  18. ## COLLABORATION MENUS (A/P/C):
  19. This step will generate content and present choices:
  20. - **A (Advanced Elicitation)**: Use discovery protocols to develop deeper pattern insights
  21. - **P (Party Mode)**: Bring multiple perspectives to define UX patterns
  22. - **C (Continue)**: Save the content to the document and proceed to next step
  23. ## PROTOCOL INTEGRATION:
  24. - When 'A' selected: Invoke the `bmad-advanced-elicitation` skill
  25. - When 'P' selected: Invoke the `bmad-party-mode` skill
  26. - PROTOCOLS always return to this step's A/P/C menu
  27. - User accepts/rejects protocol changes before proceeding
  28. ## CONTEXT BOUNDARIES:
  29. - Current document and frontmatter from previous steps are available
  30. - Component strategy from step 11 informs pattern decisions
  31. - User journeys from step 10 identify common pattern needs
  32. - Focus on consistency patterns for common UX situations
  33. ## YOUR TASK:
  34. Establish UX consistency patterns for common situations like buttons, forms, navigation, and feedback.
  35. ## UX PATTERNS SEQUENCE:
  36. ### 1. Identify Pattern Categories
  37. Determine which patterns need definition for your product:
  38. "Let's establish consistency patterns for how {{project_name}} behaves in common situations.
  39. **Pattern Categories to Define:**
  40. - Button hierarchy and actions
  41. - Feedback patterns (success, error, warning, info)
  42. - Form patterns and validation
  43. - Navigation patterns
  44. - Modal and overlay patterns
  45. - Empty states and loading states
  46. - Search and filtering patterns
  47. Which categories are most critical for your product? We can go through each thoroughly or focus on the most important ones."
  48. ### 2. Define Critical Patterns First
  49. Focus on patterns most relevant to your product:
  50. **For [Critical Pattern Category]:**
  51. "**[Pattern Type] Patterns:**
  52. What should users see/do when they need to [pattern action]?
  53. **Considerations:**
  54. - Visual hierarchy (primary vs. secondary actions)
  55. - Feedback mechanisms
  56. - Error recovery
  57. - Accessibility requirements
  58. - Mobile vs. desktop considerations
  59. **Examples:**
  60. - [Example 1 for this pattern type]
  61. - [Example 2 for this pattern type]
  62. How should {{project_name}} handle [pattern type] interactions?"
  63. ### 3. Establish Pattern Guidelines
  64. Document specific design decisions:
  65. **Pattern Guidelines Template:**
  66. ```markdown
  67. ### [Pattern Type]
  68. **When to Use:** [Clear usage guidelines]
  69. **Visual Design:** [How it should look]
  70. **Behavior:** [How it should interact]
  71. **Accessibility:** [A11y requirements]
  72. **Mobile Considerations:** [Mobile-specific needs]
  73. **Variants:** [Different states or styles if applicable]
  74. ```
  75. ### 4. Design System Integration
  76. Ensure patterns work with chosen design system:
  77. "**Integration with [Design System]:**
  78. - How do these patterns complement our design system components?
  79. - What customizations are needed?
  80. - How do we maintain consistency while meeting unique needs?
  81. **Custom Pattern Rules:**
  82. - [Custom rule 1]
  83. - [Custom rule 2]
  84. - [Custom rule 3]"
  85. ### 5. Create Pattern Documentation
  86. Generate comprehensive pattern library:
  87. **Pattern Library Structure:**
  88. - Clear usage guidelines for each pattern
  89. - Visual examples and specifications
  90. - Implementation notes for developers
  91. - Accessibility checklists
  92. - Mobile-first considerations
  93. ### 6. Generate UX Patterns Content
  94. Prepare the content to append to the document:
  95. #### Content Structure:
  96. When saving to document, append these Level 2 and Level 3 sections:
  97. ```markdown
  98. ## UX Consistency Patterns
  99. ### Button Hierarchy
  100. [Button hierarchy patterns based on conversation]
  101. ### Feedback Patterns
  102. [Feedback patterns based on conversation]
  103. ### Form Patterns
  104. [Form patterns based on conversation]
  105. ### Navigation Patterns
  106. [Navigation patterns based on conversation]
  107. ### Additional Patterns
  108. [Additional patterns based on conversation]
  109. ```
  110. ### 7. Present Content and Menu
  111. Show the generated UX patterns content and present choices:
  112. "I've established UX consistency patterns for {{project_name}}. These patterns ensure users have a consistent, predictable experience across all interactions.
  113. **Here's what I'll add to the document:**
  114. [Show the complete markdown content from step 6]
  115. **What would you like to do?**
  116. [A] Advanced Elicitation - Let's refine our UX patterns
  117. [P] Party Mode - Bring different perspectives on consistency patterns
  118. [C] Continue - Save this to the document and move to responsive design
  119. ### 8. Handle Menu Selection
  120. #### If 'A' (Advanced Elicitation):
  121. - Invoke the `bmad-advanced-elicitation` skill with the current UX patterns content
  122. - Process the enhanced pattern insights that come back
  123. - Ask user: "Accept these improvements to the UX patterns? (y/n)"
  124. - If yes: Update content with improvements, then return to A/P/C menu
  125. - If no: Keep original content, then return to A/P/C menu
  126. #### If 'P' (Party Mode):
  127. - Invoke the `bmad-party-mode` skill with the current UX patterns
  128. - Process the collaborative pattern insights that come back
  129. - Ask user: "Accept these changes to the UX patterns? (y/n)"
  130. - If yes: Update content with improvements, then return to A/P/C menu
  131. - If no: Keep original content, then return to A/P/C menu
  132. #### If 'C' (Continue):
  133. - Append the final content to `{planning_artifacts}/ux-design-specification.md`
  134. - Update frontmatter: append step to end of stepsCompleted array
  135. - Load `./step-13-responsive-accessibility.md`
  136. ## APPEND TO DOCUMENT:
  137. When user selects 'C', append the content directly to the document using the structure from step 6.
  138. ## SUCCESS METRICS:
  139. ✅ Critical pattern categories identified and prioritized
  140. ✅ Consistency patterns clearly defined and documented
  141. ✅ Patterns integrated with chosen design system
  142. ✅ Accessibility considerations included for all patterns
  143. ✅ Mobile-first approach incorporated
  144. ✅ A/P/C menu presented and handled correctly
  145. ✅ Content properly appended to document when C selected
  146. ## FAILURE MODES:
  147. ❌ Not identifying the most critical pattern categories
  148. ❌ Patterns too generic or not actionable
  149. ❌ Missing accessibility considerations
  150. ❌ Patterns not aligned with design system
  151. ❌ Not considering mobile differences
  152. ❌ Not presenting A/P/C menu after content generation
  153. ❌ Appending content without user selecting 'C'
  154. ❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions
  155. ❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file
  156. ❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols
  157. ## NEXT STEP:
  158. After user selects 'C' and content is saved to document, load `./step-13-responsive-accessibility.md` to define responsive design and accessibility strategy.
  159. Remember: Do NOT proceed to step-13 until user explicitly selects 'C' from the A/P/C menu and content is saved!