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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. ---
  2. name: 'step-01-detect-mode'
  3. description: 'Determine system-level vs epic-level mode and validate prerequisites'
  4. nextStepFile: '{skill-root}/steps-c/step-02-load-context.md'
  5. outputFile: '{test_artifacts}/test-design-progress.md'
  6. ---
  7. # Step 1: Detect Mode & Prerequisites
  8. ## STEP GOAL
  9. Determine whether to run **System-Level** or **Epic-Level** test design, and confirm required inputs are available.
  10. ## MANDATORY EXECUTION RULES
  11. ### Universal Rules
  12. - 📖 Read this entire step file before taking any action
  13. - ✅ Speak in `{communication_language}`
  14. - 🚫 Do not load the next step until this step is complete
  15. ### Role Reinforcement
  16. - ✅ You are the **Master Test Architect**
  17. - ✅ You prioritize risk-based, evidence-backed decisions
  18. ---
  19. ## EXECUTION PROTOCOLS:
  20. - 🎯 Follow the MANDATORY SEQUENCE exactly
  21. - 💾 Record outputs before proceeding
  22. - 📖 Load the next step only when instructed
  23. ## CONTEXT BOUNDARIES:
  24. - Available context: config, loaded artifacts, and knowledge fragments
  25. - Focus: this step's goal only
  26. - Limits: do not execute future steps
  27. - Dependencies: prior steps' outputs (if any)
  28. ## MANDATORY SEQUENCE
  29. **CRITICAL:** Follow this sequence exactly. Do not skip, reorder, or improvise.
  30. ## 1. Mode Detection (Priority Order)
  31. ### A) User Intent (Highest Priority)
  32. Use explicit intent if the user already indicates scope:
  33. - **PRD + ADR (no epic/stories)** → **System-Level Mode**
  34. - **Epic + Stories (no PRD/ADR)** → **Epic-Level Mode**
  35. - **Both PRD/ADR + Epic/Stories** → Prefer **System-Level Mode** first
  36. If intent is unclear, ask:
  37. > "Should I create (A) **System-level** test design (PRD + ADR → Architecture + QA docs), or (B) **Epic-level** test design (Epic → single test plan)?"
  38. ### B) File-Based Detection (BMad-Integrated)
  39. If user intent is unclear:
  40. - If `{implementation_artifacts}/sprint-status.yaml` exists → **Epic-Level Mode**
  41. - Otherwise → **System-Level Mode**
  42. ### C) Ambiguous → Ask
  43. If mode still unclear, ask the user to choose (A) or (B) and **halt** until they respond.
  44. ---
  45. ## 2. Prerequisite Check (Mode-Specific)
  46. ### System-Level Mode Requires:
  47. - PRD (functional + non-functional requirements)
  48. - ADR or architecture decision records
  49. - Architecture or tech-spec document
  50. ### Epic-Level Mode Requires:
  51. - Epic and/or story requirements with acceptance criteria
  52. - Architecture context (if available)
  53. ### HALT CONDITIONS
  54. If required inputs are missing **and** the user cannot provide them:
  55. - **System-Level**: "Please provide PRD + ADR/architecture docs to proceed."
  56. - **Epic-Level**: "Please provide epic/story requirements or acceptance criteria to proceed."
  57. ---
  58. ## 3. Confirm Mode
  59. State which mode you will use and why. Then proceed.
  60. ---
  61. ### 4. Save Progress
  62. **Save this step's accumulated work to `{outputFile}`.**
  63. - **If `{outputFile}` does not exist** (first save), create it with YAML frontmatter:
  64. ```yaml
  65. ---
  66. workflowStatus: 'in-progress'
  67. totalSteps: 5
  68. stepsCompleted: ['step-01-detect-mode']
  69. lastStep: 'step-01-detect-mode'
  70. nextStep: '{nextStepFile}'
  71. lastSaved: '{date}'
  72. ---
  73. ```
  74. Then write this step's output below the frontmatter.
  75. - **If `{outputFile}` already exists**, update:
  76. - Set `workflowStatus: 'in-progress'`
  77. - Set `totalSteps: 5`
  78. - Add `'step-01-detect-mode'` to `stepsCompleted` array (only if not already present)
  79. - Set `lastStep: 'step-01-detect-mode'`
  80. - Set `nextStep: '{nextStepFile}'`
  81. - Set `lastSaved: '{date}'`
  82. - Append this step's output to the appropriate section of the document.
  83. Load next step: `{nextStepFile}`
  84. ## 🚨 SYSTEM SUCCESS/FAILURE METRICS:
  85. ### ✅ SUCCESS:
  86. - Step completed in full with required outputs
  87. ### ❌ SYSTEM FAILURE:
  88. - Skipped sequence steps or missing outputs
  89. **Master Rule:** Skipping steps is FORBIDDEN.