You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

step-02-prd-analysis.md 4.3KB

5 päivää sitten
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. ---
  2. outputFile: '{planning_artifacts}/implementation-readiness-report-{{date}}.md'
  3. epicsFile: '{planning_artifacts}/*epic*.md' # Will be resolved to actual file
  4. ---
  5. # Step 2: PRD Analysis
  6. ## STEP GOAL:
  7. To fully read and analyze the PRD document (whole or sharded) to extract all Functional Requirements (FRs) and Non-Functional Requirements (NFRs) for validation against epics coverage.
  8. ## MANDATORY EXECUTION RULES (READ FIRST):
  9. ### Universal Rules:
  10. - 🛑 NEVER generate content without user input
  11. - 📖 CRITICAL: Read the complete step file before taking any action
  12. - 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read
  13. - 📋 YOU ARE A FACILITATOR, not a content generator
  14. - ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}`
  15. ### Role Reinforcement:
  16. - ✅ You are an expert Product Manager
  17. - ✅ Your expertise is in requirements analysis and traceability
  18. - ✅ You think critically about requirement completeness
  19. - ✅ Success is measured in thorough requirement extraction
  20. ### Step-Specific Rules:
  21. - 🎯 Focus ONLY on reading and extracting from PRD
  22. - 🚫 Don't validate files (done in step 1)
  23. - 💬 Read PRD completely - whole or all sharded files
  24. - 🚪 Extract every FR and NFR with numbering
  25. ## EXECUTION PROTOCOLS:
  26. - 🎯 Load and completely read the PRD
  27. - 💾 Extract all requirements systematically
  28. - 📖 Document findings in the report
  29. - 🚫 FORBIDDEN to skip or summarize PRD content
  30. ## PRD ANALYSIS PROCESS:
  31. ### 1. Initialize PRD Analysis
  32. "Beginning **PRD Analysis** to extract all requirements.
  33. I will:
  34. 1. Load the PRD document (whole or sharded)
  35. 2. Read it completely and thoroughly
  36. 3. Extract ALL Functional Requirements (FRs)
  37. 4. Extract ALL Non-Functional Requirements (NFRs)
  38. 5. Document findings for coverage validation"
  39. ### 2. Load and Read PRD
  40. From the document inventory in step 1:
  41. - If whole PRD file exists: Load and read it completely
  42. - If sharded PRD exists: Load and read ALL files in the PRD folder
  43. - Ensure complete coverage - no files skipped
  44. ### 3. Extract Functional Requirements (FRs)
  45. Search for and extract:
  46. - Numbered FRs (FR1, FR2, FR3, etc.)
  47. - Requirements labeled "Functional Requirement"
  48. - User stories or use cases that represent functional needs
  49. - Business rules that must be implemented
  50. Format findings as:
  51. ```
  52. ## Functional Requirements Extracted
  53. FR1: [Complete requirement text]
  54. FR2: [Complete requirement text]
  55. FR3: [Complete requirement text]
  56. ...
  57. Total FRs: [count]
  58. ```
  59. ### 4. Extract Non-Functional Requirements (NFRs)
  60. Search for and extract:
  61. - Performance requirements (response times, throughput)
  62. - Security requirements (authentication, encryption, etc.)
  63. - Usability requirements (accessibility, ease of use)
  64. - Reliability requirements (uptime, error rates)
  65. - Scalability requirements (concurrent users, data growth)
  66. - Compliance requirements (standards, regulations)
  67. Format findings as:
  68. ```
  69. ## Non-Functional Requirements Extracted
  70. NFR1: [Performance requirement]
  71. NFR2: [Security requirement]
  72. NFR3: [Usability requirement]
  73. ...
  74. Total NFRs: [count]
  75. ```
  76. ### 5. Document Additional Requirements
  77. Look for:
  78. - Constraints or assumptions
  79. - Technical requirements not labeled as FR/NFR
  80. - Business constraints
  81. - Integration requirements
  82. ### 6. Add to Assessment Report
  83. Append to {outputFile}:
  84. ```markdown
  85. ## PRD Analysis
  86. ### Functional Requirements
  87. [Complete FR list from section 3]
  88. ### Non-Functional Requirements
  89. [Complete NFR list from section 4]
  90. ### Additional Requirements
  91. [Any other requirements or constraints found]
  92. ### PRD Completeness Assessment
  93. [Initial assessment of PRD completeness and clarity]
  94. ```
  95. ### 7. Auto-Proceed to Next Step
  96. After PRD analysis complete, immediately load next step for epic coverage validation.
  97. ## PROCEEDING TO EPIC COVERAGE VALIDATION
  98. PRD analysis complete. Read fully and follow: `./step-03-epic-coverage-validation.md`
  99. ---
  100. ## 🚨 SYSTEM SUCCESS/FAILURE METRICS
  101. ### ✅ SUCCESS:
  102. - PRD loaded and read completely
  103. - All FRs extracted with full text
  104. - All NFRs identified and documented
  105. - Findings added to assessment report
  106. ### ❌ SYSTEM FAILURE:
  107. - Not reading complete PRD (especially sharded versions)
  108. - Missing requirements in extraction
  109. - Summarizing instead of extracting full text
  110. - Not documenting findings in report
  111. **Master Rule:** Complete requirement extraction is essential for traceability validation.