This is a simple step-by-step guide to help you efficiently manage your development workflow using the BMad Method. The workflow integrates the Test Architect (QA agent) throughout the development lifecycle to ensure quality, prevent regressions, and maintain high standards. Refer to the User Guide for any scenario that is not covered here.
*draft (runs create-next-story task)docs/stories/*develop-story {selected-story} (runs execute-checklist task){selected-story}The Test Architect (Quinn) provides comprehensive quality assurance throughout the development lifecycle. Here's how to leverage each capability at the right time.
Command Aliases: Documentation uses short forms (*risk, *design, *nfr, *trace) for the full commands (*risk-profile, *test-design, *nfr-assess, *trace-requirements).
| Stage | Command | Purpose | Output | Priority |
|---|---|---|---|---|
| After Story Approval | *risk |
Identify integration & regression risks | docs/qa/assessments/{epic}.{story}-risk-{YYYYMMDD}.md |
High for complex/brownfield |
*design |
Create test strategy for dev | docs/qa/assessments/{epic}.{story}-test-design-{YYYYMMDD}.md |
High for new features | |
| During Development | *trace |
Verify test coverage | docs/qa/assessments/{epic}.{story}-trace-{YYYYMMDD}.md |
Medium |
*nfr |
Validate quality attributes | docs/qa/assessments/{epic}.{story}-nfr-{YYYYMMDD}.md |
High for critical features | |
| After Development | *review |
Comprehensive assessment | QA Results in story + docs/qa/gates/{epic}.{story}-{slug}.yml |
Required |
| Post-Review | *gate |
Update quality decision | Updated docs/qa/gates/{epic}.{story}-{slug}.yml |
As needed |
RECOMMENDED - Set Developer Up for Success:
# 1. RISK ASSESSMENT (Run FIRST for complex stories)
@qa *risk {approved-story}
# Identifies:
# - Technical debt impact
# - Integration complexity
# - Regression potential (1-9 scoring)
# - Mitigation strategies
# Critical for: Brownfield, API changes, data migrations
# 2. TEST DESIGN (Run SECOND to guide implementation)
@qa *design {approved-story}
# Provides:
# - Test scenarios per acceptance criterion
# - Test level recommendations (unit/integration/E2E)
# - Risk-based priorities (P0/P1/P2)
# - Test data requirements
# Share with Dev: Include in story comments or attach to ticket
Developer Self-Service Quality Checks:
# 3. REQUIREMENTS TRACING (Verify coverage mid-development)
@qa *trace {story-in-progress}
# Validates:
# - All acceptance criteria have tests
# - No missing test scenarios
# - Appropriate test levels
# - Given-When-Then documentation clarity
# Run when: After writing initial tests
# 4. NFR VALIDATION (Check quality attributes)
@qa *nfr {story-in-progress}
# Assesses:
# - Security: Authentication, authorization, data protection
# - Performance: Response times, resource usage
# - Reliability: Error handling, recovery
# - Maintainability: Code quality, documentation
# Run when: Before marking "Ready for Review"
REQUIRED - Comprehensive Test Architecture Review:
Prerequisite: All tests green locally; lint & type checks pass.
# 5. FULL REVIEW (Standard review process)
@qa *review {completed-story}
What Happens During Review:
Deep Code Analysis
Active Refactoring
Test Validation
Gate Decision
docs/qa/gates/{epic}.{story}-{slug}.ymlUpdate Gate Status After Fixes:
# 6. GATE UPDATE (Document final decision)
@qa *gate {reviewed-story}
# Updates: Quality gate with new status
# Use when: After addressing review feedback
# Documents: What was fixed, what was waived
| Status | Meaning | Action Required | Can Proceed? |
|---|---|---|---|
| PASS | All critical requirements met | None | ✅ Yes |
| CONCERNS | Non-critical issues found | Team review recommended | ⚠️ With caution |
| FAIL | Critical issues (security, missing P0 tests) | Must fix | ❌ No |
| WAIVED | Issues acknowledged and accepted | Document reasoning | ✅ With approval |
The Test Architect uses risk scoring to prioritize testing:
| Risk Score | Calculation | Testing Priority | Gate Impact |
|---|---|---|---|
| 9 | High probability × High impact | P0 - Must test thoroughly | FAIL if untested |
| 6 | Medium-high combinations | P1 - Should test well | CONCERNS if gaps |
| 4 | Medium combinations | P1 - Should test | CONCERNS if notable gaps |
| 2-3 | Low-medium combinations | P2 - Nice to have | Note in review |
| 1 | Minimal risk | P2 - Minimal | Note in review |
# ALWAYS run this sequence:
@qa *risk {story} # First - identify dangers
@qa *design {story} # Second - plan defense
# Then during dev:
@qa *trace {story} # Verify regression coverage
@qa *nfr {story} # Check performance impact
# Finally:
@qa *review {story} # Deep integration analysis
*trace multiple times during development*nfr to validate cross-system performance*nfr early and often (not just at review)*designQuinn ensures all tests meet these standards:
All Test Architect activities create permanent records:
docs/qa/assessments/docs/qa/gates/*risk) → Test design (*design)*trace, *nfr)*review) → Gate decision*gate)Should I run Test Architect commands?
| Scenario | Before Dev | During Dev | After Dev |
|---|---|---|---|
| Simple bug fix | Optional | Optional | Required *review |
| New feature | Recommended *risk, *design |
Optional *trace |
Required *review |
| Brownfield change | Required *risk, *design |
Recommended *trace, *nfr |
Required *review |
| API modification | Required *risk, *design |
Required *trace |
Required *review |
| Performance-critical | Recommended *design |
Required *nfr |
Required *review |
| Data migration | Required *risk, *design |
Required *trace |
Required *review + *gate |
The Test Architect helps achieve: