BMAD-METHOD/src/bmm/workflows/4-implementation/code-review/steps/step-01-load-story-and-chan...

1.7 KiB

name description nextStepFile
step-01-load-story-and-changes Load target story, gather git deltas, and establish review scope ./step-02-build-attack-plan.md
Use provided {{story_path}} or ask user which story file to review Read COMPLETE story file Set {{story_key}} = extracted key from filename (e.g., "1-2-user-authentication.md" → "1-2-user-authentication") or story metadata Parse sections: Story, Acceptance Criteria, Tasks/Subtasks, Dev Agent Record → File List, Change Log
<!-- Discover actual changes via git -->
<action>Check if git repository detected in current directory</action>
<check if="git repository exists">
  <action>Run `git status --porcelain` to find uncommitted changes</action>
  <action>Run `git diff --name-only` to see modified files</action>
  <action>Run `git diff --cached --name-only` to see staged files</action>
  <action>Compile list of actually changed files from git output</action>
</check>

<!-- Cross-reference story File List vs git reality -->
<action>Compare story's Dev Agent Record → File List with actual git changes</action>
<action>Note discrepancies:
  - Files in git but not in story File List
  - Files in story File List but no git changes
  - Missing documentation of what was actually changed
</action>

<invoke-protocol name="discover_inputs" />
<action>Load {project_context} for coding standards (if exists)</action>

Next

  • Read fully and follow: ./step-02-build-attack-plan.md.