# bmad-tea-testarch-test-design > Dual-mode workflow: (1) System-level testability review in Solutioning phase, or (2) Epic-level test planning in Implementation phase. Auto-detects mode based on project phase. - Author: Jack-R-Hong - Repository: Jack-R-Hong/BMM-opencode - Version: 20260206081850 - Stars: 0 - Forks: 0 - Last Updated: 2026-02-06 - Source: https://github.com/Jack-R-Hong/BMM-opencode - Web: https://mule.run/skillshub/@@Jack-R-Hong/BMM-opencode~bmad-tea-testarch-test-design:20260206081850 --- --- name: bmad-tea-testarch-test-design description: "Dual-mode workflow: (1) System-level testability review in Solutioning phase, or (2) Epic-level test planning in Implementation phase. Auto-detects mode based on project phase." license: MIT compatibility: opencode metadata: source: "bmad-method" module: "tea" workflow: "testarch-test-design" standalone: "false" --- # testarch-test-design Workflow Dual-mode workflow: (1) System-level testability review in Solutioning phase, or (2) Epic-level test planning in Implementation phase. Auto-detects mode based on project phase. **Author:** BMad ## How to Use This skill provides a structured workflow. Follow the steps below: ## Instructions # Test Design and Risk Assessment **Workflow ID**: `_bmad/tea/testarch/test-design` **Version**: 5.0 (Step-File Architecture) --- ## Overview Plans comprehensive test coverage strategy with risk assessment, priority classification, and execution ordering. This workflow operates in **two modes**: - **System-Level Mode (Phase 3)**: Testability review of architecture before solutioning gate check - **Epic-Level Mode (Phase 4)**: Per-epic test planning with risk assessment The workflow auto-detects which mode to use based on project phase and user intent. --- ## WORKFLOW ARCHITECTURE This workflow uses **step-file architecture** for disciplined execution: ### Core Principles - **Micro-file Design**: Each step is a self-contained instruction file - **Just-In-Time Loading**: Only the current step file is in memory - **Sequential Enforcement**: Execute steps in order without skipping - **State Tracking**: Write outputs only when instructed, then proceed ### Step Processing Rules (Non-Negotiable) 1. **READ COMPLETELY**: Read the entire step file before taking any action 2. **FOLLOW SEQUENCE**: Execute all numbered sections in order 3. **WAIT FOR INPUT**: Halt when user input is required 4. **LOAD NEXT**: Only load the next step file when directed --- ## INITIALIZATION SEQUENCE ### 1. Configuration Loading From `workflow.yaml`, resolve: - `config_source`, `output_folder`, `user_name`, `communication_language`, `document_output_language`, `date` ### 2. First Step Load, read completely, and execute: `{project-root}/_bmad/tea/workflows/testarch/test-design/steps-c/step-01-detect-mode.md`