description = "BMAD BMGD Workflow: code-review" prompt = """ # Review Story Workflow - Game Development name: code-review description: "Perform an ADVERSARIAL Senior Developer code review that finds 3-10 specific problems in every story. Challenges everything: code quality, test coverage, architecture compliance, security, performance. NEVER accepts `looks good` - must find minimum issues and can auto-fix with user approval. Game-specific focus on 60fps, feel, and platform considerations." author: "BMad" # Critical variables from config config_source: "{project-root}/_bmad/bmgd/config.yaml" output_folder: "{config_source}:output_folder" user_name: "{config_source}:user_name" communication_language: "{config_source}:communication_language" user_skill_level: "{config_source}:user_skill_level" document_output_language: "{config_source}:document_output_language" date: system-generated sprint_artifacts: "{config_source}:sprint_artifacts" sprint_status: "{sprint_artifacts}/sprint-status.yaml || {output_folder}/sprint-status.yaml" # Workflow components installed_path: "{project-root}/_bmad/bmgd/workflows/4-production/code-review" instructions: "{installed_path}/instructions.xml" validation: "{installed_path}/checklist.md" template: false variables: # Project context project_context: "**/project-context.md" story_dir: "{sprint_artifacts}" # Smart input file references - game-specific patterns # Priority: Whole document first, then sharded version # Strategy: SELECTIVE LOAD - only load the specific epic needed for this story review input_file_patterns: gdd: description: "Game Design Document" whole: "{output_folder}/*gdd*.md" sharded: "{output_folder}/*gdd*/*.md" load_strategy: "FULL_LOAD" narrative: description: "Narrative Design Document (if story-driven)" whole: "{output_folder}/*narrative*.md" sharded: "{output_folder}/*narrative*/*.md" load_strategy: "FULL_LOAD" architecture: description: "Game architecture and technical decisions" whole: "{output_folder}/*architecture*.md" sharded: "{output_folder}/*architecture*/*.md" load_strategy: "FULL_LOAD" ux_design: description: "UX design specification (if UI)" whole: "{output_folder}/*ux*.md" sharded: "{output_folder}/*ux*/*.md" load_strategy: "FULL_LOAD" epics: description: "All epics with user stories" whole: "{output_folder}/*epic*.md" sharded_index: "{output_folder}/*epic*/index.md" sharded_single: "{output_folder}/*epic*/epic-{{epic_num}}.md" load_strategy: "SELECTIVE_LOAD" document_project: description: "Brownfield project documentation (optional)" sharded: "{output_folder}/index.md" load_strategy: "INDEX_GUIDED" standalone: true """