Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

step-v-10-smart-validation.md 6.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. ---
  2. # File references (ONLY variables used in this step)
  3. nextStepFile: './step-v-11-holistic-quality-validation.md'
  4. prdFile: '{prd_file_path}'
  5. validationReportPath: '{validation_report_path}'
  6. ---
  7. # Step 10: SMART Requirements Validation
  8. ## STEP GOAL:
  9. Validate Functional Requirements meet SMART quality criteria (Specific, Measurable, Attainable, Relevant, Traceable), ensuring high-quality requirements.
  10. ## MANDATORY EXECUTION RULES (READ FIRST):
  11. ### Universal Rules:
  12. - 🛑 NEVER generate content without user input
  13. - 📖 CRITICAL: Read the complete step file before taking any action
  14. - 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read
  15. - 📋 YOU ARE A FACILITATOR, not a content generator
  16. - ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}`
  17. - ✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}`
  18. ### Role Reinforcement:
  19. - ✅ You are a Validation Architect and Quality Assurance Specialist
  20. - ✅ If you already have been given communication or persona patterns, continue to use those while playing this new role
  21. - ✅ We engage in systematic validation, not collaborative dialogue
  22. - ✅ You bring requirements engineering expertise and quality assessment
  23. - ✅ This step runs autonomously - no user input needed
  24. ### Step-Specific Rules:
  25. - 🎯 Focus ONLY on FR quality assessment using SMART framework
  26. - 🚫 FORBIDDEN to validate other aspects in this step
  27. - 💬 Approach: Score each FR on SMART criteria (1-5 scale)
  28. - 🚪 This is a validation sequence step - auto-proceeds when complete
  29. ## EXECUTION PROTOCOLS:
  30. - 🎯 Extract all FRs from PRD
  31. - 🎯 Score each FR on SMART criteria (Specific, Measurable, Attainable, Relevant, Traceable)
  32. - 💾 Flag FRs with score < 3 in any category
  33. - 📖 Append scoring table and suggestions to validation report
  34. - 📖 Display "Proceeding to next check..." and load next step
  35. - 🚫 FORBIDDEN to pause or request user input
  36. ## CONTEXT BOUNDARIES:
  37. - Available context: PRD file, validation report
  38. - Focus: FR quality assessment only using SMART framework
  39. - Limits: Don't validate NFRs or other aspects, don't pause for user input
  40. - Dependencies: Steps 2-9 completed - comprehensive validation checks done
  41. ## MANDATORY SEQUENCE
  42. **CRITICAL:** Follow this sequence exactly. Do not skip, reorder, or improvise unless user explicitly requests a change.
  43. ### 1. Extract All Functional Requirements
  44. From the PRD's Functional Requirements section, extract:
  45. - All FRs with their FR numbers (FR-001, FR-002, etc.)
  46. - Count total FRs
  47. ### 2. Attempt Sub-Process Validation
  48. **Try to use Task tool to spawn a subprocess:**
  49. "Perform SMART requirements validation on these Functional Requirements:
  50. {List all FRs}
  51. **For each FR, score on SMART criteria (1-5 scale):**
  52. **Specific (1-5):**
  53. - 5: Clear, unambiguous, well-defined
  54. - 3: Somewhat clear but could be more specific
  55. - 1: Vague, ambiguous, unclear
  56. **Measurable (1-5):**
  57. - 5: Quantifiable metrics, testable
  58. - 3: Partially measurable
  59. - 1: Not measurable, subjective
  60. **Attainable (1-5):**
  61. - 5: Realistic, achievable with constraints
  62. - 3: Probably achievable but uncertain
  63. - 1: Unrealistic, technically infeasible
  64. **Relevant (1-5):**
  65. - 5: Clearly aligned with user needs and business objectives
  66. - 3: Somewhat relevant but connection unclear
  67. - 1: Not relevant, doesn't align with goals
  68. **Traceable (1-5):**
  69. - 5: Clearly traces to user journey or business objective
  70. - 3: Partially traceable
  71. - 1: Orphan requirement, no clear source
  72. **For each FR with score < 3 in any category:**
  73. - Provide specific improvement suggestions
  74. Return scoring table with all FR scores and improvement suggestions for low-scoring FRs."
  75. **Graceful degradation (if no Task tool):**
  76. - Manually score each FR on SMART criteria
  77. - Note FRs with low scores
  78. - Provide improvement suggestions
  79. ### 3. Build Scoring Table
  80. For each FR:
  81. - FR number
  82. - Specific score (1-5)
  83. - Measurable score (1-5)
  84. - Attainable score (1-5)
  85. - Relevant score (1-5)
  86. - Traceable score (1-5)
  87. - Average score
  88. - Flag if any category < 3
  89. **Calculate overall FR quality:**
  90. - Percentage of FRs with all scores ≥ 3
  91. - Percentage of FRs with all scores ≥ 4
  92. - Average score across all FRs and categories
  93. ### 4. Report SMART Findings to Validation Report
  94. Append to validation report:
  95. ```markdown
  96. ## SMART Requirements Validation
  97. **Total Functional Requirements:** {count}
  98. ### Scoring Summary
  99. **All scores ≥ 3:** {percentage}% ({count}/{total})
  100. **All scores ≥ 4:** {percentage}% ({count}/{total})
  101. **Overall Average Score:** {average}/5.0
  102. ### Scoring Table
  103. | FR # | Specific | Measurable | Attainable | Relevant | Traceable | Average | Flag |
  104. |------|----------|------------|------------|----------|-----------|--------|------|
  105. | FR-001 | {s1} | {m1} | {a1} | {r1} | {t1} | {avg1} | {X if any <3} |
  106. | FR-002 | {s2} | {m2} | {a2} | {r2} | {t2} | {avg2} | {X if any <3} |
  107. [Continue for all FRs]
  108. **Legend:** 1=Poor, 3=Acceptable, 5=Excellent
  109. **Flag:** X = Score < 3 in one or more categories
  110. ### Improvement Suggestions
  111. **Low-Scoring FRs:**
  112. **FR-{number}:** {specific suggestion for improvement}
  113. [For each FR with score < 3 in any category]
  114. ### Overall Assessment
  115. **Severity:** [Critical if >30% flagged FRs, Warning if 10-30%, Pass if <10%]
  116. **Recommendation:**
  117. [If Critical] "Many FRs have quality issues. Revise flagged FRs using SMART framework to improve clarity and testability."
  118. [If Warning] "Some FRs would benefit from SMART refinement. Focus on flagged requirements above."
  119. [If Pass] "Functional Requirements demonstrate good SMART quality overall."
  120. ```
  121. ### 5. Display Progress and Auto-Proceed
  122. Display: "**SMART Requirements Validation Complete**
  123. FR Quality: {percentage}% with acceptable scores ({severity})
  124. **Proceeding to next validation check...**"
  125. Without delay, read fully and follow: {nextStepFile} (step-v-11-holistic-quality-validation.md)
  126. ---
  127. ## 🚨 SYSTEM SUCCESS/FAILURE METRICS
  128. ### ✅ SUCCESS:
  129. - All FRs extracted from PRD
  130. - Each FR scored on all 5 SMART criteria (1-5 scale)
  131. - FRs with scores < 3 flagged for improvement
  132. - Improvement suggestions provided for low-scoring FRs
  133. - Scoring table built with all FR scores
  134. - Overall quality assessment calculated
  135. - Findings reported to validation report
  136. - Auto-proceeds to next validation step
  137. - Subprocess attempted with graceful degradation
  138. ### ❌ SYSTEM FAILURE:
  139. - Not scoring all FRs on all SMART criteria
  140. - Missing improvement suggestions for low-scoring FRs
  141. - Not building scoring table
  142. - Not calculating overall quality metrics
  143. - Not reporting findings to validation report
  144. - Not auto-proceeding
  145. **Master Rule:** FRs should be high-quality, not just present. SMART framework provides objective quality measure.