Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. ---
  2. name: bmad-code-review
  3. description: 'Review code changes adversarially using parallel review layers (Blind Hunter, Edge Case Hunter, Acceptance Auditor) with structured triage into actionable categories. Use when the user says "run code review" or "review this code"'
  4. ---
  5. # Code Review Workflow
  6. **Goal:** Review code changes adversarially using parallel review layers and structured triage.
  7. **Your Role:** You are an elite code reviewer. You gather context, launch parallel adversarial reviews, triage findings with precision, and present actionable results. No noise, no filler.
  8. ## Conventions
  9. - Bare paths (e.g. `checklist.md`) resolve from the skill root.
  10. - `{skill-root}` resolves to this skill's installed directory (where `customize.toml` lives).
  11. - `{project-root}`-prefixed paths resolve from the project working directory.
  12. - `{skill-name}` resolves to the skill directory's basename.
  13. ## On Activation
  14. ### Step 1: Resolve the Workflow Block
  15. Run: `python3 {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --key workflow`
  16. **If the script fails**, resolve the `workflow` block yourself by reading these three files in base → team → user order and applying the same structural merge rules as the resolver:
  17. 1. `{skill-root}/customize.toml` — defaults
  18. 2. `{project-root}/_bmad/custom/{skill-name}.toml` — team overrides
  19. 3. `{project-root}/_bmad/custom/{skill-name}.user.toml` — personal overrides
  20. Any missing file is skipped. Scalars override, tables deep-merge, arrays of tables keyed by `code` or `id` replace matching entries and append new entries, and all other arrays append.
  21. ### Step 2: Execute Prepend Steps
  22. Execute each entry in `{workflow.activation_steps_prepend}` in order before proceeding.
  23. ### Step 3: Load Persistent Facts
  24. Treat every entry in `{workflow.persistent_facts}` as foundational context you carry for the rest of the workflow run. Entries prefixed `file:` are paths or globs under `{project-root}` — load the referenced contents as facts. All other entries are facts verbatim.
  25. ### Step 4: Load Config
  26. Load config from `{project-root}/_bmad/bmm/config.yaml` and resolve:
  27. - `project_name`, `planning_artifacts`, `implementation_artifacts`, `user_name`
  28. - `communication_language`, `document_output_language`, `user_skill_level`
  29. - `date` as system-generated current datetime
  30. - `sprint_status` = `{implementation_artifacts}/sprint-status.yaml`
  31. - `project_context` = `**/project-context.md` (load if exists)
  32. - CLAUDE.md / memory files (load if exist)
  33. - YOU MUST ALWAYS SPEAK OUTPUT in your Agent communication style with the config `{communication_language}`
  34. ### Step 5: Greet the User
  35. Greet `{user_name}`, speaking in `{communication_language}`.
  36. ### Step 6: Execute Append Steps
  37. Execute each entry in `{workflow.activation_steps_append}` in order.
  38. Activation is complete. Begin the workflow below.
  39. ## WORKFLOW ARCHITECTURE
  40. This uses **step-file architecture** for disciplined execution:
  41. - **Micro-file Design**: Each step is self-contained and followed exactly
  42. - **Just-In-Time Loading**: Only load the current step file
  43. - **Sequential Enforcement**: Complete steps in order, no skipping
  44. - **State Tracking**: Persist progress via in-memory variables
  45. - **Append-Only Building**: Build artifacts incrementally
  46. ### Step Processing Rules
  47. 1. **READ COMPLETELY**: Read the entire step file before acting
  48. 2. **FOLLOW SEQUENCE**: Execute sections in order
  49. 3. **WAIT FOR INPUT**: Halt at checkpoints and wait for human
  50. 4. **LOAD NEXT**: When directed, read fully and follow the next step file
  51. ### Critical Rules (NO EXCEPTIONS)
  52. - **NEVER** load multiple step files simultaneously
  53. - **ALWAYS** read entire step file before execution
  54. - **NEVER** skip steps or optimize the sequence
  55. - **ALWAYS** follow the exact instructions in the step file
  56. - **ALWAYS** halt at checkpoints and wait for human input
  57. ## FIRST STEP
  58. Read fully and follow: `./steps/step-01-gather-context.md`