Skip to content
🤖 Consolidated, AI-optimized BMAD docs: llms-full.txt. Fetch this plain text file for complete context.

How to Run Code Review

Use the code-review workflow to perform a thorough quality review of implemented code.


  • After dev-story completes implementation
  • Before marking a story as DONE
  • Every story goes through code review - no exceptions

  • BMad Method installed
  • DEV agent available
  • Story implementation complete
  • Tests written and passing

Start a fresh chat (or continue from dev-story) and load the DEV agent.

*code-review

Point the agent to:

  • The story file
  • Files changed during implementation
  • Test files

The agent performs a senior developer code review and reports findings.

If issues are found:

  1. Fix issues using dev-story
  2. Re-run tests
  3. Run code-review again

The code review checks:

  • Clean, readable code
  • Appropriate abstractions
  • No code smells
  • Proper error handling
  • Follows ADRs and architecture decisions
  • Consistent with existing patterns
  • Proper separation of concerns
  • Adequate test coverage
  • Tests are meaningful (not just for coverage)
  • Edge cases handled
  • Tests follow project patterns
  • No hardcoded secrets
  • Input validation
  • Authentication/authorization proper
  • No common vulnerabilities
  • No obvious performance issues
  • Appropriate data structures
  • Efficient queries

  • Code meets quality standards
  • Tests pass
  • Action: Mark story as DONE in sprint-status.yaml
  • Issues identified that need fixing
  • Action: Fix issues in dev-story, then re-run code-review

Every story goes through code-review before being marked done. This ensures:

  • Consistent code quality
  • Architecture adherence
  • Test coverage
  • Security review

  • Don’t skip code review for “simple” changes
  • Address all findings, not just critical ones
  • Use findings as learning opportunities
  • Re-run review after fixes

  1. If approved: Update sprint-status.yaml to mark story DONE
  2. If changes requested: Fix issues and re-run review
  3. Move to next story: Run create-story for the next item