Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

5 дні тому
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. # Step 13: Responsive Design & Accessibility
  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 responsive design strategy and accessibility compliance
  9. - 🎯 COLLABORATIVE strategy 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 responsive/accessibility 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 responsive/accessibility insights
  21. - **P (Party Mode)**: Bring multiple perspectives to define responsive/accessibility strategy
  22. - **C (Continue)**: Save the content to the document and proceed to final 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. - Platform requirements from step 3 inform responsive design
  31. - Design direction from step 9 influences responsive layout choices
  32. - Focus on cross-device adaptation and accessibility compliance
  33. ## YOUR TASK:
  34. Define responsive design strategy and accessibility requirements for the product.
  35. ## RESPONSIVE & ACCESSIBILITY SEQUENCE:
  36. ### 1. Define Responsive Strategy
  37. Establish how the design adapts across devices:
  38. "Let's define how {{project_name}} adapts across different screen sizes and devices.
  39. **Responsive Design Questions:**
  40. **Desktop Strategy:**
  41. - How should we use extra screen real estate?
  42. - Multi-column layouts, side navigation, or content density?
  43. - What desktop-specific features can we include?
  44. **Tablet Strategy:**
  45. - Should we use simplified layouts or touch-optimized interfaces?
  46. - How do gestures and touch interactions work on tablets?
  47. - What's the optimal information density for tablet screens?
  48. **Mobile Strategy:**
  49. - Bottom navigation or hamburger menu?
  50. - How do layouts collapse on small screens?
  51. - What's the most critical information to show mobile-first?"
  52. ### 2. Establish Breakpoint Strategy
  53. Define when and how layouts change:
  54. "**Breakpoint Strategy:**
  55. We need to define screen size breakpoints where layouts adapt.
  56. **Common Breakpoints:**
  57. - Mobile: 320px - 767px
  58. - Tablet: 768px - 1023px
  59. - Desktop: 1024px+
  60. **For {{project_name}}, should we:**
  61. - Use standard breakpoints or custom ones?
  62. - Focus on mobile-first or desktop-first design?
  63. - Have specific breakpoints for your key use cases?"
  64. ### 3. Design Accessibility Strategy
  65. Define accessibility requirements and compliance level:
  66. "**Accessibility Strategy:**
  67. What level of WCAG compliance does {{project_name}} need?
  68. **WCAG Levels:**
  69. - **Level A (Basic)** - Essential accessibility for legal compliance
  70. - **Level AA (Recommended)** - Industry standard for good UX
  71. - **Level AAA (Highest)** - Exceptional accessibility (rarely needed)
  72. **Based on your product:**
  73. - [Recommendation based on user base, legal requirements, etc.]
  74. **Key Accessibility Considerations:**
  75. - Color contrast ratios (4.5:1 for normal text)
  76. - Keyboard navigation support
  77. - Screen reader compatibility
  78. - Touch target sizes (minimum 44x44px)
  79. - Focus indicators and skip links"
  80. ### 4. Define Testing Strategy
  81. Plan how to ensure responsive design and accessibility:
  82. "**Testing Strategy:**
  83. **Responsive Testing:**
  84. - Device testing on actual phones/tablets
  85. - Browser testing across Chrome, Firefox, Safari, Edge
  86. - Real device network performance testing
  87. **Accessibility Testing:**
  88. - Automated accessibility testing tools
  89. - Screen reader testing (VoiceOver, NVDA, JAWS)
  90. - Keyboard-only navigation testing
  91. - Color blindness simulation testing
  92. **User Testing:**
  93. - Include users with disabilities in testing
  94. - Test with diverse assistive technologies
  95. - Validate with actual target devices"
  96. ### 5. Document Implementation Guidelines
  97. Create specific guidelines for developers:
  98. "**Implementation Guidelines:**
  99. **Responsive Development:**
  100. - Use relative units (rem, %, vw, vh) over fixed pixels
  101. - Implement mobile-first media queries
  102. - Test touch targets and gesture areas
  103. - Optimize images and assets for different devices
  104. **Accessibility Development:**
  105. - Semantic HTML structure
  106. - ARIA labels and roles
  107. - Keyboard navigation implementation
  108. - Focus management and skip links
  109. - High contrast mode support"
  110. ### 6. Generate Responsive & Accessibility Content
  111. Prepare the content to append to the document:
  112. #### Content Structure:
  113. When saving to document, append these Level 2 and Level 3 sections:
  114. ```markdown
  115. ## Responsive Design & Accessibility
  116. ### Responsive Strategy
  117. [Responsive strategy based on conversation]
  118. ### Breakpoint Strategy
  119. [Breakpoint strategy based on conversation]
  120. ### Accessibility Strategy
  121. [Accessibility strategy based on conversation]
  122. ### Testing Strategy
  123. [Testing strategy based on conversation]
  124. ### Implementation Guidelines
  125. [Implementation guidelines based on conversation]
  126. ```
  127. ### 7. Present Content and Menu
  128. Show the generated responsive and accessibility content and present choices:
  129. "I've defined the responsive design and accessibility strategy for {{project_name}}. This ensures your product works beautifully across all devices and is accessible to all users.
  130. **Here's what I'll add to the document:**
  131. [Show the complete markdown content from step 6]
  132. **What would you like to do?**
  133. [A] Advanced Elicitation - Let's refine our responsive/accessibility strategy
  134. [P] Party Mode - Bring different perspectives on inclusive design
  135. [C] Continue - Save this to the document and complete the workflow
  136. ### 8. Handle Menu Selection
  137. #### If 'A' (Advanced Elicitation):
  138. - Invoke the `bmad-advanced-elicitation` skill with the current responsive/accessibility content
  139. - Process the enhanced insights that come back
  140. - Ask user: "Accept these improvements to the responsive/accessibility strategy? (y/n)"
  141. - If yes: Update content with improvements, then return to A/P/C menu
  142. - If no: Keep original content, then return to A/P/C menu
  143. #### If 'P' (Party Mode):
  144. - Invoke the `bmad-party-mode` skill with the current responsive/accessibility strategy
  145. - Process the collaborative insights that come back
  146. - Ask user: "Accept these changes to the responsive/accessibility strategy? (y/n)"
  147. - If yes: Update content with improvements, then return to A/P/C menu
  148. - If no: Keep original content, then return to A/P/C menu
  149. #### If 'C' (Continue):
  150. - Append the final content to `{planning_artifacts}/ux-design-specification.md`
  151. - Update frontmatter: append step to end of stepsCompleted array
  152. - Load `./step-14-complete.md`
  153. ## APPEND TO DOCUMENT:
  154. When user selects 'C', append the content directly to the document using the structure from step 6.
  155. ## SUCCESS METRICS:
  156. ✅ Responsive strategy clearly defined for all device types
  157. ✅ Appropriate breakpoint strategy established
  158. ✅ Accessibility requirements determined and documented
  159. ✅ Comprehensive testing strategy planned
  160. ✅ Implementation guidelines provided for Developer agent
  161. ✅ A/P/C menu presented and handled correctly
  162. ✅ Content properly appended to document when C selected
  163. ## FAILURE MODES:
  164. ❌ Not considering all device types and screen sizes
  165. ❌ Accessibility requirements not properly researched
  166. ❌ Testing strategy not comprehensive enough
  167. ❌ Implementation guidelines too generic or unclear
  168. ❌ Not addressing specific accessibility challenges for your product
  169. ❌ Not presenting A/P/C menu after content generation
  170. ❌ Appending content without user selecting 'C'
  171. ❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions
  172. ❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file
  173. ❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols
  174. ## NEXT STEP:
  175. After user selects 'C' and content is saved to document, load `./step-14-complete.md` to finalize the UX design workflow.
  176. Remember: Do NOT proceed to step-14 until user explicitly selects 'C' from the A/P/C menu and content is saved!