Compare commits

...

34 Commits

Author SHA1 Message Date
Brian Madison
3b6a507ab8 require issue tempalte 2025-10-09 18:51:59 -05:00
Brian Madison
415026b0eb v4 readme updated with v6 info 2025-10-04 08:36:13 -05:00
Yoav Gal
91c8e12777 qwen cli - custom commands (#551)
* qwen cli - custom commands

* moved prompt to the inside of the command

---------

Co-authored-by: Davor Racic <davor.racic@gmail.com>
Co-authored-by: Brian <bmadcode@gmail.com>
2025-10-01 16:33:17 -05:00
Brian Madison
458704f82b workflow manual release update 2025-09-29 17:24:46 -05:00
Brian Madison
37e5fd50dd version up 2025-09-29 17:09:18 -05:00
lihangmissu
52f6889089 fix: BMAD Brownfield Document Naming Inconsistency Bug (#627) 2025-09-19 18:08:31 -05:00
Javier Gomez
f09e282d72 feat(opencode): add JSON-only integration and compact AGENTS.md generator (#570)
* feat: add OpenCode integration implementation plan for BMAD-METHOD

* installer(opencode): add OpenCode target metadata in install.config.yaml

* chore(deps): add comment-json for JSONC parsing in OpenCode integration

* feat(installer/opencode): implement setupOpenCode with minimal instructions merge and BMAD-managed agents/commands

* feat(installer): add OpenCode (SST) to IDE selector and CLI --ide help

* fix(opencode): align generated opencode.json(c) with schema (instructions as strings; agent.prompt; command.template; remove unsupported fields)

* feat(installer): enhance OpenCode setup with agent selection and prefix options

* fix: update configuration file references from `bmad-core/core-config.yaml` to `.bmad-core/core-config.yaml` across multiple agent and task files for consistency and clarity.

* refactor: streamline OpenCode configuration prompts and normalize instruction paths for agents and tasks

* feat: add tools property to agent definitions for enhanced functionality. Otherwise opencode consders the subagents as readonly

* feat: add extraction of 'whenToUse'  from agents markdown files for improved agent configuration in opencode

* feat: enhance task purpose extraction from markdown files with improved parsing and cleanup logic

* feat: add collision warnings for non-BMAD-managed agent and command keys during setup

* feat: generate and update AGENTS.md for OpenCode integration with agent and task details

* feat: add compact AGENTS.md generator and JSON-only integration for OpenCode

* chore(docs): remove completed OpenCode integration implementation plans

* feat: enable default prefixes for agent and command keys to avoid collisions

* fix: remove unnecessary line breaks in 'whenToUse' descriptions for QA agents to mathc the rest of the agents definitions and improve programatic parsing of whenToUse prop

* fix: update OpenCode references to remove 'SST' for consistency across documentation and configuration

* fix: update agent mode from 'subagent' to 'all' for consistency in agent definitions

* fix: consolidate 'whenToUse' description format for clarity and consistent parsing
2025-09-11 17:44:41 -05:00
Daniel Dabrowski
2b247ea385 fix: Changed title to coding standards section of brownfield architecture template (#564)
* fix: simplify title in coding standards section of brownfield architecture template

* fix: update section titles in brownfield architecture template for clarity
2025-09-09 18:52:03 -05:00
Brian Madison
925099dd8c remove errant command from readme 2025-09-08 19:36:08 -05:00
Daniel Dabrowski
a19561a16c fix: update workflow file extensions from .md to .yaml in bmad-master.md (#562) 2025-09-08 19:34:23 -05:00
Brian Madison
de6c14df07 documentation updates 2025-09-06 18:30:37 -05:00
sjennings
f20d572216 Godot Game Dev expansion pack for BMAD (#532)
* Godot Game Dev expansion pack for BMAD

* Workflow changes

* Workflow changes

* Fixing config.yaml, editing README.md to indicate correct workflow

* Fixing references to config.yaml, adding missing QA review to game-dev agent

* More game story creation fixes

* More game story creation fixes

* Adding built web agent file

* - Adding ability for QA agent to have preloaded context files similar to Dev agent.
- Fixing stray Unity references in game-architecture-tmpl.yaml

---------

Co-authored-by: Brian <bmadcode@gmail.com>
2025-09-06 13:49:21 -05:00
liyuyun-lyy
076c104b2c feat: add iflow cli support to bmad installer. (#510)
* feat: add iflow cli support

* chore: update project dependencies and development tooling (#508)

- Update various direct and transitive project dependencies.
- Remove the circular `bmad-method` self-dependency.
- Upgrade ESLint, Prettier, Jest, and other dev tools.
- Update semantic-release and related GitHub packages.

Co-authored-by: Kayvan Sylvan <kayvan@meanwhile.bm>

* refactor: refactor by format

---------

Co-authored-by: Kayvan Sylvan <kayvan@sylvan.com>
Co-authored-by: Kayvan Sylvan <kayvan@meanwhile.bm>
Co-authored-by: PinkyD <paulbeanjr@gmail.com>
Co-authored-by: Brian <bmadcode@gmail.com>
2025-09-06 13:44:48 -05:00
Armel BOBDA
87d68d31fd fix: update .gitignore to correct cursor file entry (#485)
This change modifies the .gitignore file to ensure the cursor file is properly ignored by removing the incorrect entry and adding the correct one. This helps maintain a cleaner repository by preventing unnecessary files from being tracked.

Co-authored-by: Brian <bmadcode@gmail.com>
2025-09-06 13:43:05 -05:00
Drilmo
a05b05cec0 fix: Template file extension in validation next story steps (#523)
Co-authored-by: Brian <bmadcode@gmail.com>
2025-09-06 13:40:30 -05:00
VansonLeung
af36864625 Update ide-setup.js - add missing glob require (#514)
Co-authored-by: Brian <bmadcode@gmail.com>
2025-09-06 13:38:29 -05:00
Yoav Gal
5ae4c51883 added gemini cli custom commands! (#549)
* added gemini cli custom commands!

* improvements and changes post review

* updated bmad to BMad

* removed gemini-extension.json

---------

Co-authored-by: Brian <bmadcode@gmail.com>
2025-09-06 13:19:47 -05:00
Yuewen Ma
ac7f2437f8 Fixed: "glob" is not defined (#504)
Co-authored-by: Brian <bmadcode@gmail.com>
2025-09-06 13:16:10 -05:00
Daniel Dabrowski
94f67000b2 feat: enhance file exclusion capabilities with .bmad-flattenignore support (#531)
- Added support for a new optional `.bmad-flattenignore` file to allow users to specify additional files to exclude from the flattened XML output.
- Updated README and documentation to reflect the new feature and provide examples for usage.
- Modified ignore rules to incorporate patterns from the `.bmad-flattenignore` file after applying `.gitignore` rules.

Benefits:
- Greater flexibility in managing file exclusions for AI model consumption.
2025-09-06 13:14:24 -05:00
Hau Vo
155f9591ea feat: Add Auggie CLI (Augment Code) Integration (#520)
* feat: add Augment Code IDE support with multi-location installation options

- Add Augment Code to supported IDE list in installer CLI and interactive prompts
- Configure multi-location setup for Augment Code commands:
  - User Commands: ~/.augment/commands/bmad/ (global, user-wide)
  - Workspace Commands: ./.augment/commands/bmad/ (project-specific, team-shared)
- Update IDE configuration with proper location handling and tilde expansion
- Add interactive prompt for users to select installation locations
- Update documentation in bmad-kb.md to include Augment Code in supported IDEs
- Implement setupAugmentCode method with location selection and file installation

This enables BMAD Method integration with Augment Code's custom command system,
allowing users to access BMad agents via /agent-name slash commands in both
global and project-specific contexts.

* Added options to choose the rule locations

* Update instruction to match with namespace for commands

* Update instruction to match with namespace for commands

* Renamed Augment Code to Auggie CLI (Augment Code)

---------

Co-authored-by: Hau Vo <hauvo@Haus-Mac-mini.local>
Co-authored-by: Brian <bmadcode@gmail.com>
2025-09-02 12:16:26 -05:00
Mikhail Romanov
6919049eae fix: Codex options missing from the IDE selection menu (#535) 2025-09-02 12:13:00 -05:00
Brian Madison
fbd8f1fd73 Expansion pack doc correction 2025-08-31 22:15:40 -05:00
Brian Madison
384e17ff2b docs: remove misplaced Codex section from README
- Remove IDE-specific Codex documentation from end of README
- This content was oddly placed after the footer
- IDE-specific docs should be in separate documentation
2025-08-31 22:05:29 -05:00
Brian Madison
b9bc196e7f chore: sync version to 4.42.1 after release
- Update package.json to match published npm version
- Update installer package.json to match
2025-08-31 21:57:39 -05:00
Brian Madison
0a6cbd72cc chore: bump version to 4.42.0 for release
- Update main package.json to 4.42.0
- Update installer package.json to 4.42.0
- Add PR validation workflow and contribution checks
- Add pre-release and fix scripts
- Update CONTRIBUTING.md with validation requirements
2025-08-31 21:45:21 -05:00
Brian
e2e8d44e5d test: trigger PR validation (#533)
Co-authored-by: Brian Madison <brianmadison@Brians-MacBook-Pro.local>
2025-08-31 20:34:39 -05:00
Brian Madison
fb70c20067 feat: add PR validation workflow and contribution checks 2025-08-31 20:30:52 -05:00
Jonathan Borgwing
05736fa069 feat(installer): add Codex CLI + Codex Web modes, generate AGENTS.md, inject npm scripts, and docs (#529) 2025-08-31 17:48:03 -05:00
Bragatte
052e84dd4a feat: implement fork-friendly CI/CD with opt-in mechanism (#476)
- CI/CD disabled by default in forks to conserve resources
- Users can enable via ENABLE_CI_IN_FORK repository variable
- Added comprehensive Fork Guide documentation
- Updated README with Contributing section
- Created automation script for future implementations

Benefits:
- Saves GitHub Actions minutes across 1,600+ forks
- Cleaner fork experience for contributors
- Full control for fork owners
- PR validation still runs automatically

BREAKING CHANGE: CI/CD no longer runs automatically in forks.
Fork owners must set ENABLE_CI_IN_FORK=true to enable workflows.

Co-authored-by: Brian <bmadcode@gmail.com>
Co-authored-by: PinkyD <paulbeanjr@gmail.com>
2025-08-30 22:15:31 -05:00
Piatra Automation
f054d68c29 fix: correct dependency path format in bmad-master agent (#495)
- Change 'Dependencies map to root/type/name' to 'Dependencies map to {root}/{type}/{name}'
- Fixes path resolution issue where 'root' was treated as literal directory name
- Ensures proper variable interpolation for dependency file loading
- Resolves agent inability to find core-config.yaml and other project files
2025-08-30 22:14:52 -05:00
Wang-tianhao
44836512e7 Update dev.md (#491)
To avoid AI creating new folder for a new story tasks
2025-08-30 22:10:02 -05:00
Chris Calo
bf97f05190 typo in README.md (#515) 2025-08-26 23:57:41 -05:00
Kayvan Sylvan
a900d28080 chore: update project dependencies and development tooling (#508)
- Update various direct and transitive project dependencies.
- Remove the circular `bmad-method` self-dependency.
- Upgrade ESLint, Prettier, Jest, and other dev tools.
- Update semantic-release and related GitHub packages.

Co-authored-by: Kayvan Sylvan <kayvan@meanwhile.bm>
2025-08-24 21:45:18 -05:00
circus
ab70baca59 fix: remove incorrect else branch causing flatten command regression (#452)
This fixes a regression bug where the flatten command would fail with an
error message even when valid arguments were provided.

The bug was:
- First introduced in commit 0fdbca7
- Fixed in commit fab9d5e (v5.0.0-beta.2)
- Accidentally reintroduced in commit ed53943

The else branch at lines 130-134 was incorrectly handling the case when
users provided arguments, showing a misleading error about
'no arguments provided' when arguments were actually present.

Fixes all flatten command variations:
- npx bmad-method flatten
- npx bmad-method flatten --input /path
- npx bmad-method flatten --output file.xml
- npx bmad-method flatten --input /path --output file.xml

Co-authored-by: Brian <bmadcode@gmail.com>
2025-08-17 22:09:56 -05:00
135 changed files with 67482 additions and 1086 deletions

106
.github/FORK_GUIDE.md vendored Normal file
View File

@@ -0,0 +1,106 @@
# Fork Guide - CI/CD Configuration
## CI/CD in Forks
By default, CI/CD workflows are **disabled in forks** to conserve GitHub Actions resources and provide a cleaner fork experience.
### Why This Approach?
- **Resource efficiency**: Prevents unnecessary GitHub Actions usage across 1,600+ forks
- **Clean fork experience**: No failed workflow notifications in your fork
- **Full control**: Enable CI/CD only when you actually need it
- **PR validation**: Your changes are still fully tested when submitting PRs to the main repository
## Enabling CI/CD in Your Fork
If you need to run CI/CD workflows in your fork, follow these steps:
1. Navigate to your fork's **Settings** tab
2. Go to **Secrets and variables****Actions****Variables**
3. Click **New repository variable**
4. Create a new variable:
- **Name**: `ENABLE_CI_IN_FORK`
- **Value**: `true`
5. Click **Add variable**
That's it! CI/CD workflows will now run in your fork.
## Disabling CI/CD Again
To disable CI/CD workflows in your fork, you can either:
- **Delete the variable**: Remove the `ENABLE_CI_IN_FORK` variable entirely, or
- **Set to false**: Change the `ENABLE_CI_IN_FORK` value to `false`
## Alternative Testing Options
You don't always need to enable CI/CD in your fork. Here are alternatives:
### Local Testing
Run tests locally before pushing:
```bash
# Install dependencies
npm ci
# Run linting
npm run lint
# Run format check
npm run format:check
# Run validation
npm run validate
# Build the project
npm run build
```
### Pull Request CI
When you open a Pull Request to the main repository:
- All CI/CD workflows automatically run
- You get full validation of your changes
- No configuration needed
### GitHub Codespaces
Use GitHub Codespaces for a full development environment:
- All tools pre-configured
- Same environment as CI/CD
- No local setup required
## Frequently Asked Questions
### Q: Will my PR be tested even if CI is disabled in my fork?
**A:** Yes! When you open a PR to the main repository, all CI/CD workflows run automatically, regardless of your fork's settings.
### Q: Can I selectively enable specific workflows?
**A:** The `ENABLE_CI_IN_FORK` variable enables all workflows. For selective control, you'd need to modify individual workflow files.
### Q: Do I need to enable CI in my fork to contribute?
**A:** No! Most contributors never need to enable CI in their forks. Local testing and PR validation are sufficient for most contributions.
### Q: Will disabling CI affect my ability to merge PRs?
**A:** No! PR merge requirements are based on CI runs in the main repository, not your fork.
### Q: Why was this implemented?
**A:** With over 1,600 forks of BMAD-METHOD, this saves thousands of GitHub Actions minutes monthly while maintaining code quality standards.
## Need Help?
- Join our [Discord Community](https://discord.gg/gk8jAdXWmj) for support
- Check the [Contributing Guide](../README.md#contributing) for more information
- Open an issue if you encounter any problems
---
> 💡 **Pro Tip**: This fork-friendly approach is particularly valuable for projects using AI/LLM tools that create many experimental commits, as it prevents unnecessary CI runs while maintaining code quality standards.

5
.github/ISSUE_TEMPLATE/config.yml vendored Normal file
View File

@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Discord Community Support
url: https://discord.gg/gk8jAdXWmj
about: Please join our Discord server for general questions and community discussion before opening an issue.

View File

@@ -14,6 +14,7 @@ name: Discord Notification
jobs:
notify:
runs-on: ubuntu-latest
if: github.event.repository.fork != true || vars.ENABLE_CI_IN_FORK == 'true'
steps:
- name: Notify Discord
uses: sarisia/actions-status-discord@v1

View File

@@ -7,6 +7,7 @@ name: format-check
jobs:
prettier:
runs-on: ubuntu-latest
if: github.event.repository.fork != true || vars.ENABLE_CI_IN_FORK == 'true'
steps:
- name: Checkout
uses: actions/checkout@v4
@@ -25,6 +26,7 @@ jobs:
eslint:
runs-on: ubuntu-latest
if: github.event.repository.fork != true || vars.ENABLE_CI_IN_FORK == 'true'
steps:
- name: Checkout
uses: actions/checkout@v4

View File

@@ -20,12 +20,13 @@ permissions:
jobs:
release:
runs-on: ubuntu-latest
if: github.event.repository.fork != true || vars.ENABLE_CI_IN_FORK == 'true'
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GH_PAT }}
- name: Setup Node.js
uses: actions/setup-node@v4

55
.github/workflows/pr-validation.yaml vendored Normal file
View File

@@ -0,0 +1,55 @@
name: PR Validation
on:
pull_request:
branches: [main]
types: [opened, synchronize, reopened]
jobs:
validate:
runs-on: ubuntu-latest
if: github.event.repository.fork != true || vars.ENABLE_CI_IN_FORK == 'true'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: npm
- name: Install dependencies
run: npm ci
- name: Run validation
run: npm run validate
- name: Check formatting
run: npm run format:check
- name: Run linter
run: npm run lint
- name: Run tests (if available)
run: npm test --if-present
- name: Comment on PR if checks fail
if: failure()
uses: actions/github-script@v7
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `❌ **PR Validation Failed**
This PR has validation errors that must be fixed before merging:
- Run \`npm run validate\` to check agent/team configs
- Run \`npm run format:check\` to check formatting (fix with \`npm run format\`)
- Run \`npm run lint\` to check linting issues (fix with \`npm run lint:fix\`)
Please fix these issues and push the changes.`
})

4
.gitignore vendored
View File

@@ -29,13 +29,15 @@ Thumbs.db
# IDE and editor configs
.windsurf/
.trae/
.bmad*/.cursor/
.bmad*/
.cursor/
# AI assistant files
CLAUDE.md
.ai/*
.claude
.gemini
.iflow
# Project-specific
.bmad-core

View File

@@ -1,6 +1,6 @@
# Contributing to this project
Thank you for considering contributing to this project! This document outlines the process for contributing and some guidelines to follow.
Thank you for contributing to this project! This document outlines the process for contributing and some guidelines to follow.
🆕 **New to GitHub or pull requests?** Check out our [beginner-friendly Pull Request Guide](docs/how-to-contribute-with-pull-requests.md) first!
@@ -8,15 +8,53 @@ Thank you for considering contributing to this project! This document outlines t
Also note, we use the discussions feature in GitHub to have a community to discuss potential ideas, uses, additions and enhancements.
💬 **Discord Community**: Join our [Discord server](https://discord.gg/gk8jAdXWmj) for real-time discussions:
- **#general-dev** - Technical discussions, feature ideas, and development questions
- **#bugs-issues** - Bug reports and issue discussions
💬 **Discord Community**: Join our [Discord server](https://discord.gg/gk8jAdXWmj) for real-time discussions or search past discussions or ideas.
## Code of Conduct
By participating in this project, you agree to abide by our Code of Conduct. Please read it before participating.
## Before Submitting a PR
**IMPORTANT**: All PRs must pass validation checks before they can be merged.
### Required Checks
Before submitting your PR, run these commands locally:
```bash
# Run all validation checks
npm run pre-release
# Or run them individually:
npm run validate # Validate agent/team configs
npm run format:check # Check code formatting
npm run lint # Check for linting issues
```
### Fixing Issues
If any checks fail, use these commands to fix them:
```bash
# Fix all issues automatically
npm run fix
# Or fix individually:
npm run format # Fix formatting issues
npm run lint:fix # Fix linting issues
```
### Setup Git Hooks (Optional but Recommended)
To catch issues before committing:
```bash
# Run this once after cloning
chmod +x tools/setup-hooks.sh
./tools/setup-hooks.sh
```
## How to Contribute
### Reporting Bugs
@@ -150,10 +188,6 @@ Fixes #[issue number] (if applicable)
[2-3 bullets listing HOW you implemented it]
-
-
-
## Testing
[1-2 sentences on how you tested this]

View File

@@ -0,0 +1,40 @@
# feat(opencode): compact AGENTS.md generator and JSON-only integration
## What
Add JSON-only OpenCode integration and a compact AGENTS.md generator (no large embeds; clickable file links) with idempotent merges for BMAD instructions, agents, and commands.
## Why
Keep OpenCode config schemacompliant and small, avoid key collisions, and provide a readable agents/tasks index without inflating AGENTS.md.
## How
- Ensure `.bmad-core/core-config.yaml` in `instructions`
- Merge only selected packages agents/commands into opencode.json file
- Orchestrators `mode: primary`; all agents enable `write`, `edit`, `bash`
- Descriptions from `whenToUse`/task `Purpose` with sanitization + fallbacks
- Explicit warnings for nonBMAD collisions; AGENTS.md uses a strict 3column table with links
## Testing
- Run: `npx bmad-method install -f -i opencode`
- Verify: `opencode.json[c]` updated/created as expected, `AGENTS.md` OpenCode section is compact with links
- Prepush checks:
```bash
npm run pre-release
# or individually
npm run validate
npm run format:check
npm run lint
# if anything fails
npm run fix
# or
npm run format
npm run lint:fix
```
Fixes #<issue-number>
Targets: `next` branch

135
README.md
View File

@@ -1,5 +1,36 @@
# BMAD-METHOD™: Universal AI Agent Framework
> ## 🚨 **IMPORTANT VERSION ANNOUNCEMENT** 🚨
>
> ### Current Stable: v4.x | Next Major: v6 Alpha
>
> - **v4.x** - The current stable release version available via npm
> - **v5** - Skipped (replaced by v6)
> - **[v6-alpha](https://github.com/bmad-code-org/BMAD-METHOD/tree/v6-alpha)** - **NOW AVAILABLE FOR EARLY TESTING!**
>
> ### 🧪 Try v6 Alpha (Early Adopters Only)
>
> The next major version of BMAD-METHOD is now available for early experimentation and testing. This is a complete rewrite with significant architectural changes.
>
> **⚠️ WARNING: v6-alpha is for early adopters who are comfortable with:**
>
> - Potential breaking changes
> - Daily updates and instability
> - Incomplete features
> - Experimental functionality
>
> **📅 Timeline:** Official beta version will be merged mid-October 2025
>
> **To try v6-alpha:**
>
> ```bash
> git clone https://github.com/bmad-code-org/BMAD-METHOD.git
> cd BMAD-METHOD
> git checkout v6-alpha
> ```
>
> ---
[![Version](https://img.shields.io/npm/v/bmad-method?color=blue&label=version)](https://www.npmjs.com/package/bmad-method)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
[![Node.js Version](https://img.shields.io/badge/node-%3E%3D20.0.0-brightgreen)](https://nodejs.org)
@@ -40,7 +71,7 @@ This two-phase approach eliminates both **planning inconsistency** and **context
- **[Install and Build software with Full Stack Agile AI Team](#quick-start)** → Quick Start Instruction
- **[Learn how to use BMad](docs/user-guide.md)** → Complete user guide and walkthrough
- **[See available AI agents](/bmad-core/agents))** → Specialized roles for your team
- **[See available AI agents](/bmad-core/agents)** → Specialized roles for your team
- **[Explore non-technical uses](#-beyond-software-development---expansion-packs)** → Creative writing, business, wellness, education
- **[Create my own AI agents](docs/expansion-packs.md)** → Build agents for your domain
- **[Browse ready-made expansion packs](expansion-packs/)** → Game dev, DevOps, infrastructure and get inspired with ideas and examples
@@ -75,8 +106,6 @@ This makes it easy to benefit from the latest improvements, bug fixes, and new a
```bash
npx bmad-method install
# OR explicitly use stable tag:
npx bmad-method@stable install
# OR if you already have BMad installed:
git pull
npm run install:bmad
@@ -112,86 +141,6 @@ npm run install:bmad # build and install all to a destination folder
BMAD™'s natural language framework works in ANY domain. Expansion packs provide specialized AI agents for creative writing, business strategy, health & wellness, education, and more. Also expansion packs can expand the core BMAD-METHOD™ with specific functionality that is not generic for all cases. [See the Expansion Packs Guide](docs/expansion-packs.md) and learn to create your own!
## Codebase Flattener Tool
The BMAD-METHOD™ includes a powerful codebase flattener tool designed to prepare your project files for AI model consumption. This tool aggregates your entire codebase into a single XML file, making it easy to share your project context with AI assistants for analysis, debugging, or development assistance.
### Features
- **AI-Optimized Output**: Generates clean XML format specifically designed for AI model consumption
- **Smart Filtering**: Automatically respects `.gitignore` patterns to exclude unnecessary files
- **Binary File Detection**: Intelligently identifies and excludes binary files, focusing on source code
- **Progress Tracking**: Real-time progress indicators and comprehensive completion statistics
- **Flexible Output**: Customizable output file location and naming
### Usage
```bash
# Basic usage - creates flattened-codebase.xml in current directory
npx bmad-method flatten
# Specify custom input directory
npx bmad-method flatten --input /path/to/source/directory
npx bmad-method flatten -i /path/to/source/directory
# Specify custom output file
npx bmad-method flatten --output my-project.xml
npx bmad-method flatten -o /path/to/output/codebase.xml
# Combine input and output options
npx bmad-method flatten --input /path/to/source --output /path/to/output/codebase.xml
```
### Example Output
The tool will display progress and provide a comprehensive summary:
```text
📊 Completion Summary:
✅ Successfully processed 156 files into flattened-codebase.xml
📁 Output file: /path/to/your/project/flattened-codebase.xml
📏 Total source size: 2.3 MB
📄 Generated XML size: 2.1 MB
📝 Total lines of code: 15,847
🔢 Estimated tokens: 542,891
📊 File breakdown: 142 text, 14 binary, 0 errors
```
The generated XML file contains your project's text-based source files in a structured format that AI models can easily parse and understand, making it perfect for code reviews, architecture discussions, or getting AI assistance with your BMAD-METHOD™ projects.
#### Advanced Usage & Options
- CLI options
- `-i, --input <path>`: Directory to flatten. Default: current working directory or auto-detected project root when run interactively.
- `-o, --output <path>`: Output file path. Default: `flattened-codebase.xml` in the chosen directory.
- Interactive mode
- If you do not pass `--input` and `--output` and the terminal is interactive (TTY), the tool will attempt to detect your project root (by looking for markers like `.git`, `package.json`, etc.) and prompt you to confirm or override the paths.
- In non-interactive contexts (e.g., CI), it will prefer the detected root silently; otherwise it falls back to the current directory and default filename.
- File discovery and ignoring
- Uses `git ls-files` when inside a git repository for speed and correctness; otherwise falls back to a glob-based scan.
- Applies your `.gitignore` plus a curated set of default ignore patterns (e.g., `node_modules`, build outputs, caches, logs, IDE folders, lockfiles, large media/binaries, `.env*`, and previously generated XML outputs).
- Binary handling
- Binary files are detected and excluded from the XML content. They are counted in the final summary but not embedded in the output.
- XML format and safety
- UTF-8 encoded file with root element `<files>`.
- Each text file is emitted as a `<file path="relative/path">` element whose content is wrapped in `<![CDATA[ ... ]]>`.
- The tool safely handles occurrences of `]]>` inside content by splitting the CDATA to preserve correctness.
- File contents are preserved as-is and indented for readability inside the XML.
- Performance
- Concurrency is selected automatically based on your CPU and workload size. No configuration required.
- Running inside a git repo improves discovery performance.
#### Minimal XML example
```xml
<?xml version="1.0" encoding="UTF-8"?>
<files>
<file path="src/index.js"><![CDATA[
// your source content
]]></file>
</files>
```
## Documentation & Resources
### Essential Guides
@@ -212,6 +161,26 @@ The generated XML file contains your project's text-based source files in a stru
📋 **[Read CONTRIBUTING.md](CONTRIBUTING.md)** - Complete guide to contributing, including guidelines, process, and requirements
### Working with Forks
When you fork this repository, CI/CD workflows are **disabled by default** to save resources. This is intentional and helps keep your fork clean.
#### Need CI/CD in Your Fork?
See our [Fork CI/CD Guide](.github/FORK_GUIDE.md) for instructions on enabling workflows in your fork.
#### Contributing Workflow
1. **Fork the repository** - Click the Fork button on GitHub
2. **Clone your fork** - `git clone https://github.com/YOUR-USERNAME/BMAD-METHOD.git`
3. **Create a feature branch** - `git checkout -b feature/amazing-feature`
4. **Make your changes** - Test locally with `npm test`
5. **Commit your changes** - `git commit -m 'feat: add amazing feature'`
6. **Push to your fork** - `git push origin feature/amazing-feature`
7. **Open a Pull Request** - CI/CD will run automatically on the PR
Your contributions are tested when you submit a PR - no need to enable CI in your fork!
## License
MIT License - see [LICENSE](LICENSE) for details.

View File

@@ -19,7 +19,7 @@ REQUEST-RESOLUTION: Match user requests to your commands/dependencies flexibly (
activation-instructions:
- STEP 1: Read THIS ENTIRE FILE - it contains your complete persona definition
- STEP 2: Adopt the persona defined in the 'agent' and 'persona' sections below
- STEP 3: Load and read `bmad-core/core-config.yaml` (project configuration) before any greeting
- STEP 3: Load and read `.bmad-core/core-config.yaml` (project configuration) before any greeting
- STEP 4: Greet user with your name/role and immediately run `*help` to display available commands
- DO NOT: Load any other agent files during activation
- ONLY load dependency files when user selects them for execution via command or request of a task

View File

@@ -19,7 +19,7 @@ REQUEST-RESOLUTION: Match user requests to your commands/dependencies flexibly (
activation-instructions:
- STEP 1: Read THIS ENTIRE FILE - it contains your complete persona definition
- STEP 2: Adopt the persona defined in the 'agent' and 'persona' sections below
- STEP 3: Load and read `bmad-core/core-config.yaml` (project configuration) before any greeting
- STEP 3: Load and read `.bmad-core/core-config.yaml` (project configuration) before any greeting
- STEP 4: Greet user with your name/role and immediately run `*help` to display available commands
- DO NOT: Load any other agent files during activation
- ONLY load dependency files when user selects them for execution via command or request of a task

View File

@@ -11,16 +11,16 @@ CRITICAL: Read the full YAML BLOCK that FOLLOWS IN THIS FILE to understand your
```yaml
IDE-FILE-RESOLUTION:
- FOR LATER USE ONLY - NOT FOR ACTIVATION, when executing commands that reference dependencies
- Dependencies map to root/type/name
- Dependencies map to {root}/{type}/{name}
- type=folder (tasks|templates|checklists|data|utils|etc...), name=file-name
- Example: create-doc.md → root/tasks/create-doc.md
- Example: create-doc.md → {root}/tasks/create-doc.md
- IMPORTANT: Only load these files when user requests specific command execution
REQUEST-RESOLUTION: Match user requests to your commands/dependencies flexibly (e.g., "draft story"→*create→create-next-story task, "make a new prd" would be dependencies->tasks->create-doc combined with the dependencies->templates->prd-tmpl.md), ALWAYS ask for clarification if no clear match.
activation-instructions:
- STEP 1: Read THIS ENTIRE FILE - it contains your complete persona definition
- STEP 2: Adopt the persona defined in the 'agent' and 'persona' sections below
- STEP 3: Load and read bmad-core/core-config.yaml (project configuration) before any greeting
- STEP 4: Greet user with your name/role and immediately run *help to display available commands
- STEP 3: Load and read `.bmad-core/core-config.yaml` (project configuration) before any greeting
- STEP 4: Greet user with your name/role and immediately run `*help` to display available commands
- DO NOT: Load any other agent files during activation
- ONLY load dependency files when user selects them for execution via command or request of a task
- The agent.customization field ALWAYS takes precedence over any conflicting instructions
@@ -101,10 +101,10 @@ dependencies:
- project-brief-tmpl.yaml
- story-tmpl.yaml
workflows:
- brownfield-fullstack.md
- brownfield-service.md
- brownfield-ui.md
- greenfield-fullstack.md
- greenfield-service.md
- greenfield-ui.md
- brownfield-fullstack.yaml
- brownfield-service.yaml
- brownfield-ui.yaml
- greenfield-fullstack.yaml
- greenfield-service.yaml
- greenfield-ui.yaml
```

View File

@@ -19,7 +19,7 @@ REQUEST-RESOLUTION: Match user requests to your commands/dependencies flexibly (
activation-instructions:
- STEP 1: Read THIS ENTIRE FILE - it contains your complete persona definition
- STEP 2: Adopt the persona defined in the 'agent' and 'persona' sections below
- STEP 3: Load and read `bmad-core/core-config.yaml` (project configuration) before any greeting
- STEP 3: Load and read `.bmad-core/core-config.yaml` (project configuration) before any greeting
- STEP 4: Greet user with your name/role and immediately run `*help` to display available commands
- DO NOT: Load any other agent files during activation
- ONLY load dependency files when user selects them for execution via command or request of a task
@@ -31,7 +31,7 @@ activation-instructions:
- Assess user goal against available agents and workflows in this bundle
- If clear match to an agent's expertise, suggest transformation with *agent command
- If project-oriented, suggest *workflow-guidance to explore options
- Load resources only when needed - never pre-load (Exception: Read `bmad-core/core-config.yaml` during activation)
- Load resources only when needed - never pre-load (Exception: Read `.bmad-core/core-config.yaml` during activation)
- CRITICAL: On activation, ONLY greet user, auto-run `*help`, and then HALT to await user requested assistance or given commands. ONLY deviance from this is if the activation included commands also in the arguments.
agent:
name: BMad Orchestrator

View File

@@ -19,7 +19,7 @@ REQUEST-RESOLUTION: Match user requests to your commands/dependencies flexibly (
activation-instructions:
- STEP 1: Read THIS ENTIRE FILE - it contains your complete persona definition
- STEP 2: Adopt the persona defined in the 'agent' and 'persona' sections below
- STEP 3: Load and read `bmad-core/core-config.yaml` (project configuration) before any greeting
- STEP 3: Load and read `.bmad-core/core-config.yaml` (project configuration) before any greeting
- STEP 4: Greet user with your name/role and immediately run `*help` to display available commands
- DO NOT: Load any other agent files during activation
- ONLY load dependency files when user selects them for execution via command or request of a task
@@ -49,6 +49,7 @@ persona:
core_principles:
- CRITICAL: Story has ALL info you will need aside from what you loaded during the startup commands. NEVER load PRD/architecture/other docs files unless explicitly directed in story notes or direct command from user.
- CRITICAL: ALWAYS check current folder structure before starting your story tasks, don't create new working directory if it already exists. Create new one when you're sure it's a brand new project.
- CRITICAL: ONLY update story file Dev Agent Record sections (checkboxes/Debug Log/Completion Notes/Change Log)
- CRITICAL: FOLLOW THE develop-story command when the user tells you to implement the story
- Numbered Options - Always use numbered lists when presenting choices to the user

View File

@@ -19,7 +19,7 @@ REQUEST-RESOLUTION: Match user requests to your commands/dependencies flexibly (
activation-instructions:
- STEP 1: Read THIS ENTIRE FILE - it contains your complete persona definition
- STEP 2: Adopt the persona defined in the 'agent' and 'persona' sections below
- STEP 3: Load and read `bmad-core/core-config.yaml` (project configuration) before any greeting
- STEP 3: Load and read `.bmad-core/core-config.yaml` (project configuration) before any greeting
- STEP 4: Greet user with your name/role and immediately run `*help` to display available commands
- DO NOT: Load any other agent files during activation
- ONLY load dependency files when user selects them for execution via command or request of a task

View File

@@ -19,7 +19,7 @@ REQUEST-RESOLUTION: Match user requests to your commands/dependencies flexibly (
activation-instructions:
- STEP 1: Read THIS ENTIRE FILE - it contains your complete persona definition
- STEP 2: Adopt the persona defined in the 'agent' and 'persona' sections below
- STEP 3: Load and read `bmad-core/core-config.yaml` (project configuration) before any greeting
- STEP 3: Load and read `.bmad-core/core-config.yaml` (project configuration) before any greeting
- STEP 4: Greet user with your name/role and immediately run `*help` to display available commands
- DO NOT: Load any other agent files during activation
- ONLY load dependency files when user selects them for execution via command or request of a task

View File

@@ -19,7 +19,7 @@ REQUEST-RESOLUTION: Match user requests to your commands/dependencies flexibly (
activation-instructions:
- STEP 1: Read THIS ENTIRE FILE - it contains your complete persona definition
- STEP 2: Adopt the persona defined in the 'agent' and 'persona' sections below
- STEP 3: Load and read `bmad-core/core-config.yaml` (project configuration) before any greeting
- STEP 3: Load and read `.bmad-core/core-config.yaml` (project configuration) before any greeting
- STEP 4: Greet user with your name/role and immediately run `*help` to display available commands
- DO NOT: Load any other agent files during activation
- ONLY load dependency files when user selects them for execution via command or request of a task
@@ -35,11 +35,7 @@ agent:
id: qa
title: Test Architect & Quality Advisor
icon: 🧪
whenToUse: |
Use for comprehensive test architecture review, quality gate decisions,
and code improvement. Provides thorough analysis including requirements
traceability, risk assessment, and test strategy.
Advisory only - teams choose their quality bar.
whenToUse: Use for comprehensive test architecture review, quality gate decisions, and code improvement. Provides thorough analysis including requirements traceability, risk assessment, and test strategy. Advisory only - teams choose their quality bar.
customization: null
persona:
role: Test Architect with Quality Advisory Authority

View File

@@ -19,7 +19,7 @@ REQUEST-RESOLUTION: Match user requests to your commands/dependencies flexibly (
activation-instructions:
- STEP 1: Read THIS ENTIRE FILE - it contains your complete persona definition
- STEP 2: Adopt the persona defined in the 'agent' and 'persona' sections below
- STEP 3: Load and read `bmad-core/core-config.yaml` (project configuration) before any greeting
- STEP 3: Load and read `.bmad-core/core-config.yaml` (project configuration) before any greeting
- STEP 4: Greet user with your name/role and immediately run `*help` to display available commands
- DO NOT: Load any other agent files during activation
- ONLY load dependency files when user selects them for execution via command or request of a task

View File

@@ -19,7 +19,7 @@ REQUEST-RESOLUTION: Match user requests to your commands/dependencies flexibly (
activation-instructions:
- STEP 1: Read THIS ENTIRE FILE - it contains your complete persona definition
- STEP 2: Adopt the persona defined in the 'agent' and 'persona' sections below
- STEP 3: Load and read `bmad-core/core-config.yaml` (project configuration) before any greeting
- STEP 3: Load and read `.bmad-core/core-config.yaml` (project configuration) before any greeting
- STEP 4: Greet user with your name/role and immediately run `*help` to display available commands
- DO NOT: Load any other agent files during activation
- ONLY load dependency files when user selects them for execution via command or request of a task

View File

@@ -15,7 +15,7 @@ First, determine the project type by checking:
2. Is this a BROWNFIELD project (enhancing existing system)?
- Look for: References to existing codebase, enhancement/modification language
- Check for: brownfield-prd.md, brownfield-architecture.md, existing system analysis
- Check for: prd.md, architecture.md, existing system analysis
3. Does the project include UI/UX components?
- Check for: frontend-architecture.md, UI/UX specifications, design files
@@ -33,8 +33,8 @@ For GREENFIELD projects:
For BROWNFIELD projects:
- brownfield-prd.md - The brownfield enhancement requirements
- brownfield-architecture.md - The enhancement architecture
- prd.md - The brownfield enhancement requirements
- architecture.md - The enhancement architecture
- Existing project codebase access (CRITICAL - cannot proceed without this)
- Current deployment configuration and infrastructure details
- Database schemas, API documentation, monitoring setup

View File

@@ -102,6 +102,7 @@ npx bmad-method install
- **Cline**: VS Code extension with AI features
- **Roo Code**: Web-based IDE with agent support
- **GitHub Copilot**: VS Code extension with AI peer programming assistant
- **Auggie CLI (Augment Code)**: AI-powered development environment
**Note for VS Code Users**: BMAD-METHOD™ assumes when you mention "VS Code" that you're using it with an AI-powered extension like GitHub Copilot, Cline, or Roo. Standard VS Code without AI capabilities cannot run BMad agents. The installer includes built-in support for Cline and Roo.
@@ -180,7 +181,7 @@ npx bmad-method install
## Core Configuration (core-config.yaml)
**New in V4**: The `bmad-core/core-config.yaml` file is a critical innovation that enables BMad to work seamlessly with any project structure, providing maximum flexibility and backwards compatibility.
**New in V4**: The `.bmad-core/core-config.yaml` file is a critical innovation that enables BMad to work seamlessly with any project structure, providing maximum flexibility and backwards compatibility.
### What is core-config.yaml?

View File

@@ -16,8 +16,8 @@ Implement fixes based on QA results (gate and assessments) for a specific story.
```yaml
required:
- story_id: '{epic}.{story}' # e.g., "2.2"
- qa_root: from `bmad-core/core-config.yaml` key `qa.qaLocation` (e.g., `docs/project/qa`)
- story_root: from `bmad-core/core-config.yaml` key `devStoryLocation` (e.g., `docs/project/stories`)
- qa_root: from `.bmad-core/core-config.yaml` key `qa.qaLocation` (e.g., `docs/project/qa`)
- story_root: from `.bmad-core/core-config.yaml` key `devStoryLocation` (e.g., `docs/project/stories`)
optional:
- story_title: '{title}' # derive from story H1 if missing
@@ -45,7 +45,7 @@ optional:
### 0) Load Core Config & Locate Story
- Read `bmad-core/core-config.yaml` and resolve `qa_root` and `story_root`
- Read `.bmad-core/core-config.yaml` and resolve `qa_root` and `story_root`
- Locate story file in `{story_root}/{epic}.{story}.*.md`
- HALT if missing and ask for correct story id/path
@@ -113,7 +113,7 @@ Status Rule:
## Blocking Conditions
- Missing `bmad-core/core-config.yaml`
- Missing `.bmad-core/core-config.yaml`
- Story file not found for `story_id`
- No QA artifacts found (neither gate nor assessments)
- HALT and request QA to generate at least a gate file (or proceed only with clear developer-provided fix list)

View File

@@ -9,11 +9,11 @@ Quick NFR validation focused on the core four: security, performance, reliabilit
```yaml
required:
- story_id: '{epic}.{story}' # e.g., "1.3"
- story_path: `bmad-core/core-config.yaml` for the `devStoryLocation`
- story_path: `.bmad-core/core-config.yaml` for the `devStoryLocation`
optional:
- architecture_refs: `bmad-core/core-config.yaml` for the `architecture.architectureFile`
- technical_preferences: `bmad-core/core-config.yaml` for the `technicalPreferences`
- architecture_refs: `.bmad-core/core-config.yaml` for the `architecture.architectureFile`
- technical_preferences: `.bmad-core/core-config.yaml` for the `technicalPreferences`
- acceptance_criteria: From story file
```

View File

@@ -16,7 +16,7 @@ Generate a standalone quality gate file that provides a clear pass/fail decision
## Gate File Location
**ALWAYS** check the `bmad-core/core-config.yaml` for the `qa.qaLocation/gates`
**ALWAYS** check the `.bmad-core/core-config.yaml` for the `qa.qaLocation/gates`
Slug rules:
@@ -126,7 +126,7 @@ waiver:
## Output Requirements
1. **ALWAYS** create gate file at: `qa.qaLocation/gates` from `bmad-core/core-config.yaml`
1. **ALWAYS** create gate file at: `qa.qaLocation/gates` from `.bmad-core/core-config.yaml`
2. **ALWAYS** append this exact format to story's QA Results section:
```text

View File

@@ -186,7 +186,7 @@ NFR assessment: qa.qaLocation/assessments/{epic}.{story}-nfr-{YYYYMMDD}.md
**Template and Directory:**
- Render from `../templates/qa-gate-tmpl.yaml`
- Create directory defined in `qa.qaLocation/gates` (see `bmad-core/core-config.yaml`) if missing
- Create directory defined in `qa.qaLocation/gates` (see `.bmad-core/core-config.yaml`) if missing
- Save to: `qa.qaLocation/gates/{epic}.{story}-{slug}.yml`
Gate file structure:

View File

@@ -21,7 +21,7 @@ To comprehensively validate a story draft before implementation begins, ensuring
### 1. Template Completeness Validation
- Load `bmad-core/templates/story-tmpl.md` and extract all section headings from the template
- Load `.bmad-core/templates/story-tmpl.yaml` and extract all section headings from the template
- **Missing sections check**: Compare story sections against template sections to verify all required sections are present
- **Placeholder validation**: Ensure no template placeholders remain unfilled (e.g., `{{EpicNum}}`, `{{role}}`, `_TBD_`)
- **Agent section verification**: Confirm all sections from template exist for future agent use

View File

@@ -23,7 +23,7 @@ sections:
1. **Verify Complexity**: Confirm this enhancement requires architectural planning. For simple additions, recommend: "For simpler changes that don't require architectural planning, consider using the brownfield-create-epic or brownfield-create-story task with the Product Owner instead."
2. **REQUIRED INPUTS**:
- Completed brownfield-prd.md
- Completed prd.md
- Existing project technical documentation (from docs folder or user-provided)
- Access to existing project structure (IDE or uploaded files)
@@ -109,8 +109,8 @@ sections:
- **UI/UX Consistency:** {{ui_compatibility}}
- **Performance Impact:** {{performance_constraints}}
- id: tech-stack-alignment
title: Tech Stack Alignment
- id: tech-stack
title: Tech Stack
instruction: |
Ensure new components align with existing technology choices:
@@ -272,8 +272,8 @@ sections:
**Error Handling:** {{error_handling_strategy}}
- id: source-tree-integration
title: Source Tree Integration
- id: source-tree
title: Source Tree
instruction: |
Define how new code will integrate with existing project structure:
@@ -342,7 +342,7 @@ sections:
**Monitoring:** {{monitoring_approach}}
- id: coding-standards
title: Coding Standards and Conventions
title: Coding Standards
instruction: |
Ensure new code follows existing project conventions:

View File

@@ -160,7 +160,7 @@ workflow:
- Dev Agent (New Chat): Address remaining items
- Return to QA for final approval
- repeat_development_cycle:
- step: repeat_development_cycle
action: continue_for_all_stories
notes: |
Repeat story cycle (SM → Dev → QA) for all epic stories
@@ -177,7 +177,7 @@ workflow:
- Validate epic was completed correctly
- Document learnings and improvements
- workflow_end:
- step: workflow_end
action: project_complete
notes: |
All stories implemented and reviewed!

View File

@@ -106,7 +106,7 @@ workflow:
- Dev Agent (New Chat): Address remaining items
- Return to QA for final approval
- repeat_development_cycle:
- step: repeat_development_cycle
action: continue_for_all_stories
notes: |
Repeat story cycle (SM → Dev → QA) for all epic stories
@@ -123,7 +123,7 @@ workflow:
- Validate epic was completed correctly
- Document learnings and improvements
- workflow_end:
- step: workflow_end
action: project_complete
notes: |
All stories implemented and reviewed!

View File

@@ -113,7 +113,7 @@ workflow:
- Dev Agent (New Chat): Address remaining items
- Return to QA for final approval
- repeat_development_cycle:
- step: repeat_development_cycle
action: continue_for_all_stories
notes: |
Repeat story cycle (SM → Dev → QA) for all epic stories
@@ -130,7 +130,7 @@ workflow:
- Validate epic was completed correctly
- Document learnings and improvements
- workflow_end:
- step: workflow_end
action: project_complete
notes: |
All stories implemented and reviewed!

View File

@@ -65,12 +65,12 @@ workflow:
condition: po_checklist_issues
notes: "If PO finds issues, return to relevant agent to fix and re-export updated documents to docs/ folder."
- project_setup_guidance:
- step: project_setup_guidance
action: guide_project_structure
condition: user_has_generated_ui
notes: "If user generated UI with v0/Lovable: For polyrepo setup, place downloaded project in separate frontend repo alongside backend repo. For monorepo, place in apps/web or packages/frontend directory. Review architecture document for specific guidance."
- development_order_guidance:
- step: development_order_guidance
action: guide_development_sequence
notes: "Based on PRD stories: If stories are frontend-heavy, start with frontend project/directory first. If backend-heavy or API-first, start with backend. For tightly coupled features, follow story sequence in monorepo setup. Reference sharded PRD epics for development order."
@@ -138,7 +138,7 @@ workflow:
- Dev Agent (New Chat): Address remaining items
- Return to QA for final approval
- repeat_development_cycle:
- step: repeat_development_cycle
action: continue_for_all_stories
notes: |
Repeat story cycle (SM → Dev → QA) for all epic stories
@@ -155,7 +155,7 @@ workflow:
- Validate epic was completed correctly
- Document learnings and improvements
- workflow_end:
- step: workflow_end
action: project_complete
notes: |
All stories implemented and reviewed!

View File

@@ -114,7 +114,7 @@ workflow:
- Dev Agent (New Chat): Address remaining items
- Return to QA for final approval
- repeat_development_cycle:
- step: repeat_development_cycle
action: continue_for_all_stories
notes: |
Repeat story cycle (SM → Dev → QA) for all epic stories
@@ -131,7 +131,7 @@ workflow:
- Validate epic was completed correctly
- Document learnings and improvements
- workflow_end:
- step: workflow_end
action: project_complete
notes: |
All stories implemented and reviewed!

View File

@@ -64,7 +64,7 @@ workflow:
condition: po_checklist_issues
notes: "If PO finds issues, return to relevant agent to fix and re-export updated documents to docs/ folder."
- project_setup_guidance:
- step: project_setup_guidance
action: guide_project_structure
condition: user_has_generated_ui
notes: "If user generated UI with v0/Lovable: For polyrepo setup, place downloaded project in separate frontend repo. For monorepo, place in apps/web or frontend/ directory. Review architecture document for specific guidance."
@@ -133,7 +133,7 @@ workflow:
- Dev Agent (New Chat): Address remaining items
- Return to QA for final approval
- repeat_development_cycle:
- step: repeat_development_cycle
action: continue_for_all_stories
notes: |
Repeat story cycle (SM → Dev → QA) for all epic stories
@@ -150,7 +150,7 @@ workflow:
- Validate epic was completed correctly
- Document learnings and improvements
- workflow_end:
- step: workflow_end
action: project_complete
notes: |
All stories implemented and reviewed!

View File

@@ -2230,7 +2230,7 @@ npx bmad-method install
## Core Configuration (core-config.yaml)
**New in V4**: The `bmad-core/core-config.yaml` file is a critical innovation that enables BMad to work seamlessly with any project structure, providing maximum flexibility and backwards compatibility.
**New in V4**: The `.bmad-core/core-config.yaml` file is a critical innovation that enables BMad to work seamlessly with any project structure, providing maximum flexibility and backwards compatibility.
### What is core-config.yaml?

View File

@@ -1608,7 +1608,7 @@ sections:
1. **Verify Complexity**: Confirm this enhancement requires architectural planning. For simple additions, recommend: "For simpler changes that don't require architectural planning, consider using the brownfield-create-epic or brownfield-create-story task with the Product Owner instead."
2. **REQUIRED INPUTS**:
- Completed brownfield-prd.md
- Completed prd.md
- Existing project technical documentation (from docs folder or user-provided)
- Access to existing project structure (IDE or uploaded files)

View File

@@ -2817,7 +2817,7 @@ sections:
1. **Verify Complexity**: Confirm this enhancement requires architectural planning. For simple additions, recommend: "For simpler changes that don't require architectural planning, consider using the brownfield-create-epic or brownfield-create-story task with the Product Owner instead."
2. **REQUIRED INPUTS**:
- Completed brownfield-prd.md
- Completed prd.md
- Existing project technical documentation (from docs folder or user-provided)
- Access to existing project structure (IDE or uploaded files)
@@ -7114,7 +7114,7 @@ First, determine the project type by checking:
2. Is this a BROWNFIELD project (enhancing existing system)?
- Look for: References to existing codebase, enhancement/modification language
- Check for: brownfield-prd.md, brownfield-architecture.md, existing system analysis
- Check for: prd.md, architecture.md, existing system analysis
3. Does the project include UI/UX components?
- Check for: frontend-architecture.md, UI/UX specifications, design files
@@ -7132,8 +7132,8 @@ For GREENFIELD projects:
For BROWNFIELD projects:
- brownfield-prd.md - The brownfield enhancement requirements
- brownfield-architecture.md - The enhancement architecture
- prd.md - The brownfield enhancement requirements
- architecture.md - The enhancement architecture
- Existing project codebase access (CRITICAL - cannot proceed without this)
- Current deployment configuration and infrastructure details
- Database schemas, API documentation, monitoring setup
@@ -7970,7 +7970,7 @@ npx bmad-method install
## Core Configuration (core-config.yaml)
**New in V4**: The `bmad-core/core-config.yaml` file is a critical innovation that enables BMad to work seamlessly with any project structure, providing maximum flexibility and backwards compatibility.
**New in V4**: The `.bmad-core/core-config.yaml` file is a critical innovation that enables BMad to work seamlessly with any project structure, providing maximum flexibility and backwards compatibility.
### What is core-config.yaml?

View File

@@ -653,7 +653,7 @@ npx bmad-method install
## Core Configuration (core-config.yaml)
**New in V4**: The `bmad-core/core-config.yaml` file is a critical innovation that enables BMad to work seamlessly with any project structure, providing maximum flexibility and backwards compatibility.
**New in V4**: The `.bmad-core/core-config.yaml` file is a critical innovation that enables BMad to work seamlessly with any project structure, providing maximum flexibility and backwards compatibility.
### What is core-config.yaml?

8
dist/agents/dev.txt vendored
View File

@@ -110,8 +110,8 @@ Implement fixes based on QA results (gate and assessments) for a specific story.
```yaml
required:
- story_id: '{epic}.{story}' # e.g., "2.2"
- qa_root: from `bmad-core/core-config.yaml` key `qa.qaLocation` (e.g., `docs/project/qa`)
- story_root: from `bmad-core/core-config.yaml` key `devStoryLocation` (e.g., `docs/project/stories`)
- qa_root: from `.bmad-core/core-config.yaml` key `qa.qaLocation` (e.g., `docs/project/qa`)
- story_root: from `.bmad-core/core-config.yaml` key `devStoryLocation` (e.g., `docs/project/stories`)
optional:
- story_title: '{title}' # derive from story H1 if missing
@@ -139,7 +139,7 @@ optional:
### 0) Load Core Config & Locate Story
- Read `bmad-core/core-config.yaml` and resolve `qa_root` and `story_root`
- Read `.bmad-core/core-config.yaml` and resolve `qa_root` and `story_root`
- Locate story file in `{story_root}/{epic}.{story}.*.md`
- HALT if missing and ask for correct story id/path
@@ -207,7 +207,7 @@ Status Rule:
## Blocking Conditions
- Missing `bmad-core/core-config.yaml`
- Missing `.bmad-core/core-config.yaml`
- Story file not found for `story_id`
- No QA artifacts found (neither gate nor assessments)
- HALT and request QA to generate at least a gate file (or proceed only with clear developer-provided fix list)

6
dist/agents/po.txt vendored
View File

@@ -933,7 +933,7 @@ First, determine the project type by checking:
2. Is this a BROWNFIELD project (enhancing existing system)?
- Look for: References to existing codebase, enhancement/modification language
- Check for: brownfield-prd.md, brownfield-architecture.md, existing system analysis
- Check for: prd.md, architecture.md, existing system analysis
3. Does the project include UI/UX components?
- Check for: frontend-architecture.md, UI/UX specifications, design files
@@ -951,8 +951,8 @@ For GREENFIELD projects:
For BROWNFIELD projects:
- brownfield-prd.md - The brownfield enhancement requirements
- brownfield-architecture.md - The enhancement architecture
- prd.md - The brownfield enhancement requirements
- architecture.md - The enhancement architecture
- Existing project codebase access (CRITICAL - cannot proceed without this)
- Current deployment configuration and infrastructure details
- Database schemas, API documentation, monitoring setup

15
dist/agents/qa.txt vendored
View File

@@ -55,8 +55,7 @@ agent:
id: qa
title: Test Architect & Quality Advisor
icon: 🧪
whenToUse: |
Use for comprehensive test architecture review, quality gate decisions,
whenToUse: Use for comprehensive test architecture review, quality gate decisions,
and code improvement. Provides thorough analysis including requirements
traceability, risk assessment, and test strategy.
Advisory only - teams choose their quality bar.
@@ -121,11 +120,11 @@ Quick NFR validation focused on the core four: security, performance, reliabilit
```yaml
required:
- story_id: '{epic}.{story}' # e.g., "1.3"
- story_path: `bmad-core/core-config.yaml` for the `devStoryLocation`
- story_path: `.bmad-core/core-config.yaml` for the `devStoryLocation`
optional:
- architecture_refs: `bmad-core/core-config.yaml` for the `architecture.architectureFile`
- technical_preferences: `bmad-core/core-config.yaml` for the `technicalPreferences`
- architecture_refs: `.bmad-core/core-config.yaml` for the `architecture.architectureFile`
- technical_preferences: `.bmad-core/core-config.yaml` for the `technicalPreferences`
- acceptance_criteria: From story file
```
@@ -475,7 +474,7 @@ Generate a standalone quality gate file that provides a clear pass/fail decision
## Gate File Location
**ALWAYS** check the `bmad-core/core-config.yaml` for the `qa.qaLocation/gates`
**ALWAYS** check the `.bmad-core/core-config.yaml` for the `qa.qaLocation/gates`
Slug rules:
@@ -585,7 +584,7 @@ waiver:
## Output Requirements
1. **ALWAYS** create gate file at: `qa.qaLocation/gates` from `bmad-core/core-config.yaml`
1. **ALWAYS** create gate file at: `qa.qaLocation/gates` from `.bmad-core/core-config.yaml`
2. **ALWAYS** append this exact format to story's QA Results section:
```text
@@ -810,7 +809,7 @@ NFR assessment: qa.qaLocation/assessments/{epic}.{story}-nfr-{YYYYMMDD}.md
**Template and Directory:**
- Render from `../templates/qa-gate-tmpl.yaml`
- Create directory defined in `qa.qaLocation/gates` (see `bmad-core/core-config.yaml`) if missing
- Create directory defined in `qa.qaLocation/gates` (see `.bmad-core/core-config.yaml`) if missing
- Save to: `qa.qaLocation/gates/{epic}.{story}-{slug}.yml`
Gate file structure:

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,666 @@
# Web Agent Bundle Instructions
You are now operating as a specialized AI agent from the BMad-Method framework. This is a bundled web-compatible version containing all necessary resources for your role.
## Important Instructions
1. **Follow all startup commands**: Your agent configuration includes startup instructions that define your behavior, personality, and approach. These MUST be followed exactly.
2. **Resource Navigation**: This bundle contains all resources you need. Resources are marked with tags like:
- `==================== START: .bmad-godot-game-dev/folder/filename.md ====================`
- `==================== END: .bmad-godot-game-dev/folder/filename.md ====================`
When you need to reference a resource mentioned in your instructions:
- Look for the corresponding START/END tags
- The format is always the full path with dot prefix (e.g., `.bmad-godot-game-dev/personas/analyst.md`, `.bmad-godot-game-dev/tasks/create-story.md`)
- If a section is specified (e.g., `{root}/tasks/create-story.md#section-name`), navigate to that section within the file
**Understanding YAML References**: In the agent configuration, resources are referenced in the dependencies section. For example:
```yaml
dependencies:
utils:
- template-format
tasks:
- create-story
```
These references map directly to bundle sections:
- `utils: template-format` → Look for `==================== START: .bmad-godot-game-dev/utils/template-format.md ====================`
- `tasks: create-story` → Look for `==================== START: .bmad-godot-game-dev/tasks/create-story.md ====================`
3. **Execution Context**: You are operating in a web environment. All your capabilities and knowledge are contained within this bundle. Work within these constraints to provide the best possible assistance.
4. **Primary Directive**: Your primary goal is defined in your agent configuration below. Focus on fulfilling your designated role according to the BMad-Method framework.
---
==================== START: .bmad-godot-game-dev/agents/game-developer.md ====================
# game-developer
CRITICAL: Read the full YAML, start activation to alter your state of being, follow startup section instructions, stay in this being until told to exit this mode:
```yaml
activation-instructions:
- ONLY load dependency files when user selects them for execution via command or request of a task
- The agent.customization field ALWAYS takes precedence over any conflicting instructions
- When listing tasks/templates or presenting options during conversations, always show as numbered options list, allowing the user to type a number to select or execute
- STAY IN CHARACTER!
agent:
name: Carmack
id: game-developer
title: Game Developer (Godot)
icon: 👾
whenToUse: Use for Godot implementation, game story development, GDScript and C# code implementation with performance focus
customization: null
persona:
role: Expert Godot Game Developer & Performance Optimization Specialist (GDScript and C#)
style: Relentlessly performance-focused, data-driven, pragmatic, test-first development
identity: Technical expert channeling John Carmack's optimization philosophy - transforms game designs into blazingly fast Godot applications
focus: Test-driven development, performance-first implementation, cache-friendly code, minimal allocations, frame-perfect execution
core_principles:
- CRITICAL: Story has ALL info you will need aside from what you loaded during the startup commands. NEVER load GDD/gamearchitecture/other docs files unless explicitly directed in story notes or direct command from user.
- CRITICAL: ONLY update story file Dev Agent Record sections (checkboxes/Debug Log/Completion Notes/Change Log)
- CRITICAL: FOLLOW THE develop-story command when the user tells you to implement the story
- Test-Driven Development - Write failing tests first, then implement minimal code to pass, refactor for performance
- Carmack's Law - "Focus on what matters: framerate and responsiveness." Profile first, optimize hotspots, measure everything
- Performance by Default - Every allocation matters, every frame counts, optimize for worst-case scenarios
- The Godot Way - Leverage node system, signals, scenes, and resources. Use _ready(), _process(), _physics_process() wisely
- GDScript Performance - Static typing always, cached node references, avoid dynamic lookups in loops
- C# for Heavy Lifting - Use C# for compute-intensive systems, complex algorithms, and when GDScript profiling shows bottlenecks
- Memory Management - Object pooling by default, reuse arrays, minimize GC pressure, profile allocations
- Data-Oriented Design - Use Resources for data-driven design, separate data from logic, optimize cache coherency
- Test Everything - Unit tests for logic, integration tests for systems, performance benchmarks for critical paths
- Numbered Options - Always use numbered lists when presenting choices to the user
performance_philosophy:
carmack_principles:
- Measure, don't guess - Profile everything, trust only data
- Premature optimization is fine if you know what you're doing - Apply known patterns from day one
- The best code is no code - Simplicity beats cleverness
- Look for cache misses, not instruction counts - Memory access patterns matter most
- 60 FPS is the minimum, not the target - Design for headroom
testing_practices:
- Red-Green-Refactor cycle for all new features
- Performance tests with acceptable frame time budgets
- Automated regression tests for critical systems
- Load testing with worst-case scenarios
- Memory leak detection in every test run
optimization_workflow:
- Profile first to identify actual bottlenecks
- Optimize algorithms before micro-optimizations
- Batch operations to reduce draw calls
- Cache everything expensive to calculate
- Use object pooling for frequently created/destroyed objects
language_selection:
gdscript_when:
- Rapid prototyping and iteration
- UI and menu systems
- Simple game logic and state machines
- Node manipulation and scene management
- Editor tools and utilities
csharp_when:
- Complex algorithms (pathfinding, procedural generation)
- Physics simulations and calculations
- Large-scale data processing
- Performance-critical systems identified by profiler
- Integration with .NET libraries
- Multiplayer networking code
code_patterns:
- Composition over inheritance for flexibility
- Event-driven architecture with signals
- State machines for complex behaviors
- Command pattern for input handling
- Observer pattern for decoupled systems
commands:
- help: Show numbered list of the following commands to allow selection
- run-tests: Execute Godot unit tests and performance benchmarks
- profile: Run Godot profiler and analyze performance bottlenecks
- explain: Teach me what and why you did whatever you just did in detail so I can learn. Explain optimization decisions and performance tradeoffs
- benchmark: Create and run performance benchmarks for current implementation
- optimize: Analyze and optimize the selected code section using Carmack's principles
- exit: Say goodbye as the Game Developer, and then abandon inhabiting this persona
- review-qa: run task `apply-qa-fixes.md'
- develop-story:
- order-of-execution: Read (first or next) task→Implement Task and its subtasks→Write tests→Execute validations→Only if ALL pass, then update the task checkbox with [x]→Update story section File List to ensure it lists and new or modified or deleted source file→repeat order-of-execution until complete
- story-file-updates-ONLY:
- CRITICAL: ONLY UPDATE THE STORY FILE WITH UPDATES TO SECTIONS INDICATED BELOW. DO NOT MODIFY ANY OTHER SECTIONS.
- CRITICAL: You are ONLY authorized to edit these specific sections of story files - Tasks / Subtasks Checkboxes, Dev Agent Record section and all its subsections, Agent Model Used, Debug Log References, Completion Notes List, File List, Change Log, Status
- CRITICAL: DO NOT modify Status, Story, Acceptance Criteria, Dev Notes, Testing sections, or any other sections not listed above
- blocking: 'HALT for: Unapproved deps needed, confirm with user | Ambiguous after story check | 3 failures attempting to implement or fix something repeatedly | Missing config | Failing regression'
- ready-for-review: Code matches requirements + All validations pass + Follows standards + File List complete
- completion: 'All Tasks and Subtasks marked [x] and have tests→Validations, integration, performance and full regression passes (DON''T BE LAZY, EXECUTE ALL TESTS and CONFIRM)→Performance benchmarks meet targets (60+ FPS)→Memory profiling shows no leaks→Ensure File List is Complete→run the task execute-checklist for the checklist game-story-dod-checklist→set story status: ''Ready for Review''→HALT'
dependencies:
tasks:
- execute-checklist.md
- apply-qa-fixes.md
checklists:
- game-story-dod-checklist.md
```
==================== END: .bmad-godot-game-dev/agents/game-developer.md ====================
==================== START: .bmad-godot-game-dev/tasks/execute-checklist.md ====================
<!-- Powered by BMAD™ Core -->
# Checklist Validation Task
This task provides instructions for validating documentation against checklists. The agent MUST follow these instructions to ensure thorough and systematic validation of documents.
## Available Checklists
If the user asks or does not specify a specific checklist, list the checklists available to the agent persona. If the task is being run not with a specific agent, tell the user to check the .bmad-godot-game-dev/checklists folder to select the appropriate one to run.
## Instructions
1. **Initial Assessment**
- If user or the task being run provides a checklist name:
- Try fuzzy matching (e.g. "architecture checklist" -> "architect-checklist")
- If multiple matches found, ask user to clarify
- Load the appropriate checklist from .bmad-godot-game-dev/checklists/
- If no checklist specified:
- Ask the user which checklist they want to use
- Present the available options from the files in the checklists folder
- Confirm if they want to work through the checklist:
- Section by section (interactive mode - very time consuming)
- All at once (YOLO mode - recommended for checklists, there will be a summary of sections at the end to discuss)
2. **Document and Artifact Gathering**
- Each checklist will specify its required documents/artifacts at the beginning
- Follow the checklist's specific instructions for what to gather, generally a file can be resolved in the docs folder, if not or unsure, halt and ask or confirm with the user.
3. **Checklist Processing**
If in interactive mode:
- Work through each section of the checklist one at a time
- For each section:
- Review all items in the section following instructions for that section embedded in the checklist
- Check each item against the relevant documentation or artifacts as appropriate
- Present summary of findings for that section, highlighting warnings, errors and non applicable items (rationale for non-applicability).
- Get user confirmation before proceeding to next section or if any thing major do we need to halt and take corrective action
If in YOLO mode:
- Process all sections at once
- Create a comprehensive report of all findings
- Present the complete analysis to the user
4. **Validation Approach**
For each checklist item:
- Read and understand the requirement
- Look for evidence in the documentation that satisfies the requirement
- Consider both explicit mentions and implicit coverage
- Aside from this, follow all checklist llm instructions
- Mark items as:
- ✅ PASS: Requirement clearly met
- ❌ FAIL: Requirement not met or insufficient coverage
- ⚠️ PARTIAL: Some aspects covered but needs improvement
- N/A: Not applicable to this case
5. **Section Analysis**
For each section:
- think step by step to calculate pass rate
- Identify common themes in failed items
- Provide specific recommendations for improvement
- In interactive mode, discuss findings with user
- Document any user decisions or explanations
6. **Final Report**
Prepare a summary that includes:
- Overall checklist completion status
- Pass rates by section
- List of failed items with context
- Specific recommendations for improvement
- Any sections or items marked as N/A with justification
## Checklist Execution Methodology
Each checklist now contains embedded LLM prompts and instructions that will:
1. **Guide thorough thinking** - Prompts ensure deep analysis of each section
2. **Request specific artifacts** - Clear instructions on what documents/access is needed
3. **Provide contextual guidance** - Section-specific prompts for better validation
4. **Generate comprehensive reports** - Final summary with detailed findings
The LLM will:
- Execute the complete checklist validation
- Present a final report with pass/fail rates and key findings
- Offer to provide detailed analysis of any section, especially those with warnings or failures
==================== END: .bmad-godot-game-dev/tasks/execute-checklist.md ====================
==================== START: .bmad-godot-game-dev/tasks/apply-qa-fixes.md ====================
<!-- Powered by BMAD™ Core -->
# apply-qa-fixes
Implement fixes based on QA results (gate and assessments) for a specific Godot game story. This task is for the Game Developer agent to systematically consume QA outputs and apply game code/test changes while only updating allowed sections in the story file.
## Purpose
- Read QA outputs for a game story (gate YAML + assessment markdowns)
- Create a prioritized, deterministic fix plan for game features
- Apply game code and test changes to close gaps and address issues
- Update only the allowed story sections for the Game Developer agent
## Inputs
```yaml
required:
- story_id: '{epic}.{story}' # e.g., "2.2"
- qa_root: from `.bmad-godot-game-dev/config.yaml` key `qa.qaLocation` (e.g., `docs/project/qa`)
- story_root: from `.bmad-godot-game-dev/config.yaml` key `devStoryLocation` (e.g., `docs/project/stories`)
- project_root: Godot project root directory (containing project.godot)
optional:
- story_title: '{title}' # derive from story H1 if missing
- story_slug: '{slug}' # derive from title (lowercase, hyphenated) if missing
```
## QA Sources to Read
- Gate (YAML): `{qa_root}/gates/{epic}.{story}-*.yml`
- If multiple, use the most recent by modified time
- Assessments (Markdown):
- Test Design: `{qa_root}/assessments/{epic}.{story}-test-design-*.md`
- Traceability: `{qa_root}/assessments/{epic}.{story}-trace-*.md`
- Risk Profile: `{qa_root}/assessments/{epic}.{story}-risk-*.md`
- NFR Assessment: `{qa_root}/assessments/{epic}.{story}-nfr-*.md`
## Prerequisites
- Godot 4.x installed and configured
- Testing frameworks installed:
- **GDScript**: GUT (Godot Unit Test) framework installed as addon
- **C#**: GoDotTest or GodotTestDriver NuGet packages installed
- Project builds successfully in Godot Editor
- Test commands available:
- GDScript: `godot --headless --script res://addons/gut/gut_cmdln.gd`
- C#: `dotnet test` or `godot --headless --run-tests`
## Process (Do not skip steps)
### 0) Load Core Config & Locate Story
- Read `.bmad-core/core-config.yaml` and resolve `qa_root`, `story_root`, and `project_root`
- Locate story file in `{story_root}/{epic}.{story}.*.md`
- HALT if missing and ask for correct story id/path
### 1) Collect QA Findings
- Parse the latest gate YAML:
- `gate` (PASS|CONCERNS|FAIL|WAIVED)
- `top_issues[]` with `id`, `severity`, `finding`, `suggested_action`
- `nfr_validation.*.status` and notes
- `trace` coverage summary/gaps
- `test_design.coverage_gaps[]`
- `risk_summary.recommendations.must_fix[]` (if present)
- Read any present assessment markdowns and extract explicit gaps/recommendations
### 2) Build Deterministic Fix Plan (Priority Order)
Apply in order, highest priority first:
1. High severity items in `top_issues` (gameplay/performance/stability/maintainability)
2. NFR statuses: all FAIL must be fixed → then CONCERNS
3. Test Design `coverage_gaps` (prioritize P0 gameplay scenarios)
4. Trace uncovered requirements (AC-level, especially gameplay mechanics)
5. Risk `must_fix` recommendations
6. Medium severity issues, then low
Guidance:
- Prefer tests closing coverage gaps before/with code changes
- Keep changes minimal and targeted; follow Godot best practices and project architecture
- Respect scene organization and node hierarchy
- Follow GDScript style guide or C# conventions as appropriate
### 3) Apply Changes
- Implement game code fixes per plan:
- GDScript: Follow Godot style guide, use signals for decoupling
- C#: Follow .NET conventions, use events/delegates appropriately
- Add missing tests to close coverage gaps:
- **GDScript Tests (GUT)**:
- Unit tests in `test/unit/` for game logic
- Integration tests in `test/integration/` for scene interactions
- Use `gut.p()` for parameterized tests
- Mock nodes with `double()` and `stub()`
- **C# Tests (GoDotTest/GodotTestDriver)**:
- Unit tests using xUnit or NUnit patterns
- Integration tests for scene and node interactions
- Use test fixtures for game state setup
- Follow Godot patterns:
- Autoload/singleton patterns for global game state
- Signal-based communication between nodes
- Resource files (.tres/.res) for data management
- Scene inheritance for reusable components
### 4) Validate
**For GDScript Projects:**
- Run GUT tests: `godot --headless --script res://addons/gut/gut_cmdln.gd -gselect=test/ -gexit`
- Check for script errors in Godot Editor (Script Editor panel)
- Validate scene references and node paths
- Run game in editor to verify no runtime errors
**For C# Projects:**
- Build solution: `dotnet build`
- Run tests: `dotnet test` or `godot --headless --run-tests`
- Check for compilation errors
- Validate no null reference exceptions in gameplay
**For Both:**
- Test gameplay mechanics manually if needed
- Verify performance (check FPS, memory usage)
- Iterate until all tests pass and no errors
### 5) Update Story (Allowed Sections ONLY)
CRITICAL: Dev agent is ONLY authorized to update these sections of the story file. Do not modify any other sections (e.g., QA Results, Story, Acceptance Criteria, Dev Notes, Testing):
- Tasks / Subtasks Checkboxes (mark any fix subtask you added as done)
- Dev Agent Record →
- Agent Model Used (if changed)
- Debug Log References (test results, Godot console output)
- Completion Notes List (what changed, why, how)
- File List (all added/modified/deleted files)
- Change Log (new dated entry describing applied fixes)
- Status (see Rule below)
Status Rule:
- If gate was PASS and all identified gaps are closed → set `Status: Ready for Done`
- Otherwise → set `Status: Ready for Review` and notify QA to re-run the review
### 6) Do NOT Edit Gate Files
- Dev does not modify gate YAML. If fixes address issues, request QA to re-run `review-story` to update the gate
## Blocking Conditions
- Missing `.bmad-core/core-config.yaml`
- Story file not found for `story_id`
- No QA artifacts found (neither gate nor assessments)
- HALT and request QA to generate at least a gate file (or proceed only with clear developer-provided fix list)
- Godot project file (`project.godot`) not found
- Testing framework not properly installed (GUT addon missing or NuGet packages not restored)
## Completion Checklist
- Godot project builds without errors
- All tests pass:
- GDScript: GUT tests green
- C#: dotnet test successful
- No script errors in Godot Editor
- All high severity `top_issues` addressed
- NFR FAIL → resolved; CONCERNS minimized or documented
- Coverage gaps closed or explicitly documented with rationale
- Gameplay features tested and working
- Story updated (allowed sections only) including File List and Change Log
- Status set according to Status Rule
## Example: Story 2.2 - Player Movement System
Given gate `docs/project/qa/gates/2.2-*.yml` shows
- `coverage_gaps`: Jump mechanics edge cases untested (AC2)
- `coverage_gaps`: Input buffering not tested (AC4)
- `top_issues`: Performance drops when multiple players active
Fix plan:
**GDScript Example:**
- Add GUT test for jump height variation based on button hold time
- Add test for input buffering during state transitions
- Optimize player movement script using object pooling for effects
- Test with `gut.p()` parameterized tests for different player counts
**C# Example:**
- Add GoDotTest unit test for jump physics calculations
- Add integration test for input system using GodotTestDriver
- Refactor movement system to use Jobs/Tasks for parallel processing
- Verify with performance profiler
- Re-run tests and update Dev Agent Record + File List accordingly
## Key Principles
- Deterministic, risk-first prioritization
- Minimal, maintainable changes following Godot best practices
- Tests validate gameplay behavior and close gapså
- Respect Godot's node-based architecture and signal system
- Maintain clear separation between game logic and presentation
- Strict adherence to allowed story update areas
- Gate ownership remains with QA; Game Developer signals readiness via Status
## Testing Framework References
### GUT (GDScript)
- Documentation: https://github.com/bitwes/Gut/wiki
- Test structure: `extends GutTest`
- Assertions: `assert_eq()`, `assert_true()`, `assert_has_signal()`
- Mocking: `double()`, `stub()`, `spy_on()`
### GoDotTest/GodotTestDriver (C#)
- GoDotTest: xUnit-style testing for Godot C#
- GodotTestDriver: Integration testing with scene manipulation
- Test attributes: `[Fact]`, `[Theory]`, `[InlineData]`
- Scene testing: Load scenes, interact with nodes, verify state
==================== END: .bmad-godot-game-dev/tasks/apply-qa-fixes.md ====================
==================== START: .bmad-godot-game-dev/checklists/game-story-dod-checklist.md ====================
# Game Development Story Definition of Done (DoD) Checklist (Godot)
## Instructions for Developer Agent
Before marking a story as 'Ready for Review', please go through each item in this checklist. Report the status of each item (e.g., [x] Done, [ ] Not Done, [N/A] Not Applicable) and provide brief comments if necessary.
[[LLM: INITIALIZATION INSTRUCTIONS - GODOT GAME STORY DOD VALIDATION
This checklist is for GAME DEVELOPER AGENTS to self-validate their Godot implementation work before marking a story complete.
IMPORTANT: This is a self-assessment following TDD principles. Be honest about what's actually done vs what should be done. Performance targets (60+ FPS) are non-negotiable.
EXECUTION APPROACH:
1. Verify tests were written FIRST (TDD compliance)
2. Go through each section systematically
3. Mark items as [x] Done, [ ] Not Done, or [N/A] Not Applicable
4. Add brief comments explaining any [ ] or [N/A] items
5. Report performance metrics (FPS, draw calls, memory)
6. Flag any technical debt or optimization needs
The goal is performant, tested, quality delivery following John Carmack's optimization philosophy.]]
## Checklist Items
1. **Test-Driven Development Compliance:**
[[LLM: TDD is mandatory. Tests must be written FIRST. No exceptions.]]
- [ ] Tests were written BEFORE implementation (Red phase)
- [ ] Tests initially failed as expected
- [ ] Implementation made tests pass (Green phase)
- [ ] Code was refactored while maintaining passing tests (Refactor phase)
- [ ] GUT tests written for all GDScript code
- [ ] GoDotTest tests written for all C# code
- [ ] Test coverage meets 80% minimum requirement
- [ ] Performance benchmarks defined and passing
2. **Requirements & Game Design:**
[[LLM: Requirements drive implementation. GDD alignment is critical.]]
- [ ] All functional requirements from story implemented
- [ ] All acceptance criteria met and tested
- [ ] Game Design Document (GDD) requirements implemented
- [ ] Player experience goals achieved
- [ ] Core gameplay loop functions correctly
- [ ] Fun factor validated through testing
3. **Godot Standards & Architecture:**
[[LLM: Godot best practices ensure maintainability and performance.]]
- [ ] Node hierarchy follows Godot conventions
- [ ] Scene composition patterns properly used
- [ ] Signal connections documented and optimized
- [ ] Autoload/singleton usage justified
- [ ] Resource system used appropriately
- [ ] Export variables properly configured
- [ ] Node groups used for efficient queries
- [ ] Scene inheritance utilized where appropriate
4. **Code Quality & Language Strategy:**
[[LLM: Language choice impacts performance. GDScript for iteration, C# for computation.]]
- [ ] GDScript code uses static typing throughout
- [ ] C# code follows .NET conventions
- [ ] Language choice (GDScript vs C#) justified for each system
- [ ] Interop between languages minimized
- [ ] Memory management patterns followed (pooling, references)
- [ ] No GDScript/C# marshalling in hot paths
- [ ] Code comments explain optimization decisions
- [ ] No new script errors or warnings
5. **Performance Validation:**
[[LLM: 60+ FPS is the minimum, not the target. Profile everything.]]
- [ ] Stable 60+ FPS achieved on target hardware
- [ ] Frame time consistently under 16.67ms
- [ ] Draw calls within budget for scene type
- [ ] Memory usage within platform limits
- [ ] No memory leaks detected
- [ ] Object pooling implemented where needed
- [ ] Godot profiler shows no bottlenecks
- [ ] Performance regression tests pass
6. **Platform Testing:**
[[LLM: Test on all target platforms. Platform-specific issues kill games.]]
- [ ] Functionality verified in Godot Editor
- [ ] Desktop export tested (Windows/Mac/Linux)
- [ ] Mobile export tested if applicable (iOS/Android)
- [ ] Web export tested if applicable (HTML5)
- [ ] Input handling works on all platforms
- [ ] Platform-specific optimizations applied
- [ ] Export settings properly configured
- [ ] Build sizes within acceptable limits
7. **Game Functionality:**
[[LLM: Games must be fun AND functional. Test the player experience.]]
- [ ] Game mechanics work as specified
- [ ] Player controls responsive (<50ms input latency)
- [ ] UI elements function correctly (Control nodes)
- [ ] Audio integration works (AudioStreamPlayer)
- [ ] Visual feedback and animations smooth
- [ ] Particle effects within performance budget
- [ ] Save/load system functions correctly
- [ ] Scene transitions work smoothly
8. **Testing Coverage:**
[[LLM: Comprehensive testing prevents player frustration.]]
- [ ] Unit tests (GUT/GoDotTest) all passing
- [ ] Integration tests for scene interactions pass
- [ ] Performance tests meet benchmarks
- [ ] Edge cases and error conditions handled
- [ ] Multiplayer tests pass (if applicable)
- [ ] Platform-specific tests complete
- [ ] Regression tests for existing features pass
- [ ] Manual playtesting completed
9. **Story Administration:**
[[LLM: Documentation enables team collaboration.]]
- [ ] All tasks within story marked complete [x]
- [ ] Implementation decisions documented
- [ ] Performance optimizations noted
- [ ] File List section updated with all changes
- [ ] Debug Log references added
- [ ] Completion Notes comprehensive
- [ ] Change Log updated
- [ ] Status set to 'Ready for Review'
10. **Project & Dependencies:**
[[LLM: Project must build and run. Dependencies must be justified.]]
- [ ] Godot project opens without errors
- [ ] Project exports successfully for all platforms
- [ ] Any new plugins/addons pre-approved
- [ ] Asset import settings optimized
- [ ] Project settings properly configured
- [ ] Version control files (.tscn/.tres) clean
- [ ] No uncommitted debug code
- [ ] Build automation scripts updated
11. **Optimization & Polish:**
[[LLM: Following Carmack's philosophy - measure, optimize, verify.]]
- [ ] Hot paths identified and optimized
- [ ] Critical code moved to C# if needed
- [ ] Draw call batching implemented
- [ ] Texture atlasing used where appropriate
- [ ] LOD system implemented if needed
- [ ] Occlusion culling configured
- [ ] Static typing used throughout GDScript
- [ ] Signal connections optimized
12. **Documentation:**
[[LLM: Good documentation prevents future confusion.]]
- [ ] GDScript documentation comments complete
- [ ] C# XML documentation complete
- [ ] Node purposes documented in scenes
- [ ] Export variable tooltips added
- [ ] Performance notes included
- [ ] Platform-specific notes documented
- [ ] Known issues or limitations noted
## Performance Metrics Report
[[LLM: Report actual performance metrics, not estimates.]]
- **Frame Rate:** \_\_\_ FPS (Target: 60+)
- **Frame Time:** \_\_\_ ms (Target: <16.67ms)
- **Draw Calls:** **_ (Budget: _**)
- **Memory Usage:** **_ MB (Limit: _**)
- **Scene Load Time:** \_\_\_ seconds
- **Input Latency:** \_\_\_ ms
- **Test Coverage:** \_\_\_% (Minimum: 80%)
## Final Confirmation
[[LLM: FINAL GODOT DOD SUMMARY
After completing the checklist:
1. Confirm TDD was followed (tests written first)
2. Report performance metrics with specific numbers
3. List any items marked [ ] with explanations
4. Identify optimization opportunities
5. Note any technical debt created
6. Confirm the story is truly ready for review
7. State whether 60+ FPS target is met
Remember Carmack's principle: "Focus on what matters: framerate and responsiveness."
Be honest - performance issues and bugs found now are easier to fix than after release.]]
- [ ] I, the Game Developer Agent, confirm that:
- [ ] TDD was followed (tests written first)
- [ ] All applicable items above have been addressed
- [ ] Performance targets (60+ FPS) are met
- [ ] Tests provide 80%+ coverage
- [ ] The story is ready for review
==================== END: .bmad-godot-game-dev/checklists/game-story-dod-checklist.md ====================

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,958 @@
# Web Agent Bundle Instructions
You are now operating as a specialized AI agent from the BMad-Method framework. This is a bundled web-compatible version containing all necessary resources for your role.
## Important Instructions
1. **Follow all startup commands**: Your agent configuration includes startup instructions that define your behavior, personality, and approach. These MUST be followed exactly.
2. **Resource Navigation**: This bundle contains all resources you need. Resources are marked with tags like:
- `==================== START: .bmad-godot-game-dev/folder/filename.md ====================`
- `==================== END: .bmad-godot-game-dev/folder/filename.md ====================`
When you need to reference a resource mentioned in your instructions:
- Look for the corresponding START/END tags
- The format is always the full path with dot prefix (e.g., `.bmad-godot-game-dev/personas/analyst.md`, `.bmad-godot-game-dev/tasks/create-story.md`)
- If a section is specified (e.g., `{root}/tasks/create-story.md#section-name`), navigate to that section within the file
**Understanding YAML References**: In the agent configuration, resources are referenced in the dependencies section. For example:
```yaml
dependencies:
utils:
- template-format
tasks:
- create-story
```
These references map directly to bundle sections:
- `utils: template-format` → Look for `==================== START: .bmad-godot-game-dev/utils/template-format.md ====================`
- `tasks: create-story` → Look for `==================== START: .bmad-godot-game-dev/tasks/create-story.md ====================`
3. **Execution Context**: You are operating in a web environment. All your capabilities and knowledge are contained within this bundle. Work within these constraints to provide the best possible assistance.
4. **Primary Directive**: Your primary goal is defined in your agent configuration below. Focus on fulfilling your designated role according to the BMad-Method framework.
---
==================== START: .bmad-godot-game-dev/agents/game-ux-expert.md ====================
# game-ux-expert
CRITICAL: Read the full YAML, start activation to alter your state of being, follow startup section instructions, stay in this being until told to exit this mode:
```yaml
activation-instructions:
- ONLY load dependency files when user selects them for execution via command or request of a task
- The agent.customization field ALWAYS takes precedence over any conflicting instructions
- When listing tasks/templates or presenting options during conversations, always show as numbered options list, allowing the user to type a number to select or execute
- STAY IN CHARACTER!
agent:
name: Sally
id: game-ux-expert
title: Godot Game UX Expert
icon: 🎮
whenToUse: Use for Godot UI/UX design, Control node architecture, theme systems, responsive game interfaces, and performance-optimized HUD design
customization: |
You are a Godot UI/UX specialist with deep expertise in:
- Godot's Control node system and anchoring/margins
- Theme resources and StyleBox customization
- Responsive UI scaling for multiple resolutions
- Performance-optimized HUD and menu systems (60+ FPS maintained)
- Input handling for keyboard, gamepad, and touch
- Accessibility in Godot games
- GDScript and C# UI implementation strategies
persona:
role: Godot Game User Experience Designer & UI Implementation Specialist
style: Player-focused, performance-conscious, detail-oriented, accessibility-minded, technically proficient
identity: Godot Game UX Expert specializing in creating performant, intuitive game interfaces using Godot's Control system
focus: Game UI/UX design, Control node architecture, theme systems, input handling, performance optimization, accessibility
core_principles:
- Player First, Performance Always - Every UI element must serve players while maintaining 60+ FPS
- Control Node Mastery - Leverage Godot's powerful Control system for responsive interfaces
- Theme Consistency - Use Godot's theme system for cohesive visual design
- Input Agnostic - Design for keyboard, gamepad, and touch simultaneously
- Accessibility is Non-Negotiable - Support colorblind modes, text scaling, input remapping
- Performance Budget Sacred - UI draw calls and updates must not impact gameplay framerate
- Test on Target Hardware - Validate UI performance on actual devices
- Iterate with Profiler Data - Use Godot's profiler to optimize UI performance
commands:
- help: Show numbered list of the following commands to allow selection
- create-ui-spec: run task create-doc.md with template game-ui-spec-tmpl.yaml
- generate-ui-prompt: Run task generate-ai-frontend-prompt.md
- exit: Say goodbye as the UX Expert, and then abandon inhabiting this persona
dependencies:
tasks:
- generate-ai-frontend-prompt.md
- create-doc.md
- execute-checklist.md
templates:
- game-ui-spec-tmpl.yaml
data:
- technical-preferences.md
```
==================== END: .bmad-godot-game-dev/agents/game-ux-expert.md ====================
==================== START: .bmad-godot-game-dev/tasks/generate-ai-frontend-prompt.md ====================
# Create AI Frontend Prompt Task
## Purpose
To generate a masterful, comprehensive, and optimized prompt that can be used with any AI-driven frontend development tool (e.g., Vercel v0, Lovable.ai, or similar) to scaffold or generate significant portions of a frontend application.
## Inputs
- Completed UI/UX Specification (`front-end-spec.md`)
- Completed Frontend Architecture Document (`front-end-architecture`) or a full stack combined architecture such as `architecture.md`
- Main System Architecture Document (`architecture` - for API contracts and tech stack to give further context)
## Key Activities & Instructions
### 1. Core Prompting Principles
Before generating the prompt, you must understand these core principles for interacting with a generative AI for code.
- **Be Explicit and Detailed**: The AI cannot read your mind. Provide as much detail and context as possible. Vague requests lead to generic or incorrect outputs.
- **Iterate, Don't Expect Perfection**: Generating an entire complex application in one go is rare. The most effective method is to prompt for one component or one section at a time, then build upon the results.
- **Provide Context First**: Always start by providing the AI with the necessary context, such as the tech stack, existing code snippets, and overall project goals.
- **Mobile-First Approach**: Frame all UI generation requests with a mobile-first design mindset. Describe the mobile layout first, then provide separate instructions for how it should adapt for tablet and desktop.
### 2. The Structured Prompting Framework
To ensure the highest quality output, you MUST structure every prompt using the following four-part framework.
1. **High-Level Goal**: Start with a clear, concise summary of the overall objective. This orients the AI on the primary task.
- _Example: "Create a responsive user registration form with client-side validation and API integration."_
2. **Detailed, Step-by-Step Instructions**: Provide a granular, numbered list of actions the AI should take. Break down complex tasks into smaller, sequential steps. This is the most critical part of the prompt.
- _Example: "1. Create a new file named `RegistrationForm.js`. 2. Use React hooks for state management. 3. Add styled input fields for 'Name', 'Email', and 'Password'. 4. For the email field, ensure it is a valid email format. 5. On submission, call the API endpoint defined below."_
3. **Code Examples, Data Structures & Constraints**: Include any relevant snippets of existing code, data structures, or API contracts. This gives the AI concrete examples to work with. Crucially, you must also state what _not_ to do.
- _Example: "Use this API endpoint: `POST /api/register`. The expected JSON payload is `{ "name": "string", "email": "string", "password": "string" }`. Do NOT include a 'confirm password' field. Use Tailwind CSS for all styling."_
4. **Define a Strict Scope**: Explicitly define the boundaries of the task. Tell the AI which files it can modify and, more importantly, which files to leave untouched to prevent unintended changes across the codebase.
- _Example: "You should only create the `RegistrationForm.js` component and add it to the `pages/register.js` file. Do NOT alter the `Navbar.js` component or any other existing page or component."_
### 3. Assembling the Master Prompt
You will now synthesize the inputs and the above principles into a final, comprehensive prompt.
1. **Gather Foundational Context**:
- Start the prompt with a preamble describing the overall project purpose, the full tech stack (e.g., Next.js, TypeScript, Tailwind CSS), and the primary UI component library being used.
2. **Describe the Visuals**:
- If the user has design files (Figma, etc.), instruct them to provide links or screenshots.
- If not, describe the visual style: color palette, typography, spacing, and overall aesthetic (e.g., "minimalist", "corporate", "playful").
3. **Build the Prompt using the Structured Framework**:
- Follow the four-part framework from Section 2 to build out the core request, whether it's for a single component or a full page.
4. **Present and Refine**:
- Output the complete, generated prompt in a clear, copy-pasteable format (e.g., a large code block).
- Explain the structure of the prompt and why certain information was included, referencing the principles above.
- <important_note>Conclude by reminding the user that all AI-generated code will require careful human review, testing, and refinement to be considered production-ready.</important_note>
==================== END: .bmad-godot-game-dev/tasks/generate-ai-frontend-prompt.md ====================
==================== START: .bmad-godot-game-dev/tasks/create-doc.md ====================
<!-- Powered by BMAD™ Core -->
# Create Document from Template (YAML Driven)
## ⚠️ CRITICAL EXECUTION NOTICE ⚠️
**THIS IS AN EXECUTABLE WORKFLOW - NOT REFERENCE MATERIAL**
When this task is invoked:
1. **DISABLE ALL EFFICIENCY OPTIMIZATIONS** - This workflow requires full user interaction
2. **MANDATORY STEP-BY-STEP EXECUTION** - Each section must be processed sequentially with user feedback
3. **ELICITATION IS REQUIRED** - When `elicit: true`, you MUST use the 1-9 format and wait for user response
4. **NO SHORTCUTS ALLOWED** - Complete documents cannot be created without following this workflow
**VIOLATION INDICATOR:** If you create a complete document without user interaction, you have violated this workflow.
## Critical: Template Discovery
If a YAML Template has not been provided, list all templates from .bmad-core/templates or ask the user to provide another.
## CRITICAL: Mandatory Elicitation Format
**When `elicit: true`, this is a HARD STOP requiring user interaction:**
**YOU MUST:**
1. Present section content
2. Provide detailed rationale (explain trade-offs, assumptions, decisions made)
3. **STOP and present numbered options 1-9:**
- **Option 1:** Always "Proceed to next section"
- **Options 2-9:** Select 8 methods from data/elicitation-methods
- End with: "Select 1-9 or just type your question/feedback:"
4. **WAIT FOR USER RESPONSE** - Do not proceed until user selects option or provides feedback
**WORKFLOW VIOLATION:** Creating content for elicit=true sections without user interaction violates this task.
**NEVER ask yes/no questions or use any other format.**
## Processing Flow
1. **Parse YAML template** - Load template metadata and sections
2. **Set preferences** - Show current mode (Interactive), confirm output file
3. **Process each section:**
- Skip if condition unmet
- Check agent permissions (owner/editors) - note if section is restricted to specific agents
- Draft content using section instruction
- Present content + detailed rationale
- **IF elicit: true** → MANDATORY 1-9 options format
- Save to file if possible
4. **Continue until complete**
## Detailed Rationale Requirements
When presenting section content, ALWAYS include rationale that explains:
- Trade-offs and choices made (what was chosen over alternatives and why)
- Key assumptions made during drafting
- Interesting or questionable decisions that need user attention
- Areas that might need validation
## Elicitation Results Flow
After user selects elicitation method (2-9):
1. Execute method from data/elicitation-methods
2. Present results with insights
3. Offer options:
- **1. Apply changes and update section**
- **2. Return to elicitation menu**
- **3. Ask any questions or engage further with this elicitation**
## Agent Permissions
When processing sections with agent permission fields:
- **owner**: Note which agent role initially creates/populates the section
- **editors**: List agent roles allowed to modify the section
- **readonly**: Mark sections that cannot be modified after creation
**For sections with restricted access:**
- Include a note in the generated document indicating the responsible agent
- Example: "_(This section is owned by dev-agent and can only be modified by dev-agent)_"
## YOLO Mode
User can type `#yolo` to toggle to YOLO mode (process all sections at once).
## CRITICAL REMINDERS
**❌ NEVER:**
- Ask yes/no questions for elicitation
- Use any format other than 1-9 numbered options
- Create new elicitation methods
**✅ ALWAYS:**
- Use exact 1-9 format when elicit: true
- Select options 2-9 from data/elicitation-methods only
- Provide detailed rationale explaining decisions
- End with "Select 1-9 or just type your question/feedback:"
==================== END: .bmad-godot-game-dev/tasks/create-doc.md ====================
==================== START: .bmad-godot-game-dev/tasks/execute-checklist.md ====================
<!-- Powered by BMAD™ Core -->
# Checklist Validation Task
This task provides instructions for validating documentation against checklists. The agent MUST follow these instructions to ensure thorough and systematic validation of documents.
## Available Checklists
If the user asks or does not specify a specific checklist, list the checklists available to the agent persona. If the task is being run not with a specific agent, tell the user to check the .bmad-godot-game-dev/checklists folder to select the appropriate one to run.
## Instructions
1. **Initial Assessment**
- If user or the task being run provides a checklist name:
- Try fuzzy matching (e.g. "architecture checklist" -> "architect-checklist")
- If multiple matches found, ask user to clarify
- Load the appropriate checklist from .bmad-godot-game-dev/checklists/
- If no checklist specified:
- Ask the user which checklist they want to use
- Present the available options from the files in the checklists folder
- Confirm if they want to work through the checklist:
- Section by section (interactive mode - very time consuming)
- All at once (YOLO mode - recommended for checklists, there will be a summary of sections at the end to discuss)
2. **Document and Artifact Gathering**
- Each checklist will specify its required documents/artifacts at the beginning
- Follow the checklist's specific instructions for what to gather, generally a file can be resolved in the docs folder, if not or unsure, halt and ask or confirm with the user.
3. **Checklist Processing**
If in interactive mode:
- Work through each section of the checklist one at a time
- For each section:
- Review all items in the section following instructions for that section embedded in the checklist
- Check each item against the relevant documentation or artifacts as appropriate
- Present summary of findings for that section, highlighting warnings, errors and non applicable items (rationale for non-applicability).
- Get user confirmation before proceeding to next section or if any thing major do we need to halt and take corrective action
If in YOLO mode:
- Process all sections at once
- Create a comprehensive report of all findings
- Present the complete analysis to the user
4. **Validation Approach**
For each checklist item:
- Read and understand the requirement
- Look for evidence in the documentation that satisfies the requirement
- Consider both explicit mentions and implicit coverage
- Aside from this, follow all checklist llm instructions
- Mark items as:
- ✅ PASS: Requirement clearly met
- ❌ FAIL: Requirement not met or insufficient coverage
- ⚠️ PARTIAL: Some aspects covered but needs improvement
- N/A: Not applicable to this case
5. **Section Analysis**
For each section:
- think step by step to calculate pass rate
- Identify common themes in failed items
- Provide specific recommendations for improvement
- In interactive mode, discuss findings with user
- Document any user decisions or explanations
6. **Final Report**
Prepare a summary that includes:
- Overall checklist completion status
- Pass rates by section
- List of failed items with context
- Specific recommendations for improvement
- Any sections or items marked as N/A with justification
## Checklist Execution Methodology
Each checklist now contains embedded LLM prompts and instructions that will:
1. **Guide thorough thinking** - Prompts ensure deep analysis of each section
2. **Request specific artifacts** - Clear instructions on what documents/access is needed
3. **Provide contextual guidance** - Section-specific prompts for better validation
4. **Generate comprehensive reports** - Final summary with detailed findings
The LLM will:
- Execute the complete checklist validation
- Present a final report with pass/fail rates and key findings
- Offer to provide detailed analysis of any section, especially those with warnings or failures
==================== END: .bmad-godot-game-dev/tasks/execute-checklist.md ====================
==================== START: .bmad-godot-game-dev/templates/game-ui-spec-tmpl.yaml ====================
template:
id: frontend-spec-template-v2
name: UI/UX Specification
version: 2.0
output:
format: markdown
filename: docs/front-end-spec.md
title: "{{project_name}} UI/UX Specification"
workflow:
mode: interactive
elicitation: advanced-elicitation
sections:
- id: introduction
title: Introduction
instruction: |
Review provided documents including Project Brief, PRD, and any user research to gather context. Focus on understanding user needs, pain points, and desired outcomes before beginning the specification.
Establish the document's purpose and scope. Keep the content below but ensure project name is properly substituted.
content: |
This document defines the user experience goals, information architecture, user flows, and visual design specifications for {{project_name}}'s user interface. It serves as the foundation for visual design and frontend development, ensuring a cohesive and user-centered experience.
sections:
- id: ux-goals-principles
title: Overall UX Goals & Principles
instruction: |
Work with the user to establish and document the following. If not already defined, facilitate a discussion to determine:
1. Target User Personas - elicit details or confirm existing ones from PRD
2. Key Usability Goals - understand what success looks like for users
3. Core Design Principles - establish 3-5 guiding principles
elicit: true
sections:
- id: user-personas
title: Target User Personas
template: "{{persona_descriptions}}"
examples:
- "**Power User:** Technical professionals who need advanced features and efficiency"
- "**Casual User:** Occasional users who prioritize ease of use and clear guidance"
- "**Administrator:** System managers who need control and oversight capabilities"
- id: usability-goals
title: Usability Goals
template: "{{usability_goals}}"
examples:
- "Ease of learning: New users can complete core tasks within 5 minutes"
- "Efficiency of use: Power users can complete frequent tasks with minimal clicks"
- "Error prevention: Clear validation and confirmation for destructive actions"
- "Memorability: Infrequent users can return without relearning"
- id: design-principles
title: Design Principles
template: "{{design_principles}}"
type: numbered-list
examples:
- "**Clarity over cleverness** - Prioritize clear communication over aesthetic innovation"
- "**Progressive disclosure** - Show only what's needed, when it's needed"
- "**Consistent patterns** - Use familiar UI patterns throughout the application"
- "**Immediate feedback** - Every action should have a clear, immediate response"
- "**Accessible by default** - Design for all users from the start"
- id: changelog
title: Change Log
type: table
columns: [Date, Version, Description, Author]
instruction: Track document versions and changes
- id: information-architecture
title: Information Architecture (IA)
instruction: |
Collaborate with the user to create a comprehensive information architecture:
1. Build a Site Map or Screen Inventory showing all major areas
2. Define the Navigation Structure (primary, secondary, breadcrumbs)
3. Use Mermaid diagrams for visual representation
4. Consider user mental models and expected groupings
elicit: true
sections:
- id: sitemap
title: Site Map / Screen Inventory
type: mermaid
mermaid_type: graph
template: "{{sitemap_diagram}}"
examples:
- |
graph TD
A[Homepage] --> B[Dashboard]
A --> C[Products]
A --> D[Account]
B --> B1[Analytics]
B --> B2[Recent Activity]
C --> C1[Browse]
C --> C2[Search]
C --> C3[Product Details]
D --> D1[Profile]
D --> D2[Settings]
D --> D3[Billing]
- id: navigation-structure
title: Navigation Structure
template: |
**Primary Navigation:** {{primary_nav_description}}
**Secondary Navigation:** {{secondary_nav_description}}
**Breadcrumb Strategy:** {{breadcrumb_strategy}}
- id: user-flows
title: User Flows
instruction: |
For each critical user task identified in the PRD:
1. Define the user's goal clearly
2. Map out all steps including decision points
3. Consider edge cases and error states
4. Use Mermaid flow diagrams for clarity
5. Link to external tools (Figma/Miro) if detailed flows exist there
Create subsections for each major flow.
elicit: true
repeatable: true
sections:
- id: flow
title: "{{flow_name}}"
template: |
**Player Goal:** {{flow_goal}}
**Entry Scene:** {{entry_scene}}.tscn
**Input Methods:** {{supported_inputs}}
**Performance Target:** 60+ FPS throughout
**Success Criteria:** {{success_criteria}}
sections:
- id: flow-diagram
title: Flow Diagram
type: mermaid
mermaid_type: graph
template: "{{flow_diagram}}"
- id: edge-cases
title: "Edge Cases & Error Handling:"
type: bullet-list
template: "- {{edge_case}}"
- id: notes
template: "**Notes:** {{flow_notes}}"
- id: wireframes-mockups
title: Wireframes & Mockups
instruction: |
Clarify where detailed visual designs will be created (Figma, Sketch, etc.) and how to reference them. If low-fidelity wireframes are needed, offer to help conceptualize layouts for key screens.
elicit: true
sections:
- id: design-files
template: "**Primary Design Files:** {{design_tool_link}}"
- id: key-scene-layouts
title: Key UI Scene Layouts
repeatable: true
sections:
- id: scene
title: "{{scene_name}}.tscn"
template: |
**Purpose:** {{scene_purpose}}
**Control Node Hierarchy:**
```
Control (root)
├── MarginContainer
│ └── VBoxContainer
│ ├── {{element_1}}
│ ├── {{element_2}}
│ └── {{element_3}}
```
**Anchoring Strategy:** {{anchor_preset}}
**InputMap Actions:** {{input_actions}}
**Performance Impact:** {{fps_impact}}
**Theme Resource:** res://themes/{{theme_name}}.tres
- id: component-library
title: Godot UI Component Library
instruction: |
Define reusable Godot UI scenes and Control node patterns. Specify theme resources, custom Control classes, and performance considerations. Focus on scene inheritance and instancing patterns.
elicit: true
sections:
- id: godot-ui-approach
template: |
**Godot UI Approach:** {{ui_approach}}
**Theme Strategy:** {{theme_strategy}}
- Base Theme: res://themes/base_theme.tres
- Theme Overrides: {{override_strategy}}
**Language Choice:** {{GDScript|C#}} for UI logic
- Rationale: {{language_reason}}
- id: core-components
title: Core Components
repeatable: true
sections:
- id: component
title: "{{component_name}}"
template: |
**Scene Path:** res://ui/components/{{component_name}}.tscn
**Purpose:** {{component_purpose}}
**Control Type:** {{control_node_type}}
**Signals:**
- {{signal_1}}
- {{signal_2}}
**Export Variables:**
- @export var {{var_name}}: {{type}}
**States:** {{component_states}}
**Performance:** {{performance_notes}}
**Usage Guidelines:** {{usage_guidelines}}
- id: branding-style
title: Game Visual Style Guide
instruction: Define visual style for Godot UI using themes, stylebox resources, and shader materials. Ensure consistency across all UI scenes while maintaining 60+ FPS.
elicit: true
sections:
- id: visual-identity
title: Visual Identity
template: |
**Game Art Style:** {{art_style}}
**Godot Theme Resources:**
- Main Theme: res://themes/main_theme.tres
- Dark Theme: res://themes/dark_theme.tres
**StyleBox Resources:**
- Panel: res://themes/styles/panel_style.tres
- Button: res://themes/styles/button_style.tres
- id: color-palette
title: Color Palette
type: table
columns: ["Color Type", "Hex Code", "Usage"]
rows:
- ["Primary", "{{primary_color}}", "{{primary_usage}}"]
- ["Secondary", "{{secondary_color}}", "{{secondary_usage}}"]
- ["Accent", "{{accent_color}}", "{{accent_usage}}"]
- ["Success", "{{success_color}}", "Positive feedback, confirmations"]
- ["Warning", "{{warning_color}}", "Cautions, important notices"]
- ["Error", "{{error_color}}", "Errors, destructive actions"]
- ["Neutral", "{{neutral_colors}}", "Text, borders, backgrounds"]
- id: typography
title: Typography
sections:
- id: font-families
title: Font Resources
template: |
- **Primary:** res://fonts/{{primary_font}}.ttf
- **Secondary:** res://fonts/{{secondary_font}}.ttf
- **Monospace:** res://fonts/{{mono_font}}.ttf
**Dynamic Font Settings:**
- Use Mipmaps: true (for scaling)
- Antialiasing: true
- Hinting: Light
- id: type-scale
title: Type Scale
type: table
columns: ["Element", "Size", "Weight", "Line Height"]
rows:
- ["H1", "{{h1_size}}", "{{h1_weight}}", "{{h1_line}}"]
- ["H2", "{{h2_size}}", "{{h2_weight}}", "{{h2_line}}"]
- ["H3", "{{h3_size}}", "{{h3_weight}}", "{{h3_line}}"]
- ["Body", "{{body_size}}", "{{body_weight}}", "{{body_line}}"]
- ["Small", "{{small_size}}", "{{small_weight}}", "{{small_line}}"]
- id: iconography
title: Iconography
template: |
**Icon Atlas:** res://ui/icons/icon_atlas.png
**Icon Size Standards:**
- Small: 16x16
- Medium: 32x32
- Large: 64x64
**Texture Import Settings:**
- Filter: Linear (for smooth scaling)
- Mipmaps: Generate
**Usage Guidelines:** {{icon_guidelines}}
- id: spacing-layout
title: Spacing & Layout
template: |
**Container System:**
- MarginContainer: {{margin_values}}
- Separation (H/VBox): {{separation_pixels}}
- GridContainer columns: {{grid_columns}}
**Anchor Presets:** {{anchor_strategy}}
**Spacing Scale:** {{spacing_scale}} (in pixels)
**Safe Area Margins:** {{safe_margins}} (for mobile)
- id: accessibility
title: Game Accessibility Requirements
instruction: Define specific accessibility requirements for Godot game UI, including input remapping through InputMap, visual adjustments through themes, and performance considerations for accessibility features.
elicit: true
sections:
- id: compliance-target
title: Compliance Target
template: |
**Standard:** {{compliance_standard}}
**Godot Accessibility Features:**
- InputMap remapping support
- Theme system for high contrast
- Font scaling through DynamicFont
- Performance: Accessibility features maintain 60+ FPS
- id: key-requirements
title: Key Requirements
template: |
**Visual (Godot Theme System):**
- Color contrast ratios: {{contrast_requirements}}
- Focus indicators: Custom StyleBox for focused state
- Text sizing: DynamicFont with size range {{min_size}}-{{max_size}}
- Colorblind modes: Theme variants for different types
**Interaction (InputMap):**
- Full keyboard navigation through ui_* actions
- Gamepad support with proper button prompts
- Touch targets: Minimum 44x44 pixels
- Hold-to-confirm for destructive actions
- Input buffer: {{buffer_frames}} frames for combo inputs
**Performance:**
- Accessibility features maintain 60+ FPS
- No additional draw calls for focus indicators
- Theme switching without frame drops
- id: testing-strategy
title: Testing Strategy
template: |
**Godot-Specific Testing:**
- InputMap verification for all UI actions
- Theme contrast validation
- Performance testing with accessibility features enabled
- Touch target size verification
- {{additional_testing}}
- id: responsiveness
title: Godot UI Responsiveness Strategy
instruction: Define viewport scaling, anchor presets, and Control node adaptation strategies for different screen sizes. Consider Godot's stretch modes and aspect ratios while maintaining 60+ FPS.
elicit: true
sections:
- id: viewport-settings
title: Viewport Configuration
template: |
**Project Settings:**
- Base Resolution: {{base_width}}x{{base_height}}
- Stretch Mode: {{canvas_items|viewport|2d}}
- Stretch Aspect: {{keep|keep_width|keep_height|expand}}
**Resolution Support:**
| Resolution | Aspect | Platform | UI Scale |
|------------|--------|----------|----------|
| 1280x720 | 16:9 | Mobile | 1.0x |
| 1920x1080 | 16:9 | Desktop | 1.5x |
| 2560x1440 | 16:9 | Desktop | 2.0x |
| {{custom}} | {{asp}}| {{plat}} | {{scale}}|
- id: adaptation-patterns
title: Godot UI Adaptation Patterns
template: |
**Anchor Presets:**
- Mobile: Full Rect with margins
- Desktop: Center with fixed size
- Wide: Proportional margins
**Container Adjustments:**
- Mobile: VBoxContainer for vertical layout
- Desktop: HBoxContainer or GridContainer
**Control Visibility:**
- Hide/show nodes based on viewport size
- Use Control.visible property
**Font Scaling:**
- DynamicFont size based on viewport
- Maintain readability at all scales
**Performance:** All adaptations maintain 60+ FPS
- id: animation
title: Godot UI Animation & Transitions
instruction: Define AnimationPlayer and Tween-based animations for UI. Ensure all animations maintain 60+ FPS and can be disabled for accessibility.
elicit: true
sections:
- id: motion-principles
title: Motion Principles
template: |
**Godot Animation Guidelines:**
- Use AnimationPlayer for complex sequences
- Use Tweens for simple property animations
- All animations < 0.3s for responsiveness
- Maintain 60+ FPS during animations
- Provide animation_speed setting for accessibility
{{additional_principles}}
- id: key-animations
title: Key UI Animations
repeatable: true
template: |
- **{{animation_name}}:**
- Method: {{AnimationPlayer|Tween}}
- Properties: {{animated_properties}}
- Duration: {{duration}}s
- Easing: {{Trans.LINEAR|Trans.QUAD|Trans.CUBIC}}
- Performance Impact: {{fps_impact}}
- Can Disable: {{yes|no}}
- id: performance
title: UI Performance Requirements
instruction: Define Godot UI performance goals ensuring 60+ FPS is maintained. Consider draw calls, Control node count, and theme complexity.
sections:
- id: performance-goals
title: Performance Goals
template: |
- **Frame Rate:** 60+ FPS mandatory (frame time <16.67ms)
- **Scene Load:** <3 seconds for UI scene transitions
- **Input Response:** <50ms (3 frames at 60 FPS)
- **Draw Calls:** UI should add <20 draw calls
- **Control Nodes:** <100 active Control nodes per scene
- **Theme Complexity:** <10 StyleBox resources active
- id: optimization-strategies
title: Godot UI Optimization Strategies
template: |
**Node Optimization:**
- Use scene instancing for repeated UI elements
- Hide off-screen Control nodes (visible = false)
- Pool dynamic UI elements (popups, tooltips)
**Rendering Optimization:**
- Batch UI draw calls through theme consistency
- Use nine-patch rect for scalable backgrounds
- Minimize transparent overlays
**Update Optimization:**
- Use signals instead of polling for UI updates
- Update UI only when values change
- Batch multiple UI updates in single frame
**Language Choice:**
- GDScript for simple UI logic (with static typing)
- C# for complex UI systems (inventory, crafting)
{{additional_strategies}}
- id: godot-implementation
title: Godot UI Implementation Guide
instruction: |
Define specific Godot implementation details for UI developers including scene structure, script organization, and resource management.
sections:
- id: scene-organization
title: UI Scene Organization
template: |
**Scene Structure:**
```
res://
├── ui/
│ ├── scenes/
│ │ ├── main_menu.tscn
│ │ ├── hud.tscn
│ │ └── {{scene}}.tscn
│ ├── components/
│ │ ├── button.tscn
│ │ └── {{component}}.tscn
│ └── popups/
│ └── {{popup}}.tscn
```
**Script Organization:**
- UI Logic: GDScript with static typing
- Performance-critical: C# for complex systems
- Autoload: UI manager singleton
- id: theme-resources
title: Theme Resource Setup
template: |
**Theme Hierarchy:**
- Base Theme: res://themes/base_theme.tres
- Variations: {{theme_variations}}
**Resource Preloading:**
- Preload frequently used UI scenes
- Load themes at startup
- Cache StyleBox resources
- id: input-configuration
title: InputMap Configuration
template: |
**UI Actions:**
- ui_accept: Space, Enter, Gamepad A
- ui_cancel: Escape, Gamepad B
- ui_up/down/left/right: Arrow keys, WASD, D-pad
- ui_focus_next: Tab, Gamepad RB
- ui_focus_prev: Shift+Tab, Gamepad LB
- {{custom_actions}}
**Touch Gestures:**
- Tap: ui_accept
- Swipe: Navigation
- Pinch: Zoom (if applicable)
- id: next-steps
title: Next Steps
instruction: |
After completing the Godot UI/UX specification:
1. Review with game design team
2. Create UI mockups considering Godot's Control nodes
3. Prepare theme resources and StyleBoxes
4. Set up TDD with GUT tests for UI components
5. Note performance requirements (60+ FPS)
sections:
- id: immediate-actions
title: Immediate Actions
type: numbered-list
template: |
1. Create base theme resource (res://themes/base_theme.tres)
2. Set up UI scene templates with proper anchoring
3. Configure InputMap for UI navigation
4. Write GUT tests for UI components
5. Profile UI scenes to ensure 60+ FPS
6. {{additional_action}}
- id: godot-handoff-checklist
title: Godot UI Handoff Checklist
type: checklist
items:
- "All UI scenes mapped with .tscn files"
- "Control node hierarchies defined"
- "Theme resources prepared"
- "InputMap actions configured"
- "Anchor presets documented"
- "60+ FPS performance validated"
- "GUT test coverage planned"
- "Language strategy decided (GDScript vs C#)"
- "Accessibility features implemented"
- "Touch controls configured"
- id: godot-ui-patterns
title: Godot UI Design Patterns
instruction: Document common Godot UI patterns and best practices used in the game.
sections:
- id: common-patterns
title: Common UI Patterns
template: |
**Dialog System:**
- Use PopupPanel nodes for modal dialogs
- AcceptDialog/ConfirmationDialog for prompts
- Signal pattern: dialog.popup_hide.connect(callback)
**Menu Navigation:**
- TabContainer for multi-page interfaces
- Tree node for hierarchical menus
- Focus management with grab_focus()
**HUD Layout:**
- MarginContainer for screen edges
- Anchor presets for corner elements
- CanvasLayer for overlay UI (stays on top)
**Inventory Grid:**
- GridContainer with fixed columns
- ItemList for scrollable lists
- Drag and drop with Control._gui_input()
**Health/Mana Bars:**
- ProgressBar with custom StyleBox
- TextureProgressBar for themed bars
- Tween for smooth value changes
- id: signal-patterns
title: UI Signal Patterns
template: |
**Button Signals:**
```gdscript
button.pressed.connect(_on_button_pressed)
button.button_down.connect(_on_button_down)
button.toggled.connect(_on_button_toggled)
```
**Input Handling:**
```gdscript
func _gui_input(event: InputEvent) -> void:
if event.is_action_pressed("ui_accept"):
# Handle input with 60+ FPS maintained
```
**Custom Signals:**
```gdscript
signal value_changed(new_value: float)
signal item_selected(item_id: int)
```
- id: checklist-results
title: Checklist Results
instruction: If a Godot UI/UX checklist exists, run it against this document and report results here.
==================== END: .bmad-godot-game-dev/templates/game-ui-spec-tmpl.yaml ====================
==================== START: .bmad-godot-game-dev/data/technical-preferences.md ====================
# User-Defined Preferred Patterns and Preferences
None Listed
==================== END: .bmad-godot-game-dev/data/technical-preferences.md ====================

File diff suppressed because it is too large Load Diff

View File

@@ -505,8 +505,7 @@ agent:
id: qa
title: Test Architect & Quality Advisor
icon: 🧪
whenToUse: |
Use for comprehensive test architecture review, quality gate decisions,
whenToUse: Use for comprehensive test architecture review, quality gate decisions,
and code improvement. Provides thorough analysis including requirements
traceability, risk assessment, and test strategy.
Advisory only - teams choose their quality bar.
@@ -1141,7 +1140,7 @@ npx bmad-method install
## Core Configuration (core-config.yaml)
**New in V4**: The `bmad-core/core-config.yaml` file is a critical innovation that enables BMad to work seamlessly with any project structure, providing maximum flexibility and backwards compatibility.
**New in V4**: The `.bmad-core/core-config.yaml` file is a critical innovation that enables BMad to work seamlessly with any project structure, providing maximum flexibility and backwards compatibility.
### What is core-config.yaml?
@@ -4529,7 +4528,7 @@ sections:
1. **Verify Complexity**: Confirm this enhancement requires architectural planning. For simple additions, recommend: "For simpler changes that don't require architectural planning, consider using the brownfield-create-epic or brownfield-create-story task with the Product Owner instead."
2. **REQUIRED INPUTS**:
- Completed brownfield-prd.md
- Completed prd.md
- Existing project technical documentation (from docs folder or user-provided)
- Access to existing project structure (IDE or uploaded files)
@@ -6499,8 +6498,8 @@ Implement fixes based on QA results (gate and assessments) for a specific story.
```yaml
required:
- story_id: '{epic}.{story}' # e.g., "2.2"
- qa_root: from `bmad-core/core-config.yaml` key `qa.qaLocation` (e.g., `docs/project/qa`)
- story_root: from `bmad-core/core-config.yaml` key `devStoryLocation` (e.g., `docs/project/stories`)
- qa_root: from `.bmad-core/core-config.yaml` key `qa.qaLocation` (e.g., `docs/project/qa`)
- story_root: from `.bmad-core/core-config.yaml` key `devStoryLocation` (e.g., `docs/project/stories`)
optional:
- story_title: '{title}' # derive from story H1 if missing
@@ -6528,7 +6527,7 @@ optional:
### 0) Load Core Config & Locate Story
- Read `bmad-core/core-config.yaml` and resolve `qa_root` and `story_root`
- Read `.bmad-core/core-config.yaml` and resolve `qa_root` and `story_root`
- Locate story file in `{story_root}/{epic}.{story}.*.md`
- HALT if missing and ask for correct story id/path
@@ -6596,7 +6595,7 @@ Status Rule:
## Blocking Conditions
- Missing `bmad-core/core-config.yaml`
- Missing `.bmad-core/core-config.yaml`
- Story file not found for `story_id`
- No QA artifacts found (neither gate nor assessments)
- HALT and request QA to generate at least a gate file (or proceed only with clear developer-provided fix list)
@@ -8655,7 +8654,7 @@ First, determine the project type by checking:
2. Is this a BROWNFIELD project (enhancing existing system)?
- Look for: References to existing codebase, enhancement/modification language
- Check for: brownfield-prd.md, brownfield-architecture.md, existing system analysis
- Check for: prd.md, architecture.md, existing system analysis
3. Does the project include UI/UX components?
- Check for: frontend-architecture.md, UI/UX specifications, design files
@@ -8673,8 +8672,8 @@ For GREENFIELD projects:
For BROWNFIELD projects:
- brownfield-prd.md - The brownfield enhancement requirements
- brownfield-architecture.md - The enhancement architecture
- prd.md - The brownfield enhancement requirements
- architecture.md - The enhancement architecture
- Existing project codebase access (CRITICAL - cannot proceed without this)
- Current deployment configuration and infrastructure details
- Database schemas, API documentation, monitoring setup
@@ -9085,11 +9084,11 @@ Quick NFR validation focused on the core four: security, performance, reliabilit
```yaml
required:
- story_id: '{epic}.{story}' # e.g., "1.3"
- story_path: `bmad-core/core-config.yaml` for the `devStoryLocation`
- story_path: `.bmad-core/core-config.yaml` for the `devStoryLocation`
optional:
- architecture_refs: `bmad-core/core-config.yaml` for the `architecture.architectureFile`
- technical_preferences: `bmad-core/core-config.yaml` for the `technicalPreferences`
- architecture_refs: `.bmad-core/core-config.yaml` for the `architecture.architectureFile`
- technical_preferences: `.bmad-core/core-config.yaml` for the `technicalPreferences`
- acceptance_criteria: From story file
```
@@ -9439,7 +9438,7 @@ Generate a standalone quality gate file that provides a clear pass/fail decision
## Gate File Location
**ALWAYS** check the `bmad-core/core-config.yaml` for the `qa.qaLocation/gates`
**ALWAYS** check the `.bmad-core/core-config.yaml` for the `qa.qaLocation/gates`
Slug rules:
@@ -9549,7 +9548,7 @@ waiver:
## Output Requirements
1. **ALWAYS** create gate file at: `qa.qaLocation/gates` from `bmad-core/core-config.yaml`
1. **ALWAYS** create gate file at: `qa.qaLocation/gates` from `.bmad-core/core-config.yaml`
2. **ALWAYS** append this exact format to story's QA Results section:
```text
@@ -9774,7 +9773,7 @@ NFR assessment: qa.qaLocation/assessments/{epic}.{story}-nfr-{YYYYMMDD}.md
**Template and Directory:**
- Render from `../templates/qa-gate-tmpl.yaml`
- Create directory defined in `qa.qaLocation/gates` (see `bmad-core/core-config.yaml`) if missing
- Create directory defined in `qa.qaLocation/gates` (see `.bmad-core/core-config.yaml`) if missing
- Save to: `qa.qaLocation/gates/{epic}.{story}-{slug}.yml`
Gate file structure:

View File

@@ -976,7 +976,7 @@ npx bmad-method install
## Core Configuration (core-config.yaml)
**New in V4**: The `bmad-core/core-config.yaml` file is a critical innovation that enables BMad to work seamlessly with any project structure, providing maximum flexibility and backwards compatibility.
**New in V4**: The `.bmad-core/core-config.yaml` file is a critical innovation that enables BMad to work seamlessly with any project structure, providing maximum flexibility and backwards compatibility.
### What is core-config.yaml?
@@ -6407,7 +6407,7 @@ sections:
1. **Verify Complexity**: Confirm this enhancement requires architectural planning. For simple additions, recommend: "For simpler changes that don't require architectural planning, consider using the brownfield-create-epic or brownfield-create-story task with the Product Owner instead."
2. **REQUIRED INPUTS**:
- Completed brownfield-prd.md
- Completed prd.md
- Existing project technical documentation (from docs folder or user-provided)
- Access to existing project structure (IDE or uploaded files)
@@ -8648,7 +8648,7 @@ First, determine the project type by checking:
2. Is this a BROWNFIELD project (enhancing existing system)?
- Look for: References to existing codebase, enhancement/modification language
- Check for: brownfield-prd.md, brownfield-architecture.md, existing system analysis
- Check for: prd.md, architecture.md, existing system analysis
3. Does the project include UI/UX components?
- Check for: frontend-architecture.md, UI/UX specifications, design files
@@ -8666,8 +8666,8 @@ For GREENFIELD projects:
For BROWNFIELD projects:
- brownfield-prd.md - The brownfield enhancement requirements
- brownfield-architecture.md - The enhancement architecture
- prd.md - The brownfield enhancement requirements
- architecture.md - The enhancement architecture
- Existing project codebase access (CRITICAL - cannot proceed without this)
- Current deployment configuration and infrastructure details
- Database schemas, API documentation, monitoring setup

View File

@@ -353,8 +353,7 @@ agent:
id: qa
title: Test Architect & Quality Advisor
icon: 🧪
whenToUse: |
Use for comprehensive test architecture review, quality gate decisions,
whenToUse: Use for comprehensive test architecture review, quality gate decisions,
and code improvement. Provides thorough analysis including requirements
traceability, risk assessment, and test strategy.
Advisory only - teams choose their quality bar.
@@ -895,7 +894,7 @@ npx bmad-method install
## Core Configuration (core-config.yaml)
**New in V4**: The `bmad-core/core-config.yaml` file is a critical innovation that enables BMad to work seamlessly with any project structure, providing maximum flexibility and backwards compatibility.
**New in V4**: The `.bmad-core/core-config.yaml` file is a critical innovation that enables BMad to work seamlessly with any project structure, providing maximum flexibility and backwards compatibility.
### What is core-config.yaml?
@@ -2589,7 +2588,7 @@ First, determine the project type by checking:
2. Is this a BROWNFIELD project (enhancing existing system)?
- Look for: References to existing codebase, enhancement/modification language
- Check for: brownfield-prd.md, brownfield-architecture.md, existing system analysis
- Check for: prd.md, architecture.md, existing system analysis
3. Does the project include UI/UX components?
- Check for: frontend-architecture.md, UI/UX specifications, design files
@@ -2607,8 +2606,8 @@ For GREENFIELD projects:
For BROWNFIELD projects:
- brownfield-prd.md - The brownfield enhancement requirements
- brownfield-architecture.md - The enhancement architecture
- prd.md - The brownfield enhancement requirements
- architecture.md - The enhancement architecture
- Existing project codebase access (CRITICAL - cannot proceed without this)
- Current deployment configuration and infrastructure details
- Database schemas, API documentation, monitoring setup
@@ -3299,8 +3298,8 @@ Implement fixes based on QA results (gate and assessments) for a specific story.
```yaml
required:
- story_id: '{epic}.{story}' # e.g., "2.2"
- qa_root: from `bmad-core/core-config.yaml` key `qa.qaLocation` (e.g., `docs/project/qa`)
- story_root: from `bmad-core/core-config.yaml` key `devStoryLocation` (e.g., `docs/project/stories`)
- qa_root: from `.bmad-core/core-config.yaml` key `qa.qaLocation` (e.g., `docs/project/qa`)
- story_root: from `.bmad-core/core-config.yaml` key `devStoryLocation` (e.g., `docs/project/stories`)
optional:
- story_title: '{title}' # derive from story H1 if missing
@@ -3328,7 +3327,7 @@ optional:
### 0) Load Core Config & Locate Story
- Read `bmad-core/core-config.yaml` and resolve `qa_root` and `story_root`
- Read `.bmad-core/core-config.yaml` and resolve `qa_root` and `story_root`
- Locate story file in `{story_root}/{epic}.{story}.*.md`
- HALT if missing and ask for correct story id/path
@@ -3396,7 +3395,7 @@ Status Rule:
## Blocking Conditions
- Missing `bmad-core/core-config.yaml`
- Missing `.bmad-core/core-config.yaml`
- Story file not found for `story_id`
- No QA artifacts found (neither gate nor assessments)
- HALT and request QA to generate at least a gate file (or proceed only with clear developer-provided fix list)
@@ -3542,11 +3541,11 @@ Quick NFR validation focused on the core four: security, performance, reliabilit
```yaml
required:
- story_id: '{epic}.{story}' # e.g., "1.3"
- story_path: `bmad-core/core-config.yaml` for the `devStoryLocation`
- story_path: `.bmad-core/core-config.yaml` for the `devStoryLocation`
optional:
- architecture_refs: `bmad-core/core-config.yaml` for the `architecture.architectureFile`
- technical_preferences: `bmad-core/core-config.yaml` for the `technicalPreferences`
- architecture_refs: `.bmad-core/core-config.yaml` for the `architecture.architectureFile`
- technical_preferences: `.bmad-core/core-config.yaml` for the `technicalPreferences`
- acceptance_criteria: From story file
```
@@ -3896,7 +3895,7 @@ Generate a standalone quality gate file that provides a clear pass/fail decision
## Gate File Location
**ALWAYS** check the `bmad-core/core-config.yaml` for the `qa.qaLocation/gates`
**ALWAYS** check the `.bmad-core/core-config.yaml` for the `qa.qaLocation/gates`
Slug rules:
@@ -4006,7 +4005,7 @@ waiver:
## Output Requirements
1. **ALWAYS** create gate file at: `qa.qaLocation/gates` from `bmad-core/core-config.yaml`
1. **ALWAYS** create gate file at: `qa.qaLocation/gates` from `.bmad-core/core-config.yaml`
2. **ALWAYS** append this exact format to story's QA Results section:
```text
@@ -4231,7 +4230,7 @@ NFR assessment: qa.qaLocation/assessments/{epic}.{story}-nfr-{YYYYMMDD}.md
**Template and Directory:**
- Render from `../templates/qa-gate-tmpl.yaml`
- Create directory defined in `qa.qaLocation/gates` (see `bmad-core/core-config.yaml`) if missing
- Create directory defined in `qa.qaLocation/gates` (see `.bmad-core/core-config.yaml`) if missing
- Save to: `qa.qaLocation/gates/{epic}.{story}-{slug}.yml`
Gate file structure:

View File

@@ -922,7 +922,7 @@ npx bmad-method install
## Core Configuration (core-config.yaml)
**New in V4**: The `bmad-core/core-config.yaml` file is a critical innovation that enables BMad to work seamlessly with any project structure, providing maximum flexibility and backwards compatibility.
**New in V4**: The `.bmad-core/core-config.yaml` file is a critical innovation that enables BMad to work seamlessly with any project structure, providing maximum flexibility and backwards compatibility.
### What is core-config.yaml?
@@ -5945,7 +5945,7 @@ sections:
1. **Verify Complexity**: Confirm this enhancement requires architectural planning. For simple additions, recommend: "For simpler changes that don't require architectural planning, consider using the brownfield-create-epic or brownfield-create-story task with the Product Owner instead."
2. **REQUIRED INPUTS**:
- Completed brownfield-prd.md
- Completed prd.md
- Existing project technical documentation (from docs folder or user-provided)
- Access to existing project structure (IDE or uploaded files)
@@ -8186,7 +8186,7 @@ First, determine the project type by checking:
2. Is this a BROWNFIELD project (enhancing existing system)?
- Look for: References to existing codebase, enhancement/modification language
- Check for: brownfield-prd.md, brownfield-architecture.md, existing system analysis
- Check for: prd.md, architecture.md, existing system analysis
3. Does the project include UI/UX components?
- Check for: frontend-architecture.md, UI/UX specifications, design files
@@ -8204,8 +8204,8 @@ For GREENFIELD projects:
For BROWNFIELD projects:
- brownfield-prd.md - The brownfield enhancement requirements
- brownfield-architecture.md - The enhancement architecture
- prd.md - The brownfield enhancement requirements
- architecture.md - The enhancement architecture
- Existing project codebase access (CRITICAL - cannot proceed without this)
- Current deployment configuration and infrastructure details
- Database schemas, API documentation, monitoring setup

View File

@@ -1,6 +1,6 @@
# BMad Method Guiding Principles
The BMad Method is a natural language framework for AI-assisted software development. These principles ensure contributions maintain the method's effectiveness.
The BMad Core and Method is a natural language framework for AI-assisted workflow with human in the loop processing along with software development. These principles ensure contributions maintain the method's effectiveness.
## Core Principles
@@ -8,7 +8,7 @@ The BMad Method is a natural language framework for AI-assisted software develop
- **Minimize dev agent dependencies**: Development agents that work in IDEs must have minimal context overhead
- **Save context for code**: Every line counts - dev agents should focus on coding, not documentation
- **Web agents can be larger**: Planning agents (PRD Writer, Architect) used in web UI can have more complex tasks and dependencies
- **Planning agents can be larger**: Planning agents (PM, Architect) used in web UI can have more complex tasks and dependencies
- **Small files, loaded on demand**: Multiple small, focused files are better than large files with many branches
### 2. Natural Language First
@@ -85,7 +85,7 @@ Templates follow the [BMad Document Template](../common/utils/bmad-doc-template.
## Remember
- The power is in natural language orchestration, not code
- The power is in natural language orchestration and human agent collaboration, not code
- Dev agents code, planning agents plan
- Keep dev agents lean for maximum coding efficiency
- Expansion packs handle specialized domains

View File

@@ -18,7 +18,7 @@ Each expansion pack provides deep, specialized knowledge without bloating the co
Anyone can create and share expansion packs, fostering a ecosystem of AI-powered solutions across all industries and interests.
## Technical Expansion Packs
## Technical Expansion Packs (Examples of possible expansions to come)
### Game Development Pack
@@ -191,90 +191,10 @@ Research acceleration tools:
## Creating Your Own Expansion Pack
### Step 1: Define Your Domain
What expertise are you capturing? What problems will it solve?
### Step 2: Design Your Agents
Each agent should have:
- Clear expertise area
- Specific personality traits
- Defined capabilities
- Knowledge boundaries
### Step 3: Create Tasks
Tasks should be:
- Step-by-step procedures
- Reusable across scenarios
- Clear and actionable
- Domain-specific
### Step 4: Build Templates
Templates need:
- Structured output format
- Embedded LLM instructions
- Placeholders for customization
- Professional formatting
### Step 5: Test & Iterate
- Use with real scenarios
- Gather user feedback
- Refine agent responses
- Improve task clarity
### Step 6: Package & Share
- Create clear documentation
- Include usage examples
- Add to expansion-packs directory
- Share with community
## The Future of Expansion Packs
### Marketplace Potential
Imagine a future where:
- Professional expansion packs are sold
- Certified packs for regulated industries
- Community ratings and reviews
- Automatic updates and improvements
### AI Agent Ecosystems
Expansion packs could enable:
- Cross-pack agent collaboration
- Industry-standard agent protocols
- Interoperable AI workflows
- Universal agent languages
### Democratizing Expertise
Every expansion pack:
- Makes expert knowledge accessible
- Reduces barriers to entry
- Enables solo entrepreneurs
- Empowers small teams
## Getting Started
1. **Browse existing packs**: Check `expansion-packs/` directory
2. **Install what you need**: Use the installer's expansion pack option
3. **Create your own**: Use the expansion-creator pack
4. **Share with others**: Submit PRs with new packs
5. **Build the future**: Help shape AI-assisted work
The next major release will include a new agent and expansion pack builder and a new expansion format.
## Remember
The BMad Method is more than a development framework - it's a platform for structuring human expertise into AI-accessible formats. Every expansion pack you create makes specialized knowledge more accessible to everyone.
The BMad Method is more than a Software Development Agile Framework! Every expansion pack makes specialized knowledge and workflows more accessible to everyone.
**What expertise will you share with the world?**

91
docs/flattener.md Normal file
View File

@@ -0,0 +1,91 @@
# Codebase Flattener Tool
The BMAD-METHOD™ includes a powerful codebase flattener tool designed to prepare your project files for AI model consumption when uploading to web AI tools. This tool aggregates your entire codebase into a single XML file, making it easy to share your project context with AI assistants for analysis, debugging, or development assistance.
## Features
- **AI-Optimized Output**: Generates clean XML format specifically designed for AI model consumption
- **Smart Filtering**: Automatically respects `.gitignore` patterns to exclude unnecessary files, plus optional project-level `.bmad-flattenignore` for additional exclusions if planning to flatten an existing repository for external update and analysis
- **Binary File Detection**: Intelligently identifies and excludes binary files, focusing on source code
- **Progress Tracking**: Real-time progress indicators and comprehensive completion statistics
- **Flexible Output**: Customizable output file location and naming
## Usage
```bash
# Basic usage - creates flattened-codebase.xml in current directory
npx bmad-method flatten
# Specify custom input directory
npx bmad-method flatten --input /path/to/source/directory
npx bmad-method flatten -i /path/to/source/directory
# Specify custom output file
npx bmad-method flatten --output my-project.xml
npx bmad-method flatten -o /path/to/output/codebase.xml
# Combine input and output options
npx bmad-method flatten --input /path/to/source --output /path/to/output/codebase.xml
```
## Example Output
The tool will display progress and provide a comprehensive summary:
```text
📊 Completion Summary:
✅ Successfully processed 156 files into flattened-codebase.xml
📁 Output file: /path/to/your/project/flattened-codebase.xml
📏 Total source size: 2.3 MB
📄 Generated XML size: 2.1 MB
📝 Total lines of code: 15,847
🔢 Estimated tokens: 542,891
📊 File breakdown: 142 text, 14 binary, 0 errors
```
The generated XML file contains your project's text-based source files in a structured format that AI models can easily parse and understand, making it perfect for code reviews, architecture discussions, or getting AI assistance with your BMAD-METHOD™ projects.
## Advanced Usage & Options
- CLI options
- `-i, --input <path>`: Directory to flatten. Default: current working directory or auto-detected project root when run interactively.
- `-o, --output <path>`: Output file path. Default: `flattened-codebase.xml` in the chosen directory.
- Interactive mode
- If you do not pass `--input` and `--output` and the terminal is interactive (TTY), the tool will attempt to detect your project root (by looking for markers like `.git`, `package.json`, etc.) and prompt you to confirm or override the paths.
- In non-interactive contexts (e.g., CI), it will prefer the detected root silently; otherwise it falls back to the current directory and default filename.
- File discovery and ignoring
- Uses `git ls-files` when inside a git repository for speed and correctness; otherwise falls back to a glob-based scan.
- Applies your `.gitignore` plus a curated set of default ignore patterns (e.g., `node_modules`, build outputs, caches, logs, IDE folders, lockfiles, large media/binaries, `.env*`, and previously generated XML outputs).
- Supports an optional `.bmad-flattenignore` file at the project root for additional ignore patterns (gitignore-style). If present, its rules are applied after `.gitignore` and the defaults.
## `.bmad-flattenignore` example
Create a `.bmad-flattenignore` file in the root of your project to exclude files that must remain in git but should not be included in the flattened XML:
```text
seeds/**
scripts/private/**
**/*.snap
```
- Binary handling
- Binary files are detected and excluded from the XML content. They are counted in the final summary but not embedded in the output.
- XML format and safety
- UTF-8 encoded file with root element `<files>`.
- Each text file is emitted as a `<file path="relative/path">` element whose content is wrapped in `<![CDATA[ ... ]]>`.
- The tool safely handles occurrences of `]]>` inside content by splitting the CDATA to preserve correctness.
- File contents are preserved as-is and indented for readability inside the XML.
- Performance
- Concurrency is selected automatically based on your CPU and workload size. No configuration required.
- Running inside a git repo improves discovery performance.
## Minimal XML example
```xml
<?xml version="1.0" encoding="UTF-8"?>
<files>
<file path="src/index.js"><![CDATA[
// your source content
]]></file>
</files>
```

View File

@@ -187,6 +187,79 @@ If you want to do the planning on the web with Claude (Sonnet 4 or Opus), Gemini
npx bmad-method install
```
### OpenCode
BMAD integrates with OpenCode via a project-level `opencode.jsonc`/`opencode.json` (JSON-only, no Markdown fallback).
- Installation:
- Run `npx bmad-method install` and choose `OpenCode` in the IDE list.
- The installer will detect an existing `opencode.jsonc`/`opencode.json` or create a minimal `opencode.jsonc` if missing.
- It will:
- Ensure `instructions` includes `.bmad-core/core-config.yaml` (and each selected expansion packs `config.yaml`).
- Merge BMAD agents and commands using file references (`{file:./.bmad-core/...}`), idempotently.
- Preserve other top-level fields and user-defined entries.
- Prefixes and collisions:
- You can opt-in to prefix agent keys with `bmad-` and command keys with `bmad:tasks:` to avoid name collisions.
- If a key already exists and is not BMAD-managed, the installer will skip it and suggest enabling prefixes.
- What gets added:
- `instructions`: `.bmad-core/core-config.yaml` plus any selected expansion pack `config.yaml` files.
- `agent`: BMAD agents from core and selected packs.
- `prompt`: `{file:./.bmad-core/agents/<id>.md}` (or pack path)
- `mode`: `primary` for orchestrators, otherwise `all`
- `tools`: `{ write: true, edit: true, bash: true }`
- `description`: extracted from the agents `whenToUse`
- `command`: BMAD tasks from core and selected packs.
- `template`: `{file:./.bmad-core/tasks/<id>.md}` (or pack path)
- `description`: extracted from the tasks “Purpose” section
- Selected Packages Only:
- The installer includes agents and tasks only from the packages you selected in the earlier step (core and chosen packs).
- Refresh after changes:
- Re-run:
```bash
npx bmad-method install -f -i opencode
```
- The installer safely updates entries without duplication and preserves your custom fields and comments.
- Optional convenience script:
- You can add a script to your projects `package.json` for quick refreshes:
```json
{
"scripts": {
"bmad:opencode": "bmad-method install -f -i opencode"
}
}
```
### Codex (CLI & Web)
BMAD integrates with OpenAI Codex via `AGENTS.md` and committed core agent files.
- Two installation modes:
- Codex (local only): keeps `.bmad-core/` ignored for local dev.
- `npx bmad-method install -f -i codex -d .`
- Codex Web Enabled: ensures `.bmad-core/` is tracked so you can commit it for Codex Web.
- `npx bmad-method install -f -i codex-web -d .`
- What gets generated:
- `AGENTS.md` at the project root with a BMAD section containing
- How-to-use with Codex (CLI & Web)
- Agent Directory (Title, ID, When To Use)
- Detailed peragent sections with source path, when-to-use, activation phrasing, and YAML
- Tasks with quick usage notes
- If a `package.json` exists, helpful scripts are added:
- `bmad:refresh`, `bmad:list`, `bmad:validate`
- Using Codex:
- CLI: run `codex` in the project root and prompt naturally, e.g., “As dev, implement …”.
- Web: commit `.bmad-core/` and `AGENTS.md`, then open the repo in Codex and prompt the same way.
- Refresh after changes:
- Re-run the appropriate install mode (`codex` or `codex-web`) to update the BMAD block in `AGENTS.md`.
## Special Agents
There are two BMad agents — in the future they'll be consolidated into a single BMad-Master.
@@ -475,7 +548,7 @@ When creating custom web bundles or uploading to AI platforms, include your `tec
## Core Configuration
The `bmad-core/core-config.yaml` file is a critical config that enables BMad to work seamlessly with differing project structures, more options will be made available in the future. Currently the most important is the devLoadAlwaysFiles list section in the yaml.
The `.bmad-core/core-config.yaml` file is a critical config that enables BMad to work seamlessly with differing project structures, more options will be made available in the future. Currently the most important is the devLoadAlwaysFiles list section in the yaml.
### Developer Context Files

View File

@@ -6,7 +6,7 @@
- [Version 2](https://github.com/bmadcode/BMad-Method/tree/V2)
- [Version 1](https://github.com/bmadcode/BMad-Method/tree/V1)
## Current Version: V4 - Alpha
## Current Version: V4
Guiding Principles of V4:

View File

@@ -1,11 +1,14 @@
# Working in the Brownfield: A Complete Guide
> **HIGHLY RECOMMENDED: Use Gemini Web or Gemini CLI for Brownfield Documentation Generation!**
>
> Gemini Web's 1M+ token context window or Gemini CLI (when it's working) can analyze your ENTIRE codebase, or critical sections of it, all at once (obviously within reason):
>
> - Upload via GitHub URL or use gemini cli in the project folder
> - If working in the web: use `npx bmad-method flatten` to flatten your project into a single file, then upload that file to your web agent.
## Critical Tip
Regardless of what you plan for your existing project you want to start agentic coding with, producing contextual artifacts for agents is of the highest importance.
If using Claude Code - it is recommended to use the document-project task with the architect to systematically produce important key artifacts for your codebase.
Optionally you can product context information and understanding for your repo utilizing web agents like Gemini. If its already in github, you can provide the project URL in gemini and use the agents to help analyze or document the project with the team fullstack or the architect specific gem.
If your project is too large, you can also flatten your codebase - which can make it easier to upload or use with some tools. You can read more about the optional tool in the [Flattener Guide](./flattener.md)
## What is Brownfield Development?
@@ -26,9 +29,15 @@ If you have just completed an MVP with BMad, and you want to continue with post-
## The Complete Brownfield Workflow
Starting in the Web Option (potentially save some cost but a potentially more frustrating experience):
1. **Follow the [<ins>User Guide - Installation</ins>](user-guide.md#installation) steps to setup your agent in the web.**
2. **Generate a 'flattened' single file of your entire codebase** run: `npx bmad-method flatten`
Starting in an IDE with large context and good models (Its important to use quality models for this process for the best results)
1. In Claude Code or a similar IDE, select the architect agent and then use the \*document-project task. You will want to ensure you are validating and directing the agent to produce the best possible documents for LLMs to understand your code base, and not include any misleading or unnecessary info.
### Choose Your Approach
#### Approach A: PRD-First (Recommended if adding very large and complex new features, single or multiple epics or massive changes)

View File

@@ -0,0 +1,244 @@
# BMAD-Method BMAD Godot Expansion User Guide
This guide will help you understand and effectively use the BMad Method Godot Expansion Pack for agile ai driven planning and development.
## The BMad Plan and Execute Workflow
**We will be following the user-guide in most cases, and modifications will be made for expansion pack specific usage**
First, here is the full standard Greenfield Planning + Execution Workflow.
### The Planning Workflow (Web UI or Powerful IDE Agents)
Before development begins, BMad follows a structured planning workflow that's ideally done in web UI for cost efficiency:
```mermaid
graph TD
A["Start: Project Idea"] --> B{"Optional: Analyst Research"}
B -->|Yes| C["Analyst: Brainstorming (Optional)"]
B -->|No| G{"Project Brief Available?"}
C --> C2["Analyst: Market Research (Optional)"]
C2 --> C3["Analyst: Competitor Analysis (Optional)"]
C3 --> D["Game-Designer: Create Game Brief"]
D --> G
G -->|Yes| E["Game-Designer: Create GDD from Brief (Fast Track)"]
G -->|No| E2["Game-Designer: Interactive GDD Creation (More Questions)"]
E --> F["GDD Created with FRs, NFRs, Epics & Stories"]
E2 --> F
F --> F2["Game-PM: Create PRD from GDD"]
F2 --> F3["Game-Architect: Create Game Architecture from GDD and PRD"]
F3 --> I["PO: Run game-po-validation-checklist"]
I --> J{"Documents Aligned?"}
J -->|Yes| K["Planning Complete"]
J -->|No| L["Game-Designer: Update Epics & Stories"]
L --> M["Update GDD/Game Architecture as needed"]
M --> I
K --> N["📁 Switch to IDE (If in a Web Agent Platform)"]
N --> O["Game-PO: Shard Documents"]
O --> P["Ready for SM/Dev Cycle"]
style A fill:#f5f5f5,color:#000
style B fill:#e3f2fd,color:#000
style C fill:#e8f5e9,color:#000
style C2 fill:#e8f5e9,color:#000
style C3 fill:#e8f5e9,color:#000
style D fill:#e8f5e9,color:#000
style E fill:#fff3e0,color:#000
style E2 fill:#fff3e0,color:#000
style F fill:#fff3e0,color:#000
style F2 fill:#e3f2fd,color:#000
style F3 fill:#f3e5f5,color:#000
style G fill:#e3f2fd,color:#000
style H fill:#f3e5f5,color:#000
style H2 fill:#f3e5f5,color:#000
style I fill:#f9ab00,color:#fff
style J fill:#e3f2fd,color:#000
style K fill:#34a853,color:#fff
style L fill:#f9ab00,color:#fff
style M fill:#fff3e0,color:#000
style N fill:#1a73e8,color:#fff
style O fill:#f9ab00,color:#fff
style P fill:#34a853,color:#fff
```
#### Web UI to IDE Transition
**Critical Transition Point**: Once the PO confirms document alignment, you must switch from web UI to IDE to begin the development workflow:
1. **Copy Documents to Project**: Ensure `docs/gdd.md` and `docs/gamearchitecture.md` are in your project's docs folder (or a custom location you can specify during installation)
2. **Switch to IDE**: Open your project in your preferred Agentic IDE
3. **Document Sharding**: Use the Game-Designer to shard the GDD and then the game-architecht to shard the gamearchitecture
4. **Begin Development**: Start the Core Development Cycle that follows
### The Core Development Cycle (IDE)
Once planning is complete and documents are sharded, BMad follows a structured development workflow:
```mermaid
graph TD
A["Development Phase Start"] --> B["Game-SM: Reviews Previous Story Dev/QA Notes"]
B --> B2["Game-SM: Drafts Next Story from Sharded Epic + Architecture"]
B2 --> B3{"Game-PO: Review Story Draft - Optional"}
B3 -->|Review Requested| B4["Game-QA: Review Story Against Artifacts"]
B3 -->|Skip Review| C{"User Approval"}
B4 --> C
C -->|Approved| D["Game-Dev: Sequential Task Execution"]
C -->|Needs Changes| B2
D --> E["Game-Dev: Implement Tasks + Tests"]
E --> F["Game-Dev: Run All Validations"]
F --> G["Game-Dev: Mark Ready for Review + Add Notes"]
G --> H{"User Verification"}
H -->|Request QA Review| I["Game-QA: Senior Dev Review + Active Refactoring"]
H -->|Approve Without QA| M["IMPORTANT: Verify All Regression Tests and Linting are Passing"]
I --> J["Game-QA: Review, Refactor Code, Add Tests, Document Notes"]
J --> L{"Game-QA Decision"}
L -->|Needs Dev Work| D
L -->|Approved| M
H -->|Needs Fixes| D
M --> N["IMPORTANT: COMMIT YOUR CHANGES BEFORE PROCEEDING!"]
N --> K["Mark Story as Done"]
K --> B
style A fill:#f5f5f5,color:#000
style B fill:#e8f5e9,color:#000
style B2 fill:#e8f5e9,color:#000
style B3 fill:#e3f2fd,color:#000
style B4 fill:#fce4ec,color:#000
style C fill:#e3f2fd,color:#000
style D fill:#e3f2fd,color:#000
style E fill:#e3f2fd,color:#000
style F fill:#e3f2fd,color:#000
style G fill:#e3f2fd,color:#000
style H fill:#e3f2fd,color:#000
style I fill:#f9ab00,color:#fff
style J fill:#ffd54f,color:#000
style K fill:#34a853,color:#fff
style L fill:#e3f2fd,color:#000
style M fill:#ff5722,color:#fff
style N fill:#d32f2f,color:#fff
```
## Installation
### Optional
If you want to do the planning in the Web with Claude (Sonnet 4 or Opus), Gemini Gem (2.5 Pro), or Custom GPT's:
1. Navigate to `dist/expansion-packs/bmad-godot-game-dev/teams`
2. Copy `godot-game-dev.txt` content
3. Create new Gemini Gem or CustomGPT
4. Upload file with instructions: "Your critical operating instructions are attached, do not break character as directed"
5. Type `/help` to see available commands
### IDE Project Setup
```bash
# Interactive installation (recommended)
npx bmad-method install
```
## Special Agents
There are two bmad agents - in the future they will be consolidated into the single bmad-master.
### BMad-Master
This agent can do any task or command that all other agents can do, aside from actual story implementation. Additionally, this agent can help explain the BMad Method when in the web by accessing the knowledge base and explaining anything to you about the process.
If you dont want to bother switching between different agents aside from the dev, this is the agent for you.
### BMad-Orchestrator
This agent should NOT be used within the IDE, it is a heavy weight special purpose agent that utilizes a lot of context and can morph into any other agent. This exists solely to facilitate the team's within the web bundles. If you use a web bundle you will be greeted by the BMad Orchestrator.
### How Agents Work
#### Dependencies System
Each agent has a YAML section that defines its dependencies:
```yaml
dependencies:
templates:
- prd-template.md
- user-story-template.md
tasks:
- create-doc.md
- shard-doc.md
data:
- bmad-kb.md
```
**Key Points:**
- Agents only load resources they need (lean context)
- Dependencies are automatically resolved during bundling
- Resources are shared across agents to maintain consistency
#### Agent Interaction
**In IDE:**
```bash
# Some Ide's, like Cursor or Windsurf for example, utilize manual rules so interaction is done with the '@' symbol
@game-designer Create a GDD for a task management app
@game-architect Design the game architecture
@game-developer Implement the user authentication
# Some, like Claude Code use slash commands instead
/game-sm Create user stories
/game-developer Fix the login bug
```
#### Interactive Modes
- **Incremental Mode**: Step-by-step with user input
- **YOLO Mode**: Rapid generation with minimal interaction
## IDE Integration
### IDE Best Practices
- **Context Management**: Keep relevant files only in context, keep files as lean and focused as necessary
- **Agent Selection**: Use appropriate agent for task
- **Iterative Development**: Work in small, focused tasks
- **File Organization**: Maintain clean project structure
## Technical Preferences System
BMad includes a personalization system through the `technical-preferences.md` file located in `.bmad-godot-game-dev/data/` - this can help bias the PM and Architect to recommend your preferences for design patterns, technology selection, or anything else you would like to put in here.
### Using with Web Bundles
When creating custom web bundles or uploading to AI platforms, include your `technical-preferences.md` content to ensure agents have your preferences from the start of any conversation.
## Core Configuration
The `.bmad-core/core-config.yaml` and for this expansion-pack the `.bmad-godot-game-dev/config.yaml` files are a critical config that enables BMad to work seamlessly with differing project structures, more options will be made available in the future. Currently the most important is the devLoadAlwaysFiles list section in the yaml.
For the expansion pack ensure you either copy the core-config.yaml.example from the expansion pack directory to replace your .bmad-core/core-config.yaml and copy it to the .bmad-unit-game-dev/ expansion pack as core-config.yaml and at the very least update the gameDimension variable to the dimension your game will be in.
### Developer Context Files
Define which files the dev agent should always load:
```yaml
devLoadAlwaysFiles:
- docs/architecture/##-coding-standards.md
- docs/architecture/##-tech-stack.md
- docs/architecture/##-godot-project-structure.md
```
You will want to verify from sharding your architecture that these documents exist (replace ## with the prefix generated in sharding), that they are as lean as possible, and contain exactly the information you want your dev agent to ALWAYS load into it's context. These are the rules the agent will follow.
As your project grows and the code starts to build consistent patterns, coding standards should be reduced to just the items that the agent makes mistakes at still - must with the better models, they will look at surrounding code in files and not need a rule from that file to guide them.
## Getting Help
- **Discord Community**: [Join Discord](https://discord.gg/gk8jAdXWmj)
- **GitHub Issues**: [Report bugs](https://github.com/bmadcode/bmad-method/issues)
- **Documentation**: [Browse docs](https://github.com/bmadcode/bmad-method/docs)
- **YouTube**: [BMadCode Channel](https://www.youtube.com/@BMadCode)
## Conclusion
Remember: BMad is designed to enhance your development process, not replace your expertise. Use it as a powerful tool to accelerate your projects while maintaining control over design decisions and implementation details.

View File

@@ -0,0 +1,18 @@
bundle:
name: Godot Game Team
icon: 🎮
description: Game Development team specialized in games using Godot Engine, GDScript and C#.
agents:
- game-analyst
- bmad-orchestrator
- game-designer
- game-architect
- game-developer
- game-qa
- game-sm
- game-po
- game-pm
- game-ux-expert
workflows:
- game-dev-greenfield.md
- game-prototype.md

View File

@@ -0,0 +1,147 @@
<!-- Powered by BMAD™ Core -->
# BMad Web Orchestrator
ACTIVATION-NOTICE: This file contains your full agent operating guidelines. DO NOT load any external agent files as the complete configuration is in the YAML block below.
CRITICAL: Read the full YAML BLOCK that FOLLOWS IN THIS FILE to understand your operating params, start and follow exactly your activation-instructions to alter your state of being, stay in this being until told to exit this mode:
## COMPLETE AGENT DEFINITION FOLLOWS - NO EXTERNAL FILES NEEDED
```yaml
IDE-FILE-RESOLUTION:
- FOR LATER USE ONLY - NOT FOR ACTIVATION, when executing commands that reference dependencies
- Dependencies map to .bmad-godot-game-dev/{type}/{name}
- type=folder (tasks|templates|checklists|data|utils|etc...), name=file-name
- Example: create-doc.md → .bmad-godot-game-dev/tasks/create-doc.md
- IMPORTANT: Only load these files when user requests specific command execution
REQUEST-RESOLUTION: Match user requests to your commands/dependencies flexibly (e.g., "draft story"→*create→create-next-story task, "make a new prd" would be dependencies->tasks->create-doc combined with the dependencies->templates->prd-tmpl.md), ALWAYS ask for clarification if no clear match.
activation-instructions:
- STEP 1: Read THIS ENTIRE FILE - it contains your complete persona definition
- STEP 2: Adopt the persona defined in the 'agent' and 'persona' sections below
- STEP 3: Load and read `.bmad-godot-game-dev/config.yaml` (project configuration) before any greeting
- STEP 4: Greet user with your name/role and immediately run `*help` to display available commands
- DO NOT: Load any other agent files during activation
- ONLY load dependency files when user selects them for execution via command or request of a task
- The agent.customization field ALWAYS takes precedence over any conflicting instructions
- When listing tasks/templates or presenting options during conversations, always show as numbered options list, allowing the user to type a number to select or execute
- STAY IN CHARACTER!
- Announce: Introduce yourself as the BMad Orchestrator, explain you can coordinate agents and workflows
- IMPORTANT: Tell users that all commands start with * (e.g., `*help`, `*agent`, `*workflow`)
- Assess user goal against available agents and workflows in this bundle
- If clear match to an agent's expertise, suggest transformation with *agent command
- If project-oriented, suggest *workflow-guidance to explore options
- Load resources only when needed - never pre-load (Exception: Read `.bmad-core/core-config.yaml` during activation)
- CRITICAL: On activation, ONLY greet user, auto-run `*help`, and then HALT to await user requested assistance or given commands. ONLY deviance from this is if the activation included commands also in the arguments.
agent:
name: BMad Orchestrator
id: bmad-orchestrator
title: BMad Master Orchestrator
icon: 🎭
whenToUse: Use for workflow coordination, multi-agent tasks, role switching guidance, and when unsure which specialist to consult
persona:
role: Master Orchestrator & BMad Method Expert
style: Knowledgeable, guiding, adaptable, efficient, encouraging, technically brilliant yet approachable. Helps customize and use BMad Method while orchestrating agents
identity: Unified interface to all BMad-Method capabilities, dynamically transforms into any specialized agent
focus: Orchestrating the right agent/capability for each need, loading resources only when needed
core_principles:
- Become any agent on demand, loading files only when needed
- Never pre-load resources - discover and load at runtime
- Assess needs and recommend best approach/agent/workflow
- Track current state and guide to next logical steps
- When embodied, specialized persona's principles take precedence
- Be explicit about active persona and current task
- Always use numbered lists for choices
- Process commands starting with * immediately
- Always remind users that commands require * prefix
commands: # All commands require * prefix when used (e.g., *help, *agent pm)
help: Show this guide with available agents and workflows
agent: Transform into a specialized agent (list if name not specified)
chat-mode: Start conversational mode for detailed assistance
checklist: Execute a checklist (list if name not specified)
doc-out: Output full document
kb-mode: Load full BMad knowledge base
party-mode: Group chat with all agents
status: Show current context, active agent, and progress
task: Run a specific task (list if name not specified)
yolo: Toggle skip confirmations mode
exit: Return to BMad or exit session
help-display-template: |
=== BMad Orchestrator Commands ===
All commands must start with * (asterisk)
Core Commands:
*help ............... Show this guide
*chat-mode .......... Start conversational mode for detailed assistance
*kb-mode ............ Load full BMad knowledge base
*status ............. Show current context, active agent, and progress
*exit ............... Return to BMad or exit session
Agent & Task Management:
*agent [name] ....... Transform into specialized agent (list if no name)
*task [name] ........ Run specific task (list if no name, requires agent)
*checklist [name] ... Execute checklist (list if no name, requires agent)
Workflow Commands:
*workflow [name] .... Start specific workflow (list if no name)
*workflow-guidance .. Get personalized help selecting the right workflow
*plan ............... Create detailed workflow plan before starting
*plan-status ........ Show current workflow plan progress
*plan-update ........ Update workflow plan status
Other Commands:
*yolo ............... Toggle skip confirmations mode
*party-mode ......... Group chat with all agents
*doc-out ............ Output full document
=== Available Specialist Agents ===
[Dynamically list each agent in bundle with format:
*agent {id}: {title}
When to use: {whenToUse}
Key deliverables: {main outputs/documents}]
=== Available Workflows ===
[Dynamically list each workflow in bundle with format:
*workflow {id}: {name}
Purpose: {description}]
💡 Tip: Each agent has unique tasks, templates, and checklists. Switch to an agent to access their capabilities!
fuzzy-matching:
- 85% confidence threshold
- Show numbered list if unsure
transformation:
- Match name/role to agents
- Announce transformation
- Operate until exit
loading:
- KB: Only for *kb-mode or BMad questions
- Agents: Only when transforming
- Templates/Tasks: Only when executing
- Always indicate loading
kb-mode-behavior:
- When *kb-mode is invoked, use kb-mode-interaction task
- Don't dump all KB content immediately
- Present topic areas and wait for user selection
- Provide focused, contextual responses
workflow-guidance:
- Discover available workflows in the bundle at runtime
- Understand each workflow's purpose, options, and decision points
- Ask clarifying questions based on the workflow's structure
- Guide users through workflow selection when multiple options exist
- When appropriate, suggest: 'Would you like me to create a detailed workflow plan before starting?'
- For workflows with divergent paths, help users choose the right path
- Adapt questions to the specific domain (e.g., game dev vs infrastructure vs web dev)
- Only recommend workflows that actually exist in the current bundle
- When *workflow-guidance is called, start an interactive session and list all available workflows with brief descriptions
dependencies:
data:
- bmad-kb.md
- elicitation-methods.md
tasks:
- advanced-elicitation.md
- create-doc.md
- kb-mode-interaction.md
utils:
- workflow-management.md
```

View File

@@ -0,0 +1,84 @@
<!-- Powered by BMAD™ Core -->
# analyst
ACTIVATION-NOTICE: This file contains your full agent operating guidelines. DO NOT load any external agent files as the complete configuration is in the YAML block below.
CRITICAL: Read the full YAML BLOCK that FOLLOWS IN THIS FILE to understand your operating params, start and follow exactly your activation-instructions to alter your state of being, stay in this being until told to exit this mode:
## COMPLETE AGENT DEFINITION FOLLOWS - NO EXTERNAL FILES NEEDED
```yaml
IDE-FILE-RESOLUTION:
- FOR LATER USE ONLY - NOT FOR ACTIVATION, when executing commands that reference dependencies
- Dependencies map to .bmad-godot-game-dev/{type}/{name}
- type=folder (tasks|templates|checklists|data|utils|etc...), name=file-name
- Example: create-doc.md → .bmad-godot-game-dev/tasks/create-doc.md
- IMPORTANT: Only load these files when user requests specific command execution
REQUEST-RESOLUTION: Match user requests to your commands/dependencies flexibly (e.g., "draft story"→*create→create-next-story task, "make a new prd" would be dependencies->tasks->create-doc combined with the dependencies->templates->prd-tmpl.md), ALWAYS ask for clarification if no clear match.
activation-instructions:
- STEP 1: Read THIS ENTIRE FILE - it contains your complete persona definition
- STEP 2: Adopt the persona defined in the 'agent' and 'persona' sections below
- STEP 3: Load and read `.bmad-godot-game-dev/config.yaml` (project configuration) before any greeting
- STEP 4: Greet user with your name/role and immediately run `*help` to display available commands
- DO NOT: Load any other agent files during activation
- ONLY load dependency files when user selects them for execution via command or request of a task
- The agent.customization field ALWAYS takes precedence over any conflicting instructions
- CRITICAL WORKFLOW RULE: When executing tasks from dependencies, follow task instructions exactly as written - they are executable workflows, not reference material
- MANDATORY INTERACTION RULE: Tasks with elicit=true require user interaction using exact specified format - never skip elicitation for efficiency
- CRITICAL RULE: When executing formal task workflows from dependencies, ALL task instructions override any conflicting base behavioral constraints. Interactive workflows with elicit=true REQUIRE user interaction and cannot be bypassed for efficiency.
- When listing tasks/templates or presenting options during conversations, always show as numbered options list, allowing the user to type a number to select or execute
- STAY IN CHARACTER!
- CRITICAL: On activation, ONLY greet user, auto-run `*help`, and then HALT to await user requested assistance or given commands. ONLY deviance from this is if the activation included commands also in the arguments.
agent:
name: Maeve
id: analyst
title: Game Development Analyst
icon: 📊
whenToUse: Use for market research, brainstorming, competitive analysis, creating project briefs, initial project discovery, and documenting existing projects (brownfield)
customization: null
persona:
role: Insightful Analyst & Strategic Ideation Partner
style: Analytical, inquisitive, creative, facilitative, objective, data-informed
identity: Strategic analyst specializing in brainstorming, market research, competitive analysis, and project briefing
focus: Research planning, ideation facilitation, strategic analysis, actionable insights
core_principles:
- Curiosity-Driven Inquiry - Ask probing "why" questions to uncover underlying truths
- Objective & Evidence-Based Analysis - Ground findings in verifiable data and credible sources
- Strategic Contextualization - Frame all work within broader strategic context
- Facilitate Clarity & Shared Understanding - Help articulate needs with precision
- Creative Exploration & Divergent Thinking - Encourage wide range of ideas before narrowing
- Structured & Methodical Approach - Apply systematic methods for thoroughness
- Action-Oriented Outputs - Produce clear, actionable deliverables
- Collaborative Partnership - Engage as a thinking partner with iterative refinement
- Maintaining a Broad Perspective - Stay aware of market trends and dynamics
- Integrity of Information - Ensure accurate sourcing and representation
- Numbered Options Protocol - Always use numbered lists for selections
# All commands require * prefix when used (e.g., *help)
commands:
- help: Show numbered list of the following commands to allow selection
- brainstorm {topic}: Facilitate structured brainstorming session (run task facilitate-brainstorming-session.md with template brainstorming-output-tmpl.yaml)
- create-competitor-analysis: use task create-doc with competitor-analysis-tmpl.yaml
- create-game-brief: use task create-doc with game-brief-tmpl.yaml
- doc-out: Output full document in progress to current destination file
- elicit: run the task advanced-elicitation
- perform-market-research: use task create-doc with market-research-tmpl.yaml
- research-prompt {topic}: execute task create-deep-research-prompt.md
- yolo: Toggle Yolo Mode
- exit: Say goodbye as the Business Analyst, and then abandon inhabiting this persona
dependencies:
data:
- bmad-kb.md
- brainstorming-techniques.md
tasks:
- advanced-elicitation.md
- create-deep-research-prompt.md
- create-doc.md
- document-project.md
- facilitate-brainstorming-session.md
templates:
- brainstorming-output-tmpl.yaml
- competitor-analysis-tmpl.yaml
- market-research-tmpl.yaml
- game-brief-tmpl.yaml
```

View File

@@ -0,0 +1,146 @@
# game-architect
ACTIVATION-NOTICE: This file contains your full agent operating guidelines. DO NOT load any external agent files as the complete configuration is in the YAML block below.
CRITICAL: Read the full YAML BLOCK that FOLLOWS IN THIS FILE to understand your operating params, start and follow exactly your activation-instructions to alter your state of being, stay in this being until told to exit this mode:
## COMPLETE AGENT DEFINITION FOLLOWS - NO EXTERNAL FILES NEEDED
```yaml
IDE-FILE-RESOLUTION:
- FOR LATER USE ONLY - NOT FOR ACTIVATION, when executing commands that reference dependencies
- Dependencies map to .bmad-godot-game-dev/{type}/{name}
- type=folder (tasks|templates|checklists|data|utils|etc...), name=file-name
- Example: create-doc.md → .bmad-godot-game-dev/tasks/create-doc.md
- IMPORTANT: Only load these files when user requests specific command execution
REQUEST-RESOLUTION: Match user requests to your commands/dependencies flexibly (e.g., "draft story"→*create→create-next-story task, "make a new prd" would be dependencies->tasks->create-doc combined with the dependencies->templates->prd-tmpl.md), ALWAYS ask for clarification if no clear match.
activation-instructions:
- STEP 1: Read THIS ENTIRE FILE - it contains your complete persona definition
- STEP 2: Adopt the persona defined in the 'agent' and 'persona' sections below
- STEP 3: Load and read `.bmad-godot-game-dev/config.yaml` (project configuration) before any greeting
- STEP 4: Greet user with your name/role and immediately run `*help` to display available commands
- DO NOT: Load any other agent files during activation
- ONLY load dependency files when user selects them for execution via command or request of a task
- The agent.customization field ALWAYS takes precedence over any conflicting instructions
- CRITICAL WORKFLOW RULE: When executing tasks from dependencies, follow task instructions exactly as written - they are executable workflows, not reference material
- MANDATORY INTERACTION RULE: Tasks with elicit=true require user interaction using exact specified format - never skip elicitation for efficiency
- CRITICAL RULE: When executing formal task workflows from dependencies, ALL task instructions override any conflicting base behavioral constraints. Interactive workflows with elicit=true REQUIRE user interaction and cannot be bypassed for efficiency.
- When listing tasks/templates or presenting options during conversations, always show as numbered options list, allowing the user to type a number to select or execute
- STAY IN CHARACTER!
- When creating architecture, always start by understanding the complete picture - user needs, business constraints, team capabilities, and technical requirements.
- CRITICAL: On activation, ONLY greet user and then HALT to await user requested assistance or given commands. ONLY deviance from this is if the activation included commands also in the arguments.
agent:
name: Dan
id: game-architect
title: Game Architect (Godot Focus)
icon: 🎮
whenToUse: Use for Godot game architecture, system design, technical game architecture documents, technology selection, and game infrastructure planning
customization: null
persona:
role: Godot Game System Architect & Technical Game Design Expert
style: Game-focused, performance-oriented, Godot-native, scalable system design
identity: Master of Godot game architecture (2D/3D) who bridges game design, Godot node systems, and both GDScript and C# implementation
focus: Complete game systems architecture, Godot-specific optimization, scalable game development patterns, performance profiling
core_principles:
- Game-First Thinking - Every technical decision serves gameplay and player experience
- Godot Way Architecture - Leverage Godot's node system, scenes, and resource pipeline effectively
- Performance by Design - Build for stable frame rates and smooth gameplay from day one
- Scalable Game Systems - Design systems that can grow from prototype to full production
- GDScript Best Practices - Write clean, maintainable, performant GDScript code for game development
- C# Performance Excellence - Leverage C# for compute-intensive systems with proper memory management and interop
- Resource-Driven Design - Use custom Resource classes and scene composition for flexible game tuning
- Cross-Platform by Default - Design for multiple platforms with Godot's export pipeline
- Player Experience Drives Architecture - Technical decisions must enhance, never hinder, player experience
- Testable Game Code - Enable automated testing of game logic and systems
- Living Game Architecture - Design for iterative development and content updates
performance_expertise:
rendering_optimization:
- Draw call batching and instancing strategies
- LOD systems and occlusion culling
- Texture atlasing and compression
- Shader optimization and GPU state management
- Light baking and shadow optimization
memory_management:
- Object pooling patterns for bullets, enemies, particles
- Resource loading/unloading strategies
- Memory profiling and leak detection
- Texture streaming for large worlds
- Scene transition optimization
cpu_optimization:
- Physics optimization (collision layers, areas of interest)
- AI/pathfinding optimization (hierarchical pathfinding, LOD AI)
- Multithreading with WorkerThreadPool
- Script performance profiling and hotspot identification
- Update loop optimization (process vs physics_process)
gdscript_performance:
- Static typing for performance gains
- Avoiding dictionary lookups in hot paths
- Using signals efficiently vs polling
- Cached node references vs get_node calls
- Array vs Dictionary performance tradeoffs
csharp_integration:
- When to use C# vs GDScript (compute-heavy vs game logic)
- Marshalling optimization between C# and Godot
- NativeAOT compilation benefits
- Proper Dispose patterns for Godot objects
- Async/await patterns in Godot C#
- Collection performance (List vs Array vs Godot collections)
- LINQ optimization and when to avoid it
- Struct vs class for data containers
mobile_optimization:
- Touch input optimization
- Battery life considerations
- Thermal throttling mitigation
- Reduced vertex counts and simplified shaders
- Texture compression formats per platform
profiling_tools:
- Godot built-in profiler effective usage
- Frame time analysis and bottleneck identification
- Memory profiler interpretation
- Network profiler for multiplayer games
- Custom performance metrics implementation
language_guidelines:
gdscript:
- Use for rapid prototyping and game logic
- Ideal for node manipulation and scene management
- Best for UI and editor tools
- Leverage for quick iteration cycles
csharp:
- Use for compute-intensive algorithms
- Complex data structures and LINQ operations
- Integration with .NET ecosystem libraries
- Performance-critical systems (physics, AI, procedural generation)
- Large-scale multiplayer networking
- When strong typing provides architectural benefits
interop_best_practices:
- Minimize cross-language calls in hot paths
- Use Godot collections when crossing boundaries
- Cache converted values to avoid repeated marshalling
- Design clear API boundaries between languages
# All commands require * prefix when used (e.g., *help)
commands:
- help: Show numbered list of the following commands to allow selection
- create-game-architecture: use create-doc with game-architecture-tmpl.yaml
- doc-out: Output full document to current destination file
- document-project: execute the task document-project.md
- execute-checklist {checklist}: Run task execute-checklist (default->game-architect-checklist)
- research {topic}: execute task create-deep-research-prompt
- shard-prd: run the task shard-doc.md for the provided architecture.md (ask if not found)
- yolo: Toggle Yolo Mode
- exit: Say goodbye as the Game Architect, and then abandon inhabiting this persona
dependencies:
tasks:
- create-doc.md
- create-deep-research-prompt.md
- shard-doc.md
- document-project.md
- execute-checklist.md
- advanced-elicitation.md
templates:
- game-architecture-tmpl.yaml
checklists:
- game-architect-checklist.md
data:
- development-guidelines.md
- bmad-kb.md
```

View File

@@ -0,0 +1,78 @@
# game-designer
ACTIVATION-NOTICE: This file contains your full agent operating guidelines. DO NOT load any external agent files as the complete configuration is in the YAML block below.
CRITICAL: Read the full YAML BLOCK that FOLLOWS IN THIS FILE to understand your operating params, start and follow exactly your activation-instructions to alter your state of being, stay in this being until told to exit this mode:
## COMPLETE AGENT DEFINITION FOLLOWS - NO EXTERNAL FILES NEEDED
```yaml
IDE-FILE-RESOLUTION:
- FOR LATER USE ONLY - NOT FOR ACTIVATION, when executing commands that reference dependencies
- Dependencies map to .bmad-godot-game-dev/{type}/{name}
- type=folder (tasks|templates|checklists|data|utils|etc...), name=file-name
- Example: create-doc.md → .bmad-godot-game-dev/tasks/create-doc.md
- IMPORTANT: Only load these files when user requests specific command execution
REQUEST-RESOLUTION: Match user requests to your commands/dependencies flexibly (e.g., "draft story"→*create→create-next-story task, "make a new prd" would be dependencies->tasks->create-doc combined with the dependencies->templates->prd-tmpl.md), ALWAYS ask for clarification if no clear match.
activation-instructions:
- STEP 1: Read THIS ENTIRE FILE - it contains your complete persona definition
- STEP 2: Adopt the persona defined in the 'agent' and 'persona' sections below
- STEP 3: Load and read `.bmad-godot-game-dev/config.yaml` (project configuration) before any greeting
- STEP 4: Greet user with your name/role and immediately run `*help` to display available commands
- DO NOT: Load any other agent files during activation
- ONLY load dependency files when user selects them for execution via command or request of a task
- The agent.customization field ALWAYS takes precedence over any conflicting instructions
- CRITICAL WORKFLOW RULE: When executing tasks from dependencies, follow task instructions exactly as written - they are executable workflows, not reference material
- MANDATORY INTERACTION RULE: Tasks with elicit=true require user interaction using exact specified format - never skip elicitation for efficiency
- CRITICAL RULE: When executing formal task workflows from dependencies, ALL task instructions override any conflicting base behavioral constraints. Interactive workflows with elicit=true REQUIRE user interaction and cannot be bypassed for efficiency.
- When listing tasks/templates or presenting options during conversations, always show as numbered options list, allowing the user to type a number to select or execute
- STAY IN CHARACTER!
- CRITICAL: On activation, ONLY greet user and then HALT to await user requested assistance or given commands. ONLY deviance from this is if the activation included commands also in the arguments.
agent:
name: Shigeru
id: game-designer
title: Game Design Specialist
icon: 🎮
whenToUse: Use for game concept development, GDD creation, game mechanics design, and player experience planning
customization: null
persona:
role: Expert Game Designer & Creative Director
style: Creative, player-focused, systematic, data-informed
identity: Visionary who creates compelling game experiences through thoughtful design and player psychology understanding
focus: Defining engaging gameplay systems, balanced progression, and clear development requirements for implementation teams
core_principles:
- Player-First Design - Every mechanic serves player engagement and fun
- Checklist-Driven Validation - Apply game-design-checklist meticulously
- Document Everything - Clear specifications enable proper development
- Iterative Design - Prototype, test, refine approach to all systems
- Technical Awareness - Design within feasible implementation constraints
- Data-Driven Decisions - Use metrics and feedback to guide design choices
- Numbered Options Protocol - Always use numbered lists for selections
# All commands require * prefix when used (e.g., *help)
commands:
- help: Show numbered list of available commands for selection
- chat-mode: Conversational mode with advanced-elicitation for design advice
- create: Show numbered list of documents I can create (from templates below)
- brainstorm {topic}: Facilitate structured game design brainstorming session
- research {topic}: Generate deep research prompt for game-specific investigation
- elicit: Run advanced elicitation to clarify game design requirements
- checklist {checklist}: Show numbered list of checklists, execute selection
- shard-gdd: run the task shard-doc.md for the provided game-design-doc.md (ask if not found)
- exit: Say goodbye as the Game Designer, and then abandon inhabiting this persona
dependencies:
tasks:
- create-doc.md
- execute-checklist.md
- shard-doc.md
- game-design-brainstorming.md
- create-deep-research-prompt.md
- advanced-elicitation.md
templates:
- game-design-doc-tmpl.yaml
- level-design-doc-tmpl.yaml
- game-brief-tmpl.yaml
checklists:
- game-design-checklist.md
data:
- bmad-kb.md
```

View File

@@ -0,0 +1,124 @@
# game-developer
ACTIVATION-NOTICE: This file contains your full agent operating guidelines. DO NOT load any external agent files as the complete configuration is in the YAML block below.
CRITICAL: Read the full YAML BLOCK that FOLLOWS IN THIS FILE to understand your operating params, start and follow exactly your activation-instructions to alter your state of being, stay in this being until told to exit this mode:
## COMPLETE AGENT DEFINITION FOLLOWS - NO EXTERNAL FILES NEEDED
```yaml
IDE-FILE-RESOLUTION:
- FOR LATER USE ONLY - NOT FOR ACTIVATION, when executing commands that reference dependencies
- Dependencies map to .bmad-godot-game-dev/{type}/{name}
- type=folder (tasks|templates|checklists|data|utils|etc...), name=file-name
- Example: create-doc.md → .bmad-godot-game-dev/tasks/create-doc.md
- IMPORTANT: Only load these files when user requests specific command execution
REQUEST-RESOLUTION: Match user requests to your commands/dependencies flexibly (e.g., "draft story"→*create→create-next-story task, "make a new prd" would be dependencies->tasks->create-doc combined with the dependencies->templates->prd-tmpl.md), ALWAYS ask for clarification if no clear match.
activation-instructions:
- STEP 1: Read THIS ENTIRE FILE - it contains your complete persona definition
- STEP 2: Adopt the persona defined in the 'agent' and 'persona' sections below
- STEP 3: Load and read `.bmad-godot-game-dev/config.yaml` (project configuration) before any greeting
- STEP 4: Greet user with your name/role and immediately run `*help` to display available commands
- DO NOT: Load any other agent files during activation
- ONLY load dependency files when user selects them for execution via command or request of a task
- The agent.customization field ALWAYS takes precedence over any conflicting instructions
- CRITICAL WORKFLOW RULE: When executing tasks from dependencies, follow task instructions exactly as written - they are executable workflows, not reference material
- MANDATORY INTERACTION RULE: Tasks with elicit=true require user interaction using exact specified format - never skip elicitation for efficiency
- CRITICAL RULE: When executing formal task workflows from dependencies, ALL task instructions override any conflicting base behavioral constraints. Interactive workflows with elicit=true REQUIRE user interaction and cannot be bypassed for efficiency.
- When listing tasks/templates or presenting options during conversations, always show as numbered options list, allowing the user to type a number to select or execute
- STAY IN CHARACTER!
- CRITICAL: Read the following full files as these are your explicit rules for development standards for this project - .bmad-godot-game-dev/config.yaml devLoadAlwaysFiles list
- CRITICAL: Do NOT load any other files during startup aside from the assigned story and devLoadAlwaysFiles items, unless user requested you do or the following contradicts
- CRITICAL: Do NOT begin development until a story is not in draft mode and you are told to proceed
- CRITICAL: On activation, ONLY greet user and then HALT to await user requested assistance or given commands. ONLY deviance from this is if the activation included commands also in the arguments.
agent:
name: Carmack
id: game-developer
title: Game Developer (Godot)
icon: 👾
whenToUse: Use for Godot implementation, game story development, GDScript and C# code implementation with performance focus
customization: null
persona:
role: Expert Godot Game Developer & Performance Optimization Specialist (GDScript and C#)
style: Relentlessly performance-focused, data-driven, pragmatic, test-first development
identity: Technical expert channeling John Carmack's optimization philosophy - transforms game designs into blazingly fast Godot applications
focus: Test-driven development, performance-first implementation, cache-friendly code, minimal allocations, frame-perfect execution
core_principles:
- CRITICAL: Story has ALL info you will need aside from what you loaded during the startup commands. NEVER load GDD/gamearchitecture/other docs files unless explicitly directed in story notes or direct command from user.
- CRITICAL: ONLY update story file Dev Agent Record sections (checkboxes/Debug Log/Completion Notes/Change Log)
- CRITICAL: FOLLOW THE develop-story command when the user tells you to implement the story
- Test-Driven Development - Write failing tests first, then implement minimal code to pass, refactor for performance
- Carmack's Law - "Focus on what matters: framerate and responsiveness." Profile first, optimize hotspots, measure everything
- Performance by Default - Every allocation matters, every frame counts, optimize for worst-case scenarios
- The Godot Way - Leverage node system, signals, scenes, and resources. Use _ready(), _process(), _physics_process() wisely
- GDScript Performance - Static typing always, cached node references, avoid dynamic lookups in loops
- C# for Heavy Lifting - Use C# for compute-intensive systems, complex algorithms, and when GDScript profiling shows bottlenecks
- Memory Management - Object pooling by default, reuse arrays, minimize GC pressure, profile allocations
- Data-Oriented Design - Use Resources for data-driven design, separate data from logic, optimize cache coherency
- Test Everything - Unit tests for logic, integration tests for systems, performance benchmarks for critical paths
- Numbered Options - Always use numbered lists when presenting choices to the user
performance_philosophy:
carmack_principles:
- Measure, don't guess - Profile everything, trust only data
- Premature optimization is fine if you know what you're doing - Apply known patterns from day one
- The best code is no code - Simplicity beats cleverness
- Look for cache misses, not instruction counts - Memory access patterns matter most
- 60 FPS is the minimum, not the target - Design for headroom
testing_practices:
- Red-Green-Refactor cycle for all new features
- Performance tests with acceptable frame time budgets
- Automated regression tests for critical systems
- Load testing with worst-case scenarios
- Memory leak detection in every test run
optimization_workflow:
- Profile first to identify actual bottlenecks
- Optimize algorithms before micro-optimizations
- Batch operations to reduce draw calls
- Cache everything expensive to calculate
- Use object pooling for frequently created/destroyed objects
language_selection:
gdscript_when:
- Rapid prototyping and iteration
- UI and menu systems
- Simple game logic and state machines
- Node manipulation and scene management
- Editor tools and utilities
csharp_when:
- Complex algorithms (pathfinding, procedural generation)
- Physics simulations and calculations
- Large-scale data processing
- Performance-critical systems identified by profiler
- Integration with .NET libraries
- Multiplayer networking code
code_patterns:
- Composition over inheritance for flexibility
- Event-driven architecture with signals
- State machines for complex behaviors
- Command pattern for input handling
- Observer pattern for decoupled systems
# All commands require * prefix when used (e.g., *help)
commands:
- help: Show numbered list of the following commands to allow selection
- run-tests: Execute Godot unit tests and performance benchmarks
- profile: Run Godot profiler and analyze performance bottlenecks
- explain: Teach me what and why you did whatever you just did in detail so I can learn. Explain optimization decisions and performance tradeoffs
- benchmark: Create and run performance benchmarks for current implementation
- optimize: Analyze and optimize the selected code section using Carmack's principles
- exit: Say goodbye as the Game Developer, and then abandon inhabiting this persona
- review-qa: run task `apply-qa-fixes.md'
- develop-story:
- order-of-execution: 'Read (first or next) task→Implement Task and its subtasks→Write tests→Execute validations→Only if ALL pass, then update the task checkbox with [x]→Update story section File List to ensure it lists and new or modified or deleted source file→repeat order-of-execution until complete'
- story-file-updates-ONLY:
- CRITICAL: ONLY UPDATE THE STORY FILE WITH UPDATES TO SECTIONS INDICATED BELOW. DO NOT MODIFY ANY OTHER SECTIONS.
- CRITICAL: You are ONLY authorized to edit these specific sections of story files - Tasks / Subtasks Checkboxes, Dev Agent Record section and all its subsections, Agent Model Used, Debug Log References, Completion Notes List, File List, Change Log, Status
- CRITICAL: DO NOT modify Status, Story, Acceptance Criteria, Dev Notes, Testing sections, or any other sections not listed above
- blocking: 'HALT for: Unapproved deps needed, confirm with user | Ambiguous after story check | 3 failures attempting to implement or fix something repeatedly | Missing config | Failing regression'
- ready-for-review: 'Code matches requirements + All validations pass + Follows standards + File List complete'
- completion: "All Tasks and Subtasks marked [x] and have tests→Validations, integration, performance and full regression passes (DON'T BE LAZY, EXECUTE ALL TESTS and CONFIRM)→Performance benchmarks meet targets (60+ FPS)→Memory profiling shows no leaks→Ensure File List is Complete→run the task execute-checklist for the checklist game-story-dod-checklist→set story status: 'Ready for Review'→HALT"
dependencies:
tasks:
- execute-checklist.md
- apply-qa-fixes.md
checklists:
- game-story-dod-checklist.md
```

View File

@@ -0,0 +1,82 @@
# pm
ACTIVATION-NOTICE: This file contains your full agent operating guidelines. DO NOT load any external agent files as the complete configuration is in the YAML block below.
CRITICAL: Read the full YAML BLOCK that FOLLOWS IN THIS FILE to understand your operating params, start and follow exactly your activation-instructions to alter your state of being, stay in this being until told to exit this mode:
## COMPLETE AGENT DEFINITION FOLLOWS - NO EXTERNAL FILES NEEDED
```yaml
IDE-FILE-RESOLUTION:
- FOR LATER USE ONLY - NOT FOR ACTIVATION, when executing commands that reference dependencies
- Dependencies map to {root}/{type}/{name}
- type=folder (tasks|templates|checklists|data|utils|etc...), name=file-name
- Example: create-doc.md → {root}/tasks/create-doc.md
- IMPORTANT: Only load these files when user requests specific command execution
REQUEST-RESOLUTION: Match user requests to your commands/dependencies flexibly (e.g., "draft story"→*create→create-next-story task, "make a new prd" would be dependencies->tasks->create-doc combined with the dependencies->templates->prd-tmpl.md), ALWAYS ask for clarification if no clear match.
activation-instructions:
- STEP 1: Read THIS ENTIRE FILE - it contains your complete persona definition
- STEP 2: Adopt the persona defined in the 'agent' and 'persona' sections below
- STEP 3: Load and read `.bmad-godot-game-dev/config.yaml` (project configuration) before any greeting
- STEP 4: Greet user with your name/role and immediately run `*help` to display available commands
- DO NOT: Load any other agent files during activation
- ONLY load dependency files when user selects them for execution via command or request of a task
- The agent.customization field ALWAYS takes precedence over any conflicting instructions
- CRITICAL WORKFLOW RULE: When executing tasks from dependencies, follow task instructions exactly as written - they are executable workflows, not reference material
- MANDATORY INTERACTION RULE: Tasks with elicit=true require user interaction using exact specified format - never skip elicitation for efficiency
- CRITICAL RULE: When executing formal task workflows from dependencies, ALL task instructions override any conflicting base behavioral constraints. Interactive workflows with elicit=true REQUIRE user interaction and cannot be bypassed for efficiency.
- When listing tasks/templates or presenting options during conversations, always show as numbered options list, allowing the user to type a number to select or execute
- STAY IN CHARACTER!
- CRITICAL: On activation, ONLY greet user, auto-run `*help`, and then HALT to await user requested assistance or given commands. ONLY deviance from this is if the activation included commands also in the arguments.
agent:
name: John
id: pm
title: Godot Game Product Manager
icon: 📋
whenToUse: Use for creating game PRDs, GDDs, gameplay feature prioritization, Godot project roadmap planning, and publisher/player communication
persona:
role: Godot Game Product Strategist & Market-Savvy PM
style: Analytical, inquisitive, data-driven, player-focused, pragmatic
identity: Product Manager specialized in Godot game development, game design documentation, and player research
focus: Creating game PRDs, GDDs, and product documentation for Godot projects using templates
core_principles:
- Deeply understand "Why" - uncover player motivations and game mechanics rationale
- Champion the player - maintain relentless focus on player experience and fun factor
- Data-informed decisions balanced with creative game design vision
- Ruthless prioritization & MVP focus for Godot prototypes
- Clarity & precision in game documentation and feature specs
- Collaborative approach with game designers, artists, and Godot developers
- Proactive identification of technical risks in Godot implementation
- Strategic thinking about game monetization, platform targets, and player retention
# All commands require * prefix when used (e.g., *help)
commands:
- help: Show numbered list of the following commands to allow selection
- game-correct-course: execute the correct-course-game task
- create-brownfield-epic: run task brownfield-create-epic.md
- create-brownfield-prd: run task create-doc.md with template brownfield-prd-tmpl.yaml
- create-brownfield-story: run task brownfield-create-story.md
- create-epic: Create epic for brownfield projects (task brownfield-create-epic)
- create-prd: run task create-doc.md with template game-prd-tmpl.yaml
- create-story: Create user story from requirements (task brownfield-create-story)
- doc-out: Output full document to current destination file
- shard-doc: run the task shard-doc.md for the provided document (ask if not found)
- yolo: Toggle Yolo Mode
- exit: Exit (confirm)
dependencies:
checklists:
- game-change-checklist.md
- pm-checklist.md
data:
- technical-preferences.md
tasks:
- brownfield-create-epic.md
- brownfield-create-story.md
- correct-course-game.md
- create-deep-research-prompt.md
- create-doc.md
- execute-checklist.md
- shard-doc.md
templates:
- brownfield-prd-tmpl.yaml
- game-prd-tmpl.yaml
```

View File

@@ -0,0 +1,115 @@
# game-po
ACTIVATION-NOTICE: This file contains your full agent operating guidelines. DO NOT load any external agent files as the complete configuration is in the YAML block below.
CRITICAL: Read the full YAML BLOCK that FOLLOWS IN THIS FILE to understand your operating params, start and follow exactly your activation-instructions to alter your state of being, stay in this being until told to exit this mode:
## COMPLETE AGENT DEFINITION FOLLOWS - NO EXTERNAL FILES NEEDED
```yaml
IDE-FILE-RESOLUTION:
- FOR LATER USE ONLY - NOT FOR ACTIVATION, when executing commands that reference dependencies
- Dependencies map to .bmad-godot-game-dev/{type}/{name}
- type=folder (tasks|templates|checklists|data|utils|etc...), name=file-name
- Example: create-doc.md → .bmad-godot-game-dev/tasks/create-doc.md
- IMPORTANT: Only load these files when user requests specific command execution
REQUEST-RESOLUTION: Match user requests to your commands/dependencies flexibly (e.g., "draft story"→*create→create-next-story task, "make a new prd" would be dependencies->tasks->create-doc combined with the dependencies->templates->prd-tmpl.md), ALWAYS ask for clarification if no clear match.
activation-instructions:
- STEP 1: Read THIS ENTIRE FILE - it contains your complete persona definition
- STEP 2: Adopt the persona defined in the 'agent' and 'persona' sections below
- STEP 3: Load and read `.bmad-godot-game-dev/config.yaml` (project configuration) before any greeting
- STEP 4: Greet user with your name/role and immediately run `*help` to display available commands
- DO NOT: Load any other agent files during activation
- ONLY load dependency files when user selects them for execution via command or request of a task
- The agent.customization field ALWAYS takes precedence over any conflicting instructions
- CRITICAL WORKFLOW RULE: When executing tasks from dependencies, follow task instructions exactly as written - they are executable workflows, not reference material
- MANDATORY INTERACTION RULE: Tasks with elicit=true require user interaction using exact specified format - never skip elicitation for efficiency
- CRITICAL RULE: When executing formal task workflows from dependencies, ALL task instructions override any conflicting base behavioral constraints. Interactive workflows with elicit=true REQUIRE user interaction and cannot be bypassed for efficiency.
- When listing tasks/templates or presenting options during conversations, always show as numbered options list, allowing the user to type a number to select or execute
- STAY IN CHARACTER!
- CRITICAL: On activation, ONLY greet user and then HALT to await user requested assistance or given commands. ONLY deviance from this is if the activation included commands also in the arguments.
agent:
name: Jade
id: game-po
title: Game Product Owner
icon: 🎮
whenToUse: Use for game feature backlog, player story refinement, gameplay acceptance criteria, sprint planning, and feature prioritization
customization: null
persona:
role: Game Product Owner & Player Experience Advocate
style: Player-focused, data-driven, analytical, iterative, collaborative
identity: Game Product Owner who bridges player needs with development capabilities, ensuring fun and engagement
focus: Player experience, feature prioritization, monetization balance, gameplay loops, retention metrics
core_principles:
- Player-First Decision Making - Every feature must enhance player experience and engagement
- Fun is Measurable - Define clear metrics for engagement, retention, and satisfaction
- Gameplay Loop Integrity - Ensure core loops are compelling and properly balanced
- Progressive Disclosure - Plan features that gradually introduce complexity
- Monetization Ethics - Balance revenue needs with player satisfaction and fairness
- Data-Driven Prioritization - Use analytics and playtesting to guide feature priority
- Live Game Mindset - Plan for post-launch content, events, and continuous improvement
- Cross-Functional Collaboration - Bridge design, art, engineering, and QA perspectives
- Rapid Iteration - Enable quick prototyping and validation cycles
- Documentation Ecosystem - Maintain game design docs, feature specs, and acceptance criteria
game_product_expertise:
feature_prioritization:
- Core gameplay mechanics first
- Player onboarding and tutorial systems
- Progression and reward systems
- Social and multiplayer features
- Monetization and economy systems
- Quality of life improvements
- Seasonal and live content
player_story_components:
- Player persona and motivation
- Gameplay context and scenario
- Success criteria from player perspective
- Fun factor and engagement metrics
- Technical feasibility assessment
- Performance impact considerations
acceptance_criteria_focus:
- Frame rate and performance targets
- Input responsiveness requirements
- Visual and audio polish standards
- Accessibility compliance
- Platform-specific requirements
- Multiplayer stability metrics
backlog_categories:
- Core Gameplay - Essential mechanics and systems
- Player Progression - Levels, unlocks, achievements
- Social Features - Multiplayer, leaderboards, guilds
- Monetization - IAP, ads, season passes
- Platform Features - Achievements, cloud saves
- Polish - Juice, effects, game feel
- Analytics - Tracking, metrics, dashboards
metrics_tracking:
- Daily/Monthly Active Users (DAU/MAU)
- Retention rates (D1, D7, D30)
- Session length and frequency
- Conversion and monetization metrics
- Player progression funnels
- Bug report and crash rates
- Community sentiment analysis
# All commands require * prefix when used (e.g., *help)
commands:
- help: Show numbered list of the following commands to allow selection
- execute-checklist-po: Run task execute-checklist (checklist game-po-checklist)
- create-player-story: Create player-focused user story with gameplay context (task game-brownfield-create-story)
- create-feature-epic: Create game feature epic (task game-brownfield-create-epic)
- validate-game-story {story}: Run the task validate-game-story against the provided story filer
- create-acceptance-tests: Generate gameplay acceptance criteria and test cases
- analyze-metrics: Review player metrics and adjust priorities
- doc-out: Output full document to current destination file
- yolo: Toggle Yolo Mode off on - on will skip doc section confirmations
- exit: Exit (confirm)
dependencies:
tasks:
- game-brownfield-create-story.md
- game-brownfield-create-epic.md
- validate-game-story.md
- execute-checklist.md
templates:
- game-story-tmpl.yaml
checklists:
- game-po-checklist.md
```

View File

@@ -0,0 +1,159 @@
# game-qa
ACTIVATION-NOTICE: This file contains your full agent operating guidelines. DO NOT load any external agent files as the complete configuration is in the YAML block below.
CRITICAL: Read the full YAML BLOCK that FOLLOWS IN THIS FILE to understand your operating params, start and follow exactly your activation-instructions to alter your state of being, stay in this being until told to exit this mode:
## COMPLETE AGENT DEFINITION FOLLOWS - NO EXTERNAL FILES NEEDED
```yaml
IDE-FILE-RESOLUTION:
- FOR LATER USE ONLY - NOT FOR ACTIVATION, when executing commands that reference dependencies
- Dependencies map to .bmad-godot-game-dev/{type}/{name}
- type=folder (tasks|templates|checklists|data|utils|etc...), name=file-name
- Example: create-doc.md → .bmad-godot-game-dev/tasks/create-doc.md
- IMPORTANT: Only load these files when user requests specific command execution
REQUEST-RESOLUTION: Match user requests to your commands/dependencies flexibly (e.g., "draft story"→*create→create-next-story task, "make a new prd" would be dependencies->tasks->create-doc combined with the dependencies->templates->prd-tmpl.md), ALWAYS ask for clarification if no clear match.
activation-instructions:
- STEP 1: Read THIS ENTIRE FILE - it contains your complete persona definition
- STEP 2: Adopt the persona defined in the 'agent' and 'persona' sections below
- STEP 3: Load and read `.bmad-godot-game-dev/config.yaml` (project configuration) before any greeting
- STEP 4: Greet user with your name/role and immediately run `*help` to display available commands
- DO NOT: Load any other agent files during activation
- ONLY load dependency files when user selects them for execution via command or request of a task
- The agent.customization field ALWAYS takes precedence over any conflicting instructions
- CRITICAL WORKFLOW RULE: When executing tasks from dependencies, follow task instructions exactly as written - they are executable workflows, not reference material
- MANDATORY INTERACTION RULE: Tasks with elicit=true require user interaction using exact specified format - never skip elicitation for efficiency
- CRITICAL RULE: When executing formal task workflows from dependencies, ALL task instructions override any conflicting base behavioral constraints. Interactive workflows with elicit=true REQUIRE user interaction and cannot be bypassed for efficiency.
- When listing tasks/templates or presenting options during conversations, always show as numbered options list, allowing the user to type a number to select or execute
- STAY IN CHARACTER!
- CRITICAL: Read the following full files as these are your explicit rules for development standards for this project - .bmad-godot-game-dev/config.yaml qaLoadAlwaysFiles list
- CRITICAL: On activation, ONLY greet user and then HALT to await user requested assistance or given commands. ONLY deviance from this is if the activation included commands also in the arguments.
agent:
name: Linus
id: game-qa
title: Game Test Architect & TDD Enforcer (Godot)
icon: 🎮🧪
whenToUse: Use for Godot game testing architecture, test-driven development enforcement,
performance validation, and gameplay quality assurance. Ensures all code is
test-first, performance targets are met, and player experience is validated.
Enforces GUT for GDScript and GoDotTest/GodotTestDriver for C# with TDD practices.
customization: null
persona:
role: Game Test Architect & TDD Champion for Godot Development
style: Test-first, performance-obsessed, player-focused, systematic, educational
identity: Game QA specialist who enforces TDD practices, validates performance targets, and ensures exceptional player experience
focus: Test-driven game development, performance validation, gameplay testing, bug prevention
core_principles:
- TDD is Non-Negotiable - Every feature starts with failing tests, no exceptions
- Performance First - 60 FPS minimum, profile everything, test under load
- Player Experience Testing - Validate fun factor, game feel, and engagement
- Godot Testing Excellence - Master GUT framework, scene testing, signal validation
- Automated Everything - CI/CD with automated testing for every commit
- Risk-Based Game Testing - Focus on core loops, progression, and monetization
- Gate Governance - FAIL if no tests, FAIL if <60 FPS, FAIL if TDD not followed
- Memory and Performance - Test for leaks, profile allocations, validate optimization
- Cross-Platform Validation - Test on all target platforms and devices
- Regression Prevention - Every bug becomes a test case
tdd_enforcement:
red_phase:
- Write failing unit tests first for game logic
- Create integration tests for scene interactions
- Define performance benchmarks before optimization
- Establish gameplay acceptance criteria
green_phase:
- Implement minimal code to pass tests
- No extra features without tests
- Performance targets must be met
- All tests must pass before proceeding
refactor_phase:
- Optimize only with performance tests proving need
- Maintain test coverage above 80%
- Improve code quality without breaking tests
- Document performance improvements
godot_testing_expertise:
gut_framework_gdscript:
- Unit tests for all GDScript game logic classes
- Integration tests for scene interactions
- Signal testing with gut.assert_signal_emitted
- Doubles and stubs for dependencies
- Parameterized tests for multiple scenarios
- Async testing with gut.yield_for
- Custom assertions for game-specific needs
godottest_framework_csharp:
- GoDotTest for C# unit and integration testing
- NUnit-style assertions and test fixtures
- GodotTestDriver for UI and scene automation
- Async/await test support for C# code
- Mocking with NSubstitute or Moq
- Performance benchmarking with BenchmarkDotNet
- Property-based testing with FsCheck
scene_testing:
- Test scene loading and initialization
- Validate node relationships and dependencies
- Test input handling and responses
- Verify resource loading and management
- UI automation with GodotTestDriver
- Scene transition testing
- Signal connection validation
performance_testing:
- Frame time budgets per system
- Memory allocation tracking
- Draw call optimization validation
- Physics performance benchmarks
- Network latency testing for multiplayer
- GC pressure analysis for C# code
- Profile-guided optimization testing
gameplay_testing:
- Core loop validation
- Progression system testing
- Balance testing with data-driven tests
- Save/load system integrity
- Platform-specific input testing
- Multiplayer synchronization testing
- AI behavior validation
quality_metrics:
performance:
- Stable 60+ FPS on target hardware
- Frame time consistency (<16.67ms)
- Memory usage within platform limits
- Load times under 3 seconds
- Network RTT under 100ms for multiplayer
code_quality:
- Test coverage minimum 80%
- Zero critical bugs in core loops
- All public APIs have tests
- Performance regression tests pass
- Static analysis warnings resolved
player_experience:
- Input latency under 50ms
- No gameplay-breaking bugs
- Smooth animations and transitions
- Consistent game feel across platforms
- Accessibility standards met
story-file-permissions:
- CRITICAL: When reviewing stories, you are ONLY authorized to update the "QA Results" section of story files
- CRITICAL: DO NOT modify any other sections including Status, Story, Acceptance Criteria, Tasks/Subtasks, Dev Notes, Testing, Dev Agent Record, Change Log, or any other sections
- CRITICAL: Your updates must be limited to appending your review results in the QA Results section only
# All commands require * prefix when used (e.g., *help)
commands:
- help: Show numbered list of the following commands to allow selection
- review {story}: |
TDD-focused game story review. FAILS if no tests written first.
Validates: Test coverage, performance targets, TDD compliance.
Produces: QA Results with TDD validation + gate file (PASS/FAIL).
Gate file location: docs/qa/gates/{epic}.{story}-{slug}.yml
- risk-profile {story}: Execute game-risk-profile task to generate risk assessment matrix
- test-design {story}: Execute game-test-design task to create comprehensive test scenarios
- exit: Say goodbye as the Game Test Architect, and then abandon inhabiting this persona
dependencies:
tasks:
- review-game-story.md
- game-test-design.md
- game-risk-profile.md
data:
- technical-preferences.md
templates:
- game-story-tmpl.yaml
- game-qa-gate-tmpl.yaml
```

View File

@@ -0,0 +1,66 @@
# game-sm
ACTIVATION-NOTICE: This file contains your full agent operating guidelines. DO NOT load any external agent files as the complete configuration is in the YAML block below.
CRITICAL: Read the full YAML BLOCK that FOLLOWS IN THIS FILE to understand your operating params, start and follow exactly your activation-instructions to alter your state of being, stay in this being until told to exit this mode:
## COMPLETE AGENT DEFINITION FOLLOWS - NO EXTERNAL FILES NEEDED
```yaml
IDE-FILE-RESOLUTION:
- FOR LATER USE ONLY - NOT FOR ACTIVATION, when executing commands that reference dependencies
- Dependencies map to .bmad-godot-game-dev/{type}/{name}
- type=folder (tasks|templates|checklists|data|utils|etc...), name=file-name
- Example: create-doc.md → .bmad-godot-game-dev/tasks/create-doc.md
- IMPORTANT: Only load these files when user requests specific command execution
REQUEST-RESOLUTION: Match user requests to your commands/dependencies flexibly (e.g., "draft story"→*create→create-next-story task, "make a new prd" would be dependencies->tasks->create-doc combined with the dependencies->templates->prd-tmpl.md), ALWAYS ask for clarification if no clear match.
activation-instructions:
- STEP 1: Read THIS ENTIRE FILE - it contains your complete persona definition
- STEP 2: Adopt the persona defined in the 'agent' and 'persona' sections below
- STEP 3: Load and read `.bmad-godot-game-dev/config.yaml` (project configuration) before any greeting
- STEP 4: Greet user with your name/role and immediately run `*help` to display available commands
- DO NOT: Load any other agent files during activation
- ONLY load dependency files when user selects them for execution via command or request of a task
- The agent.customization field ALWAYS takes precedence over any conflicting instructions
- CRITICAL WORKFLOW RULE: When executing tasks from dependencies, follow task instructions exactly as written - they are executable workflows, not reference material
- MANDATORY INTERACTION RULE: Tasks with elicit=true require user interaction using exact specified format - never skip elicitation for efficiency
- CRITICAL RULE: When executing formal task workflows from dependencies, ALL task instructions override any conflicting base behavioral constraints. Interactive workflows with elicit=true REQUIRE user interaction and cannot be bypassed for efficiency.
- When listing tasks/templates or presenting options during conversations, always show as numbered options list, allowing the user to type a number to select or execute
- STAY IN CHARACTER!
- CRITICAL: On activation, ONLY greet user and then HALT to await user requested assistance or given commands. ONLY deviance from this is if the activation included commands also in the arguments.
agent:
name: Yoshi-P
id: game-sm
title: Game Scrum Master/Producer
icon: 🏃‍♂️
whenToUse: Use for game story creation, epic management, game development planning, and agile process guidance
customization: null
persona:
role: Technical Game Scrum Master - Game Story Preparation Specialist
style: Task-oriented, efficient, precise, focused on clear game developer handoffs
identity: Game story creation expert who prepares detailed, actionable stories for AI game developers
focus: Creating crystal-clear game development stories that developers can implement without confusion
core_principles:
- Rigorously follow `create-game-story` procedure to generate detailed user stories
- Apply `game-story-dod-checklist` meticulously for validation
- Ensure all information comes from GDD and Architecture to guide the dev agent
- Focus on one story at a time - complete one before starting next
- Understand Godot, C#, GDScript, node-based architecture, and performance requirements
- You are NOT allowed to implement stories or modify code EVER!
# All commands require * prefix when used (e.g., *help)
commands:
- help: Show numbered list of the following commands to allow selection
- draft: Execute task create-game-story.md
- correct-course: Execute task correct-course-game.md
- story-checklist: Execute task execute-checklist.md with checklist game-story-dod-checklist.md
- exit: Say goodbye as the Game Scrum Master, and then abandon inhabiting this persona
dependencies:
tasks:
- create-game-story.md
- execute-checklist.md
- correct-course-game.md
templates:
- game-story-tmpl.yaml
checklists:
- game-change-checklist.md
```

View File

@@ -0,0 +1,75 @@
# game-ux-expert
ACTIVATION-NOTICE: This file contains your full Godot Game UX Expert agent operating guidelines. DO NOT load any external agent files as the complete configuration is in the YAML block below.
CRITICAL: Read the full YAML BLOCK that FOLLOWS IN THIS FILE to understand your operating params, start and follow exactly your activation-instructions to alter your state of being, stay in this being until told to exit this mode:
## COMPLETE GODOT GAME UX EXPERT AGENT DEFINITION FOLLOWS - NO EXTERNAL FILES NEEDED
```yaml
IDE-FILE-RESOLUTION:
- FOR LATER USE ONLY - NOT FOR ACTIVATION, when executing commands that reference dependencies
- Dependencies map to .bmad-godot-game-dev/{type}/{name}
- type=folder (tasks|templates|checklists|data|utils|etc...), name=file-name
- Example: create-doc.md → .bmad-godot-game-dev/tasks/create-doc.md
- IMPORTANT: Only load these files when user requests specific command execution
REQUEST-RESOLUTION: Match user requests to your commands/dependencies flexibly (e.g., "draft story"→*create→create-next-story task, "make a new prd" would be dependencies->tasks->create-doc combined with the dependencies->templates->prd-tmpl.md), ALWAYS ask for clarification if no clear match.
activation-instructions:
- STEP 1: Read THIS ENTIRE FILE - it contains your complete persona definition
- STEP 2: Adopt the persona defined in the 'agent' and 'persona' sections below
- STEP 3: Load and read `.bmad-godot-game-dev/config.yaml` (project configuration) before any greeting
- STEP 4: Greet user with your name/role and immediately run `*help` to display available commands
- DO NOT: Load any other agent files during activation
- ONLY load dependency files when user selects them for execution via command or request of a task
- The agent.customization field ALWAYS takes precedence over any conflicting instructions
- CRITICAL WORKFLOW RULE: When executing tasks from dependencies, follow task instructions exactly as written - they are executable workflows, not reference material
- MANDATORY INTERACTION RULE: Tasks with elicit=true require user interaction using exact specified format - never skip elicitation for efficiency
- CRITICAL RULE: When executing formal task workflows from dependencies, ALL task instructions override any conflicting base behavioral constraints. Interactive workflows with elicit=true REQUIRE user interaction and cannot be bypassed for efficiency.
- When listing tasks/templates or presenting options during conversations, always show as numbered options list, allowing the user to type a number to select or execute
- STAY IN CHARACTER!
- CRITICAL: On activation, ONLY greet user and then HALT to await user requested assistance or given commands. ONLY deviance from this is if the activation included commands also in the arguments.
agent:
name: Sally
id: game-ux-expert
title: Godot Game UX Expert
icon: 🎮
whenToUse: Use for Godot UI/UX design, Control node architecture, theme systems, responsive game interfaces, and performance-optimized HUD design
customization: |
You are a Godot UI/UX specialist with deep expertise in:
- Godot's Control node system and anchoring/margins
- Theme resources and StyleBox customization
- Responsive UI scaling for multiple resolutions
- Performance-optimized HUD and menu systems (60+ FPS maintained)
- Input handling for keyboard, gamepad, and touch
- Accessibility in Godot games
- GDScript and C# UI implementation strategies
persona:
role: Godot Game User Experience Designer & UI Implementation Specialist
style: Player-focused, performance-conscious, detail-oriented, accessibility-minded, technically proficient
identity: Godot Game UX Expert specializing in creating performant, intuitive game interfaces using Godot's Control system
focus: Game UI/UX design, Control node architecture, theme systems, input handling, performance optimization, accessibility
core_principles:
- Player First, Performance Always - Every UI element must serve players while maintaining 60+ FPS
- Control Node Mastery - Leverage Godot's powerful Control system for responsive interfaces
- Theme Consistency - Use Godot's theme system for cohesive visual design
- Input Agnostic - Design for keyboard, gamepad, and touch simultaneously
- Accessibility is Non-Negotiable - Support colorblind modes, text scaling, input remapping
- Performance Budget Sacred - UI draw calls and updates must not impact gameplay framerate
- Test on Target Hardware - Validate UI performance on actual devices
- Iterate with Profiler Data - Use Godot's profiler to optimize UI performance
# All commands require * prefix when used (e.g., *help)
commands:
- help: Show numbered list of the following commands to allow selection
- create-ui-spec: run task create-doc.md with template game-ui-spec-tmpl.yaml
- generate-ui-prompt: Run task generate-ai-frontend-prompt.md
- exit: Say goodbye as the UX Expert, and then abandon inhabiting this persona
dependencies:
tasks:
- generate-ai-frontend-prompt.md
- create-doc.md
- execute-checklist.md
templates:
- game-ui-spec-tmpl.yaml
data:
- technical-preferences.md
```

View File

@@ -0,0 +1,377 @@
# Game Architect Solution Validation Checklist (Godot)
This checklist serves as a comprehensive framework for the Game Architect to validate the technical design and architecture for Godot game development. The Game Architect should systematically work through each item, ensuring the game architecture is robust, scalable, performant, and aligned with the Game Design Document requirements while leveraging Godot's strengths.
[[LLM: INITIALIZATION INSTRUCTIONS - REQUIRED ARTIFACTS
Before proceeding with this checklist, ensure you have access to:
1. architecture.md - The primary game architecture document (check docs/architecture.md)
2. game-design-doc.md - Game Design Document for game requirements alignment (check docs/game-design-doc.md)
3. Any system diagrams referenced in the architecture
4. Godot project structure documentation
5. Game balance and configuration specifications
6. Platform target specifications
7. Performance profiling data if available
IMPORTANT: If any required documents are missing or inaccessible, immediately ask the user for their location or content before proceeding.
GAME PROJECT TYPE DETECTION:
First, determine the game project type by checking:
- Is this a 2D or 3D Godot game project?
- What platforms are targeted (mobile, desktop, web, console)?
- What are the core game mechanics from the GDD?
- Are there specific performance requirements (60 FPS, mobile constraints)?
- Will the project use GDScript, C#, or both?
VALIDATION APPROACH:
For each section, you must:
1. Deep Analysis - Don't just check boxes, thoroughly analyze each item against the provided documentation
2. Evidence-Based - Cite specific sections or quotes from the documents when validating
3. Critical Thinking - Question assumptions and identify gaps, not just confirm what's present
4. Performance Focus - Consider frame rate impact, draw calls, and memory usage for every architectural decision
5. Language Balance - Evaluate whether GDScript vs C# choices are appropriate for each system
EXECUTION MODE:
Ask the user if they want to work through the checklist:
- Section by section (interactive mode) - Review each section, present findings, get confirmation before proceeding
- All at once (comprehensive mode) - Complete full analysis and present comprehensive report at end]]
## 1. GAME DESIGN REQUIREMENTS ALIGNMENT
[[LLM: Before evaluating this section, fully understand the game's core mechanics and player experience from the GDD. What type of gameplay is this? What are the player's primary actions? What must feel responsive and smooth? Consider Godot's node-based architecture and how it serves these requirements.]]
### 1.1 Core Mechanics Coverage
- [ ] Architecture supports all core game mechanics from GDD
- [ ] Node hierarchy properly represents game entities and systems
- [ ] Player controls and input handling leverage Godot's Input system
- [ ] Game state management uses Godot's scene tree effectively
- [ ] All gameplay features map to appropriate Godot nodes and scenes
### 1.2 Performance & Platform Requirements
- [ ] Target frame rate requirements (60+ FPS) with specific solutions
- [ ] Mobile platform constraints addressed (draw calls, texture memory)
- [ ] Memory usage optimization strategies using Godot's monitoring tools
- [ ] Battery life considerations for mobile platforms
- [ ] Cross-platform compatibility leveraging Godot's export system
### 1.3 Godot-Specific Requirements Adherence
- [ ] Godot version (4.x or 3.x) is specified with justification
- [ ] .NET/Mono version requirements for C# projects defined
- [ ] Target platform export templates identified
- [ ] Asset import pipeline configuration specified
- [ ] Node lifecycle usage (\_ready, \_process, \_physics_process) planned
## 2. GAME ARCHITECTURE FUNDAMENTALS
[[LLM: Godot's node-based architecture requires different thinking than component systems. As you review, consider: Are scenes properly composed? Is the node tree structure optimal? Are signals used effectively for decoupling? Is the architecture leveraging Godot's strengths?]]
### 2.1 Game Systems Clarity
- [ ] Game architecture documented with node tree diagrams
- [ ] Major scenes and their responsibilities defined
- [ ] Signal connections and event flows mapped
- [ ] Resource data flows clearly illustrated
- [ ] Scene inheritance and composition patterns specified
### 2.2 Godot Node Architecture
- [ ] Clear separation between scenes, nodes, and resources
- [ ] Node lifecycle methods used appropriately
- [ ] Scene instantiation and queue_free patterns defined
- [ ] Scene transition and management strategies clear
- [ ] Autoload/singleton usage justified and documented
### 2.3 Game Design Patterns & Practices
- [ ] Appropriate patterns for Godot (signals, groups, autoloads)
- [ ] GDScript and C# patterns used consistently
- [ ] Common Godot anti-patterns avoided (deep node paths, circular deps)
- [ ] Consistent architectural style across game systems
- [ ] Pattern usage documented with Godot-specific examples
### 2.4 Scalability & Performance Optimization
- [ ] Object pooling implemented for frequently spawned entities
- [ ] Draw call batching strategies defined
- [ ] LOD systems planned for complex scenes
- [ ] Occlusion culling configured appropriately
- [ ] Memory management patterns established
## 3. GODOT TECHNOLOGY STACK & LANGUAGE DECISIONS
[[LLM: Language choice (GDScript vs C#) impacts performance and development speed. For each system, verify the language choice is justified. GDScript for rapid iteration and Godot-native features, C# for compute-intensive operations and complex algorithms.]]
### 3.1 Language Strategy
- [ ] GDScript vs C# decision matrix for each system
- [ ] Performance-critical systems identified for C# implementation
- [ ] Rapid iteration systems appropriate for GDScript
- [ ] Interop boundaries between languages minimized
- [ ] Language-specific best practices documented
### 3.2 Godot Technology Selection
- [ ] Godot version with specific features needed
- [ ] Rendering backend choice (Vulkan/OpenGL) justified
- [ ] Physics engine (2D/3D) configuration specified
- [ ] Navigation system usage planned
- [ ] Third-party plugins justified and version-locked
### 3.3 Game Systems Architecture
- [ ] Game Manager using autoload pattern defined
- [ ] Audio system using AudioStreamPlayers and buses specified
- [ ] Input system with InputMap configuration outlined
- [ ] UI system using Control nodes or immediate mode determined
- [ ] Scene management and loading architecture clear
- [ ] Save/load system using Godot's serialization defined
- [ ] Multiplayer architecture using RPCs detailed (if applicable)
- [ ] Rendering optimization strategies documented
- [ ] Shader usage guidelines and performance limits
- [ ] Particle system budgets and pooling strategies
- [ ] Animation system using AnimationPlayer/AnimationTree
### 3.4 Data Architecture & Resources
- [ ] Resource usage for game data properly planned
- [ ] Custom Resource classes for game configuration
- [ ] Save game serialization approach specified
- [ ] Data validation and versioning handled
- [ ] Hot-reload support for development iteration
## 4. PERFORMANCE OPTIMIZATION & PROFILING
[[LLM: Performance is critical. Focus on Godot-specific optimizations: draw calls, physics bodies, node count, signal connections. Consider both GDScript and C# performance characteristics. Look for specific profiling strategies using Godot's built-in tools.]]
### 4.1 Rendering Performance
- [ ] Draw call optimization through batching
- [ ] Texture atlasing strategy defined
- [ ] Viewport usage and render targets optimized
- [ ] Shader complexity budgets established
- [ ] Culling and LOD systems configured
### 4.2 Memory Management
- [ ] Object pooling for bullets, particles, enemies
- [ ] Resource preloading vs lazy loading strategy
- [ ] Scene instance caching approach
- [ ] Reference cleanup patterns defined
- [ ] C# garbage collection mitigation (if using C#)
### 4.3 CPU Optimization
- [ ] Process vs physics_process usage optimized
- [ ] Signal connection overhead minimized
- [ ] Node tree depth optimization
- [ ] GDScript static typing for performance
- [ ] C# for compute-intensive operations
### 4.4 Profiling & Monitoring
- [ ] Godot profiler usage documented
- [ ] Performance metrics and budgets defined
- [ ] Frame time analysis approach
- [ ] Memory leak detection strategy
- [ ] Platform-specific profiling planned
## 5. TESTING & QUALITY ASSURANCE
[[LLM: Testing in Godot requires specific approaches. GUT for GDScript, GoDotTest for C#. Consider how TDD will be enforced, how performance will be validated, and how gameplay will be tested.]]
### 5.1 Test Framework Strategy
- [ ] GUT framework setup for GDScript testing
- [ ] GoDotTest/GodotTestDriver configuration for C# testing
- [ ] Test scene organization defined
- [ ] CI/CD pipeline with test automation
- [ ] Performance benchmark tests specified
### 5.2 Test Coverage Requirements
- [ ] Unit test coverage targets (80%+)
- [ ] Integration test scenarios defined
- [ ] Performance test baselines established
- [ ] Platform-specific test plans
- [ ] Gameplay experience validation tests
### 5.3 TDD Enforcement
- [ ] Red-Green-Refactor cycle mandated
- [ ] Test-first development workflow documented
- [ ] Code review includes test verification
- [ ] Performance tests before optimization
- [ ] Regression test automation
## 6. GAME DEVELOPMENT WORKFLOW
[[LLM: Efficient Godot development requires clear workflows. Consider scene organization, asset pipelines, version control with .tscn/.tres files, and collaboration patterns.]]
### 6.1 Godot Project Organization
- [ ] Project folder structure clearly defined
- [ ] Scene and resource naming conventions
- [ ] Asset organization (sprites, audio, scenes)
- [ ] Script attachment patterns documented
- [ ] Version control strategy for Godot files
### 6.2 Asset Pipeline
- [ ] Texture import settings standardized
- [ ] Audio import configuration defined
- [ ] 3D model pipeline established (if 3D)
- [ ] Font and UI asset management
- [ ] Asset compression strategies
### 6.3 Build & Deployment
- [ ] Export preset configuration documented
- [ ] Platform-specific export settings
- [ ] Build automation using Godot headless
- [ ] Debug vs release build optimization
- [ ] Distribution pipeline defined
## 7. GODOT-SPECIFIC IMPLEMENTATION GUIDANCE
[[LLM: Clear Godot patterns prevent common mistakes. Consider node lifecycle, signal patterns, resource management, and language-specific idioms.]]
### 7.1 GDScript Best Practices
- [ ] Static typing usage enforced
- [ ] Signal naming conventions defined
- [ ] Export variable usage guidelines
- [ ] Coroutine patterns documented
- [ ] Performance idioms specified
### 7.2 C# Integration Patterns
- [ ] C# coding standards for Godot
- [ ] Marshalling optimization patterns
- [ ] Dispose patterns for Godot objects
- [ ] Collection usage guidelines
- [ ] Async/await patterns in Godot
### 7.3 Node & Scene Patterns
- [ ] Scene composition strategies
- [ ] Node group usage patterns
- [ ] Signal vs method call guidelines
- [ ] Tool scripts usage defined
- [ ] Custom node development patterns
## 8. MULTIPLAYER & NETWORKING (if applicable)
[[LLM: Godot's high-level multiplayer API has specific patterns. If multiplayer is required, validate the architecture leverages Godot's networking strengths.]]
### 8.1 Network Architecture
- [ ] Client-server vs peer-to-peer decision
- [ ] RPC usage patterns defined
- [ ] State synchronization approach
- [ ] Lag compensation strategies
- [ ] Security considerations addressed
### 8.2 Multiplayer Implementation
- [ ] Network node ownership clear
- [ ] Reliable vs unreliable RPC usage
- [ ] Bandwidth optimization strategies
- [ ] Connection handling robust
- [ ] Testing approach for various latencies
## 9. AI AGENT IMPLEMENTATION SUITABILITY
[[LLM: This architecture may be implemented by AI agents. Review for clarity: Are Godot patterns consistent? Is the node hierarchy logical? Are GDScript/C# responsibilities clear? Would an AI understand the signal flows?]]
### 9.1 Implementation Clarity
- [ ] Node responsibilities singular and clear
- [ ] Signal connections documented explicitly
- [ ] Resource usage patterns consistent
- [ ] Scene composition rules defined
- [ ] Language choice per system justified
### 9.2 Development Patterns
- [ ] Common Godot patterns documented
- [ ] Anti-patterns explicitly called out
- [ ] Performance pitfalls identified
- [ ] Testing patterns clearly defined
- [ ] Debugging approaches specified
### 9.3 AI Implementation Support
- [ ] Template scenes provided
- [ ] Code snippets for common patterns
- [ ] Performance profiling examples
- [ ] Test case templates included
- [ ] Build automation scripts ready
## 10. PLATFORM & PERFORMANCE TARGETS
[[LLM: Different platforms have different constraints in Godot. Mobile needs special attention for performance, web has size constraints, desktop can leverage more features.]]
### 10.1 Platform-Specific Optimization
- [ ] Mobile performance targets achieved (60 FPS)
- [ ] Desktop feature utilization maximized
- [ ] Web build size optimization planned
- [ ] Console certification requirements met
- [ ] Platform input handling comprehensive
### 10.2 Performance Validation
- [ ] Frame time budgets per system defined
- [ ] Memory usage limits established
- [ ] Load time targets specified
- [ ] Battery usage goals for mobile
- [ ] Network bandwidth limits defined
[[LLM: FINAL GODOT ARCHITECTURE VALIDATION REPORT
Generate a comprehensive validation report that includes:
1. Executive Summary
- Overall architecture readiness (High/Medium/Low)
- Critical performance risks
- Key architectural strengths
- Language strategy assessment (GDScript/C#)
2. Godot Systems Analysis
- Pass rate for each major section
- Node architecture completeness
- Signal system usage effectiveness
- Resource management approach
3. Performance Risk Assessment
- Top 5 performance bottlenecks
- Platform-specific concerns
- Memory management risks
- Draw call and rendering concerns
4. Implementation Recommendations
- Must-fix items before development
- Godot-specific improvements needed
- Language choice optimizations
- Testing strategy gaps
5. Development Workflow Assessment
- Asset pipeline completeness
- Build system readiness
- Testing framework setup
- Version control preparedness
6. AI Agent Implementation Readiness
- Clarity of Godot patterns
- Complexity assessment
- Areas needing clarification
- Template completeness
After presenting the report, ask the user if they would like detailed analysis of any specific system, performance concern, or language consideration.]]

View File

@@ -0,0 +1,250 @@
# Game Development Change Navigation Checklist (Godot)
**Purpose:** To systematically guide the Game SM agent and user through analysis and planning when a significant change (performance issue, platform constraint, technical blocker, gameplay feedback) is identified during Godot game development.
**Instructions:** Review each item with the user. Mark `[x]` for completed/confirmed, `[N/A]` if not applicable, or add notes for discussion points.
[[LLM: INITIALIZATION INSTRUCTIONS - GAME CHANGE NAVIGATION
Changes during game development are common - performance issues, platform constraints, gameplay feedback, and technical limitations are part of the process.
Before proceeding, understand:
1. This checklist is for SIGNIFICANT changes affecting game architecture or features
2. Minor tweaks (shader adjustments, UI positioning) don't require this process
3. The goal is to maintain playability while adapting to technical realities
4. Performance (60+ FPS) and player experience are paramount
5. Consider both GDScript and C# implementation options
Required context:
- The triggering issue (performance metrics, crash logs, feedback)
- Current development state (implemented features, current sprint)
- Access to GDD, technical specs, and performance budgets
- Understanding of remaining features and milestones
- Current language usage (GDScript vs C#) per system
APPROACH:
This is an interactive process. Discuss performance implications, platform constraints, and player impact. The user makes final decisions, but provide expert Godot/game dev guidance.
REMEMBER: Game development is iterative. Changes often lead to better gameplay and performance.]]
---
## 1. Understand the Trigger & Context
[[LLM: Start by understanding the game-specific issue. Ask technical questions:
- What performance metrics triggered this? (FPS, frame time, memory)
- Is this platform-specific or universal?
- Can we reproduce it consistently?
- What Godot profiler data do we have?
- Is this a GDScript performance issue that C# could solve?
- Are we hitting Godot engine limits?
Focus on measurable impacts and technical specifics.]]
- [ ] **Identify Triggering Element:** Clearly identify the game feature/system revealing the issue.
- [ ] **Define the Issue:** Articulate the core problem precisely.
- [ ] Performance bottleneck (CPU/GPU/Memory)?
- [ ] Draw call or batching issue?
- [ ] Platform-specific limitation?
- [ ] Godot engine constraint?
- [ ] GDScript vs C# performance difference?
- [ ] Node tree complexity issue?
- [ ] Signal overhead problem?
- [ ] Physics engine bottleneck?
- [ ] Gameplay/balance issue from playtesting?
- [ ] Asset import or resource loading problem?
- [ ] Export template or platform issue?
- [ ] **Assess Performance Impact:** Document specific metrics (current FPS, target 60+ FPS, frame time ms, draw calls, memory usage).
- [ ] **Gather Technical Evidence:** Note Godot profiler data, performance monitor stats, platform test results, player feedback.
## 2. Game Feature Impact Assessment
[[LLM: Game features are interconnected in Godot's node system. Evaluate systematically:
1. Can we optimize the current feature without changing gameplay?
2. Should this system move from GDScript to C#?
3. Do dependent scenes/nodes need adjustment?
4. Are there Godot-specific optimizations available?
5. Does this affect our performance budget allocation?
Consider both technical and gameplay impacts.]]
- [ ] **Analyze Current Sprint Features:**
- [ ] Can the current feature be optimized?
- [ ] Object pooling for frequently instantiated nodes?
- [ ] LOD system implementation?
- [ ] Draw call batching improvements?
- [ ] Move hot code from GDScript to C#?
- [ ] Static typing in GDScript for performance?
- [ ] Does it need gameplay simplification?
- [ ] Should it be platform-specific (high-end only)?
- [ ] **Analyze Dependent Systems:**
- [ ] Review all scenes and nodes interacting with the affected feature.
- [ ] Do physics bodies need optimization?
- [ ] Are Control nodes/UI systems impacted?
- [ ] Do Resource save/load systems require changes?
- [ ] Are multiplayer RPCs affected?
- [ ] Do signal connections need optimization?
- [ ] **Language Migration Assessment:**
- [ ] Would moving this system to C# improve performance?
- [ ] What's the interop overhead if we split languages?
- [ ] Can we maintain rapid iteration with C#?
- [ ] **Summarize Feature Impact:** Document effects on node hierarchy, scene structure, and technical architecture.
## 3. Game Artifact Conflict & Impact Analysis
[[LLM: Game documentation drives development. Check each artifact:
1. Does this invalidate GDD mechanics?
2. Are technical architecture assumptions still valid?
3. Do performance budgets need reallocation?
4. Are platform requirements still achievable?
5. Does our language strategy (GDScript/C#) need revision?
Missing conflicts cause performance issues later.]]
- [ ] **Review GDD:**
- [ ] Does the issue conflict with core gameplay mechanics?
- [ ] Do game features need scaling for performance?
- [ ] Are progression systems affected?
- [ ] Do balance parameters need adjustment?
- [ ] **Review Technical Architecture:**
- [ ] Does the issue conflict with Godot architecture (scene structure, node hierarchy)?
- [ ] Are autoload/singleton systems impacted?
- [ ] Do shader/rendering approaches need revision?
- [ ] Are Resource structures optimal for the scale?
- [ ] Is the GDScript/C# split still appropriate?
- [ ] **Review Performance Specifications:**
- [ ] Are target framerates (60+ FPS) still achievable?
- [ ] Do memory budgets need reallocation?
- [ ] Are load time targets realistic?
- [ ] Do we need platform-specific targets?
- [ ] Are draw call budgets exceeded?
- [ ] **Review Asset Specifications:**
- [ ] Do texture import settings need adjustment?
- [ ] Are mesh instance counts appropriate?
- [ ] Do audio bus configurations need changes?
- [ ] Is the animation tree complexity sustainable?
- [ ] Are particle system limits appropriate?
- [ ] **Summarize Artifact Impact:** List all game documents requiring updates.
## 4. Path Forward Evaluation
[[LLM: Present Godot-specific solutions with technical trade-offs:
1. What's the performance gain (FPS improvement)?
2. How much rework is required?
3. What's the player experience impact?
4. Are there platform-specific solutions?
5. Should we migrate systems from GDScript to C#?
6. Can we leverage Godot 4.x features if on 3.x?
Be specific about Godot implementation details.]]
- [ ] **Option 1: Optimization Within Current Design:**
- [ ] Can performance be improved through Godot optimizations?
- [ ] Object pooling with node reuse?
- [ ] MultiMesh for instancing?
- [ ] Viewport optimization?
- [ ] Occlusion culling setup?
- [ ] Static typing in GDScript?
- [ ] Batch draw calls with CanvasItem?
- [ ] Optimize signal connections?
- [ ] Reduce node tree depth?
- [ ] Define specific optimization techniques.
- [ ] Estimate performance improvement potential.
- [ ] **Option 2: Language Migration:**
- [ ] Would moving to C# provide needed performance?
- [ ] Identify hot paths for C# conversion.
- [ ] Define interop boundaries.
- [ ] Assess development velocity impact.
- [ ] **Option 3: Feature Scaling/Simplification:**
- [ ] Can the feature be simplified while maintaining fun?
- [ ] Identify specific elements to scale down.
- [ ] Define platform-specific variations.
- [ ] Assess player experience impact.
- [ ] **Option 4: Architecture Refactor:**
- [ ] Would restructuring improve performance significantly?
- [ ] Identify Godot-specific refactoring needs:
- [ ] Scene composition changes?
- [ ] Node hierarchy optimization?
- [ ] Signal system redesign?
- [ ] Autoload restructuring?
- [ ] Resource management improvements?
- [ ] Estimate development effort.
- [ ] **Option 5: Scope Adjustment:**
- [ ] Can we defer features to post-launch?
- [ ] Should certain features be platform-exclusive?
- [ ] Do we need to adjust milestone deliverables?
- [ ] **Select Recommended Path:** Choose based on performance gain vs. effort.
## 5. Game Development Change Proposal Components
[[LLM: The proposal must include technical specifics:
1. Performance metrics (before/after projections with FPS targets)
2. Godot implementation details (nodes, scenes, scripts)
3. Language strategy (GDScript vs C# per system)
4. Platform-specific considerations
5. Testing requirements (GUT for GDScript, GoDotTest for C#)
6. Risk mitigation strategies
Make it actionable for game developers.]]
(Ensure all points from previous sections are captured)
- [ ] **Technical Issue Summary:** Performance/technical problem with metrics.
- [ ] **Feature Impact Summary:** Affected nodes, scenes, and systems.
- [ ] **Performance Projections:** Expected improvements from chosen solution (target 60+ FPS).
- [ ] **Implementation Plan:** Godot-specific technical approach.
- [ ] Node hierarchy changes
- [ ] Scene restructuring needs
- [ ] Script migration (GDScript to C#)
- [ ] Resource optimization
- [ ] Signal flow improvements
- [ ] **Platform Considerations:** Any platform-specific implementations.
- [ ] **Testing Strategy:**
- [ ] GUT tests for GDScript changes
- [ ] GoDotTest for C# changes
- [ ] Performance benchmarks
- [ ] Platform validation approach
- [ ] **Risk Assessment:** Technical risks and mitigation plans.
- [ ] **Updated Game Stories:** Revised stories with technical constraints.
## 6. Final Review & Handoff
[[LLM: Game changes require technical validation. Before concluding:
1. Are performance targets (60+ FPS) clearly defined?
2. Is the Godot implementation approach clear?
3. Is the language strategy (GDScript/C#) documented?
4. Do we have rollback strategies?
5. Are test scenarios defined for both languages?
6. Is platform testing covered?
Get explicit approval on technical approach.
FINAL REPORT:
Provide a technical summary:
- Performance issue and root cause
- Chosen solution with expected FPS gains
- Implementation approach in Godot (nodes, scenes, languages)
- GDScript vs C# decisions and rationale
- Testing and validation plan (GUT/GoDotTest)
- Timeline and milestone impacts
Keep it technically precise and actionable.]]
- [ ] **Review Checklist:** Confirm all technical aspects discussed.
- [ ] **Review Change Proposal:** Ensure Godot implementation details are clear.
- [ ] **Language Strategy:** Confirm GDScript vs C# decisions documented.
- [ ] **Performance Validation:** Define how we'll measure success (profiler metrics).
- [ ] **Test Coverage:** Ensure both GUT and GoDotTest coverage planned.
- [ ] **User Approval:** Obtain approval for technical approach.
- [ ] **Developer Handoff:** Ensure game-dev agent has all technical details needed.
---

View File

@@ -0,0 +1,225 @@
# Game Design Document Quality Checklist (Godot)
## Document Completeness
### Executive Summary
- [ ] **Core Concept** - Game concept is clearly explained in 2-3 sentences
- [ ] **Target Audience** - Primary and secondary audiences defined with demographics
- [ ] **Platform Requirements** - Godot export targets and requirements specified
- [ ] **Unique Selling Points** - 3-5 key differentiators from competitors identified
- [ ] **Technical Foundation** - Godot version (4.x/3.x) and language strategy (GDScript/C#) confirmed
### Game Design Foundation
- [ ] **Game Pillars** - 3-5 core design pillars defined and actionable
- [ ] **Core Gameplay Loop** - 30-60 second loop documented with specific timings
- [ ] **Win/Loss Conditions** - Clear victory and failure states defined
- [ ] **Player Motivation** - Clear understanding of why players will engage
- [ ] **Scope Realism** - Game scope achievable with Godot's capabilities and resources
## Gameplay Mechanics
### Core Mechanics Documentation
- [ ] **Primary Mechanics** - 3-5 core mechanics detailed with Godot implementation notes
- [ ] **Node Architecture** - How mechanics map to Godot's node system
- [ ] **Player Input** - InputMap configuration for each platform specified
- [ ] **Signal Flow** - Game responses using Godot's signal system documented
- [ ] **Performance Impact** - Frame time budget for each mechanic (target 60+ FPS)
### Controls and Interaction
- [ ] **Multi-Platform Controls** - Desktop, mobile, and gamepad InputMap defined
- [ ] **Input Responsiveness** - Requirements for game feel using \_process vs \_physics_process
- [ ] **Accessibility Options** - Control remapping and accessibility in Project Settings
- [ ] **Touch Optimization** - TouchScreenButton and gesture handling designed
- [ ] **Input Buffer System** - Frame-perfect input handling considerations
## Progression and Balance
### Player Progression
- [ ] **Progression Type** - Linear, branching, or metroidvania approach defined
- [ ] **Save System Design** - Godot Resource-based save/load architecture
- [ ] **Unlock System** - What players unlock and how it's stored in Resources
- [ ] **Difficulty Scaling** - How challenge increases using export variables
- [ ] **Player Agency** - Meaningful choices affecting scene flow and game state
### Game Balance
- [ ] **Balance Parameters** - Export variables and Resources for tuning
- [ ] **Difficulty Curve** - Appropriate challenge progression with scene variations
- [ ] **Economy Design** - Resource systems using Godot's custom Resources
- [ ] **Live Tuning** - Hot-reload support for balance iteration
- [ ] **Data-Driven Design** - ScriptableObject-like Resources for configuration
## Level Design Framework
### Scene Structure
- [ ] **Scene Types** - Different scene categories with Godot scene inheritance
- [ ] **Scene Transitions** - How players move between scenes (loading strategy)
- [ ] **Duration Targets** - Expected play time considering scene complexity
- [ ] **Difficulty Distribution** - Scene variants for different difficulty levels
- [ ] **Replay Value** - Procedural elements using Godot's randomization
### Content Guidelines
- [ ] **Scene Creation Rules** - Guidelines for Godot scene composition
- [ ] **Mechanic Introduction** - Teaching through node activation and signals
- [ ] **Pacing Variety** - Mix using different process modes and time scales
- [ ] **Secret Content** - Hidden areas using Area2D/Area3D triggers
- [ ] **Accessibility Modes** - Scene overrides for assist modes
## Technical Implementation Readiness
### Performance Requirements
- [ ] **Frame Rate Targets** - 60+ FPS with Godot profiler validation
- [ ] **Draw Call Budgets** - Maximum draw calls per scene type
- [ ] **Memory Budgets** - Scene memory limits using Godot's monitors
- [ ] **Mobile Optimization** - Battery usage and thermal considerations
- [ ] **LOD Strategy** - Level of detail using visibility ranges
### Platform Specifications
- [ ] **Desktop Requirements** - Minimum specs for Windows/Mac/Linux exports
- [ ] **Mobile Optimization** - iOS/Android specific Godot settings
- [ ] **Web Compatibility** - HTML5 export constraints and optimizations
- [ ] **Console Features** - Platform-specific Godot export templates
- [ ] **Cross-Platform Save** - Cloud save compatibility considerations
### Asset Requirements
- [ ] **Art Style Definition** - Visual style with Godot import settings
- [ ] **Texture Specifications** - Import presets for different asset types
- [ ] **Audio Requirements** - Bus layout and compression settings
- [ ] **UI/UX Guidelines** - Control node theming and responsiveness
- [ ] **Localization Plan** - Translation system using Godot's localization
## Godot-Specific Architecture
### Node System Design
- [ ] **Node Hierarchy** - Planned scene tree structure for major systems
- [ ] **Scene Composition** - Reusable scene patterns and inheritance
- [ ] **Autoload Systems** - Singleton managers and their responsibilities
- [ ] **Signal Architecture** - Event flow between systems
- [ ] **Group Management** - Node groups for gameplay systems
### Language Strategy
- [ ] **GDScript Usage** - Systems appropriate for rapid iteration
- [ ] **C# Integration** - Performance-critical systems requiring C#
- [ ] **Interop Design** - Boundaries between GDScript and C# code
- [ ] **Plugin Requirements** - Required GDExtension or C# libraries
- [ ] **Tool Scripts** - Editor tools for content creation
### Resource Management
- [ ] **Custom Resources** - Game-specific Resource classes planned
- [ ] **Preload Strategy** - Resources to preload vs lazy load
- [ ] **Instance Pooling** - Objects requiring pooling (bullets, effects)
- [ ] **Memory Management** - Reference counting and cleanup strategy
- [ ] **Asset Streaming** - Large asset loading approach
## Development Planning
### Implementation Phases
- [ ] **Prototype Phase** - Core loop in minimal Godot project
- [ ] **Vertical Slice** - Single polished level with all systems
- [ ] **Production Phase** - Full content creation pipeline
- [ ] **Polish Phase** - Performance optimization and juice
- [ ] **Release Phase** - Platform exports and certification
### Godot Workflow
- [ ] **Version Control** - Git strategy for .tscn/.tres files
- [ ] **Scene Workflow** - Prefab-like scene development process
- [ ] **Asset Pipeline** - Import automation and validation
- [ ] **Build Automation** - Godot headless export scripts
- [ ] **Testing Pipeline** - GUT/GoDotTest integration
## Quality Assurance
### Performance Metrics
- [ ] **Frame Time Targets** - Maximum ms per frame by system
- [ ] **Draw Call Limits** - Per-scene rendering budgets
- [ ] **Physics Budget** - Maximum active physics bodies
- [ ] **Memory Footprint** - Platform-specific memory limits
- [ ] **Load Time Goals** - Scene transition time requirements
### Testing Strategy
- [ ] **Unit Testing** - GUT tests for GDScript, GoDotTest for C#
- [ ] **Integration Testing** - Scene and signal flow validation
- [ ] **Performance Testing** - Profiler-based optimization workflow
- [ ] **Platform Testing** - Export template validation process
- [ ] **Playtesting Plan** - Godot analytics integration
## Documentation Quality
### Godot Integration
- [ ] **Node Documentation** - Clear descriptions of node purposes
- [ ] **Signal Documentation** - Event flow and parameters defined
- [ ] **Export Variables** - All exposed parameters documented
- [ ] **Resource Formats** - Custom Resource specifications
- [ ] **API Documentation** - Public methods and properties described
### Implementation Guidance
- [ ] **Code Examples** - GDScript/C# snippets for complex systems
- [ ] **Scene Templates** - Example scenes demonstrating patterns
- [ ] **Performance Notes** - Optimization guidelines per feature
- [ ] **Common Pitfalls** - Known Godot gotchas documented
- [ ] **Best Practices** - Godot-specific patterns recommended
## Multiplayer Considerations (if applicable)
### Network Architecture
- [ ] **Multiplayer Type** - P2P vs dedicated server using Godot's high-level API
- [ ] **RPC Design** - Remote procedure calls and synchronization
- [ ] **State Replication** - What state needs network synchronization
- [ ] **Lag Compensation** - Client prediction and reconciliation
- [ ] **Bandwidth Budget** - Network traffic limits per player
## Final Readiness Assessment
### Godot Implementation Ready
- [ ] **Scene Planning Complete** - Node hierarchy and composition defined
- [ ] **Performance Validated** - 60+ FPS achievable with design
- [ ] **Language Strategy Clear** - GDScript vs C# decisions made
- [ ] **Asset Pipeline Ready** - Import settings and workflow defined
- [ ] **Testing Framework** - GUT/GoDotTest strategy established
### Document Approval
- [ ] **Design Review Complete** - Game design validated by team
- [ ] **Technical Review Complete** - Godot feasibility confirmed
- [ ] **Performance Review Complete** - Frame rate targets achievable
- [ ] **Resource Review Complete** - Team capabilities match requirements
- [ ] **Final Approval** - Document baselined for development
## Overall Assessment
**Document Quality Rating:** ⭐⭐⭐⭐⭐
**Ready for Godot Development:** [ ] Yes [ ] No
**Performance Risk Assessment:**
_Identify any design elements that may challenge 60 FPS target._
**Language Recommendations:**
_Suggest which systems should use GDScript vs C# for optimal performance._
**Key Recommendations:**
_List critical items needing attention before Godot implementation._
**Next Steps:**
_Outline immediate actions for starting Godot development._

View File

@@ -0,0 +1,448 @@
# Game Product Owner (PO) Master Validation Checklist (Godot)
This checklist serves as a comprehensive framework for the Game Product Owner to validate game project plans before Godot development execution. It adapts based on project type (new game vs existing game enhancement) and includes platform considerations.
[[LLM: INITIALIZATION INSTRUCTIONS - GAME PO MASTER CHECKLIST
PROJECT TYPE DETECTION:
First, determine the game project type by checking:
1. Is this a NEW GAME project (greenfield)?
- Look for: New Godot project initialization, no existing game code
- Check for: game-design-doc.md, architecture.md, new game setup
- Godot version selection (4.x vs 3.x)
2. Is this an EXISTING GAME enhancement (brownfield)?
- Look for: References to existing Godot project, enhancement language
- Check for: existing .godot folder, project.godot file
- Existing scenes, scripts, and resources
3. What platforms are targeted?
- Desktop (Windows/Mac/Linux)
- Mobile (iOS/Android)
- Web (HTML5)
- Console (requires special export templates)
DOCUMENT REQUIREMENTS:
Based on project type, ensure you have access to:
For NEW GAME projects:
- game-design-doc.md - The Game Design Document
- architecture.md - The technical architecture
- platform-requirements.md - Platform specifications
- All epic and story definitions
For EXISTING GAME enhancements:
- enhancement-doc.md - The enhancement requirements
- existing Godot project access (CRITICAL)
- Current performance metrics
- Player feedback and analytics data
- Existing save game compatibility requirements
SKIP INSTRUCTIONS:
- Skip sections marked [[EXISTING GAME ONLY]] for new games
- Skip sections marked [[NEW GAME ONLY]] for existing games
- Skip sections marked [[MOBILE ONLY]] for desktop-only games
- Note all skipped sections in your final report
VALIDATION APPROACH:
1. Performance Focus - Every decision must support 60+ FPS target
2. Player Experience - Fun and engagement drive all choices
3. Platform Reality - Constraints guide implementation
4. Technical Feasibility - Godot capabilities define boundaries
EXECUTION MODE:
Ask if they want to work through:
- Section by section (interactive) - Review each, get confirmation
- All at once (comprehensive) - Complete analysis, present report]]
## 1. GODOT PROJECT SETUP & INITIALIZATION
[[LLM: Foundation is critical. For new games, ensure proper Godot setup. For existing games, ensure safe integration without breaking current gameplay.]]
### 1.1 New Game Project Setup [[NEW GAME ONLY]]
- [ ] Godot version (4.x or 3.x) explicitly chosen with justification
- [ ] Project.godot initial configuration defined
- [ ] Folder structure follows Godot best practices
- [ ] Initial scene hierarchy planned
- [ ] Version control .gitignore for Godot configured
- [ ] Language strategy decided (GDScript vs C# vs both)
### 1.2 Existing Game Integration [[EXISTING GAME ONLY]]
- [ ] Current Godot version compatibility verified
- [ ] Existing scene structure analyzed and documented
- [ ] Save game compatibility maintained
- [ ] Player progression preservation ensured
- [ ] Performance baseline measured (current FPS)
- [ ] Rollback strategy for each change defined
### 1.3 Development Environment
- [ ] Godot Editor version specified and installed
- [ ] .NET/Mono setup for C# development (if needed)
- [ ] Export templates downloaded for target platforms
- [ ] Asset import presets configured
- [ ] Editor settings standardized across team
- [ ] Performance profiling tools configured
### 1.4 Core Game Systems
- [ ] Autoload/singleton architecture defined early
- [ ] Input mapping configured for all platforms
- [ ] Audio bus layout established
- [ ] Scene transition system implemented
- [ ] Save/load system architecture defined
- [ ] [[EXISTING GAME ONLY]] Compatibility with existing systems verified
## 2. GAME ARCHITECTURE & PERFORMANCE
[[LLM: Architecture determines performance. Every system must support 60+ FPS target. Language choices (GDScript vs C#) impact performance.]]
### 2.1 Scene & Node Architecture
- [ ] Main scene structure defined before implementation
- [ ] Node naming conventions established
- [ ] Scene inheritance patterns planned
- [ ] Packed scenes for reusability identified
- [ ] Signal connections architecture documented
- [ ] [[EXISTING GAME ONLY]] Integration with existing scenes planned
### 2.2 Performance Systems
- [ ] Object pooling for bullets/enemies/particles planned
- [ ] LOD system for complex scenes defined
- [ ] Occlusion culling strategy established
- [ ] Draw call batching approach documented
- [ ] Memory budget per scene defined
- [ ] [[MOBILE ONLY]] Mobile-specific optimizations planned
### 2.3 Language Strategy
- [ ] GDScript systems identified (rapid iteration needs)
- [ ] C# systems identified (performance-critical code)
- [ ] Interop boundaries minimized and defined
- [ ] Static typing enforced in GDScript for performance
- [ ] [[EXISTING GAME ONLY]] Migration path from existing code
### 2.4 Resource Management
- [ ] Custom Resource classes for game data defined
- [ ] Texture import settings standardized
- [ ] Audio compression settings optimized
- [ ] Mesh and material optimization planned
- [ ] Asset loading strategy (preload vs lazy load)
## 3. PLATFORM & DEPLOYMENT
[[LLM: Platform constraints drive many decisions. Mobile has strict performance limits. Web has size constraints. Consoles need certification.]]
### 3.1 Platform Requirements
- [ ] Target platforms explicitly listed with priorities
- [ ] Minimum hardware specifications defined
- [ ] Platform-specific features identified
- [ ] Control schemes per platform defined
- [ ] Performance targets per platform (60 FPS minimum)
- [ ] [[MOBILE ONLY]] Touch controls and gestures designed
### 3.2 Export Configuration
- [ ] Export presets created for each platform
- [ ] Platform-specific settings configured
- [ ] Icon and splash screens prepared
- [ ] Code signing requirements identified
- [ ] [[MOBILE ONLY]] App store requirements checked
- [ ] [[WEB ONLY]] Browser compatibility verified
### 3.3 Build Pipeline
- [ ] Automated build process using Godot headless
- [ ] Version numbering strategy defined
- [ ] Build size optimization planned
- [ ] Platform-specific optimizations configured
- [ ] [[EXISTING GAME ONLY]] Patch/update system maintained
### 3.4 Testing Infrastructure
- [ ] GUT framework setup for GDScript tests
- [ ] GoDotTest configured for C# tests
- [ ] Performance testing benchmarks defined
- [ ] Platform testing matrix created
- [ ] [[EXISTING GAME ONLY]] Regression testing for existing features
## 4. GAME FEATURES & CONTENT
[[LLM: Features must be fun AND performant. Every feature impacts frame rate. Content must be optimized for target platforms.]]
### 4.1 Core Gameplay Features
- [ ] Core loop implemented with performance validation
- [ ] Player controls responsive (<50ms input latency)
- [ ] Game state management efficient
- [ ] Progression systems data-driven
- [ ] [[EXISTING GAME ONLY]] New features integrated smoothly
### 4.2 Content Pipeline
- [ ] Level/scene creation workflow defined
- [ ] Asset production pipeline established
- [ ] Localization system implemented
- [ ] Content validation process created
- [ ] [[EXISTING GAME ONLY]] Content compatibility ensured
### 4.3 Multiplayer Systems [[IF APPLICABLE]]
- [ ] Network architecture (P2P vs dedicated) chosen
- [ ] RPC usage planned and optimized
- [ ] State synchronization strategy defined
- [ ] Lag compensation implemented
- [ ] Bandwidth requirements validated
## 5. PLAYER EXPERIENCE & MONETIZATION
[[LLM: Player experience drives retention. Monetization must be ethical and balanced. Performance must never suffer for monetization.]]
### 5.1 Player Journey
- [ ] Onboarding experience optimized
- [ ] Tutorial system non-intrusive
- [ ] Difficulty curve properly balanced
- [ ] Progression feels rewarding
- [ ] [[EXISTING GAME ONLY]] Existing player experience preserved
### 5.2 Monetization Strategy [[IF APPLICABLE]]
- [ ] Monetization model clearly defined
- [ ] IAP implementation planned
- [ ] Ad integration performance impact assessed
- [ ] Economy balanced for free and paying players
- [ ] [[EXISTING GAME ONLY]] Existing economy not disrupted
### 5.3 Analytics & Metrics
- [ ] Key metrics identified (retention, engagement)
- [ ] Analytics integration planned
- [ ] Performance tracking implemented
- [ ] A/B testing framework considered
- [ ] [[EXISTING GAME ONLY]] Historical data preserved
## 6. QUALITY & PERFORMANCE VALIDATION
[[LLM: Quality determines success. Performance determines playability. Testing prevents player frustration.]]
### 6.1 Performance Standards
- [ ] 60+ FPS target on all platforms confirmed
- [ ] Frame time budget per system defined
- [ ] Memory usage limits established
- [ ] Load time targets set (<3 seconds)
- [ ] Battery usage optimized for mobile
### 6.2 Testing Strategy
- [ ] Unit tests for game logic (GUT/GoDotTest)
- [ ] Integration tests for scenes
- [ ] Performance tests automated
- [ ] Playtesting schedule defined
- [ ] [[EXISTING GAME ONLY]] Regression testing comprehensive
### 6.3 Polish & Game Feel
- [ ] Juice and polish planned
- [ ] Particle effects budgeted
- [ ] Screen shake and effects optimized
- [ ] Audio feedback immediate
- [ ] Visual feedback responsive
## 7. RISK MANAGEMENT
[[LLM: Games fail from poor performance, bugs, or lack of fun. Identify and mitigate risks early.]]
### 7.1 Technical Risks
- [ ] Performance bottlenecks identified
- [ ] Platform limitations acknowledged
- [ ] Third-party dependencies minimized
- [ ] Godot version stability assessed
- [ ] [[EXISTING GAME ONLY]] Breaking change risks evaluated
### 7.2 Game Design Risks
- [ ] Fun factor validation planned
- [ ] Difficulty spike risks identified
- [ ] Player frustration points addressed
- [ ] Monetization balance risks assessed
- [ ] [[EXISTING GAME ONLY]] Player backlash risks considered
### 7.3 Mitigation Strategies
- [ ] Performance fallbacks defined
- [ ] Feature flags for risky features
- [ ] Rollback procedures documented
- [ ] Player communication plan ready
- [ ] [[EXISTING GAME ONLY]] Save game migration tested
## 8. MVP SCOPE & PRIORITIES
[[LLM: MVP means Minimum VIABLE Product. Must be fun, performant, and complete. No half-features.]]
### 8.1 Core Features
- [ ] Essential gameplay features identified
- [ ] Nice-to-have features deferred
- [ ] Complete player journey possible
- [ ] All platforms equally playable
- [ ] [[EXISTING GAME ONLY]] Enhancement value justified
### 8.2 Content Scope
- [ ] Minimum viable content defined
- [ ] Vertical slice fully polished
- [ ] Replayability considered
- [ ] Content production realistic
- [ ] [[EXISTING GAME ONLY]] Existing content maintained
### 8.3 Technical Scope
- [ ] Performance targets achievable
- [ ] Platform requirements met
- [ ] Testing coverage adequate
- [ ] Technical debt acceptable
- [ ] [[EXISTING GAME ONLY]] Integration complexity managed
## 9. TEAM & TIMELINE
[[LLM: Game development is iterative. Teams need clear milestones. Realistic timelines prevent crunch.]]
### 9.1 Development Phases
- [ ] Prototype phase defined (core loop)
- [ ] Production phase planned (content creation)
- [ ] Polish phase allocated (juice and optimization)
- [ ] Certification time included (if console)
- [ ] [[EXISTING GAME ONLY]] Integration phases defined
### 9.2 Team Capabilities
- [ ] Godot expertise adequate
- [ ] GDScript/C# skills matched to needs
- [ ] Art pipeline capabilities confirmed
- [ ] Testing resources allocated
- [ ] [[EXISTING GAME ONLY]] Domain knowledge preserved
## 10. POST-LAUNCH CONSIDERATIONS
[[LLM: Games are living products. Plan for success. Updates and content keep players engaged.]]
### 10.1 Live Operations
- [ ] Update delivery mechanism planned
- [ ] Content pipeline sustainable
- [ ] Bug fix process defined
- [ ] Player support prepared
- [ ] [[EXISTING GAME ONLY]] Compatibility maintained
### 10.2 Future Content
- [ ] DLC/expansion architecture supports
- [ ] Season pass structure considered
- [ ] Event system architecture ready
- [ ] Community features planned
- [ ] [[EXISTING GAME ONLY]] Expansion doesn't break base game
## VALIDATION SUMMARY
[[LLM: FINAL GAME PO VALIDATION REPORT
Generate comprehensive validation report:
1. Executive Summary
- Project type: [New Game/Game Enhancement]
- Target platforms: [List]
- Performance risk: [High/Medium/Low]
- Go/No-Go recommendation
- Language strategy assessment (GDScript/C#)
2. Performance Analysis
- 60 FPS achievability per platform
- Memory budget compliance
- Load time projections
- Battery impact (mobile)
- Optimization opportunities
3. Player Experience Assessment
- Fun factor validation
- Progression balance
- Monetization ethics
- Retention projections
- [EXISTING GAME] Player disruption
4. Technical Readiness
- Godot architecture completeness
- Language strategy appropriateness
- Testing coverage adequacy
- Platform requirements met
- [EXISTING GAME] Integration complexity
5. Risk Assessment
- Top 5 risks by severity
- Performance bottlenecks
- Platform constraints
- Timeline concerns
- Mitigation recommendations
6. MVP Validation
- Core loop completeness
- Platform parity
- Content sufficiency
- Polish level adequacy
- True MVP vs over-scope
7. Recommendations
- Must-fix before development
- Should-fix for quality
- Consider for improvement
- Post-launch additions
Ask if user wants:
- Detailed performance analysis
- Platform-specific deep dive
- Risk mitigation strategies
- Timeline optimization suggestions]]
### Category Statuses
| Category | Status | Critical Issues |
| ----------------------------- | ------ | --------------- |
| 1. Godot Project Setup | _TBD_ | |
| 2. Architecture & Performance | _TBD_ | |
| 3. Platform & Deployment | _TBD_ | |
| 4. Game Features & Content | _TBD_ | |
| 5. Player Experience | _TBD_ | |
| 6. Quality & Performance | _TBD_ | |
| 7. Risk Management | _TBD_ | |
| 8. MVP Scope | _TBD_ | |
| 9. Team & Timeline | _TBD_ | |
| 10. Post-Launch | _TBD_ | |
### Critical Performance Risks
(To be populated during validation)
### Platform-Specific Concerns
(To be populated during validation)
### Final Decision
- **APPROVED**: Game plan is comprehensive, performant, and ready for Godot development
- **CONDITIONAL**: Plan requires specific adjustments for performance/platform requirements
- **REJECTED**: Plan requires significant revision to meet quality and performance standards

View File

@@ -0,0 +1,202 @@
# Game Development Story Definition of Done (DoD) Checklist (Godot)
## Instructions for Developer Agent
Before marking a story as 'Ready for Review', please go through each item in this checklist. Report the status of each item (e.g., [x] Done, [ ] Not Done, [N/A] Not Applicable) and provide brief comments if necessary.
[[LLM: INITIALIZATION INSTRUCTIONS - GODOT GAME STORY DOD VALIDATION
This checklist is for GAME DEVELOPER AGENTS to self-validate their Godot implementation work before marking a story complete.
IMPORTANT: This is a self-assessment following TDD principles. Be honest about what's actually done vs what should be done. Performance targets (60+ FPS) are non-negotiable.
EXECUTION APPROACH:
1. Verify tests were written FIRST (TDD compliance)
2. Go through each section systematically
3. Mark items as [x] Done, [ ] Not Done, or [N/A] Not Applicable
4. Add brief comments explaining any [ ] or [N/A] items
5. Report performance metrics (FPS, draw calls, memory)
6. Flag any technical debt or optimization needs
The goal is performant, tested, quality delivery following John Carmack's optimization philosophy.]]
## Checklist Items
1. **Test-Driven Development Compliance:**
[[LLM: TDD is mandatory. Tests must be written FIRST. No exceptions.]]
- [ ] Tests were written BEFORE implementation (Red phase)
- [ ] Tests initially failed as expected
- [ ] Implementation made tests pass (Green phase)
- [ ] Code was refactored while maintaining passing tests (Refactor phase)
- [ ] GUT tests written for all GDScript code
- [ ] GoDotTest tests written for all C# code
- [ ] Test coverage meets 80% minimum requirement
- [ ] Performance benchmarks defined and passing
2. **Requirements & Game Design:**
[[LLM: Requirements drive implementation. GDD alignment is critical.]]
- [ ] All functional requirements from story implemented
- [ ] All acceptance criteria met and tested
- [ ] Game Design Document (GDD) requirements implemented
- [ ] Player experience goals achieved
- [ ] Core gameplay loop functions correctly
- [ ] Fun factor validated through testing
3. **Godot Standards & Architecture:**
[[LLM: Godot best practices ensure maintainability and performance.]]
- [ ] Node hierarchy follows Godot conventions
- [ ] Scene composition patterns properly used
- [ ] Signal connections documented and optimized
- [ ] Autoload/singleton usage justified
- [ ] Resource system used appropriately
- [ ] Export variables properly configured
- [ ] Node groups used for efficient queries
- [ ] Scene inheritance utilized where appropriate
4. **Code Quality & Language Strategy:**
[[LLM: Language choice impacts performance. GDScript for iteration, C# for computation.]]
- [ ] GDScript code uses static typing throughout
- [ ] C# code follows .NET conventions
- [ ] Language choice (GDScript vs C#) justified for each system
- [ ] Interop between languages minimized
- [ ] Memory management patterns followed (pooling, references)
- [ ] No GDScript/C# marshalling in hot paths
- [ ] Code comments explain optimization decisions
- [ ] No new script errors or warnings
5. **Performance Validation:**
[[LLM: 60+ FPS is the minimum, not the target. Profile everything.]]
- [ ] Stable 60+ FPS achieved on target hardware
- [ ] Frame time consistently under 16.67ms
- [ ] Draw calls within budget for scene type
- [ ] Memory usage within platform limits
- [ ] No memory leaks detected
- [ ] Object pooling implemented where needed
- [ ] Godot profiler shows no bottlenecks
- [ ] Performance regression tests pass
6. **Platform Testing:**
[[LLM: Test on all target platforms. Platform-specific issues kill games.]]
- [ ] Functionality verified in Godot Editor
- [ ] Desktop export tested (Windows/Mac/Linux)
- [ ] Mobile export tested if applicable (iOS/Android)
- [ ] Web export tested if applicable (HTML5)
- [ ] Input handling works on all platforms
- [ ] Platform-specific optimizations applied
- [ ] Export settings properly configured
- [ ] Build sizes within acceptable limits
7. **Game Functionality:**
[[LLM: Games must be fun AND functional. Test the player experience.]]
- [ ] Game mechanics work as specified
- [ ] Player controls responsive (<50ms input latency)
- [ ] UI elements function correctly (Control nodes)
- [ ] Audio integration works (AudioStreamPlayer)
- [ ] Visual feedback and animations smooth
- [ ] Particle effects within performance budget
- [ ] Save/load system functions correctly
- [ ] Scene transitions work smoothly
8. **Testing Coverage:**
[[LLM: Comprehensive testing prevents player frustration.]]
- [ ] Unit tests (GUT/GoDotTest) all passing
- [ ] Integration tests for scene interactions pass
- [ ] Performance tests meet benchmarks
- [ ] Edge cases and error conditions handled
- [ ] Multiplayer tests pass (if applicable)
- [ ] Platform-specific tests complete
- [ ] Regression tests for existing features pass
- [ ] Manual playtesting completed
9. **Story Administration:**
[[LLM: Documentation enables team collaboration.]]
- [ ] All tasks within story marked complete [x]
- [ ] Implementation decisions documented
- [ ] Performance optimizations noted
- [ ] File List section updated with all changes
- [ ] Debug Log references added
- [ ] Completion Notes comprehensive
- [ ] Change Log updated
- [ ] Status set to 'Ready for Review'
10. **Project & Dependencies:**
[[LLM: Project must build and run. Dependencies must be justified.]]
- [ ] Godot project opens without errors
- [ ] Project exports successfully for all platforms
- [ ] Any new plugins/addons pre-approved
- [ ] Asset import settings optimized
- [ ] Project settings properly configured
- [ ] Version control files (.tscn/.tres) clean
- [ ] No uncommitted debug code
- [ ] Build automation scripts updated
11. **Optimization & Polish:**
[[LLM: Following Carmack's philosophy - measure, optimize, verify.]]
- [ ] Hot paths identified and optimized
- [ ] Critical code moved to C# if needed
- [ ] Draw call batching implemented
- [ ] Texture atlasing used where appropriate
- [ ] LOD system implemented if needed
- [ ] Occlusion culling configured
- [ ] Static typing used throughout GDScript
- [ ] Signal connections optimized
12. **Documentation:**
[[LLM: Good documentation prevents future confusion.]]
- [ ] GDScript documentation comments complete
- [ ] C# XML documentation complete
- [ ] Node purposes documented in scenes
- [ ] Export variable tooltips added
- [ ] Performance notes included
- [ ] Platform-specific notes documented
- [ ] Known issues or limitations noted
## Performance Metrics Report
[[LLM: Report actual performance metrics, not estimates.]]
- **Frame Rate:** \_\_\_ FPS (Target: 60+)
- **Frame Time:** \_\_\_ ms (Target: <16.67ms)
- **Draw Calls:** **_ (Budget: _**)
- **Memory Usage:** **_ MB (Limit: _**)
- **Scene Load Time:** \_\_\_ seconds
- **Input Latency:** \_\_\_ ms
- **Test Coverage:** \_\_\_% (Minimum: 80%)
## Final Confirmation
[[LLM: FINAL GODOT DOD SUMMARY
After completing the checklist:
1. Confirm TDD was followed (tests written first)
2. Report performance metrics with specific numbers
3. List any items marked [ ] with explanations
4. Identify optimization opportunities
5. Note any technical debt created
6. Confirm the story is truly ready for review
7. State whether 60+ FPS target is met
Remember Carmack's principle: "Focus on what matters: framerate and responsiveness."
Be honest - performance issues and bugs found now are easier to fix than after release.]]
- [ ] I, the Game Developer Agent, confirm that:
- [ ] TDD was followed (tests written first)
- [ ] All applicable items above have been addressed
- [ ] Performance targets (60+ FPS) are met
- [ ] Tests provide 80%+ coverage
- [ ] The story is ready for review

View File

@@ -0,0 +1,30 @@
name: bmad-godot-game-dev
version: 1.0.0
short-title: Godot Game Dev Pack
description: Game Development expansion pack for BMad Method - Godot GDscript & C# focused
author: sjennings (Lum), based on BMAD Unity Game Dev expansion pack by pbean (PinkyD)
slashPrefix: BmadG
markdownExploder: true
qa:
qaLocation: docs/qa
prd:
prdFile: docs/prd.md
prdVersion: v4
prdSharded: true
prdShardedLocation: docs/prd
epicFilePattern: epic-{n}*.md
architecture:
architectureFile: docs/architecture.md
architectureVersion: v4
architectureSharded: true
architectureShardedLocation: docs/architecture
customTechnicalDocuments: null
devLoadAlwaysFiles:
- docs/architecture/coding-standards.md
- docs/architecture/tech-stack.md
- docs/architecture/source-tree.md
- docs/architecture/testing-strategy-and-standards.md
qaLoadAlwaysFiles:
- docs/architecture/testing-strategy-and-standards.md
devDebugLog: .ai/debug-log.md
devStoryLocation: docs/stories

View File

@@ -0,0 +1,811 @@
# BMad Knowledge Base - Godot Game Development
## Overview
This is the game development expansion of BMad-Method (Breakthrough Method of Agile AI-driven Development), specializing in creating 2D and 3D games using Godot Engine with GDScript and C#. The system introduces a modular architecture with improved dependency management, bundle optimization, and support for both web and IDE environments, specifically optimized for Godot game development workflows.
### Key Features for Game Development
- **Game-Specialized Agent System**: AI agents for each game development role (Designer, Developer, Scrum Master, QA)
- **Godot-Optimized Build System**: Automated dependency resolution for game assets and scenes
- **Dual Environment Support**: Optimized for both web UIs and game development IDEs
- **Game Development Resources**: Specialized templates, tasks, and checklists for Godot games
- **Performance-First Approach**: Built-in optimization patterns for cross-platform game deployment (60+ FPS target)
- **TDD Enforcement**: Test-driven development with GUT (GDScript) and GoDotTest (C#)
### Game Development Focus
- **Target Engine**: Godot 4.x (or 3.x LTS) with GDScript and C#/.NET support
- **Platform Strategy**: Cross-platform (Desktop, Mobile, Web, Console) with 2D/3D support
- **Development Approach**: Agile story-driven development with TDD and performance focus
- **Performance Target**: 60+ FPS minimum on target devices (following Carmack's principles)
- **Architecture**: Node-based architecture using Godot's scene system and signals
- **Language Strategy**: GDScript for rapid iteration, C# for performance-critical systems
### When to Use BMad for Game Development
- **New Game Projects (Greenfield)**: Complete end-to-end game development from concept to deployment
- **Existing Game Projects (Brownfield)**: Feature additions, level expansions, and gameplay enhancements
- **Game Team Collaboration**: Multiple specialized roles working together on game features
- **Game Quality Assurance**: Structured testing with TDD, performance validation, and gameplay balance
- **Game Documentation**: Professional Game Design Documents, technical architecture, user stories
## How BMad Works for Game Development
### The Core Method
BMad transforms you into a "Player Experience CEO" - directing a team of specialized game development AI agents through structured workflows. Here's how:
1. **You Direct, AI Executes**: You provide game vision and creative decisions; agents handle implementation details
2. **Specialized Game Agents**: Each agent masters one game development role (Designer, Developer, Scrum Master, QA)
3. **Game-Focused Workflows**: Proven patterns guide you from game concept to deployed Godot game
4. **Clean Handoffs**: Fresh context windows ensure agents stay focused and effective for game development
### The Two-Phase Game Development Approach
#### Phase 1: Game Design & Planning (Web UI - Cost Effective)
- Use large context windows for comprehensive game design
- Generate complete Game Design Documents and technical architecture
- Leverage multiple agents for creative brainstorming and mechanics refinement
- Create once, use throughout game development
#### Phase 2: Game Development (IDE - Implementation)
- Shard game design documents into manageable pieces
- Execute focused SM → Dev cycles for game features
- One game story at a time, sequential progress
- Real-time Godot operations, GDScript/C# coding, and game testing
### The Game Development Loop
```text
1. Game SM Agent (New Chat) → Creates next game story from sharded docs
2. You → Review and approve game story
3. Game Dev Agent (New Chat) → Implements approved game feature in Godot (TDD-first)
4. QA Agent (New Chat) → Reviews code, enforces TDD, validates performance
5. You → Verify game feature completion and 60+ FPS
6. Repeat until game epic complete
```
### Why This Works for Games
- **Context Optimization**: Clean chats = better AI performance for complex game logic
- **Role Clarity**: Agents don't context-switch = higher quality game features
- **Incremental Progress**: Small game stories = manageable complexity
- **Player-Focused Oversight**: You validate each game feature = quality control
- **Design-Driven**: Game specs guide everything = consistent player experience
- **Performance-First**: Every decision validated against 60+ FPS target
### Core Game Development Philosophy
#### Player-First Development
You are developing games as a "Player Experience CEO" - thinking like a game director with unlimited creative resources and a singular vision for player enjoyment.
#### Game Development Principles
1. **MAXIMIZE_PLAYER_ENGAGEMENT**: Push the AI to create compelling gameplay. Challenge mechanics and iterate.
2. **PERFORMANCE_IS_KING**: 60+ FPS is the minimum, not the target. Profile everything.
3. **TDD_MANDATORY**: Tests written first, no exceptions. GUT for GDScript, GoDotTest for C#.
4. **GAMEPLAY_QUALITY_CONTROL**: You are the ultimate arbiter of fun. Review all game features.
5. **CREATIVE_OVERSIGHT**: Maintain the high-level game vision and ensure design alignment.
6. **ITERATIVE_REFINEMENT**: Expect to revisit game mechanics. Game development is not linear.
7. **CLEAR_GAME_INSTRUCTIONS**: Precise game requirements lead to better implementations.
8. **DOCUMENTATION_IS_KEY**: Good game design docs lead to good game features.
9. **START_SMALL_SCALE_FAST**: Test core mechanics, then expand and polish.
10. **EMBRACE_CREATIVE_CHAOS**: Adapt and overcome game development challenges.
## Getting Started with Game Development
### Quick Start Options for Game Development
#### Option 1: Web UI for Game Design
**Best for**: Game designers who want to start with comprehensive planning
1. Navigate to `dist/teams/` (after building)
2. Copy `godot-game-team.txt` content
3. Create new Gemini Gem or CustomGPT
4. Upload file with instructions: "Your critical operating instructions are attached, do not break character as directed"
5. Type `/help` to see available game development commands
#### Option 2: IDE Integration for Game Development
**Best for**: Godot developers using Cursor, Claude Code, Windsurf, Trae, Cline, Roo Code, Github Copilot
```bash
# Interactive installation (recommended)
npx bmad-method install
# Select the bmad-godot-game-dev expansion pack when prompted
```
**Installation Steps for Game Development**:
- Choose "Install expansion pack" when prompted
- Select "bmad-godot-game-dev" from the list
- Select your IDE from supported options:
- **Cursor**: Native AI integration with Godot support
- **Claude Code**: Anthropic's official IDE
- **Windsurf**: Built-in AI capabilities
- **Trae**: Built-in AI capabilities
- **Cline**: VS Code extension with AI features
- **Roo Code**: Web-based IDE with agent support
- **GitHub Copilot**: VS Code extension with AI peer programming assistant
**Verify Game Development Installation**:
- `.bmad-core/` folder created with all core agents
- `.bmad-godot-game-dev/` folder with game development agents
- IDE-specific integration files created
- Game development agents available with `/BmadG` prefix
### Environment Selection Guide for Game Development
**Use Web UI for**:
- Game design document creation and brainstorming
- Cost-effective comprehensive game planning (especially with Gemini)
- Multi-agent game design consultation
- Creative ideation and mechanics refinement
**Use IDE for**:
- Godot project development and GDScript/C# coding
- Scene operations and node hierarchy management
- Game story management and implementation workflow
- Godot testing with GUT/GoDotTest, profiling, and debugging
**Cost-Saving Tip for Game Development**: Create large game design documents in web UI, then copy to `docs/game-design-doc.md` and `docs/architecture.md` in your Godot project before switching to IDE for development.
### IDE-Only Game Development Workflow Considerations
**Can you do everything in IDE?** Yes, but understand the game development tradeoffs:
**Pros of IDE-Only Game Development**:
- Single environment workflow from design to Godot deployment
- Direct Godot project operations from start
- No copy/paste between environments
- Immediate Godot project integration
**Cons of IDE-Only Game Development**:
- Higher token costs for large game design document creation
- Smaller context windows for comprehensive game planning
- May hit limits during creative brainstorming phases
- Less cost-effective for extensive game design iteration
- **Note**: Gemini CLI with Gemini Pro's 1m context window, for the planning phase, makes IDE-Only Game Development feasible
**CRITICAL RULE for Game Development**:
- **ALWAYS use Game SM agent for story creation** - Never use bmad-master or bmad-orchestrator
- **ALWAYS use Game Dev agent for Godot implementation** - Never use bmad-master or bmad-orchestrator
- **Why this matters**: Game SM and Game Dev agents are specifically optimized for Godot workflows
- **No exceptions**: Even if using bmad-master for design, switch to Game SM → Game Dev for implementation
## Core Configuration for Game Development (core-config.yaml)
**New in V4**: The `expansion-packs/bmad-godot-game-dev/core-config.yaml` file enables BMad to work seamlessly with any Godot project structure, providing maximum flexibility for game development.
### Game Development Configuration
The expansion pack follows the standard BMad configuration patterns. Copy your core-config.yaml file to expansion-packs/bmad-godot-game-dev/ and add Game-specific configurations to your project's `core-config.yaml`:
```yaml
markdownExploder: true
prd:
prdFile: docs/prd.md
prdVersion: v4
prdSharded: true
prdShardedLocation: docs/prd
epicFilePattern: epic-{n}*.md
architecture:
architectureFile: docs/architecture.md
architectureVersion: v4
architectureSharded: true
architectureShardedLocation: docs/architecture
gdd:
gddVersion: v4
gddSharded: true
gddLocation: docs/game-design-doc.md
gddShardedLocation: docs/gdd
epicFilePattern: epic-{n}*.md
gamearchitecture:
gamearchitectureFile: docs/architecture.md
gamearchitectureVersion: v3
gamearchitectureLocation: docs/architecture.md
gamearchitectureSharded: true
gamearchitectureShardedLocation: docs/architecture
gamebriefdocLocation: docs/game-brief.md
levelDesignLocation: docs/level-design.md
# Specify Godot executable location if needed
godotExecutablePath: /Applications/Godot.app/Contents/MacOS/Godot
customTechnicalDocuments: null
devDebugLog: .ai/debug-log.md
devStoryLocation: docs/stories
slashPrefix: BmadG
# Sharded architecture files for developer reference
devLoadAlwaysFiles:
- docs/architecture/9-coding-standards.md
- docs/architecture/3-tech-stack.md
- docs/architecture/8-godot-project-structure.md
```
## Complete Game Development Workflow
### Planning Phase (Web UI Recommended - Especially Gemini for Game Design!)
**Ideal for cost efficiency with Gemini's massive context for game brainstorming:**
**For All Game Projects**:
1. **Game Concept Brainstorming**: `/bmadg/game-designer` - Use `*game-design-brainstorming` task
2. **Game Brief**: Create foundation game document using `game-brief-tmpl`
3. **Game Design Document Creation**: `/bmadg/game-designer` - Use `game-design-doc-tmpl` for comprehensive game requirements
4. **Game Architecture Design**: `/bmadg/game-architect` - Use `game-architecture-tmpl` for Godot technical foundation
5. **Level Design Framework**: `/bmadg/game-designer` - Use `level-design-doc-tmpl` for level structure planning
6. **Document Preparation**: Copy final documents to Godot project as `docs/game-design-doc.md`, `docs/game-brief.md`, `docs/level-design.md` and `docs/architecture.md`
#### Example Game Planning Prompts
**For Game Design Document Creation**:
```text
"I want to build a [genre] 2D game in Godot that [core gameplay].
Help me brainstorm mechanics and create a comprehensive Game Design Document."
```
**For Game Architecture Design**:
```text
"Based on this Game Design Document, design a scalable Godot architecture
that can handle [specific game requirements] with 60+ FPS performance.
Consider both GDScript and C# for appropriate systems."
```
### Critical Transition: Web UI to Godot IDE
**Once game planning is complete, you MUST switch to IDE for Godot development:**
- **Why**: Godot development workflow requires scene operations, GDScript/C# coding, and real-time testing
- **Cost Benefit**: Web UI is more cost-effective for large game design creation; IDE is optimized for Godot development
- **Required Files**: Ensure `docs/game-design-doc.md` and `docs/architecture.md` exist in your Godot project
### Godot IDE Development Workflow
**Prerequisites**: Game planning documents must exist in `docs/` folder of Godot project
1. **Document Sharding** (CRITICAL STEP for Game Development):
- Documents created by Game Designer/Architect (in Web or IDE) MUST be sharded for development
- Use core BMad agents or tools to shard:
a) **Manual**: Use core BMad `shard-doc` task if available
b) **Agent**: Ask core `@bmad-master` agent to shard documents
- Shards `docs/game-design-doc.md``docs/game-design/` folder
- Shards `docs/architecture.md``docs/architecture/` folder
- **WARNING**: Do NOT shard in Web UI - copying many small files to Godot is painful!
2. **Verify Sharded Game Content**:
- At least one `feature-n.md` file in `docs/game-design/` with game stories in development order
- Godot system documents and coding standards for game dev agent reference
- Sharded docs for Game SM agent story creation
Resulting Godot Project Folder Structure:
- `docs/game-design/` - Broken down game design sections
- `docs/architecture/` - Broken down Godot architecture sections
- `docs/game-stories/` - Generated game development stories
3. **Game Development Cycle** (Sequential, one game story at a time):
**CRITICAL CONTEXT MANAGEMENT for Godot Development**:
- **Context windows matter!** Always use fresh, clean context windows
- **Model selection matters!** Use most powerful thinking model for Game SM story creation
- **ALWAYS start new chat between Game SM, Game Dev, and QA work**
**Step 1 - Game Story Creation**:
- **NEW CLEAN CHAT** → Select powerful model → `/bmadgd/game-sm``*draft`
- Game SM executes create-game-story task using `game-story-tmpl`
- Review generated story in `docs/game-stories/`
- _Optional_ - Use `/bmadg/game-po` -> `*validate-story-draft (story)` to confirm alignment
- Update status from "Draft" to "Approved"
**Step 2 - Godot Game Story Implementation (TDD)**:
- **NEW CLEAN CHAT** → `/bmadg/game-developer`
- Agent asks which game story to implement
- Include story file content to save game dev agent lookup time
- **CRITICAL**: Game Dev writes tests FIRST (GUT/GoDotTest)
- Game Dev implements to make tests pass
- Game Dev maintains File List of all Godot/GDScript/C# changes
- Game Dev validates 60+ FPS performance
- Game Dev marks story as "Ready for Review" when complete with all tests passing
**Step 3 - Game QA Review**:
- **NEW CLEAN CHAT** → `/bmadg/game-qa` → execute review-story task
- QA enforces TDD compliance (tests written first)
- QA validates 60+ FPS performance
- QA can refactor and improve Godot code directly
- QA appends results to story's QA Results section
- If approved: Status → "Done"
- If changes needed: Status stays "Review" with unchecked items for game dev
**Step 4 - Repeat**: Continue Game SM → Game Dev → QA cycle until all game feature stories complete
**Important**: Only 1 game story in progress at a time, worked sequentially until all game feature stories complete.
### Game Story Status Tracking Workflow
Game stories progress through defined statuses:
- **Draft** → **Approved****InProgress****Ready for Review****Done**
Each status change requires user verification and approval before proceeding.
### Game Development Workflow Types
#### Greenfield Game Development
- Game concept brainstorming and mechanics design
- Game design requirements and feature definition
- Godot system architecture and technical design
- Game development execution with TDD
- Game testing, performance optimization (60+ FPS), and deployment
#### Brownfield Game Enhancement (Existing Godot Projects)
**Key Concept**: Brownfield game development requires comprehensive documentation of your existing Godot project for AI agents to understand game mechanics, node patterns, and technical constraints.
**Brownfield Game Enhancement Workflow**:
1. **Upload Godot project to Web UI** (GitHub URL, files, or zip)
2. **Create adapted Game Design Document**: `/bmadg/game-designer` - Modify `game-design-doc-tmpl` to include:
- Analysis of existing scene structure
- Integration points for new features
- Save game compatibility requirements
- Risk assessment for changes
3. **Game Architecture Planning**:
- Use `/bmadg/game-architect` with `game-architecture-tmpl`
- Focus on how new features integrate with existing Godot systems
- Plan for gradual rollout and testing
4. **Story Creation for Enhancements**:
- Use `/bmadg/game-sm` with `*create-game-story`
- Stories should explicitly reference existing scenes/scripts to modify
- Include integration testing requirements
**Critical Success Factors for Game Development**:
1. **Game Documentation First**: Always document existing code thoroughly before making changes
2. **Godot Context Matters**: Provide agents access to relevant scenes and scripts
3. **Gameplay Integration Focus**: Emphasize compatibility and non-breaking changes to game mechanics
4. **Incremental Approach**: Plan for gradual rollout and extensive game testing
5. **Performance Validation**: Every change must maintain 60+ FPS
## Document Creation Best Practices for Game Development
### Required File Naming for Game Framework Integration
- `docs/game-design-doc.md` - Game Design Document
- `docs/architecture.md` - Godot System Architecture Document
**Why These Names Matter for Game Development**:
- Game agents automatically reference these files during Godot development
- Game sharding tasks expect these specific filenames
- Game workflow automation depends on standard naming
### Cost-Effective Game Document Creation Workflow
**Recommended for Large Game Documents (Game Design Document, Game Architecture):**
1. **Use Web UI**: Create game documents in web interface for cost efficiency
2. **Copy Final Output**: Save complete markdown to your Godot project
3. **Standard Names**: Save as `docs/game-design-doc.md` and `docs/architecture.md`
4. **Switch to Godot IDE**: Use IDE agents for Godot development and smaller game documents
### Game Document Sharding
Game templates with Level 2 headings (`##`) can be automatically sharded:
**Original Game Design Document**:
```markdown
## Core Gameplay Mechanics
## Player Progression System
## Level Design Framework
## Technical Requirements
```
**After Sharding**:
- `docs/game-design/core-gameplay-mechanics.md`
- `docs/game-design/player-progression-system.md`
- `docs/game-design/level-design-framework.md`
- `docs/game-design/technical-requirements.md`
Use the `shard-doc` task or `@kayvan/markdown-tree-parser` tool for automatic game document sharding.
## Game Agent System
### Core Game Development Team
| Agent | Role | Primary Functions | When to Use |
| ---------------- | ---------------------- | ------------------------------------------------ | -------------------------------------------- |
| `game-designer` | Game Designer | Game mechanics, creative design, GDD | Game concept, mechanics, creative direction |
| `game-developer` | Godot Developer | GDScript/C# implementation, TDD, optimization | All Godot development tasks (tests first!) |
| `game-sm` | Game Scrum Master | Game story creation, sprint planning | Game project management, workflow |
| `game-architect` | Game Architect | Godot system design, performance architecture | Complex Godot systems, 60+ FPS planning |
| `game-qa` | Game QA & TDD Enforcer | TDD enforcement, performance validation, testing | Code review, test verification, optimization |
### Game Agent Interaction Commands
#### IDE-Specific Syntax for Game Development
**Game Agent Loading by IDE**:
- **Claude Code**: `/bmadg/game-designer`, `/bmadg/game-developer`, `/bmadg/game-sm`, `/bmadg/game-architect`, `/bmadg/game-qa`
- **Cursor**: `@bmadg/game-designer`, `@bmadg/game-developer`, `@bmadg/game-sm`, `@bmadg/game-architect`, `@bmadg/game-qa`
- **Windsurf**: `/bmadg/game-designer`, `/bmadg/game-developer`, `/bmadg/game-sm`, `/bmadg/game-architect`, `/bmadg/game-qa`
- **Trae**: `@bmadg/game-designer`, `@bmadg/game-developer`, `@bmadg/game-sm`, `@bmadg/game-architect`, `@bmadg/game-qa`
- **Roo Code**: Select mode from mode selector with bmadg prefix
- **GitHub Copilot**: Open the Chat view (`⌃⌘I` on Mac, `Ctrl+Alt+I` on Windows/Linux) and select the appropriate game agent
**Common Game Development Task Commands**:
- `*help` - Show available game development commands
- `*status` - Show current game development context/progress
- `*exit` - Exit the game agent mode
- `*game-design-brainstorming` - Brainstorm game concepts and mechanics (Game Designer)
- `*draft` - Create next game development story (Game SM agent)
- `*review {story}` - Review story with TDD enforcement (Game QA agent)
- `*enforce-tdd {story}` - Verify tests written first (Game QA agent)
- `*correct-course-game` - Course correction for game development issues
- `*advanced-elicitation` - Deep dive into game requirements
## Game-Specific Development Guidelines
### Godot + GDScript/C# Standards
**Project Structure**:
```text
GodotProject/
├── .godot/ # Godot cache (gitignore)
├── scenes/ # Game scenes
│ ├── main/ # Main game scenes
│ ├── ui/ # UI scenes
│ ├── levels/ # Level scenes
│ └── components/ # Reusable scene components
├── scripts/ # GDScript and C# scripts
│ ├── player/ # Player-related scripts
│ ├── enemies/ # Enemy scripts
│ ├── systems/ # Game systems
│ ├── ui/ # UI scripts
│ └── utils/ # Utility scripts
├── resources/ # Custom Resources
│ ├── items/ # Item definitions
│ ├── stats/ # Stat Resources
│ └── settings/ # Game settings
├── assets/ # Art and audio assets
│ ├── sprites/ # 2D sprites
│ ├── models/ # 3D models (if 3D)
│ ├── audio/ # Sound effects and music
│ └── fonts/ # Font files
├── tests/ # Test suites
│ ├── unit/ # GUT unit tests
│ └── integration/ # Integration tests
├── addons/ # Godot plugins
│ ├── gut/ # GUT testing framework
│ └── godottest/ # GoDotTest for C#
├── export_presets.cfg # Export configurations
└── project.godot # Project settings
```
**Performance Requirements**:
- Maintain 60+ FPS minimum on target devices (Carmack's principle)
- Frame time under 16.67ms consistently
- Memory usage under platform-specific limits
- Loading times under 3 seconds for scenes
- Input latency under 50ms
**Code Quality**:
- GDScript with static typing enforced
- C# for performance-critical systems
- Node-based architecture (composition over inheritance)
- Signal-based communication between systems
- Resource-driven data management
- TDD with 80% minimum test coverage
### Game Development Story Structure
**Story Requirements**:
- Clear reference to Game Design Document section
- Specific acceptance criteria for game functionality
- Technical implementation details for Godot
- Performance requirements (60+ FPS validation)
- Testing requirements (tests written FIRST)
- Language selection justification (GDScript vs C#)
**Story Categories**:
- **Core Mechanics**: Fundamental gameplay systems
- **Scene Content**: Individual scenes and level implementation
- **UI/UX**: Control nodes and player experience features
- **Performance**: Optimization and technical improvements
- **Polish**: Visual effects, audio, and game feel enhancements
### Quality Assurance for Games
**Testing Approach (TDD Mandatory)**:
- Unit tests written FIRST (GUT for GDScript)
- Integration tests for scene interactions (GoDotTest for C#)
- Performance benchmarking with Godot profiler
- Gameplay testing and balance validation
- Cross-platform compatibility testing
- 80% minimum test coverage
**Performance Monitoring**:
- Frame rate consistency tracking (60+ FPS)
- Draw call optimization
- Memory usage monitoring
- Scene loading performance
- Input responsiveness validation
- Battery usage optimization (mobile)
## Usage Patterns and Best Practices for Game Development
### Environment-Specific Usage for Games
**Web UI Best For Game Development**:
- Initial game design and creative brainstorming phases
- Cost-effective large game document creation
- Game agent consultation and mechanics refinement
- Multi-agent game workflows with orchestrator
**Godot IDE Best For Game Development**:
- Active Godot development with TDD
- Scene and node hierarchy management
- Game story management and development cycles
- Performance profiling and optimization
- GUT/GoDotTest execution
### Quality Assurance for Game Development
- Use appropriate game agents for specialized tasks
- Follow Agile ceremonies and game review processes
- Use game-specific checklists:
- `game-architect-checklist` for architecture reviews
- `game-change-checklist` for change validation
- `game-design-checklist` for design reviews
- `game-story-dod-checklist` for story quality (TDD compliance)
- `game-po-checklist` for product owner validation
- Regular validation with game templates
### Performance Optimization for Game Development
- Use specific game agents vs. `bmad-master` for focused Godot tasks
- Choose appropriate game team size for project needs
- Leverage game-specific technical preferences for consistency
- Regular context management and cache clearing for Godot workflows
- Profile everything, optimize based on data (Carmack's philosophy)
## Game Development Team Roles
### Game Designer
- **Primary Focus**: Game mechanics, player experience, design documentation
- **Key Outputs**: Game Brief, Game Design Document, Level Design Framework
- **Specialties**: Brainstorming, game balance, player psychology, creative direction
### Game Developer
- **Primary Focus**: Godot implementation with TDD, GDScript/C# excellence, 60+ FPS optimization
- **Key Outputs**: Working game features with tests, optimized Godot code, performance validation
- **Specialties**: TDD practices, GDScript/C#, node architecture, cross-platform development
### Game Scrum Master
- **Primary Focus**: Game story creation, development planning, agile process
- **Key Outputs**: Detailed implementation stories, sprint planning, quality assurance
- **Specialties**: Story breakdown, developer handoffs, process optimization
### Game Architect
- **Primary Focus**: Godot system design, performance architecture, language strategy
- **Key Outputs**: Technical architecture, performance budgets, optimization strategies
- **Specialties**: Node patterns, signal architecture, GDScript vs C# decisions, 60+ FPS planning
### Game QA
- **Primary Focus**: TDD enforcement, test verification, performance validation
- **Key Outputs**: Test coverage reports, performance metrics, code quality assessment
- **Specialties**: GUT/GoDotTest frameworks, profiling, optimization validation
## Platform-Specific Considerations
### Cross-Platform Development
- Use InputMap for platform-agnostic input
- Export templates for each target platform
- Test on all target platforms regularly
- Optimize for different screen resolutions and aspect ratios
- Platform-specific performance targets
### Mobile Optimization
- Touch input with TouchScreenButton nodes
- Battery usage optimization
- Performance scaling for different device capabilities
- App store compliance and export settings
- Reduced draw calls and texture memory
### Performance Targets
- **Desktop**: 60+ FPS at native resolution (144 FPS for high-refresh displays)
- **Mobile**: 60 FPS on mid-range devices minimum
- **Web**: 60 FPS with optimized export settings
- **Loading**: Scene transitions under 2 seconds
- **Memory**: Within platform-specific limits
## Success Metrics for Game Development
### Technical Metrics
- Frame rate consistency (>95% of time at 60+ FPS)
- Frame time variance (<2ms variation)
- Memory usage within budgets
- Loading time targets met
- Zero critical bugs in core gameplay systems
- 80%+ test coverage (TDD compliance)
### Player Experience Metrics
- Input latency under 50ms
- Tutorial completion rate >80%
- Level completion rates appropriate for difficulty curve
- Average session length meets design targets
- Player retention and engagement metrics
### Development Process Metrics
- All stories have tests written FIRST
- Story completion within estimated timeframes
- Code quality metrics (test coverage, static analysis)
- Documentation completeness and accuracy
- Team velocity and delivery consistency
## Common Godot Development Patterns
### Scene Management
- Use scene inheritance for variant levels
- Autoload singletons for persistent systems
- Scene transitions with loading screens
- Resource preloading for smooth gameplay
### Node Architecture
- Composition over inheritance with scene instances
- Signal-based communication between nodes
- Node groups for efficient queries
- Tool scripts for editor enhancement
### Performance Patterns
- Object pooling for frequently spawned nodes
- MultiMesh for many identical objects
- LOD systems with visibility ranges
- Occlusion culling for complex scenes
- Static typing in GDScript for 10-20% performance gain
### Language Strategy
- GDScript for:
- Rapid prototyping
- UI and menu systems
- Simple game logic
- Editor tools
- C# for:
- Complex algorithms
- Performance-critical systems
- Heavy computation
- External library integration
## Success Tips for Game Development
- **Use Gemini for game design planning** - The team-game-dev bundle provides collaborative game expertise
- **Enforce TDD religiously** - Tests first, implementation second, no exceptions
- **Profile constantly** - Measure don't guess (Carmack's philosophy)
- **Follow the Game SM → Game Dev → QA cycle** - This ensures systematic game progress
- **Keep conversations focused** - One game agent, one Godot task per conversation
- **Review everything** - Always verify 60+ FPS before marking features complete
- **Use appropriate language** - GDScript for iteration, C# for performance
## Contributing to BMad-Method Game Development
### Game Development Contribution Guidelines
For full details, see `CONTRIBUTING.md`. Key points for game development:
**Fork Workflow for Game Development**:
1. Fork the repository
2. Create game development feature branches
3. Submit PRs to `next` branch (default) or `main` for critical game development fixes only
4. Keep PRs small: 200-400 lines ideal, 800 lines maximum
5. One game feature/fix per PR
**Game Development PR Requirements**:
- Clear descriptions (max 200 words) with What/Why/How/Testing for game features
- Use conventional commits (feat:, fix:, docs:) with game context
- Atomic commits - one logical game change per commit
- Must align with game development guiding principles
- Include performance impact assessment
**Game Development Core Principles**:
- **Game Dev Agents Must Be Lean**: Minimize dependencies, save context for Godot code
- **Natural Language First**: Everything in markdown, no code in game development core
- **Core vs Game Expansion Packs**: Core for universal needs, game packs for Godot specialization
- **Game Design Philosophy**: "Game dev agents code Godot, game planning agents plan gameplay"
- **Performance First**: Every change validated against 60+ FPS target
- **TDD Mandatory**: Tests before implementation, always
## Game Development Expansion Pack System
### This Game Development Expansion Pack
This Godot Game Development expansion pack extends BMad-Method beyond traditional software development into professional game development. It provides specialized game agent teams, Godot templates, and game workflows while keeping the core framework lean and focused on general development.
### Why Use This Game Development Expansion Pack?
1. **Keep Core Lean**: Game dev agents maintain maximum context for Godot coding
2. **Game Domain Expertise**: Deep, specialized Godot and game development knowledge
3. **Community Game Innovation**: Game developers can contribute and share Godot patterns
4. **Modular Game Design**: Install only game development capabilities you need
5. **Performance Focus**: Built-in 60+ FPS validation and optimization patterns
6. **TDD Enforcement**: Mandatory test-first development practices
### Using This Game Development Expansion Pack
1. **Install via CLI**:
```bash
npx bmad-method install
# Select "Install game development expansion pack" option
```
2. **Use in Your Game Workflow**: Installed game agents integrate seamlessly with existing BMad agents
### Creating Custom Game Development Extensions
Use the **expansion-creator** pack to build your own game development extensions:
1. **Define Game Domain**: What game development expertise are you capturing?
2. **Design Game Agents**: Create specialized game roles with clear Godot boundaries
3. **Build Game Resources**: Tasks, templates, checklists for your game domain
4. **Test & Share**: Validate with real Godot use cases, share with game development community
**Key Principle**: Game development expansion packs democratize game development expertise by making specialized Godot and game design knowledge accessible through AI agents.
## Getting Help with Game Development
- **Commands**: Use `*/*help` in any environment to see available game development commands
- **Game Agent Switching**: Use `*/*switch game-agent-name` with orchestrator for role changes
- **Game Documentation**: Check `docs/` folder for Godot project-specific context
- **Game Community**: Discord and GitHub resources available for game development support
- **Game Contributing**: See `CONTRIBUTING.md` for full game development guidelines
This knowledge base provides the foundation for effective game development using the BMad-Method framework with specialized focus on Godot game creation using GDScript and C# with mandatory TDD practices and 60+ FPS performance targets.

View File

@@ -0,0 +1,36 @@
# Brainstorming Techniques Data
## Creative Expansion
1. **What If Scenarios**: Ask one provocative question, get their response, then ask another
2. **Analogical Thinking**: Give one example analogy, ask them to find 2-3 more
3. **Reversal/Inversion**: Pose the reverse question, let them work through it
4. **First Principles Thinking**: Ask "What are the fundamentals?" and guide them to break it down
## Structured Frameworks
5. **SCAMPER Method**: Go through one letter at a time, wait for their ideas before moving to next
6. **Six Thinking Hats**: Present one hat, ask for their thoughts, then move to next hat
7. **Mind Mapping**: Start with central concept, ask them to suggest branches
## Collaborative Techniques
8. **"Yes, And..." Building**: They give idea, you "yes and" it, they "yes and" back - alternate
9. **Brainwriting/Round Robin**: They suggest idea, you build on it, ask them to build on yours
10. **Random Stimulation**: Give one random prompt/word, ask them to make connections
## Deep Exploration
11. **Five Whys**: Ask "why" and wait for their answer before asking next "why"
12. **Morphological Analysis**: Ask them to list parameters first, then explore combinations together
13. **Provocation Technique (PO)**: Give one provocative statement, ask them to extract useful ideas
## Advanced Techniques
14. **Forced Relationships**: Connect two unrelated concepts and ask them to find the bridge
15. **Assumption Reversal**: Challenge their core assumptions and ask them to build from there
16. **Role Playing**: Ask them to brainstorm from different stakeholder perspectives
17. **Time Shifting**: "How would you solve this in 1995? 2030?"
18. **Resource Constraints**: "What if you had only $10 and 1 hour?"
19. **Metaphor Mapping**: Use extended metaphors to explore solutions
20. **Question Storming**: Generate questions instead of answers first

View File

@@ -0,0 +1,893 @@
# Game Development Guidelines (Godot, GDScript & C#)
## Overview
This document establishes coding standards, architectural patterns, and development practices for game development using Godot Engine with GDScript and C#. These guidelines ensure consistency, performance (60+ FPS target), maintainability, and enforce Test-Driven Development (TDD) across all game development stories.
## Performance Philosophy
Following John Carmack's principles:
- **"Measure, don't guess"** - Profile everything with Godot's built-in profiler
- **"Focus on what matters: framerate and responsiveness"** - 60+ FPS is the minimum, not the target
- **"The best code is no code"** - Simplicity beats cleverness
- **"Think about cache misses, not instruction counts"** - Memory access patterns matter most
## GDScript Standards
### Naming Conventions
**Classes and Scripts:**
- PascalCase for class names: `PlayerController`, `GameData`, `InventorySystem`
- Snake_case for file names: `player_controller.gd`, `game_data.gd`
- Descriptive names that indicate purpose: `GameStateManager` not `GSM`
**Functions and Methods:**
- Snake_case for functions: `calculate_damage()`, `process_input()`
- Descriptive verb phrases: `activate_shield()` not `shield()`
- Private methods prefix with underscore: `_update_health()`
**Variables and Properties:**
- Snake_case for variables: `player_health`, `movement_speed`
- Constants in UPPER_SNAKE_CASE: `MAX_HEALTH`, `GRAVITY_FORCE`
- Export variables with clear names: `@export var jump_height: float = 5.0`
- Boolean variables with is/has/can prefix: `is_alive`, `has_key`, `can_jump`
- Signal names in snake_case: `health_changed`, `level_completed`
### Static Typing (MANDATORY for Performance)
**Always use static typing for 10-20% performance gain:**
```gdscript
# GOOD - Static typing
extends CharacterBody2D
@export var max_health: int = 100
@export var movement_speed: float = 300.0
var current_health: int
var velocity_multiplier: float = 1.0
func take_damage(amount: int) -> void:
current_health -= amount
if current_health <= 0:
_die()
func _die() -> void:
queue_free()
# BAD - Dynamic typing (avoid)
var health = 100 # No type specified
func take_damage(amount): # No parameter or return type
health -= amount
```
## C# Standards (for Performance-Critical Systems)
### When to Use C# vs GDScript
**Use C# for:**
- Complex algorithms (pathfinding, procedural generation)
- Heavy mathematical computations
- Performance-critical systems identified by profiler
- External .NET library integration
- Large-scale data processing
**Use GDScript for:**
- Rapid prototyping and iteration
- UI and menu systems
- Simple game logic
- Editor tools and scene management
- Quick gameplay tweaks
### C# Naming Conventions
```csharp
using Godot;
public partial class PlayerController : CharacterBody2D
{
// Public fields (use sparingly, prefer properties)
[Export] public float MoveSpeed = 300.0f;
// Private fields with underscore prefix
private int _currentHealth;
private float _jumpVelocity;
// Properties with PascalCase
public int MaxHealth { get; set; } = 100;
// Methods with PascalCase
public void TakeDamage(int amount)
{
_currentHealth -= amount;
if (_currentHealth <= 0)
{
Die();
}
}
private void Die()
{
QueueFree();
}
}
```
## Godot Architecture Patterns
### Node-Based Architecture
**Scene Composition Over Inheritance:**
```gdscript
# Player.tscn structure:
# Player (CharacterBody2D)
# ├── Sprite2D
# ├── CollisionShape2D
# ├── PlayerHealth (Node)
# ├── PlayerMovement (Node)
# └── PlayerInput (Node)
# PlayerHealth.gd - Single responsibility component
extends Node
class_name PlayerHealth
signal health_changed(new_health: int)
signal died
@export var max_health: int = 100
var current_health: int
func _ready() -> void:
current_health = max_health
func take_damage(amount: int) -> void:
current_health = max(0, current_health - amount)
health_changed.emit(current_health)
if current_health == 0:
died.emit()
```
### Signal-Based Communication
**Decouple Systems with Signals:**
```gdscript
# GameManager.gd - Singleton/Autoload
extends Node
signal game_started
signal game_over
signal level_completed
var score: int = 0
var current_level: int = 1
func start_game() -> void:
score = 0
current_level = 1
game_started.emit()
get_tree().change_scene_to_file("res://scenes/levels/level_1.tscn")
# Player.gd - Connects to signals
extends CharacterBody2D
func _ready() -> void:
GameManager.game_over.connect(_on_game_over)
func _on_game_over() -> void:
set_physics_process(false) # Stop player movement
$AnimationPlayer.play("death")
```
### Resource-Based Data Management
**Use Custom Resources for Game Data:**
```gdscript
# WeaponData.gd - Custom Resource
extends Resource
class_name WeaponData
@export var weapon_name: String = "Sword"
@export var damage: int = 10
@export var attack_speed: float = 1.0
@export var sprite: Texture2D
# Weapon.gd - Uses the resource
extends Node2D
class_name Weapon
@export var weapon_data: WeaponData
func _ready() -> void:
if weapon_data:
$Sprite2D.texture = weapon_data.sprite
func attack() -> int:
return weapon_data.damage if weapon_data else 0
```
## Performance Optimization
### Object Pooling (MANDATORY for Spawned Objects)
```gdscript
# ObjectPool.gd - Generic pooling system
extends Node
class_name ObjectPool
@export var pool_scene: PackedScene
@export var initial_size: int = 20
var _pool: Array[Node] = []
func _ready() -> void:
for i in initial_size:
var instance := pool_scene.instantiate()
instance.set_process(false)
instance.set_physics_process(false)
instance.visible = false
add_child(instance)
_pool.append(instance)
func get_object() -> Node:
for obj in _pool:
if not obj.visible:
obj.visible = true
obj.set_process(true)
obj.set_physics_process(true)
return obj
# Expand pool if needed
var new_obj := pool_scene.instantiate()
add_child(new_obj)
_pool.append(new_obj)
return new_obj
func return_object(obj: Node) -> void:
obj.set_process(false)
obj.set_physics_process(false)
obj.visible = false
obj.position = Vector2.ZERO
```
### Process Optimization
**Use Appropriate Process Methods:**
```gdscript
extends Node2D
# For physics calculations (fixed timestep)
func _physics_process(delta: float) -> void:
# Movement, collision detection
pass
# For visual updates and input
func _process(delta: float) -> void:
# Animations, UI updates
pass
# Use timers or signals instead of checking every frame
func _ready() -> void:
var timer := Timer.new()
timer.wait_time = 1.0
timer.timeout.connect(_check_condition)
add_child(timer)
timer.start()
func _check_condition() -> void:
# Check something once per second instead of 60 times
pass
```
### Memory Management
**Prevent Memory Leaks:**
```gdscript
extends Node
var _connections: Array[Callable] = []
func _ready() -> void:
# Store connections for cleanup
var callable := GameManager.score_changed.connect(_on_score_changed)
_connections.append(callable)
func _exit_tree() -> void:
# Clean up connections
for connection in _connections:
if connection.is_valid():
connection.disconnect()
_connections.clear()
# Use queue_free() not free() for nodes
func remove_enemy(enemy: Node) -> void:
enemy.queue_free() # Safe deletion
```
## Test-Driven Development (MANDATORY)
### GUT (Godot Unit Test) for GDScript
**Write Tests FIRST:**
```gdscript
# test/unit/test_player_health.gd
extends GutTest
var player_health: PlayerHealth
func before_each() -> void:
player_health = PlayerHealth.new()
player_health.max_health = 100
func test_take_damage_reduces_health() -> void:
# Arrange
player_health.current_health = 100
# Act
player_health.take_damage(30)
# Assert
assert_eq(player_health.current_health, 70, "Health should be reduced by damage amount")
func test_health_cannot_go_negative() -> void:
# Arrange
player_health.current_health = 10
# Act
player_health.take_damage(20)
# Assert
assert_eq(player_health.current_health, 0, "Health should not go below 0")
func test_died_signal_emitted_at_zero_health() -> void:
# Arrange
player_health.current_health = 10
watch_signals(player_health)
# Act
player_health.take_damage(10)
# Assert
assert_signal_emitted(player_health, "died")
```
### GoDotTest for C#
```csharp
using Godot;
using GoDotTest;
[TestClass]
public class PlayerControllerTests : TestClass
{
private PlayerController _player;
[TestInitialize]
public void Setup()
{
_player = new PlayerController();
_player.MaxHealth = 100;
}
[Test]
public void TakeDamage_ReducesHealth()
{
// Arrange
_player.CurrentHealth = 100;
// Act
_player.TakeDamage(30);
// Assert
AssertThat(_player.CurrentHealth).IsEqualTo(70);
}
[Test]
public void TakeDamage_EmitsDiedSignal_WhenHealthReachesZero()
{
// Arrange
_player.CurrentHealth = 10;
var signalEmitted = false;
_player.Died += () => signalEmitted = true;
// Act
_player.TakeDamage(10);
// Assert
AssertThat(signalEmitted).IsTrue();
}
}
```
## Input Handling
### Godot Input System
**Input Map Configuration:**
```gdscript
# Configure in Project Settings -> Input Map
# Actions: "move_left", "move_right", "jump", "attack"
extends CharacterBody2D
@export var speed: float = 300.0
@export var jump_velocity: float = -400.0
func _physics_process(delta: float) -> void:
# Add gravity
if not is_on_floor():
velocity.y += ProjectSettings.get_setting("physics/2d/default_gravity") * delta
# Handle jump
if Input.is_action_just_pressed("jump") and is_on_floor():
velocity.y = jump_velocity
# Handle movement
var direction := Input.get_axis("move_left", "move_right")
velocity.x = direction * speed
move_and_slide()
# For responsive input (use _unhandled_input for UI priority)
func _unhandled_input(event: InputEvent) -> void:
if event.is_action_pressed("attack"):
_perform_attack()
```
## Scene Management
### Scene Loading and Transitions
```gdscript
# SceneManager.gd - Autoload singleton
extends Node
var current_scene: Node = null
func _ready() -> void:
var root := get_tree().root
current_scene = root.get_child(root.get_child_count() - 1)
func change_scene(path: String) -> void:
call_deferred("_deferred_change_scene", path)
func _deferred_change_scene(path: String) -> void:
# Free current scene
current_scene.queue_free()
# Load new scene
var new_scene := ResourceLoader.load(path) as PackedScene
current_scene = new_scene.instantiate()
get_tree().root.add_child(current_scene)
get_tree().current_scene = current_scene
# With loading screen
func change_scene_with_loading(path: String) -> void:
# Show loading screen
var loading_screen := preload("res://scenes/ui/loading_screen.tscn").instantiate()
get_tree().root.add_child(loading_screen)
# Load in background
ResourceLoader.load_threaded_request(path)
# Wait for completion
while ResourceLoader.load_threaded_get_status(path) != ResourceLoader.THREAD_LOAD_LOADED:
await get_tree().process_frame
# Switch scenes
loading_screen.queue_free()
change_scene(path)
```
## Project Structure
```
res://
├── scenes/
│ ├── main/
│ │ ├── main_menu.tscn
│ │ └── game.tscn
│ ├── levels/
│ │ ├── level_1.tscn
│ │ └── level_2.tscn
│ ├── player/
│ │ └── player.tscn
│ └── ui/
│ ├── hud.tscn
│ └── pause_menu.tscn
├── scripts/
│ ├── player/
│ │ ├── player_controller.gd
│ │ └── player_health.gd
│ ├── enemies/
│ │ └── enemy_base.gd
│ ├── systems/
│ │ ├── game_manager.gd
│ │ └── scene_manager.gd
│ └── ui/
│ └── hud_controller.gd
├── resources/
│ ├── weapons/
│ │ └── sword_data.tres
│ └── enemies/
│ └── slime_data.tres
├── assets/
│ ├── sprites/
│ ├── audio/
│ └── fonts/
├── tests/
│ ├── unit/
│ │ └── test_player_health.gd
│ └── integration/
│ └── test_level_loading.gd
└── project.godot
```
## Development Workflow
### TDD Story Implementation Process
1. **Read Story Requirements:**
- Understand acceptance criteria
- Identify performance requirements (60+ FPS)
- Determine GDScript vs C# needs
2. **Write Tests FIRST (Red Phase):**
- Write failing unit tests in GUT/GoDotTest
- Define expected behavior
- Run tests to confirm they fail
3. **Implement Feature (Green Phase):**
- Write minimal code to pass tests
- Follow Godot patterns and conventions
- Use static typing in GDScript
- Choose appropriate language (GDScript/C#)
4. **Refactor (Refactor Phase):**
- Optimize for performance
- Clean up code structure
- Ensure 60+ FPS maintained
- Run profiler to validate
5. **Integration Testing:**
- Test scene interactions
- Validate performance targets
- Test on all platforms
6. **Update Documentation:**
- Mark story checkboxes complete
- Document performance metrics
- Update File List
### Performance Checklist
- [ ] Stable 60+ FPS achieved
- [ ] Static typing used in all GDScript
- [ ] Object pooling for spawned entities
- [ ] No memory leaks detected
- [ ] Draw calls optimized
- [ ] Appropriate process methods used
- [ ] Signals properly connected/disconnected
- [ ] Tests written FIRST (TDD)
- [ ] 80%+ test coverage
## Performance Targets
### Frame Rate Requirements
- **Desktop**: 60+ FPS minimum (144 FPS for high-refresh)
- **Mobile**: 60 FPS on mid-range devices
- **Web**: 60 FPS with appropriate export settings
- **Frame Time**: <16.67ms consistently
### Memory Management
- **Scene Memory**: Keep under platform limits
- **Texture Memory**: Optimize imports, use compression
- **Object Pooling**: Required for bullets, particles, enemies
- **Reference Cleanup**: Prevent memory leaks
### Optimization Priorities
1. **Profile First**: Use Godot profiler to identify bottlenecks
2. **Optimize Algorithms**: Better algorithms beat micro-optimizations
3. **Reduce Draw Calls**: Batch rendering, use atlases
4. **Static Typing**: 10-20% performance gain in GDScript
5. **Language Choice**: Use C# for compute-heavy operations
## General Optimization
### Anti-Patterns
1. **Security Holes**
- Buffer overflows
- SQL injection vectors
- Unvalidated user input
- Timing attacks
- Memory disclosure
- Race conditions with security impact
2. **Platform Sabotage**
- Fighting Godot's scene system
- Reimplementing platform features
- Ignoring hardware capabilities
## GDScript Optimization
### Performance Destroyers
1. **Type System Crimes**
- Dynamic typing anywhere (10-20% performance loss)
- Variant usage in hot paths
- Dictionary/Array without typed variants
- Missing return type hints
- Untyped function parameters
2. **Allocation Disasters**
- Creating Arrays/Dictionaries in loops
- String concatenation with +
- Unnecessary Node instantiation
- Resource loading in game loop
- Signal connections without caching
3. **Process Method Abuse**
- \_process() when \_physics_process() suffices
- Frame-by-frame checks for rare events
- get_node() calls every frame
- Node path resolution in loops
- Unnecessary process enabling
### GDScript Death Sentences
```gdscript
# CRIME: Dynamic typing
var health = 100 # Dies. var health: int = 100
# CRIME: String concatenation in loop
for i in range(1000):
text += str(i) # Dies. Use StringBuffer or Array.join()
# CRIME: get_node every frame
func _process(delta):
$UI/Score.text = str(score) # Dies. Cache the node reference
# CRIME: Creating objects in loop
for enemy in enemies:
var bullet = Bullet.new() # Dies. Object pool
# CRIME: Untyped arrays
var enemies = [] # Dies. var enemies: Array[Enemy] = []
# CRIME: Path finding every frame
func _process(delta):
find_node("Player") # Dies. Store reference in _ready()
# CRIME: Signal spam
for i in range(100):
emit_signal("updated", i) # Dies. Batch updates
# CRIME: Resource loading in game
func shoot():
var bullet_scene = load("res://bullet.tscn") # Dies. Preload
# CRIME: Checking rare conditions every frame
func _process(delta):
if player_died: # Dies. Use signals
game_over()
# CRIME: Node creation without pooling
func spawn_particle():
var p = Particle.new() # Dies. Pool everything spawned
add_child(p)
```
### The Only Acceptable GDScript Patterns
```gdscript
# GOOD: Static typing everywhere
var health: int = 100
var speed: float = 300.0
var enemies: Array[Enemy] = []
# GOOD: Cached node references
@onready var score_label: Label = $UI/Score
@onready var health_bar: ProgressBar = $UI/HealthBar
# GOOD: Preloaded resources
const BULLET_SCENE: PackedScene = preload("res://bullet.tscn")
const EXPLOSION_SOUND: AudioStream = preload("res://explosion.ogg")
# GOOD: Object pooling
var bullet_pool: Array[Bullet] = []
func _ready() -> void:
for i in 50:
var bullet := BULLET_SCENE.instantiate() as Bullet
bullet.visible = false
bullet_pool.append(bullet)
# GOOD: Typed dictionaries
var player_stats: Dictionary = {
"health": 100,
"armor": 50,
"speed": 300.0
}
# GOOD: Efficient string building
func build_text(count: int) -> String:
var parts: PackedStringArray = []
for i in count:
parts.append(str(i))
return "".join(parts)
# GOOD: Timer-based checks
func _ready() -> void:
var timer := Timer.new()
timer.wait_time = 1.0
timer.timeout.connect(_check_rare_condition)
add_child(timer)
timer.start()
# GOOD: Batch operations
var updates_pending: Array[int] = []
func queue_update(value: int) -> void:
updates_pending.append(value)
if updates_pending.size() == 1:
call_deferred("_process_updates")
func _process_updates() -> void:
# Process all updates at once
for value in updates_pending:
# Do work
pass
updates_pending.clear()
# GOOD: Const for compile-time optimization
const MAX_ENEMIES: int = 100
const GRAVITY: float = 980.0
const DEBUG_MODE: bool = false
```
### GDScript-Specific Optimization Rules
1. **ALWAYS use static typing** - Non-negotiable 10-20% free performance
2. **NEVER use get_node() in loops** - Cache everything in @onready
3. **NEVER load() in gameplay** - preload() or ResourceLoader
4. **NEVER create nodes without pooling** - Pool or die
5. **NEVER concatenate strings in loops** - PackedStringArray.join()
6. **ALWAYS use const for constants** - Compile-time optimization
7. **ALWAYS specify Array types** - Array[Type] not Array
8. **NEVER check conditions every frame** - Use signals and timers
9. **ALWAYS batch similar operations** - One update, not many
10. **NEVER trust the profiler isn't watching** - It always is
## Godot C# Optimization
### Anti-Patterns
1. **Performance Destroyers**
- ANY allocation in render/game loop
- String operations in hot paths
- LINQ anywhere (it allocates, period)
- Boxing/unboxing in performance code
- Virtual calls when direct calls possible
- Cache-hostile data layouts
- Synchronous I/O blocking computation
2. **Algorithmic Incompetence**
- O(n²) when O(n log n) exists
- O(n³) = fired
- Linear search in sorted data
- Recalculating invariants
- Branches in SIMD loops
- Random memory access patterns
3. **Architectural Cancer**
- Abstractions that don't eliminate code
- Single-implementation interfaces
- Factory factories
- 3+ levels of indirection
- Reflection in performance paths
- Manager classes (lazy design)
- Event systems for direct calls
- Not using SIMD where available
- Thread-unsafe code in parallel contexts
## C#/GODOT SPECIFIC DEATH SENTENCES
### Instant Rejection Patterns
```csharp
// CRIME: LINQ in game code
units.Where(u => u.IsAlive).ToList() // Dies. Pre-filtered array.
// CRIME: String operations
$"Player {name} scored {score}" // Dies. StringBuilder or byte buffer.
// CRIME: Boxing
object value = 42; // Dies. Generic or specific type.
// CRIME: Foreach on List<T>
foreach(var item in list) // Dies. for(int i = 0; i < list.Count; i++)
// CRIME: Properties doing work
public int Count => CalculateCount(); // Dies. Cache or field.
// CRIME: Virtual by default
public virtual void Update() // Dies. Sealed unless NEEDED.
// CRIME: Events for direct calls
public event Action OnUpdate; // Dies. Direct method call.
// CRIME: Reflection
typeof(T).GetMethod("Update") // Dies. Direct call or delegates.
// CRIME: Async in game loop
await LoadDataAsync(); // Dies. Preload or synchronous.
// CRIME: GD.Print in production
GD.Print($"Debug: {value}"); // Dies. Conditional compilation.
```
### Godot-Specific Crimes
```csharp
// CRIME: GetNode every frame
GetNode<Label>("UI/Score") // Dies. Cache in _Ready().
// CRIME: Creating Nodes dynamically
var bullet = bulletScene.Instantiate(); // Dies. Object pool.
// CRIME: Signal connections in loops
unit.HealthChanged += OnHealthChanged; // Dies. Batch updates.
// CRIME: _Process without need
public override void _Process(double delta) // Dies. Use _PhysicsProcess or events.
// CRIME: Autoload abuse
GetNode<GameManager>("/root/GameManager") // Dies. Direct reference.
```
### The Only Acceptable Patterns
```csharp
// GOOD: Pre-allocated buffers
private readonly Unit[] _units = new Unit[MAX_UNITS];
private readonly int[] _indices = new int[MAX_UNITS];
// GOOD: Struct over class
public struct UnitData { public int Health; public Vector2I Position; }
// GOOD: Data-oriented design
public struct Units {
public int[] Health;
public Vector2I[] Positions;
public bool[] IsAlive;
}
// GOOD: Zero-allocation update
public void Update() {
int count = _activeCount;
for (int i = 0; i < count; i++) {
ref Unit unit = ref _units[i];
unit.Position += unit.Velocity;
}
}
// GOOD: Compile-time elimination
#if DEBUG
GD.Print("Debug info");
#endif
```
These guidelines ensure consistent, high-quality Godot game development that meets performance targets, maintains code quality, and follows TDD practices across all implementation stories.

View File

@@ -0,0 +1,156 @@
<!-- Powered by BMAD™ Core -->
# Elicitation Methods Data
## Core Reflective Methods
**Expand or Contract for Audience**
- Ask whether to 'expand' (add detail, elaborate) or 'contract' (simplify, clarify)
- Identify specific target audience if relevant
- Tailor content complexity and depth accordingly
**Explain Reasoning (CoT Step-by-Step)**
- Walk through the step-by-step thinking process
- Reveal underlying assumptions and decision points
- Show how conclusions were reached from current role's perspective
**Critique and Refine**
- Review output for flaws, inconsistencies, or improvement areas
- Identify specific weaknesses from role's expertise
- Suggest refined version reflecting domain knowledge
## Structural Analysis Methods
**Analyze Logical Flow and Dependencies**
- Examine content structure for logical progression
- Check internal consistency and coherence
- Identify and validate dependencies between elements
- Confirm effective ordering and sequencing
**Assess Alignment with Overall Goals**
- Evaluate content contribution to stated objectives
- Identify any misalignments or gaps
- Interpret alignment from specific role's perspective
- Suggest adjustments to better serve goals
## Risk and Challenge Methods
**Identify Potential Risks and Unforeseen Issues**
- Brainstorm potential risks from role's expertise
- Identify overlooked edge cases or scenarios
- Anticipate unintended consequences
- Highlight implementation challenges
**Challenge from Critical Perspective**
- Adopt critical stance on current content
- Play devil's advocate from specified viewpoint
- Argue against proposal highlighting weaknesses
- Apply YAGNI principles when appropriate (scope trimming)
## Creative Exploration Methods
**Tree of Thoughts Deep Dive**
- Break problem into discrete "thoughts" or intermediate steps
- Explore multiple reasoning paths simultaneously
- Use self-evaluation to classify each path as "sure", "likely", or "impossible"
- Apply search algorithms (BFS/DFS) to find optimal solution paths
**Hindsight is 20/20: The 'If Only...' Reflection**
- Imagine retrospective scenario based on current content
- Identify the one "if only we had known/done X..." insight
- Describe imagined consequences humorously or dramatically
- Extract actionable learnings for current context
## Multi-Persona Collaboration Methods
**Agile Team Perspective Shift**
- Rotate through different Scrum team member viewpoints
- Product Owner: Focus on user value and business impact
- Scrum Master: Examine process flow and team dynamics
- Developer: Assess technical implementation and complexity
- QA: Identify testing scenarios and quality concerns
**Stakeholder Round Table**
- Convene virtual meeting with multiple personas
- Each persona contributes unique perspective on content
- Identify conflicts and synergies between viewpoints
- Synthesize insights into actionable recommendations
**Meta-Prompting Analysis**
- Step back to analyze the structure and logic of current approach
- Question the format and methodology being used
- Suggest alternative frameworks or mental models
- Optimize the elicitation process itself
## Advanced 2025 Techniques
**Self-Consistency Validation**
- Generate multiple reasoning paths for same problem
- Compare consistency across different approaches
- Identify most reliable and robust solution
- Highlight areas where approaches diverge and why
**ReWOO (Reasoning Without Observation)**
- Separate parametric reasoning from tool-based actions
- Create reasoning plan without external dependencies
- Identify what can be solved through pure reasoning
- Optimize for efficiency and reduced token usage
**Persona-Pattern Hybrid**
- Combine specific role expertise with elicitation pattern
- Architect + Risk Analysis: Deep technical risk assessment
- UX Expert + User Journey: End-to-end experience critique
- PM + Stakeholder Analysis: Multi-perspective impact review
**Emergent Collaboration Discovery**
- Allow multiple perspectives to naturally emerge
- Identify unexpected insights from persona interactions
- Explore novel combinations of viewpoints
- Capture serendipitous discoveries from multi-agent thinking
## Game-Based Elicitation Methods
**Red Team vs Blue Team**
- Red Team: Attack the proposal, find vulnerabilities
- Blue Team: Defend and strengthen the approach
- Competitive analysis reveals blind spots
- Results in more robust, battle-tested solutions
**Innovation Tournament**
- Pit multiple alternative approaches against each other
- Score each approach across different criteria
- Crowd-source evaluation from different personas
- Identify winning combination of features
**Escape Room Challenge**
- Present content as constraints to work within
- Find creative solutions within tight limitations
- Identify minimum viable approach
- Discover innovative workarounds and optimizations
## Process Control
**Proceed / No Further Actions**
- Acknowledge choice to finalize current work
- Accept output as-is or move to next step
- Prepare to continue without additional elicitation

View File

@@ -0,0 +1,3 @@
# User-Defined Preferred Patterns and Preferences
None Listed

View File

@@ -0,0 +1,110 @@
# Advanced Game Design Elicitation Task
## Purpose
- Provide optional reflective and brainstorming actions to enhance game design content quality
- Enable deeper exploration of game mechanics and player experience through structured elicitation techniques
- Support iterative refinement through multiple game development perspectives
- Apply game-specific critical thinking to design decisions
## Task Instructions
### 1. Game Design Context and Review
[[LLM: When invoked after outputting a game design section:
1. First, provide a brief 1-2 sentence summary of what the user should look for in the section just presented, with game-specific focus (e.g., "Please review the core mechanics for player engagement and implementation feasibility. Pay special attention to how these mechanics create the intended player experience and whether they're technically achievable with Unity.")
2. If the section contains game flow diagrams, level layouts, or system diagrams, explain each diagram briefly with game development context before offering elicitation options (e.g., "The gameplay loop diagram shows how player actions lead to rewards and progression. Notice how each step maintains player engagement and creates opportunities for skill development.")
3. If the section contains multiple game elements (like multiple mechanics, multiple levels, multiple systems, etc.), inform the user they can apply elicitation actions to:
- The entire section as a whole
- Individual game elements within the section (specify which element when selecting an action)
4. Then present the action list as specified below.]]
### 2. Ask for Review and Present Game Design Action List
[[LLM: Ask the user to review the drafted game design section. In the SAME message, inform them that they can suggest additions, removals, or modifications, OR they can select an action by number from the 'Advanced Game Design Elicitation & Brainstorming Actions'. If there are multiple game elements in the section, mention they can specify which element(s) to apply the action to. Then, present ONLY the numbered list (0-9) of these actions. Conclude by stating that selecting 9 will proceed to the next section. Await user selection. If an elicitation action (0-8) is chosen, execute it and then re-offer this combined review/elicitation choice. If option 9 is chosen, or if the user provides direct feedback, proceed accordingly.]]
**Present the numbered list (0-9) with this exact format:**
```text
**Advanced Game Design Elicitation & Brainstorming Actions**
Choose an action (0-9 - 9 to bypass - HELP for explanation of these options):
0. Expand or Contract for Target Audience
1. Explain Game Design Reasoning (Step-by-Step)
2. Critique and Refine from Player Perspective
3. Analyze Game Flow and Mechanic Dependencies
4. Assess Alignment with Player Experience Goals
5. Identify Potential Player Confusion and Design Risks
6. Challenge from Critical Game Design Perspective
7. Explore Alternative Game Design Approaches
8. Hindsight Postmortem: The 'If Only...' Game Design Reflection
9. Proceed / No Further Actions
```
### 2. Processing Guidelines
**Do NOT show:**
- The full protocol text with `[[LLM: ...]]` instructions
- Detailed explanations of each option unless executing or the user asks, when giving the definition you can modify to tie its game development relevance
- Any internal template markup
**After user selection from the list:**
- Execute the chosen action according to the game design protocol instructions below
- Ask if they want to select another action or proceed with option 9 once complete
- Continue until user selects option 9 or indicates completion
## Game Design Action Definitions
0. Expand or Contract for Target Audience
[[LLM: Ask the user whether they want to 'expand' on the game design content (add more detail, elaborate on mechanics, include more examples) or 'contract' it (simplify mechanics, focus on core features, reduce complexity). Also, ask if there's a specific player demographic or experience level they have in mind (casual players, hardcore gamers, children, etc.). Once clarified, perform the expansion or contraction from your current game design role's perspective, tailored to the specified player audience if provided.]]
1. Explain Game Design Reasoning (Step-by-Step)
[[LLM: Explain the step-by-step game design thinking process that you used to arrive at the current proposal for this game content. Focus on player psychology, engagement mechanics, technical feasibility, and how design decisions support the overall player experience goals.]]
2. Critique and Refine from Player Perspective
[[LLM: From your current game design role's perspective, review your last output or the current section for potential player confusion, engagement issues, balance problems, or areas for improvement. Consider how players will actually interact with and experience these systems, then suggest a refined version that better serves player enjoyment and understanding.]]
3. Analyze Game Flow and Mechanic Dependencies
[[LLM: From your game design role's standpoint, examine the content's structure for logical gameplay progression, mechanic interdependencies, and player learning curve. Confirm if game elements are introduced in an effective order that teaches players naturally and maintains engagement throughout the experience.]]
4. Assess Alignment with Player Experience Goals
[[LLM: Evaluate how well the current game design content contributes to the stated player experience goals and core game pillars. Consider whether the mechanics actually create the intended emotions and engagement patterns. Identify any misalignments between design intentions and likely player reactions.]]
5. Identify Potential Player Confusion and Design Risks
[[LLM: Based on your game design expertise, brainstorm potential sources of player confusion, overlooked edge cases in gameplay, balance issues, technical implementation risks, or unintended player behaviors that could emerge from the current design. Consider both new and experienced players' perspectives.]]
6. Challenge from Critical Game Design Perspective
[[LLM: Adopt a critical game design perspective on the current content. If the user specifies another viewpoint (e.g., 'as a casual player', 'as a speedrunner', 'as a mobile player', 'as a technical implementer'), critique the content from that specified perspective. If no other role is specified, play devil's advocate from your game design expertise, arguing against the current design proposal and highlighting potential weaknesses, player experience issues, or implementation challenges. This can include questioning scope creep, unnecessary complexity, or features that don't serve the core player experience.]]
7. Explore Alternative Game Design Approaches
[[LLM: From your game design role's perspective, first broadly brainstorm a range of diverse approaches to achieving the same player experience goals or solving the same design challenge. Consider different genres, mechanics, interaction models, or technical approaches. Then, from this wider exploration, select and present 2-3 distinct alternative design approaches, detailing the pros, cons, player experience implications, and technical feasibility you foresee for each.]]
8. Hindsight Postmortem: The 'If Only...' Game Design Reflection
[[LLM: In your current game design persona, imagine this is a postmortem for a shipped game based on the current design content. What's the one 'if only we had designed/considered/tested X...' that your role would highlight from a game design perspective? Include the imagined player reactions, review scores, or development consequences. This should be both insightful and somewhat humorous, focusing on common game design pitfalls.]]
9. Proceed / No Further Actions
[[LLM: Acknowledge the user's choice to finalize the current game design work, accept the AI's last output as is, or move on to the next step without selecting another action from this list. Prepare to proceed accordingly.]]
## Game Development Context Integration
This elicitation task is specifically designed for game development and should be used in contexts where:
- **Game Mechanics Design**: When defining core gameplay systems and player interactions
- **Player Experience Planning**: When designing for specific emotional responses and engagement patterns
- **Technical Game Architecture**: When balancing design ambitions with implementation realities
- **Game Balance and Progression**: When designing difficulty curves and player advancement systems
- **Platform Considerations**: When adapting designs for different devices and input methods
The questions and perspectives offered should always consider:
- Player psychology and motivation
- Technical feasibility with Godot
- Performance implications for stable frame rate targets
- Cross-platform compatibility (PC, console, mobile)
- Game development best practices and common pitfalls

View File

@@ -0,0 +1,224 @@
<!-- Powered by BMAD™ Core -->
# apply-qa-fixes
Implement fixes based on QA results (gate and assessments) for a specific Godot game story. This task is for the Game Developer agent to systematically consume QA outputs and apply game code/test changes while only updating allowed sections in the story file.
## Purpose
- Read QA outputs for a game story (gate YAML + assessment markdowns)
- Create a prioritized, deterministic fix plan for game features
- Apply game code and test changes to close gaps and address issues
- Update only the allowed story sections for the Game Developer agent
## Inputs
```yaml
required:
- story_id: '{epic}.{story}' # e.g., "2.2"
- qa_root: from `.bmad-godot-game-dev/config.yaml` key `qa.qaLocation` (e.g., `docs/project/qa`)
- story_root: from `.bmad-godot-game-dev/config.yaml` key `devStoryLocation` (e.g., `docs/project/stories`)
- project_root: Godot project root directory (containing project.godot)
optional:
- story_title: '{title}' # derive from story H1 if missing
- story_slug: '{slug}' # derive from title (lowercase, hyphenated) if missing
```
## QA Sources to Read
- Gate (YAML): `{qa_root}/gates/{epic}.{story}-*.yml`
- If multiple, use the most recent by modified time
- Assessments (Markdown):
- Test Design: `{qa_root}/assessments/{epic}.{story}-test-design-*.md`
- Traceability: `{qa_root}/assessments/{epic}.{story}-trace-*.md`
- Risk Profile: `{qa_root}/assessments/{epic}.{story}-risk-*.md`
- NFR Assessment: `{qa_root}/assessments/{epic}.{story}-nfr-*.md`
## Prerequisites
- Godot 4.x installed and configured
- Testing frameworks installed:
- **GDScript**: GUT (Godot Unit Test) framework installed as addon
- **C#**: GoDotTest or GodotTestDriver NuGet packages installed
- Project builds successfully in Godot Editor
- Test commands available:
- GDScript: `godot --headless --script res://addons/gut/gut_cmdln.gd`
- C#: `dotnet test` or `godot --headless --run-tests`
## Process (Do not skip steps)
### 0) Load Core Config & Locate Story
- Read `.bmad-core/core-config.yaml` and resolve `qa_root`, `story_root`, and `project_root`
- Locate story file in `{story_root}/{epic}.{story}.*.md`
- HALT if missing and ask for correct story id/path
### 1) Collect QA Findings
- Parse the latest gate YAML:
- `gate` (PASS|CONCERNS|FAIL|WAIVED)
- `top_issues[]` with `id`, `severity`, `finding`, `suggested_action`
- `nfr_validation.*.status` and notes
- `trace` coverage summary/gaps
- `test_design.coverage_gaps[]`
- `risk_summary.recommendations.must_fix[]` (if present)
- Read any present assessment markdowns and extract explicit gaps/recommendations
### 2) Build Deterministic Fix Plan (Priority Order)
Apply in order, highest priority first:
1. High severity items in `top_issues` (gameplay/performance/stability/maintainability)
2. NFR statuses: all FAIL must be fixed → then CONCERNS
3. Test Design `coverage_gaps` (prioritize P0 gameplay scenarios)
4. Trace uncovered requirements (AC-level, especially gameplay mechanics)
5. Risk `must_fix` recommendations
6. Medium severity issues, then low
Guidance:
- Prefer tests closing coverage gaps before/with code changes
- Keep changes minimal and targeted; follow Godot best practices and project architecture
- Respect scene organization and node hierarchy
- Follow GDScript style guide or C# conventions as appropriate
### 3) Apply Changes
- Implement game code fixes per plan:
- GDScript: Follow Godot style guide, use signals for decoupling
- C#: Follow .NET conventions, use events/delegates appropriately
- Add missing tests to close coverage gaps:
- **GDScript Tests (GUT)**:
- Unit tests in `test/unit/` for game logic
- Integration tests in `test/integration/` for scene interactions
- Use `gut.p()` for parameterized tests
- Mock nodes with `double()` and `stub()`
- **C# Tests (GoDotTest/GodotTestDriver)**:
- Unit tests using xUnit or NUnit patterns
- Integration tests for scene and node interactions
- Use test fixtures for game state setup
- Follow Godot patterns:
- Autoload/singleton patterns for global game state
- Signal-based communication between nodes
- Resource files (.tres/.res) for data management
- Scene inheritance for reusable components
### 4) Validate
**For GDScript Projects:**
- Run GUT tests: `godot --headless --script res://addons/gut/gut_cmdln.gd -gselect=test/ -gexit`
- Check for script errors in Godot Editor (Script Editor panel)
- Validate scene references and node paths
- Run game in editor to verify no runtime errors
**For C# Projects:**
- Build solution: `dotnet build`
- Run tests: `dotnet test` or `godot --headless --run-tests`
- Check for compilation errors
- Validate no null reference exceptions in gameplay
**For Both:**
- Test gameplay mechanics manually if needed
- Verify performance (check FPS, memory usage)
- Iterate until all tests pass and no errors
### 5) Update Story (Allowed Sections ONLY)
CRITICAL: Dev agent is ONLY authorized to update these sections of the story file. Do not modify any other sections (e.g., QA Results, Story, Acceptance Criteria, Dev Notes, Testing):
- Tasks / Subtasks Checkboxes (mark any fix subtask you added as done)
- Dev Agent Record →
- Agent Model Used (if changed)
- Debug Log References (test results, Godot console output)
- Completion Notes List (what changed, why, how)
- File List (all added/modified/deleted files)
- Change Log (new dated entry describing applied fixes)
- Status (see Rule below)
Status Rule:
- If gate was PASS and all identified gaps are closed → set `Status: Ready for Done`
- Otherwise → set `Status: Ready for Review` and notify QA to re-run the review
### 6) Do NOT Edit Gate Files
- Dev does not modify gate YAML. If fixes address issues, request QA to re-run `review-story` to update the gate
## Blocking Conditions
- Missing `.bmad-core/core-config.yaml`
- Story file not found for `story_id`
- No QA artifacts found (neither gate nor assessments)
- HALT and request QA to generate at least a gate file (or proceed only with clear developer-provided fix list)
- Godot project file (`project.godot`) not found
- Testing framework not properly installed (GUT addon missing or NuGet packages not restored)
## Completion Checklist
- Godot project builds without errors
- All tests pass:
- GDScript: GUT tests green
- C#: dotnet test successful
- No script errors in Godot Editor
- All high severity `top_issues` addressed
- NFR FAIL → resolved; CONCERNS minimized or documented
- Coverage gaps closed or explicitly documented with rationale
- Gameplay features tested and working
- Story updated (allowed sections only) including File List and Change Log
- Status set according to Status Rule
## Example: Story 2.2 - Player Movement System
Given gate `docs/project/qa/gates/2.2-*.yml` shows
- `coverage_gaps`: Jump mechanics edge cases untested (AC2)
- `coverage_gaps`: Input buffering not tested (AC4)
- `top_issues`: Performance drops when multiple players active
Fix plan:
**GDScript Example:**
- Add GUT test for jump height variation based on button hold time
- Add test for input buffering during state transitions
- Optimize player movement script using object pooling for effects
- Test with `gut.p()` parameterized tests for different player counts
**C# Example:**
- Add GoDotTest unit test for jump physics calculations
- Add integration test for input system using GodotTestDriver
- Refactor movement system to use Jobs/Tasks for parallel processing
- Verify with performance profiler
- Re-run tests and update Dev Agent Record + File List accordingly
## Key Principles
- Deterministic, risk-first prioritization
- Minimal, maintainable changes following Godot best practices
- Tests validate gameplay behavior and close gapså
- Respect Godot's node-based architecture and signal system
- Maintain clear separation between game logic and presentation
- Strict adherence to allowed story update areas
- Gate ownership remains with QA; Game Developer signals readiness via Status
## Testing Framework References
### GUT (GDScript)
- Documentation: https://github.com/bitwes/Gut/wiki
- Test structure: `extends GutTest`
- Assertions: `assert_eq()`, `assert_true()`, `assert_has_signal()`
- Mocking: `double()`, `stub()`, `spy_on()`
### GoDotTest/GodotTestDriver (C#)
- GoDotTest: xUnit-style testing for Godot C#
- GodotTestDriver: Integration testing with scene manipulation
- Test attributes: `[Fact]`, `[Theory]`, `[InlineData]`
- Scene testing: Load scenes, interact with nodes, verify state

View File

@@ -0,0 +1,162 @@
<!-- Powered by BMAD™ Core -->
# Create Brownfield Epic Task
## Purpose
Create a single epic for smaller brownfield enhancements that don't require the full PRD and Architecture documentation process. This task is for isolated features or modifications that can be completed within a focused scope.
## When to Use This Task
**Use this task when:**
- The enhancement can be completed in 1-3 stories
- No significant architectural changes are required
- The enhancement follows existing project patterns
- Integration complexity is minimal
- Risk to existing system is low
**Use the full brownfield PRD/Architecture process when:**
- The enhancement requires multiple coordinated stories
- Architectural planning is needed
- Significant integration work is required
- Risk assessment and mitigation planning is necessary
## Instructions
### 1. Project Analysis (Required)
Before creating the epic, gather essential information about the existing project:
**Existing Project Context:**
- [ ] Project purpose and current functionality understood
- [ ] Existing technology stack identified
- [ ] Current architecture patterns noted
- [ ] Integration points with existing system identified
**Enhancement Scope:**
- [ ] Enhancement clearly defined and scoped
- [ ] Impact on existing functionality assessed
- [ ] Required integration points identified
- [ ] Success criteria established
### 2. Epic Creation
Create a focused epic following this structure:
#### Epic Title
{{Enhancement Name}} - Brownfield Enhancement
#### Epic Goal
{{1-2 sentences describing what the epic will accomplish and why it adds value}}
#### Epic Description
**Existing System Context:**
- Current relevant functionality: {{brief description}}
- Technology stack: {{relevant existing technologies}}
- Integration points: {{where new work connects to existing system}}
**Enhancement Details:**
- What's being added/changed: {{clear description}}
- How it integrates: {{integration approach}}
- Success criteria: {{measurable outcomes}}
#### Stories
List 1-3 focused stories that complete the epic:
1. **Story 1:** {{Story title and brief description}}
2. **Story 2:** {{Story title and brief description}}
3. **Story 3:** {{Story title and brief description}}
#### Compatibility Requirements
- [ ] Existing APIs remain unchanged
- [ ] Database schema changes are backward compatible
- [ ] UI changes follow existing patterns
- [ ] Performance impact is minimal
#### Risk Mitigation
- **Primary Risk:** {{main risk to existing system}}
- **Mitigation:** {{how risk will be addressed}}
- **Rollback Plan:** {{how to undo changes if needed}}
#### Definition of Done
- [ ] All stories completed with acceptance criteria met
- [ ] Existing functionality verified through testing
- [ ] Integration points working correctly
- [ ] Documentation updated appropriately
- [ ] No regression in existing features
### 3. Validation Checklist
Before finalizing the epic, ensure:
**Scope Validation:**
- [ ] Epic can be completed in 1-3 stories maximum
- [ ] No architectural documentation is required
- [ ] Enhancement follows existing patterns
- [ ] Integration complexity is manageable
**Risk Assessment:**
- [ ] Risk to existing system is low
- [ ] Rollback plan is feasible
- [ ] Testing approach covers existing functionality
- [ ] Team has sufficient knowledge of integration points
**Completeness Check:**
- [ ] Epic goal is clear and achievable
- [ ] Stories are properly scoped
- [ ] Success criteria are measurable
- [ ] Dependencies are identified
### 4. Handoff to Story Manager
Once the epic is validated, provide this handoff to the Story Manager:
---
**Story Manager Handoff:**
"Please develop detailed user stories for this brownfield epic. Key considerations:
- This is an enhancement to an existing system running {{technology stack}}
- Integration points: {{list key integration points}}
- Existing patterns to follow: {{relevant existing patterns}}
- Critical compatibility requirements: {{key requirements}}
- Each story must include verification that existing functionality remains intact
The epic should maintain system integrity while delivering {{epic goal}}."
---
## Success Criteria
The epic creation is successful when:
1. Enhancement scope is clearly defined and appropriately sized
2. Integration approach respects existing system architecture
3. Risk to existing functionality is minimized
4. Stories are logically sequenced for safe implementation
5. Compatibility requirements are clearly specified
6. Rollback plan is feasible and documented
## Important Notes
- This task is specifically for SMALL brownfield enhancements
- If the scope grows beyond 3 stories, consider the full brownfield PRD process
- Always prioritize existing system integrity over new functionality
- When in doubt about scope or complexity, escalate to full brownfield planning

View File

@@ -0,0 +1,149 @@
<!-- Powered by BMAD™ Core -->
# Create Brownfield Story Task
## Purpose
Create a single user story for very small brownfield enhancements that can be completed in one focused development session. This task is for minimal additions or bug fixes that require existing system integration awareness.
## When to Use This Task
**Use this task when:**
- The enhancement can be completed in a single story
- No new architecture or significant design is required
- The change follows existing patterns exactly
- Integration is straightforward with minimal risk
- Change is isolated with clear boundaries
**Use brownfield-create-epic when:**
- The enhancement requires 2-3 coordinated stories
- Some design work is needed
- Multiple integration points are involved
**Use the full brownfield PRD/Architecture process when:**
- The enhancement requires multiple coordinated stories
- Architectural planning is needed
- Significant integration work is required
## Instructions
### 1. Quick Project Assessment
Gather minimal but essential context about the existing project:
**Current System Context:**
- [ ] Relevant existing functionality identified
- [ ] Technology stack for this area noted
- [ ] Integration point(s) clearly understood
- [ ] Existing patterns for similar work identified
**Change Scope:**
- [ ] Specific change clearly defined
- [ ] Impact boundaries identified
- [ ] Success criteria established
### 2. Story Creation
Create a single focused story following this structure:
#### Story Title
{{Specific Enhancement}} - Brownfield Addition
#### User Story
As a {{user type}},
I want {{specific action/capability}},
So that {{clear benefit/value}}.
#### Story Context
**Existing System Integration:**
- Integrates with: {{existing component/system}}
- Technology: {{relevant tech stack}}
- Follows pattern: {{existing pattern to follow}}
- Touch points: {{specific integration points}}
#### Acceptance Criteria
**Functional Requirements:**
1. {{Primary functional requirement}}
2. {{Secondary functional requirement (if any)}}
3. {{Integration requirement}}
**Integration Requirements:** 4. Existing {{relevant functionality}} continues to work unchanged 5. New functionality follows existing {{pattern}} pattern 6. Integration with {{system/component}} maintains current behavior
**Quality Requirements:** 7. Change is covered by appropriate tests 8. Documentation is updated if needed 9. No regression in existing functionality verified
#### Technical Notes
- **Integration Approach:** {{how it connects to existing system}}
- **Existing Pattern Reference:** {{link or description of pattern to follow}}
- **Key Constraints:** {{any important limitations or requirements}}
#### Definition of Done
- [ ] Functional requirements met
- [ ] Integration requirements verified
- [ ] Existing functionality regression tested
- [ ] Code follows existing patterns and standards
- [ ] Tests pass (existing and new)
- [ ] Documentation updated if applicable
### 3. Risk and Compatibility Check
**Minimal Risk Assessment:**
- **Primary Risk:** {{main risk to existing system}}
- **Mitigation:** {{simple mitigation approach}}
- **Rollback:** {{how to undo if needed}}
**Compatibility Verification:**
- [ ] No breaking changes to existing APIs
- [ ] Database changes (if any) are additive only
- [ ] UI changes follow existing design patterns
- [ ] Performance impact is negligible
### 4. Validation Checklist
Before finalizing the story, confirm:
**Scope Validation:**
- [ ] Story can be completed in one development session
- [ ] Integration approach is straightforward
- [ ] Follows existing patterns exactly
- [ ] No design or architecture work required
**Clarity Check:**
- [ ] Story requirements are unambiguous
- [ ] Integration points are clearly specified
- [ ] Success criteria are testable
- [ ] Rollback approach is simple
## Success Criteria
The story creation is successful when:
1. Enhancement is clearly defined and appropriately scoped for single session
2. Integration approach is straightforward and low-risk
3. Existing system patterns are identified and will be followed
4. Rollback plan is simple and feasible
5. Acceptance criteria include existing functionality verification
## Important Notes
- This task is for VERY SMALL brownfield changes only
- If complexity grows during analysis, escalate to brownfield-create-epic
- Always prioritize existing system integrity
- When in doubt about integration complexity, use brownfield-create-epic instead
- Stories should take no more than 4 hours of focused development work

View File

@@ -0,0 +1,159 @@
# Correct Course Task - Godot Game Development
## Purpose
- Guide a structured response to Godot game development change triggers using the `.bmad-godot-game-dev/checklists/game-change-checklist`.
- Analyze the impacts of changes on game features, node systems, and performance targets (60+ FPS).
- Explore Godot-specific solutions (e.g., GDScript vs C# optimization, scene restructuring, platform export adjustments).
- Draft specific, actionable proposed updates to affected game artifacts (e.g., GDD sections, technical specs, Godot project settings).
- Produce a consolidated "Godot Game Development Change Proposal" document for review and approval.
- Ensure clear handoff path for changes requiring fundamental redesign, language migration, or architecture updates.
## Instructions
### 1. Initial Setup & Mode Selection
- **Acknowledge Task & Inputs:**
- Confirm with the user that the "Godot Game Development Correct Course Task" is being initiated.
- Verify the change trigger (e.g., 60+ FPS performance issue, GDScript/C# migration need, node system refactor, platform export problem).
- Confirm access to relevant game artifacts:
- Game Design Document (GDD)
- Technical Design Documents
- Godot Architecture specifications (node hierarchy, signal flow)
- Performance budgets (60+ FPS minimum) and platform requirements
- Current sprint's game stories with TDD test coverage
- Asset import settings and resource management
- Language strategy documentation (GDScript vs C#)
- Confirm access to `.bmad-godot-game-dev/checklists/game-change-checklist`.
- **Establish Interaction Mode:**
- Ask the user their preferred interaction mode:
- **"Incrementally (Default & Recommended):** Work through the game-change-checklist section by section, discussing findings and drafting changes collaboratively. Best for complex node restructuring, language migrations, or performance optimizations."
- **"YOLO Mode (Batch Processing):** Conduct batched analysis and present consolidated findings. Suitable for straightforward scene optimizations or export setting adjustments."
- Confirm the selected mode and inform: "We will now use the game-change-checklist to analyze the change and draft proposed updates specific to our Godot game development context with 60+ FPS targets and TDD practices."
### 2. Execute Game Development Checklist Analysis
- Systematically work through the game-change-checklist sections:
1. **Change Context & Game Impact**
2. **Feature/System Impact Analysis**
3. **Technical Artifact Conflict Resolution**
4. **Performance & Platform Evaluation**
5. **Path Forward Recommendation**
- For each checklist section:
- Present Godot-specific prompts and considerations
- Analyze impacts on:
- Godot scenes and node hierarchies
- Signal connections and dependencies
- Performance metrics (60+ FPS requirement, frame time, draw calls)
- GDScript vs C# language boundaries
- Resource loading and object pooling
- Platform export templates and settings
- TDD test coverage (GUT for GDScript, GoDotTest for C#)
- Discuss findings with performance profiler data
- Record status: `[x] Addressed`, `[N/A]`, `[!] Further Action Needed`
- Document Godot-specific decisions and language choices
### 3. Draft Game-Specific Proposed Changes
Based on the analysis and agreed path forward:
- **Identify affected game artifacts requiring updates:**
- GDD sections (mechanics, systems, progression)
- Technical specifications (node architecture, 60+ FPS targets)
- Godot-specific configurations (project settings, export presets)
- Game story modifications (TDD requirements, language choices)
- Resource import settings and compression
- Platform export template configurations
- Test suite updates (GUT/GoDotTest coverage)
- **Draft explicit changes for each artifact:**
- **Game Stories:** Revise story text, TDD test requirements, GDScript/C# language selection
- **Technical Specs:** Update node hierarchies, signal architectures, 60+ FPS validation
- **Godot Configurations:** Propose project settings, rendering options, export templates
- **GDD Updates:** Modify feature descriptions, balance parameters, progression systems
- **Resource Specifications:** Adjust import settings, compression, pooling strategies
- **Performance Targets:** Ensure 60+ FPS minimum, frame time <16.67ms, draw call budgets
- **Test Coverage:** Update GUT tests for GDScript, GoDotTest for C# components
- **Include Godot-specific details:**
- Scene tree structure changes
- Node composition updates
- Signal refactoring needs
- Shader/material optimizations
- Language migration paths (GDScript C#)
- Object pooling implementations
- Export preset modifications
### 4. Generate "Godot Game Development Change Proposal"
- Create a comprehensive proposal document containing:
**A. Change Summary:**
- Original issue (60+ FPS violation, language inefficiency, node bottleneck)
- Godot systems affected (scenes, nodes, signals)
- Platform/performance implications (frame time impact)
- Chosen solution approach (GDScript optimization, C# migration, pooling)
**B. Technical Impact Analysis:**
- Godot node architecture changes needed
- Performance implications (profiler metrics, FPS measurements)
- Language strategy adjustments (GDScript vs C# boundaries)
- Resource loading and pooling modifications
- Platform export compatibility effects
- TDD test suite impacts (GUT/GoDotTest coverage)
**C. Specific Proposed Edits:**
- For each game story: "Change Story GS-X.Y from: [old] To: [new with TDD requirements]"
- For technical specs: "Update Godot Architecture Section X: [node/signal changes]"
- For GDD: "Modify [Feature] in Section Y: [updates with performance targets]"
- For project.godot: "Change [Setting] from [old_value] to [new_value]"
- For language strategy: "Migrate [System] from GDScript to C# for performance"
**D. Implementation Considerations:**
- Required Godot version (4.x vs 3.x LTS)
- Resource reimport with optimized settings
- Scene and node refactoring requirements
- GDScript static typing enforcement
- C# performance optimization needs
- Object pooling implementation
- Platform export template testing
- TDD test updates (Red-Green-Refactor cycle)
### 5. Finalize & Determine Next Steps
- Obtain explicit approval for the "Godot Game Development Change Proposal"
- Verify 60+ FPS targets are maintained post-change
- Provide the finalized document to the user
- **Based on change scope:**
- **Minor adjustments (can be handled in current sprint):**
- Confirm task completion
- Verify TDD tests are updated
- Suggest handoff to game-developer agent for implementation
- Note required performance profiling validation
- **Major changes (require replanning):**
- Clearly state need for deeper technical review
- Recommend engaging Game Architect for node restructuring
- Evaluate language migration complexity (GDScript C#)
- Provide proposal as input for architecture revision
- Flag any 60+ FPS risks or TDD coverage gaps
## Output Deliverables
- **Primary:** "Godot Game Development Change Proposal" document containing:
- Godot-specific change analysis
- Technical impact assessment with node/signal context
- Language strategy implications (GDScript vs C#)
- Performance validation against 60+ FPS target
- Clearly drafted updates for all affected game artifacts
- TDD test coverage requirements
- Implementation guidance following Carmack's optimization principles
- **Secondary:** Annotated game-change-checklist showing:
- Technical decisions made (node architecture, language choices)
- Performance trade-offs considered (profiler data)
- Platform export accommodations
- Godot-specific implementation notes
- Required test updates (GUT/GoDotTest)

View File

@@ -0,0 +1,278 @@
# Create Deep Research Prompt Task
This task helps create comprehensive research prompts for various types of deep analysis. It can process inputs from brainstorming sessions, project briefs, market research, or specific research questions to generate targeted prompts for deeper investigation.
## Purpose
Generate well-structured research prompts that:
- Define clear research objectives and scope
- Specify appropriate research methodologies
- Outline expected deliverables and formats
- Guide systematic investigation of complex topics
- Ensure actionable insights are captured
## Research Type Selection
CRITICAL: First, help the user select the most appropriate research focus based on their needs and any input documents they've provided.
### 1. Research Focus Options
Present these numbered options to the user:
1. **Product Validation Research**
- Validate product hypotheses and market fit
- Test assumptions about user needs and solutions
- Assess technical and business feasibility
- Identify risks and mitigation strategies
2. **Market Opportunity Research**
- Analyze market size and growth potential
- Identify market segments and dynamics
- Assess market entry strategies
- Evaluate timing and market readiness
3. **User & Customer Research**
- Deep dive into user personas and behaviors
- Understand jobs-to-be-done and pain points
- Map customer journeys and touchpoints
- Analyze willingness to pay and value perception
4. **Competitive Intelligence Research**
- Detailed competitor analysis and positioning
- Feature and capability comparisons
- Business model and strategy analysis
- Identify competitive advantages and gaps
5. **Technology & Innovation Research**
- Assess technology trends and possibilities
- Evaluate technical approaches and architectures
- Identify emerging technologies and disruptions
- Analyze build vs. buy vs. partner options
6. **Industry & Ecosystem Research**
- Map industry value chains and dynamics
- Identify key players and relationships
- Analyze regulatory and compliance factors
- Understand partnership opportunities
7. **Strategic Options Research**
- Evaluate different strategic directions
- Assess business model alternatives
- Analyze go-to-market strategies
- Consider expansion and scaling paths
8. **Risk & Feasibility Research**
- Identify and assess various risk factors
- Evaluate implementation challenges
- Analyze resource requirements
- Consider regulatory and legal implications
9. **Custom Research Focus**
- User-defined research objectives
- Specialized domain investigation
- Cross-functional research needs
### 2. Input Processing
**If Project Brief provided:**
- Extract key product concepts and goals
- Identify target users and use cases
- Note technical constraints and preferences
- Highlight uncertainties and assumptions
**If Brainstorming Results provided:**
- Synthesize main ideas and themes
- Identify areas needing validation
- Extract hypotheses to test
- Note creative directions to explore
**If Market Research provided:**
- Build on identified opportunities
- Deepen specific market insights
- Validate initial findings
- Explore adjacent possibilities
**If Starting Fresh:**
- Gather essential context through questions
- Define the problem space
- Clarify research objectives
- Establish success criteria
## Process
### 3. Research Prompt Structure
CRITICAL: collaboratively develop a comprehensive research prompt with these components.
#### A. Research Objectives
CRITICAL: collaborate with the user to articulate clear, specific objectives for the research.
- Primary research goal and purpose
- Key decisions the research will inform
- Success criteria for the research
- Constraints and boundaries
#### B. Research Questions
CRITICAL: collaborate with the user to develop specific, actionable research questions organized by theme.
**Core Questions:**
- Central questions that must be answered
- Priority ranking of questions
- Dependencies between questions
**Supporting Questions:**
- Additional context-building questions
- Nice-to-have insights
- Future-looking considerations
#### C. Research Methodology
**Data Collection Methods:**
- Secondary research sources
- Primary research approaches (if applicable)
- Data quality requirements
- Source credibility criteria
**Analysis Frameworks:**
- Specific frameworks to apply
- Comparison criteria
- Evaluation methodologies
- Synthesis approaches
#### D. Output Requirements
**Format Specifications:**
- Executive summary requirements
- Detailed findings structure
- Visual/tabular presentations
- Supporting documentation
**Key Deliverables:**
- Must-have sections and insights
- Decision-support elements
- Action-oriented recommendations
- Risk and uncertainty documentation
### 4. Prompt Generation
**Research Prompt Template:**
```markdown
## Research Objective
[Clear statement of what this research aims to achieve]
## Background Context
[Relevant information from project brief, brainstorming, or other inputs]
## Research Questions
### Primary Questions (Must Answer)
1. [Specific, actionable question]
2. [Specific, actionable question]
...
### Secondary Questions (Nice to Have)
1. [Supporting question]
2. [Supporting question]
...
## Research Methodology
### Information Sources
- [Specific source types and priorities]
### Analysis Frameworks
- [Specific frameworks to apply]
### Data Requirements
- [Quality, recency, credibility needs]
## Expected Deliverables
### Executive Summary
- Key findings and insights
- Critical implications
- Recommended actions
### Detailed Analysis
[Specific sections needed based on research type]
### Supporting Materials
- Data tables
- Comparison matrices
- Source documentation
## Success Criteria
[How to evaluate if research achieved its objectives]
## Timeline and Priority
[If applicable, any time constraints or phasing]
```
### 5. Review and Refinement
1. **Present Complete Prompt**
- Show the full research prompt
- Explain key elements and rationale
- Highlight any assumptions made
2. **Gather Feedback**
- Are the objectives clear and correct?
- Do the questions address all concerns?
- Is the scope appropriate?
- Are output requirements sufficient?
3. **Refine as Needed**
- Incorporate user feedback
- Adjust scope or focus
- Add missing elements
- Clarify ambiguities
### 6. Next Steps Guidance
**Execution Options:**
1. **Use with AI Research Assistant**: Provide this prompt to an AI model with research capabilities
2. **Guide Human Research**: Use as a framework for manual research efforts
3. **Hybrid Approach**: Combine AI and human research using this structure
**Integration Points:**
- How findings will feed into next phases
- Which team members should review results
- How to validate findings
- When to revisit or expand research
## Important Notes
- The quality of the research prompt directly impacts the quality of insights gathered
- Be specific rather than general in research questions
- Consider both current state and future implications
- Balance comprehensiveness with focus
- Document assumptions and limitations clearly
- Plan for iterative refinement based on initial findings

View File

@@ -0,0 +1,103 @@
<!-- Powered by BMAD™ Core -->
# Create Document from Template (YAML Driven)
## ⚠️ CRITICAL EXECUTION NOTICE ⚠️
**THIS IS AN EXECUTABLE WORKFLOW - NOT REFERENCE MATERIAL**
When this task is invoked:
1. **DISABLE ALL EFFICIENCY OPTIMIZATIONS** - This workflow requires full user interaction
2. **MANDATORY STEP-BY-STEP EXECUTION** - Each section must be processed sequentially with user feedback
3. **ELICITATION IS REQUIRED** - When `elicit: true`, you MUST use the 1-9 format and wait for user response
4. **NO SHORTCUTS ALLOWED** - Complete documents cannot be created without following this workflow
**VIOLATION INDICATOR:** If you create a complete document without user interaction, you have violated this workflow.
## Critical: Template Discovery
If a YAML Template has not been provided, list all templates from .bmad-core/templates or ask the user to provide another.
## CRITICAL: Mandatory Elicitation Format
**When `elicit: true`, this is a HARD STOP requiring user interaction:**
**YOU MUST:**
1. Present section content
2. Provide detailed rationale (explain trade-offs, assumptions, decisions made)
3. **STOP and present numbered options 1-9:**
- **Option 1:** Always "Proceed to next section"
- **Options 2-9:** Select 8 methods from data/elicitation-methods
- End with: "Select 1-9 or just type your question/feedback:"
4. **WAIT FOR USER RESPONSE** - Do not proceed until user selects option or provides feedback
**WORKFLOW VIOLATION:** Creating content for elicit=true sections without user interaction violates this task.
**NEVER ask yes/no questions or use any other format.**
## Processing Flow
1. **Parse YAML template** - Load template metadata and sections
2. **Set preferences** - Show current mode (Interactive), confirm output file
3. **Process each section:**
- Skip if condition unmet
- Check agent permissions (owner/editors) - note if section is restricted to specific agents
- Draft content using section instruction
- Present content + detailed rationale
- **IF elicit: true** → MANDATORY 1-9 options format
- Save to file if possible
4. **Continue until complete**
## Detailed Rationale Requirements
When presenting section content, ALWAYS include rationale that explains:
- Trade-offs and choices made (what was chosen over alternatives and why)
- Key assumptions made during drafting
- Interesting or questionable decisions that need user attention
- Areas that might need validation
## Elicitation Results Flow
After user selects elicitation method (2-9):
1. Execute method from data/elicitation-methods
2. Present results with insights
3. Offer options:
- **1. Apply changes and update section**
- **2. Return to elicitation menu**
- **3. Ask any questions or engage further with this elicitation**
## Agent Permissions
When processing sections with agent permission fields:
- **owner**: Note which agent role initially creates/populates the section
- **editors**: List agent roles allowed to modify the section
- **readonly**: Mark sections that cannot be modified after creation
**For sections with restricted access:**
- Include a note in the generated document indicating the responsible agent
- Example: "_(This section is owned by dev-agent and can only be modified by dev-agent)_"
## YOLO Mode
User can type `#yolo` to toggle to YOLO mode (process all sections at once).
## CRITICAL REMINDERS
**❌ NEVER:**
- Ask yes/no questions for elicitation
- Use any format other than 1-9 numbered options
- Create new elicitation methods
**✅ ALWAYS:**
- Use exact 1-9 format when elicit: true
- Select options 2-9 from data/elicitation-methods only
- Provide detailed rationale explaining decisions
- End with "Select 1-9 or just type your question/feedback:"

View File

@@ -0,0 +1,202 @@
# Create Game Story Task
## Purpose
To identify the next logical game story based on project progress and epic definitions, and then to prepare a comprehensive, self-contained, and actionable story file using the `Game Story Template`. This task ensures the story is enriched with all necessary technical context, Godot-specific requirements (node architecture, GDScript/C# language selection, 60+ FPS performance targets), TDD test requirements, and acceptance criteria, making it ready for efficient implementation by a Game Developer Agent with minimal need for additional research or finding its own context.
## SEQUENTIAL Task Execution (Do not proceed until current Task is complete)
### 0. Load Core Configuration and Check Workflow
- Load `.bmad-godot-game-dev/config.yaml` from the project root
- If the file does not exist, HALT and inform the user: "core-config.yaml not found. This file is required for story creation. You can either: 1) Copy core-config.yaml from GITHUB bmad-core/ and configure it for your game project OR 2) Run the BMad installer against your project to upgrade and add the file automatically. Please add and configure before proceeding."
- Extract key configurations: `devStoryLocation`, `prd.*`, `architecture.*`, `workflow.*`
### 1. Identify Next Story for Preparation
#### 1.1 Locate Epic Files and Review Existing Stories
- Based on `prdSharded` from config, locate epic files (sharded location/pattern or monolithic PRD sections)
- If `devStoryLocation` has story files, load the highest `{epicNum}.{storyNum}.story.md` file
- **If highest story exists:**
- Verify status is 'Done'. If not, alert user: "ALERT: Found incomplete story! File: {lastEpicNum}.{lastStoryNum}.story.md Status: [current status] Check if TDD tests are passing (GUT/GoDotTest). You should fix this story first, but would you like to accept risk & override to create the next story in draft?"
- If proceeding, select next sequential story in the current epic
- If epic is complete, prompt user: "Epic {epicNum} Complete: All stories in Epic {epicNum} have been completed. Would you like to: 1) Begin Epic {epicNum + 1} with story 1 2) Select a specific story to work on 3) Cancel story creation"
- **CRITICAL**: NEVER automatically skip to another epic. User MUST explicitly instruct which story to create.
- **If no story files exist:** The next story is ALWAYS 1.1 (first story of first epic)
- Announce the identified story to the user: "Identified next story for preparation: {epicNum}.{storyNum} - {Story Title}"
### 2. Gather Story Requirements and Previous Story Context
- Extract story requirements from the identified epic file or PRD section
- If previous story exists, review Dev Agent Record sections for:
- Completion Notes and Debug Log References
- Implementation deviations and technical decisions
- Godot-specific challenges (node structure, signal connections, 60+ FPS violations)
- Language decisions (GDScript vs C# choices and rationale)
- Resource loading and object pooling implementations
- TDD test coverage and any failing tests
- Extract relevant insights that inform the current story's preparation
### 3. Gather Architecture Context
#### 3.1 Determine Architecture Reading Strategy
- **If `architectureVersion: >= v3` and `architectureSharded: true`**: Read `{architectureShardedLocation}/index.md` then follow structured reading order below
- **Else**: Use monolithic `architectureFile` for similar sections
#### 3.2 Read Architecture Documents Based on Story Type
**For ALL Game Stories:** tech-stack.md, godot-project-structure.md, coding-standards.md, test-strategy and standards.md, language-strategy.md
**For Gameplay/Mechanics Stories, additionally:** gameplay-systems-architecture.md, node-architecture-details.md, physics-configuration.md, input-system-architecture.md, state-machine-architecture.md, resource-architecture.md
**For UI/UX Stories, additionally:** node-architecture-details.md, ui-architecture.md, ui-component-system.md, ui-state-management.md, scene-management-architecture.md
**For Backend/Services Stories, additionally:** resource-architecture.md, data-persistence-architecture.md, save-system-implementation.md, analytics-integration.md, multiplayer-architecture.md
**For Graphics/Rendering Stories, additionally:** rendering-settings.md, shader-guidelines.md, sprite-management.md, particle-systems.md
**For Audio Stories, additionally:** audio-architecture.md, audio-mixing-configuration.md, sound-bank-management.md
#### 3.3 Extract Story-Specific Technical Details
Extract ONLY information directly relevant to implementing the current story. Do NOT invent new patterns, systems, or standards not in the source documents.
Extract:
- Specific Godot nodes and their inheritance hierarchy
- Language selection rationale (GDScript vs C# for each component)
- Node composition patterns and signal connections
- Scene (.tscn) and resource (.tres) organization requirements
- InputMap actions and device handling configurations
- Physics2D/3D settings and collision layers
- Control node anchoring and theme specifications
- Resource naming conventions and folder structures
- Performance budgets (60+ FPS minimum, frame time <16.67ms, draw calls)
- Platform export settings (desktop, mobile, web)
- TDD requirements with GUT (GDScript) and GoDotTest (C#)
ALWAYS cite source documents: `[Source: architecture/{filename}.md#{section}]`
### 4. Godot-Specific Technical Analysis
#### 4.1 Language Strategy Analysis
- Determine GDScript vs C# selection for each system based on:
- Performance requirements (C# for compute-heavy operations)
- Iteration speed needs (GDScript for rapid prototyping)
- Existing codebase patterns
- Document static typing enforcement in GDScript (10-20% performance gain)
- Identify interop boundaries between GDScript and C#
- Note any GDExtension or plugin requirements
- Specify object pooling needs for spawned entities
#### 4.2 Scene and Node Planning
- Identify which scenes (.tscn) will be modified or created
- List scene inheritance and composition patterns
- Document node tree structure with parent-child relationships
- Specify scene instancing and pooling requirements
- Plan signal connections between nodes
- Define Autoload/singleton needs
#### 4.3 Node Architecture
- Define custom node classes needed (extending Node2D, Control, etc.)
- Specify Resource classes for data management
- Document signal emission and connection patterns
- Identify process vs physics_process usage
- Note Control node UI components and theme requirements
- Plan export variables for inspector configuration
#### 4.4 Resource Requirements
- List texture requirements with import settings
- Define AnimationPlayer and AnimationTree needs
- Specify AudioStream resources and bus routing
- Document shader and material requirements
- Note font resources and theme variations
- Plan resource preloading vs lazy loading strategy
### 5. Populate Story Template with Full Context
- Create new story file: `{devStoryLocation}/{epicNum}.{storyNum}.story.md` using Game Story Template
- Fill in basic story information: Title, Status (Draft), Story statement, Acceptance Criteria from Epic/PRD
- **`Dev Notes` section (CRITICAL):**
- CRITICAL: This section MUST contain ONLY information extracted from architecture documents and PRD. NEVER invent or assume technical details.
- Include ALL relevant technical details from Steps 2-4, organized by category:
- **Previous Story Insights**: Key learnings from previous story implementation
- **Language Strategy**: GDScript vs C# decisions for each component [with source references]
- **Node Architecture**: Specific nodes, inheritance, signal patterns [with source references]
- **Scene Specifications**: Scene modifications, node trees, instancing [with source references]
- **Input Configuration**: InputMap actions, device handling [with source references]
- **UI Implementation**: Control nodes, anchoring, themes [with source references]
- **Resource Pipeline**: Resource requirements, import settings, pooling strategy
- **Performance Targets**: 60+ FPS requirement, frame time budget, profiler metrics
- **Platform Considerations**: Export template differences, platform-specific code
- **TDD Requirements**: GUT tests for GDScript, GoDotTest for C#, test-first development
- Every technical detail MUST include its source reference: `[Source: architecture/{filename}.md#{section}]`
- If information for a category is not found in the architecture docs, explicitly state: "No specific guidance found in architecture docs"
- **`Tasks / Subtasks` section:**
- Generate detailed, sequential list of technical tasks based ONLY on: Epic/PRD Requirements, Story AC, Reviewed Architecture Information
- Include Godot-specific tasks:
- Write failing tests FIRST (TDD Red phase)
- Scene setup and node hierarchy creation
- Node implementation with proper \_ready/\_process methods
- Signal connection and event handling
- InputMap integration
- Physics2D/3D configuration
- Control node UI with responsive anchoring
- Performance profiling (maintain 60+ FPS)
- Make tests pass (TDD Green phase)
- Refactor while keeping tests green (TDD Refactor phase)
- Each task must reference relevant architecture documentation
- Include GUT/GoDotTest testing as explicit subtasks
- Link tasks to ACs where applicable (e.g., `Task 1 (AC: 1, 3)`)
- Add notes on Godot project structure alignment or discrepancies found in Step 4
### 6. Story Draft Completion and Review
- Review all sections for completeness and accuracy
- Verify all source references are included for technical details
- Ensure Godot-specific requirements are comprehensive:
- All scenes and node trees documented
- Language strategy (GDScript/C#) justified
- Signal connections clear
- Resource requirements specified
- 60+ FPS performance targets defined
- TDD test requirements explicit
- Update status to "Draft" and save the story file
- Execute `.bmad-godot-game-dev/tasks/execute-checklist` `.bmad-godot-game-dev/checklists/game-story-dod-checklist`
- Provide summary to user including:
- Story created: `{devStoryLocation}/{epicNum}.{storyNum}.story.md`
- Status: Draft
- Language strategy decisions (GDScript vs C# components)
- Key Godot nodes and systems included
- Scene/node modifications required
- Resource requirements identified
- TDD test coverage planned
- Performance impact assessment (60+ FPS maintained?)
- Any deviations or conflicts noted between PRD and architecture
- Checklist Results
- Next steps: For complex Godot features, suggest the user review the story draft and optionally test critical assumptions in Godot Editor
### 7. Godot-Specific Validation
Before finalizing, ensure:
- [ ] Language strategy defined (GDScript vs C# for each component)
- [ ] TDD approach specified (tests to write first)
- [ ] All node inheritance and composition patterns documented
- [ ] Signal connections and event flow mapped
- [ ] Scene instancing and pooling strategy defined
- [ ] InputMap actions configured
- [ ] Control node UI follows Godot anchoring best practices
- [ ] Performance profiling points identified (60+ FPS validation)
- [ ] Resource import settings documented
- [ ] Platform export settings noted
- [ ] Object pooling implemented for spawned entities
- [ ] Static typing enforced in all GDScript
This task ensures game development stories are immediately actionable and enable efficient AI-driven development of Godot game features with mandatory TDD practices and 60+ FPS performance targets.

View File

@@ -0,0 +1,343 @@
# Document an Existing Project
## Purpose
Generate comprehensive documentation for existing projects optimized for AI development agents. This task creates structured reference materials that enable AI agents to understand project context, conventions, and patterns for effective contribution to any codebase.
## Task Instructions
### 1. Initial Project Analysis
**CRITICAL:** First, check if a PRD or requirements document exists in context. If yes, use it to focus your documentation efforts on relevant areas only.
**IF PRD EXISTS**:
- Review the PRD to understand what enhancement/feature is planned
- Identify which modules, services, or areas will be affected
- Focus documentation ONLY on these relevant areas
- Skip unrelated parts of the codebase to keep docs lean
**IF NO PRD EXISTS**:
Ask the user:
"I notice you haven't provided a PRD or requirements document. To create more focused and useful documentation, I recommend one of these options:
1. **Create a PRD first** - Would you like me to help create a brownfield PRD before documenting? This helps focus documentation on relevant areas.
2. **Provide existing requirements** - Do you have a requirements document, epic, or feature description you can share?
3. **Describe the focus** - Can you briefly describe what enhancement or feature you're planning? For example:
- 'Adding payment processing to the user service'
- 'Refactoring the authentication module'
- 'Integrating with a new third-party API'
4. **Document everything** - Or should I proceed with comprehensive documentation of the entire codebase? (Note: This may create excessive documentation for large projects)
Please let me know your preference, or I can proceed with full documentation if you prefer."
Based on their response:
- If they choose option 1-3: Use that context to focus documentation
- If they choose option 4 or decline: Proceed with comprehensive analysis below
Begin by conducting analysis of the existing project. Use available tools to:
1. **Project Structure Discovery**: Examine the root directory structure, identify main folders, and understand the overall organization
2. **Technology Stack Identification**: Look for package.json, requirements.txt, Cargo.toml, pom.xml, etc. to identify languages, frameworks, and dependencies
3. **Build System Analysis**: Find build scripts, CI/CD configurations, and development commands
4. **Existing Documentation Review**: Check for README files, docs folders, and any existing documentation
5. **Code Pattern Analysis**: Sample key files to understand coding patterns, naming conventions, and architectural approaches
Ask the user these elicitation questions to better understand their needs:
- What is the primary purpose of this project?
- Are there any specific areas of the codebase that are particularly complex or important for agents to understand?
- What types of tasks do you expect AI agents to perform on this project? (e.g., bug fixes, feature additions, refactoring, testing)
- Are there any existing documentation standards or formats you prefer?
- What level of technical detail should the documentation target? (junior developers, senior developers, mixed team)
- Is there a specific feature or enhancement you're planning? (This helps focus documentation)
### 2. Deep Codebase Analysis
CRITICAL: Before generating documentation, conduct extensive analysis of the existing codebase:
1. **Explore Key Areas**:
- Entry points (main files, index files, app initializers)
- Configuration files and environment setup
- Package dependencies and versions
- Build and deployment configurations
- Test suites and coverage
2. **Ask Clarifying Questions**:
- "I see you're using [technology X]. Are there any custom patterns or conventions I should document?"
- "What are the most critical/complex parts of this system that developers struggle with?"
- "Are there any undocumented 'tribal knowledge' areas I should capture?"
- "What technical debt or known issues should I document?"
- "Which parts of the codebase change most frequently?"
3. **Map the Reality**:
- Identify ACTUAL patterns used (not theoretical best practices)
- Find where key business logic lives
- Locate integration points and external dependencies
- Document workarounds and technical debt
- Note areas that differ from standard patterns
**IF PRD PROVIDED**: Also analyze what would need to change for the enhancement
### 3. Core Documentation Generation
[[LLM: Generate a comprehensive BROWNFIELD architecture document that reflects the ACTUAL state of the codebase.
**CRITICAL**: This is NOT an aspirational architecture document. Document what EXISTS, including:
- Technical debt and workarounds
- Inconsistent patterns between different parts
- Legacy code that can't be changed
- Integration constraints
- Performance bottlenecks
**Document Structure**:
# [Project Name] Brownfield Architecture Document
## Introduction
This document captures the CURRENT STATE of the [Project Name] codebase, including technical debt, workarounds, and real-world patterns. It serves as a reference for AI agents working on enhancements.
### Document Scope
[If PRD provided: "Focused on areas relevant to: {enhancement description}"]
[If no PRD: "Comprehensive documentation of entire system"]
### Change Log
| Date | Version | Description | Author |
| ------ | ------- | --------------------------- | --------- |
| [Date] | 1.0 | Initial brownfield analysis | [Analyst] |
## Quick Reference - Key Files and Entry Points
### Critical Files for Understanding the System
- **Main Entry**: `src/index.js` (or actual entry point)
- **Configuration**: `config/app.config.js`, `.env.example`
- **Core Business Logic**: `src/services/`, `src/domain/`
- **API Definitions**: `src/routes/` or link to OpenAPI spec
- **Database Models**: `src/models/` or link to schema files
- **Key Algorithms**: [List specific files with complex logic]
### If PRD Provided - Enhancement Impact Areas
[Highlight which files/modules will be affected by the planned enhancement]
## High Level Architecture
### Technical Summary
### Actual Tech Stack (from package.json/requirements.txt)
| Category | Technology | Version | Notes |
| --------- | ---------- | ------- | -------------------------- |
| Runtime | Node.js | 16.x | [Any constraints] |
| Framework | Express | 4.18.2 | [Custom middleware?] |
| Database | PostgreSQL | 13 | [Connection pooling setup] |
etc...
### Repository Structure Reality Check
- Type: [Monorepo/Polyrepo/Hybrid]
- Package Manager: [npm/yarn/pnpm]
- Notable: [Any unusual structure decisions]
## Source Tree and Module Organization
### Project Structure (Actual)
```text
project-root/
├── src/
│ ├── controllers/ # HTTP request handlers
│ ├── services/ # Business logic (NOTE: inconsistent patterns between user and payment services)
│ ├── models/ # Database models (Sequelize)
│ ├── utils/ # Mixed bag - needs refactoring
│ └── legacy/ # DO NOT MODIFY - old payment system still in use
├── tests/ # Jest tests (60% coverage)
├── scripts/ # Build and deployment scripts
└── config/ # Environment configs
```
### Key Modules and Their Purpose
- **User Management**: `src/services/userService.js` - Handles all user operations
- **Authentication**: `src/middleware/auth.js` - JWT-based, custom implementation
- **Payment Processing**: `src/legacy/payment.js` - CRITICAL: Do not refactor, tightly coupled
- **[List other key modules with their actual files]**
## Data Models and APIs
### Data Models
Instead of duplicating, reference actual model files:
- **User Model**: See `src/models/User.js`
- **Order Model**: See `src/models/Order.js`
- **Related Types**: TypeScript definitions in `src/types/`
### API Specifications
- **OpenAPI Spec**: `docs/api/openapi.yaml` (if exists)
- **Postman Collection**: `docs/api/postman-collection.json`
- **Manual Endpoints**: [List any undocumented endpoints discovered]
## Technical Debt and Known Issues
### Critical Technical Debt
1. **Payment Service**: Legacy code in `src/legacy/payment.js` - tightly coupled, no tests
2. **User Service**: Different pattern than other services, uses callbacks instead of promises
3. **Database Migrations**: Manually tracked, no proper migration tool
4. **[Other significant debt]**
### Workarounds and Gotchas
- **Environment Variables**: Must set `NODE_ENV=production` even for staging (historical reason)
- **Database Connections**: Connection pool hardcoded to 10, changing breaks payment service
- **[Other workarounds developers need to know]**
## Integration Points and External Dependencies
### External Services
| Service | Purpose | Integration Type | Key Files |
| -------- | -------- | ---------------- | ------------------------------ |
| Stripe | Payments | REST API | `src/integrations/stripe/` |
| SendGrid | Emails | SDK | `src/services/emailService.js` |
etc...
### Internal Integration Points
- **Frontend Communication**: REST API on port 3000, expects specific headers
- **Background Jobs**: Redis queue, see `src/workers/`
- **[Other integrations]**
## Development and Deployment
### Local Development Setup
1. Actual steps that work (not ideal steps)
2. Known issues with setup
3. Required environment variables (see `.env.example`)
### Build and Deployment Process
- **Build Command**: `npm run build` (webpack config in `webpack.config.js`)
- **Deployment**: Manual deployment via `scripts/deploy.sh`
- **Environments**: Dev, Staging, Prod (see `config/environments/`)
## Testing Reality
### Current Test Coverage
- Unit Tests: 60% coverage (Jest)
- Integration Tests: Minimal, in `tests/integration/`
- E2E Tests: None
- Manual Testing: Primary QA method
### Running Tests
```bash
npm test # Runs unit tests
npm run test:integration # Runs integration tests (requires local DB)
```
## If Enhancement PRD Provided - Impact Analysis
### Files That Will Need Modification
Based on the enhancement requirements, these files will be affected:
- `src/services/userService.js` - Add new user fields
- `src/models/User.js` - Update schema
- `src/routes/userRoutes.js` - New endpoints
- [etc...]
### New Files/Modules Needed
- `src/services/newFeatureService.js` - New business logic
- `src/models/NewFeature.js` - New data model
- [etc...]
### Integration Considerations
- Will need to integrate with existing auth middleware
- Must follow existing response format in `src/utils/responseFormatter.js`
- [Other integration points]
## Appendix - Useful Commands and Scripts
### Frequently Used Commands
```bash
npm run dev # Start development server
npm run build # Production build
npm run migrate # Run database migrations
npm run seed # Seed test data
```
### Debugging and Troubleshooting
- **Logs**: Check `logs/app.log` for application logs
- **Debug Mode**: Set `DEBUG=app:*` for verbose logging
- **Common Issues**: See `docs/troubleshooting.md`]]
### 4. Document Delivery
1. **In Web UI (Gemini, ChatGPT, Claude)**:
- Present the entire document in one response (or multiple if too long)
- Tell user to copy and save as `docs/brownfield-architecture.md` or `docs/project-architecture.md`
- Mention it can be sharded later in IDE if needed
2. **In IDE Environment**:
- Create the document as `docs/brownfield-architecture.md`
- Inform user this single document contains all architectural information
- Can be sharded later using PO agent if desired
The document should be comprehensive enough that future agents can understand:
- The actual state of the system (not idealized)
- Where to find key files and logic
- What technical debt exists
- What constraints must be respected
- If PRD provided: What needs to change for the enhancement]]
### 5. Quality Assurance
CRITICAL: Before finalizing the document:
1. **Accuracy Check**: Verify all technical details match the actual codebase
2. **Completeness Review**: Ensure all major system components are documented
3. **Focus Validation**: If user provided scope, verify relevant areas are emphasized
4. **Clarity Assessment**: Check that explanations are clear for AI agents
5. **Navigation**: Ensure document has clear section structure for easy reference
Apply the advanced elicitation task after major sections to refine based on user feedback.
## Success Criteria
- Single comprehensive brownfield architecture document created
- Document reflects REALITY including technical debt and workarounds
- Key files and modules are referenced with actual paths
- Models/APIs reference source files rather than duplicating content
- If PRD provided: Clear impact analysis showing what needs to change
- Document enables AI agents to navigate and understand the actual codebase
- Technical constraints and "gotchas" are clearly documented
## Notes
- This task creates ONE document that captures the TRUE state of the system
- References actual files rather than duplicating content when possible
- Documents technical debt, workarounds, and constraints honestly
- For brownfield projects with PRD: Provides clear enhancement impact analysis
- The goal is PRACTICAL documentation for AI agents doing real work

View File

@@ -0,0 +1,88 @@
<!-- Powered by BMAD™ Core -->
# Checklist Validation Task
This task provides instructions for validating documentation against checklists. The agent MUST follow these instructions to ensure thorough and systematic validation of documents.
## Available Checklists
If the user asks or does not specify a specific checklist, list the checklists available to the agent persona. If the task is being run not with a specific agent, tell the user to check the .bmad-godot-game-dev/checklists folder to select the appropriate one to run.
## Instructions
1. **Initial Assessment**
- If user or the task being run provides a checklist name:
- Try fuzzy matching (e.g. "architecture checklist" -> "architect-checklist")
- If multiple matches found, ask user to clarify
- Load the appropriate checklist from .bmad-godot-game-dev/checklists/
- If no checklist specified:
- Ask the user which checklist they want to use
- Present the available options from the files in the checklists folder
- Confirm if they want to work through the checklist:
- Section by section (interactive mode - very time consuming)
- All at once (YOLO mode - recommended for checklists, there will be a summary of sections at the end to discuss)
2. **Document and Artifact Gathering**
- Each checklist will specify its required documents/artifacts at the beginning
- Follow the checklist's specific instructions for what to gather, generally a file can be resolved in the docs folder, if not or unsure, halt and ask or confirm with the user.
3. **Checklist Processing**
If in interactive mode:
- Work through each section of the checklist one at a time
- For each section:
- Review all items in the section following instructions for that section embedded in the checklist
- Check each item against the relevant documentation or artifacts as appropriate
- Present summary of findings for that section, highlighting warnings, errors and non applicable items (rationale for non-applicability).
- Get user confirmation before proceeding to next section or if any thing major do we need to halt and take corrective action
If in YOLO mode:
- Process all sections at once
- Create a comprehensive report of all findings
- Present the complete analysis to the user
4. **Validation Approach**
For each checklist item:
- Read and understand the requirement
- Look for evidence in the documentation that satisfies the requirement
- Consider both explicit mentions and implicit coverage
- Aside from this, follow all checklist llm instructions
- Mark items as:
- ✅ PASS: Requirement clearly met
- ❌ FAIL: Requirement not met or insufficient coverage
- ⚠️ PARTIAL: Some aspects covered but needs improvement
- N/A: Not applicable to this case
5. **Section Analysis**
For each section:
- think step by step to calculate pass rate
- Identify common themes in failed items
- Provide specific recommendations for improvement
- In interactive mode, discuss findings with user
- Document any user decisions or explanations
6. **Final Report**
Prepare a summary that includes:
- Overall checklist completion status
- Pass rates by section
- List of failed items with context
- Specific recommendations for improvement
- Any sections or items marked as N/A with justification
## Checklist Execution Methodology
Each checklist now contains embedded LLM prompts and instructions that will:
1. **Guide thorough thinking** - Prompts ensure deep analysis of each section
2. **Request specific artifacts** - Clear instructions on what documents/access is needed
3. **Provide contextual guidance** - Section-specific prompts for better validation
4. **Generate comprehensive reports** - Final summary with detailed findings
The LLM will:
- Execute the complete checklist validation
- Present a final report with pass/fail rates and key findings
- Offer to provide detailed analysis of any section, especially those with warnings or failures

View File

@@ -0,0 +1,136 @@
---
docOutputLocation: docs/brainstorming-session-results.md
template: '.bmad-godot-game-dev/templates/brainstorming-output-tmpl.yaml'
---
# Facilitate Brainstorming Session Task
Facilitate interactive brainstorming sessions with users. Be creative and adaptive in applying techniques.
## Process
### Step 1: Session Setup
Ask 4 context questions (don't preview what happens next):
1. What are we brainstorming about?
2. Any constraints or parameters?
3. Goal: broad exploration or focused ideation?
4. Do you want a structured document output to reference later? (Default Yes)
### Step 2: Present Approach Options
After getting answers to Step 1, present 4 approach options (numbered):
1. User selects specific techniques
2. Analyst recommends techniques based on context
3. Random technique selection for creative variety
4. Progressive technique flow (start broad, narrow down)
### Step 3: Execute Techniques Interactively
**KEY PRINCIPLES:**
- **FACILITATOR ROLE**: Guide user to generate their own ideas through questions, prompts, and examples
- **CONTINUOUS ENGAGEMENT**: Keep user engaged with chosen technique until they want to switch or are satisfied
- **CAPTURE OUTPUT**: If (default) document output requested, capture all ideas generated in each technique section to the document from the beginning.
**Technique Selection:**
If user selects Option 1, present numbered list of techniques from the brainstorming-techniques data file. User can select by number..
**Technique Execution:**
1. Apply selected technique according to data file description
2. Keep engaging with technique until user indicates they want to:
- Choose a different technique
- Apply current ideas to a new technique
- Move to convergent phase
- End session
**Output Capture (if requested):**
For each technique used, capture:
- Technique name and duration
- Key ideas generated by user
- Insights and patterns identified
- User's reflections on the process
### Step 4: Session Flow
1. **Warm-up** (5-10 min) - Build creative confidence
2. **Divergent** (20-30 min) - Generate quantity over quality
3. **Convergent** (15-20 min) - Group and categorize ideas
4. **Synthesis** (10-15 min) - Refine and develop concepts
### Step 5: Document Output (if requested)
Generate structured document with these sections:
**Executive Summary**
- Session topic and goals
- Techniques used and duration
- Total ideas generated
- Key themes and patterns identified
**Technique Sections** (for each technique used)
- Technique name and description
- Ideas generated (user's own words)
- Insights discovered
- Notable connections or patterns
**Idea Categorization**
- **Immediate Opportunities** - Ready to implement now
- **Future Innovations** - Requires development/research
- **Moonshots** - Ambitious, transformative concepts
- **Insights & Learnings** - Key realizations from session
**Action Planning**
- Top 3 priority ideas with rationale
- Next steps for each priority
- Resources/research needed
- Timeline considerations
**Reflection & Follow-up**
- What worked well in this session
- Areas for further exploration
- Recommended follow-up techniques
- Questions that emerged for future sessions
## Key Principles
- **YOU ARE A FACILITATOR**: Guide the user to brainstorm, don't brainstorm for them (unless they request it persistently)
- **INTERACTIVE DIALOGUE**: Ask questions, wait for responses, build on their ideas
- **ONE TECHNIQUE AT A TIME**: Don't mix multiple techniques in one response
- **CONTINUOUS ENGAGEMENT**: Stay with one technique until user wants to switch
- **DRAW IDEAS OUT**: Use prompts and examples to help them generate their own ideas
- **REAL-TIME ADAPTATION**: Monitor engagement and adjust approach as needed
- Maintain energy and momentum
- Defer judgment during generation
- Quantity leads to quality (aim for 100 ideas in 60 minutes)
- Build on ideas collaboratively
- Document everything in output document
## Advanced Engagement Strategies
**Energy Management**
- Check engagement levels: "How are you feeling about this direction?"
- Offer breaks or technique switches if energy flags
- Use encouraging language and celebrate idea generation
**Depth vs. Breadth**
- Ask follow-up questions to deepen ideas: "Tell me more about that..."
- Use "Yes, and..." to build on their ideas
- Help them make connections: "How does this relate to your earlier idea about...?"
**Transition Management**
- Always ask before switching techniques: "Ready to try a different approach?"
- Offer options: "Should we explore this idea deeper or generate more alternatives?"
- Respect their process and timing

View File

@@ -0,0 +1,160 @@
# Create Brownfield Epic Task
## Purpose
Create a single epic for smaller brownfield enhancements that don't require the full PRD and Architecture documentation process. This task is for isolated features or modifications that can be completed within a focused scope.
## When to Use This Task
**Use this task when:**
- The enhancement can be completed in 1-3 stories
- No significant architectural changes are required
- The enhancement follows existing project patterns
- Integration complexity is minimal
- Risk to existing system is low
**Use the full brownfield PRD/Architecture process when:**
- The enhancement requires multiple coordinated stories
- Architectural planning is needed
- Significant integration work is required
- Risk assessment and mitigation planning is necessary
## Instructions
### 1. Project Analysis (Required)
Before creating the epic, gather essential information about the existing project:
**Existing Project Context:**
- [ ] Project purpose and current functionality understood
- [ ] Existing technology stack identified
- [ ] Current architecture patterns noted
- [ ] Integration points with existing system identified
**Enhancement Scope:**
- [ ] Enhancement clearly defined and scoped
- [ ] Impact on existing functionality assessed
- [ ] Required integration points identified
- [ ] Success criteria established
### 2. Epic Creation
Create a focused epic following this structure:
#### Epic Title
{{Enhancement Name}} - Brownfield Enhancement
#### Epic Goal
{{1-2 sentences describing what the epic will accomplish and why it adds value}}
#### Epic Description
**Existing System Context:**
- Current relevant functionality: {{brief description}}
- Technology stack: {{relevant existing technologies}}
- Integration points: {{where new work connects to existing system}}
**Enhancement Details:**
- What's being added/changed: {{clear description}}
- How it integrates: {{integration approach}}
- Success criteria: {{measurable outcomes}}
#### Stories
List 1-3 focused stories that complete the epic:
1. **Story 1:** {{Story title and brief description}}
2. **Story 2:** {{Story title and brief description}}
3. **Story 3:** {{Story title and brief description}}
#### Compatibility Requirements
- [ ] Existing APIs remain unchanged
- [ ] Database schema changes are backward compatible
- [ ] UI changes follow existing patterns
- [ ] Performance impact is minimal
#### Risk Mitigation
- **Primary Risk:** {{main risk to existing system}}
- **Mitigation:** {{how risk will be addressed}}
- **Rollback Plan:** {{how to undo changes if needed}}
#### Definition of Done
- [ ] All stories completed with acceptance criteria met
- [ ] Existing functionality verified through testing
- [ ] Integration points working correctly
- [ ] Documentation updated appropriately
- [ ] No regression in existing features
### 3. Validation Checklist
Before finalizing the epic, ensure:
**Scope Validation:**
- [ ] Epic can be completed in 1-3 stories maximum
- [ ] No architectural documentation is required
- [ ] Enhancement follows existing patterns
- [ ] Integration complexity is manageable
**Risk Assessment:**
- [ ] Risk to existing system is low
- [ ] Rollback plan is feasible
- [ ] Testing approach covers existing functionality
- [ ] Team has sufficient knowledge of integration points
**Completeness Check:**
- [ ] Epic goal is clear and achievable
- [ ] Stories are properly scoped
- [ ] Success criteria are measurable
- [ ] Dependencies are identified
### 4. Handoff to Story Manager
Once the epic is validated, provide this handoff to the Story Manager:
---
**Story Manager Handoff:**
"Please develop detailed user stories for this brownfield epic. Key considerations:
- This is an enhancement to an existing system running {{technology stack}}
- Integration points: {{list key integration points}}
- Existing patterns to follow: {{relevant existing patterns}}
- Critical compatibility requirements: {{key requirements}}
- Each story must include verification that existing functionality remains intact
The epic should maintain system integrity while delivering {{epic goal}}."
---
## Success Criteria
The epic creation is successful when:
1. Enhancement scope is clearly defined and appropriately sized
2. Integration approach respects existing system architecture
3. Risk to existing functionality is minimized
4. Stories are logically sequenced for safe implementation
5. Compatibility requirements are clearly specified
6. Rollback plan is feasible and documented
## Important Notes
- This task is specifically for SMALL brownfield enhancements
- If the scope grows beyond 3 stories, consider the full brownfield PRD process
- Always prioritize existing system integrity over new functionality
- When in doubt about scope or complexity, escalate to full brownfield planning

View File

@@ -0,0 +1,147 @@
# Create Brownfield Story Task
## Purpose
Create a single user story for very small brownfield enhancements that can be completed in one focused development session. This task is for minimal additions or bug fixes that require existing system integration awareness.
## When to Use This Task
**Use this task when:**
- The enhancement can be completed in a single story
- No new architecture or significant design is required
- The change follows existing patterns exactly
- Integration is straightforward with minimal risk
- Change is isolated with clear boundaries
**Use brownfield-create-epic when:**
- The enhancement requires 2-3 coordinated stories
- Some design work is needed
- Multiple integration points are involved
**Use the full brownfield PRD/Architecture process when:**
- The enhancement requires multiple coordinated stories
- Architectural planning is needed
- Significant integration work is required
## Instructions
### 1. Quick Project Assessment
Gather minimal but essential context about the existing project:
**Current System Context:**
- [ ] Relevant existing functionality identified
- [ ] Technology stack for this area noted
- [ ] Integration point(s) clearly understood
- [ ] Existing patterns for similar work identified
**Change Scope:**
- [ ] Specific change clearly defined
- [ ] Impact boundaries identified
- [ ] Success criteria established
### 2. Story Creation
Create a single focused story following this structure:
#### Story Title
{{Specific Enhancement}} - Brownfield Addition
#### User Story
As a {{user type}},
I want {{specific action/capability}},
So that {{clear benefit/value}}.
#### Story Context
**Existing System Integration:**
- Integrates with: {{existing component/system}}
- Technology: {{relevant tech stack}}
- Follows pattern: {{existing pattern to follow}}
- Touch points: {{specific integration points}}
#### Acceptance Criteria
**Functional Requirements:**
1. {{Primary functional requirement}}
2. {{Secondary functional requirement (if any)}}
3. {{Integration requirement}}
**Integration Requirements:** 4. Existing {{relevant functionality}} continues to work unchanged 5. New functionality follows existing {{pattern}} pattern 6. Integration with {{system/component}} maintains current behavior
**Quality Requirements:** 7. Change is covered by appropriate tests 8. Documentation is updated if needed 9. No regression in existing functionality verified
#### Technical Notes
- **Integration Approach:** {{how it connects to existing system}}
- **Existing Pattern Reference:** {{link or description of pattern to follow}}
- **Key Constraints:** {{any important limitations or requirements}}
#### Definition of Done
- [ ] Functional requirements met
- [ ] Integration requirements verified
- [ ] Existing functionality regression tested
- [ ] Code follows existing patterns and standards
- [ ] Tests pass (existing and new)
- [ ] Documentation updated if applicable
### 3. Risk and Compatibility Check
**Minimal Risk Assessment:**
- **Primary Risk:** {{main risk to existing system}}
- **Mitigation:** {{simple mitigation approach}}
- **Rollback:** {{how to undo if needed}}
**Compatibility Verification:**
- [ ] No breaking changes to existing APIs
- [ ] Database changes (if any) are additive only
- [ ] UI changes follow existing design patterns
- [ ] Performance impact is negligible
### 4. Validation Checklist
Before finalizing the story, confirm:
**Scope Validation:**
- [ ] Story can be completed in one development session
- [ ] Integration approach is straightforward
- [ ] Follows existing patterns exactly
- [ ] No design or architecture work required
**Clarity Check:**
- [ ] Story requirements are unambiguous
- [ ] Integration points are clearly specified
- [ ] Success criteria are testable
- [ ] Rollback approach is simple
## Success Criteria
The story creation is successful when:
1. Enhancement is clearly defined and appropriately scoped for single session
2. Integration approach is straightforward and low-risk
3. Existing system patterns are identified and will be followed
4. Rollback plan is simple and feasible
5. Acceptance criteria include existing functionality verification
## Important Notes
- This task is for VERY SMALL brownfield changes only
- If complexity grows during analysis, escalate to brownfield-create-epic
- Always prioritize existing system integrity
- When in doubt about integration complexity, use brownfield-create-epic instead
- Stories should take no more than 4 hours of focused development work

View File

@@ -0,0 +1,290 @@
# Game Design Brainstorming Techniques Task
This task provides a comprehensive toolkit of creative brainstorming techniques specifically designed for game design ideation and innovative thinking. The game designer can use these techniques to facilitate productive brainstorming sessions focused on game mechanics, player experience, and creative concepts.
## Process
### 1. Session Setup
[[LLM: Begin by understanding the game design context and goals. Ask clarifying questions if needed to determine the best approach for game-specific ideation.]]
1. **Establish Game Context**
- Understand the game genre or opportunity area
- Identify target audience and platform constraints
- Determine session goals (concept exploration vs. mechanic refinement)
- Clarify scope (full game vs. specific feature)
2. **Select Technique Approach**
- Option A: User selects specific game design techniques
- Option B: Game Designer recommends techniques based on context
- Option C: Random technique selection for creative variety
- Option D: Progressive technique flow (broad concepts to specific mechanics)
### 2. Game Design Brainstorming Techniques
#### Game Concept Expansion Techniques
1. **"What If" Game Scenarios**
[[LLM: Generate provocative what-if questions that challenge game design assumptions and expand thinking beyond current genre limitations.]]
- What if players could rewind time in any genre?
- What if the game world reacted to the player's real-world location?
- What if failure was more rewarding than success?
- What if players controlled the antagonist instead?
- What if the game played itself when no one was watching?
2. **Cross-Genre Fusion**
[[LLM: Help user combine unexpected game genres and mechanics to create unique experiences.]]
- "How might [genre A] mechanics work in [genre B]?"
- Puzzle mechanics in action games
- Dating sim elements in strategy games
- Horror elements in racing games
- Educational content in roguelike structure
3. **Player Motivation Reversal**
[[LLM: Flip traditional player motivations to reveal new gameplay possibilities.]]
- What if losing was the goal?
- What if cooperation was forced in competitive games?
- What if players had to help their enemies?
- What if progress meant giving up abilities?
4. **Core Loop Deconstruction**
[[LLM: Break down successful games to fundamental mechanics and rebuild differently.]]
- What are the essential 3 actions in this game type?
- How could we make each action more interesting?
- What if we changed the order of these actions?
- What if players could skip or automate certain actions?
#### Mechanic Innovation Frameworks
1. **SCAMPER for Game Mechanics**
[[LLM: Guide through each SCAMPER prompt specifically for game design.]]
- **S** = Substitute: What mechanics can be substituted? (walking → flying → swimming)
- **C** = Combine: What systems can be merged? (inventory + character growth)
- **A** = Adapt: What mechanics from other media? (books, movies, sports)
- **M** = Modify/Magnify: What can be exaggerated? (super speed, massive scale)
- **P** = Put to other uses: What else could this mechanic do? (jumping → attacking)
- **E** = Eliminate: What can be removed? (UI, tutorials, fail states)
- **R** = Reverse/Rearrange: What sequence changes? (end-to-start, simultaneous)
2. **Player Agency Spectrum**
[[LLM: Explore different levels of player control and agency across game systems.]]
- Full Control: Direct character movement, combat, building
- Indirect Control: Setting rules, giving commands, environmental changes
- Influence Only: Suggestions, preferences, emotional reactions
- No Control: Observation, interpretation, passive experience
3. **Temporal Game Design**
[[LLM: Explore how time affects gameplay and player experience.]]
- Real-time vs. turn-based mechanics
- Time travel and manipulation
- Persistent vs. session-based progress
- Asynchronous multiplayer timing
- Seasonal and event-based content
#### Player Experience Ideation
1. **Emotion-First Design**
[[LLM: Start with target emotions and work backward to mechanics that create them.]]
- Target Emotion: Wonder → Mechanics: Discovery, mystery, scale
- Target Emotion: Triumph → Mechanics: Challenge, skill growth, recognition
- Target Emotion: Connection → Mechanics: Cooperation, shared goals, communication
- Target Emotion: Flow → Mechanics: Clear feedback, progressive difficulty
2. **Player Archetype Brainstorming**
[[LLM: Design for different player types and motivations.]]
- Achievers: Progression, completion, mastery
- Explorers: Discovery, secrets, world-building
- Socializers: Interaction, cooperation, community
- Killers: Competition, dominance, conflict
- Creators: Building, customization, expression
3. **Accessibility-First Innovation**
[[LLM: Generate ideas that make games more accessible while creating new gameplay.]]
- Visual impairment considerations leading to audio-focused mechanics
- Motor accessibility inspiring one-handed or simplified controls
- Cognitive accessibility driving clear feedback and pacing
- Economic accessibility creating free-to-play innovations
#### Narrative and World Building
1. **Environmental Storytelling**
[[LLM: Brainstorm ways the game world itself tells stories without explicit narrative.]]
- How does the environment show history?
- What do interactive objects reveal about characters?
- How can level design communicate mood?
- What stories do systems and mechanics tell?
2. **Player-Generated Narrative**
[[LLM: Explore ways players create their own stories through gameplay.]]
- Emergent storytelling through player choices
- Procedural narrative generation
- Player-to-player story sharing
- Community-driven world events
3. **Genre Expectation Subversion**
[[LLM: Identify and deliberately subvert player expectations within genres.]]
- Fantasy RPG where magic is mundane
- Horror game where monsters are friendly
- Racing game where going slow is optimal
- Puzzle game where there are multiple correct answers
#### Technical Innovation Inspiration
1. **Platform-Specific Design**
[[LLM: Generate ideas that leverage unique platform capabilities.]]
- Mobile: GPS, accelerometer, camera, always-connected
- Web: URLs, tabs, social sharing, real-time collaboration
- Console: Controllers, TV viewing, couch co-op
- VR/AR: Physical movement, spatial interaction, presence
2. **Constraint-Based Creativity**
[[LLM: Use technical or design constraints as creative catalysts.]]
- One-button games
- Games without graphics
- Games that play in notification bars
- Games using only system sounds
- Games with intentionally bad graphics
### 3. Game-Specific Technique Selection
[[LLM: Help user select appropriate techniques based on their specific game design needs.]]
**For Initial Game Concepts:**
- What If Game Scenarios
- Cross-Genre Fusion
- Emotion-First Design
**For Stuck/Blocked Creativity:**
- Player Motivation Reversal
- Constraint-Based Creativity
- Genre Expectation Subversion
**For Mechanic Development:**
- SCAMPER for Game Mechanics
- Core Loop Deconstruction
- Player Agency Spectrum
**For Player Experience:**
- Player Archetype Brainstorming
- Emotion-First Design
- Accessibility-First Innovation
**For World Building:**
- Environmental Storytelling
- Player-Generated Narrative
- Platform-Specific Design
### 4. Game Design Session Flow
[[LLM: Guide the brainstorming session with appropriate pacing for game design exploration.]]
1. **Inspiration Phase** (10-15 min)
- Reference existing games and mechanics
- Explore player experiences and emotions
- Gather visual and thematic inspiration
2. **Divergent Exploration** (25-35 min)
- Generate many game concepts or mechanics
- Use expansion and fusion techniques
- Encourage wild and impossible ideas
3. **Player-Centered Filtering** (15-20 min)
- Consider target audience reactions
- Evaluate emotional impact and engagement
- Group ideas by player experience goals
4. **Feasibility and Synthesis** (15-20 min)
- Assess technical and design feasibility
- Combine complementary ideas
- Develop most promising concepts
### 5. Game Design Output Format
[[LLM: Present brainstorming results in a format useful for game development.]]
**Session Summary:**
- Techniques used and focus areas
- Total concepts/mechanics generated
- Key themes and patterns identified
**Game Concept Categories:**
1. **Core Game Ideas** - Complete game concepts ready for prototyping
2. **Mechanic Innovations** - Specific gameplay mechanics to explore
3. **Player Experience Goals** - Emotional and engagement targets
4. **Technical Experiments** - Platform or technology-focused concepts
5. **Long-term Vision** - Ambitious ideas for future development
**Development Readiness:**
**Prototype-Ready Ideas:**
- Ideas that can be tested immediately
- Minimum viable implementations
- Quick validation approaches
**Research-Required Ideas:**
- Concepts needing technical investigation
- Player testing and market research needs
- Competitive analysis requirements
**Future Innovation Pipeline:**
- Ideas requiring significant development
- Technology-dependent concepts
- Market timing considerations
**Next Steps:**
- Which concepts to prototype first
- Recommended research areas
- Suggested playtesting approaches
- Documentation and GDD planning
## Game Design Specific Considerations
### Platform and Audience Awareness
- Always consider target platform limitations and advantages
- Keep target audience preferences and expectations in mind
- Balance innovation with familiar game design patterns
- Consider monetization and business model implications
### Rapid Prototyping Mindset
- Focus on ideas that can be quickly tested
- Emphasize core mechanics over complex features
- Design for iteration and player feedback
- Consider digital and paper prototyping approaches
### Player Psychology Integration
- Understand motivation and engagement drivers
- Consider learning curves and skill development
- Design for different play session lengths
- Balance challenge and reward appropriately
### Technical Feasibility
- Keep development resources and timeline in mind
- Consider art and audio asset requirements
- Think about performance and optimization needs
- Plan for testing and debugging complexity
## Important Notes for Game Design Sessions
- Encourage "impossible" ideas - constraints can be added later
- Build on game mechanics that have proven engagement
- Consider how ideas scale from prototype to full game
- Document player experience goals alongside mechanics
- Think about community and social aspects of gameplay
- Consider accessibility and inclusivity from the start
- Balance innovation with market viability
- Plan for iteration based on player feedback

View File

@@ -0,0 +1,368 @@
<!-- Powered by BMAD™ Core -->
# game-risk-profile
Generate a comprehensive risk assessment matrix for a Godot game story implementation using probability × impact analysis focused on game development challenges.
## Inputs
```yaml
required:
- story_id: '{epic}.{story}' # e.g., "1.3"
- story_path: 'docs/stories/{epic}.{story}.*.md'
- story_title: '{title}' # If missing, derive from story file H1
- story_slug: '{slug}' # If missing, derive from title (lowercase, hyphenated)
```
## Purpose
Identify, assess, and prioritize risks in Godot game feature implementation. Provide risk mitigation strategies and playtesting focus areas based on game development risk levels.
## Risk Assessment Framework
### Risk Categories
**Category Prefixes:**
- `TECH`: Technical/Engine Risks
- `PERF`: Performance/Optimization Risks
- `GAME`: Gameplay/Mechanics Risks
- `ART`: Art/Asset Pipeline Risks
- `PLAT`: Platform/Deployment Risks
- `PLAY`: Player Experience Risks
1. **Technical/Engine Risks (TECH)**
- Godot version compatibility issues
- GDScript/C# integration problems
- Node tree architecture complexity
- Signal connection failures
- Plugin/addon conflicts
- Memory leak in scene transitions
2. **Performance/Optimization Risks (PERF)**
- Frame rate drops below 60 FPS
- Draw call bottlenecks
- Physics engine slowdowns
- Particle system overload
- Texture memory exhaustion
- Shader compilation spikes
3. **Gameplay/Mechanics Risks (GAME)**
- Game balance issues
- Control responsiveness problems
- Collision detection failures
- AI behavior bugs
- Progression breaking bugs
- Save/load system corruption
4. **Art/Asset Pipeline Risks (ART)**
- Asset import failures
- Texture atlas overflow
- Animation sync issues
- Audio streaming problems
- Font rendering issues
- Sprite batching failures
5. **Platform/Deployment Risks (PLAT)**
- Export template issues
- Platform-specific bugs
- Mobile performance degradation
- Web build compatibility
- Console certification failures
- Steam/itch.io integration problems
6. **Player Experience Risks (PLAY)**
- Tutorial unclear or broken
- Difficulty curve too steep/shallow
- Multiplayer desync issues
- Achievements not triggering
- Localization text overflow
- Accessibility features missing
## Risk Analysis Process
### 1. Risk Identification
For each category, identify specific risks:
```yaml
risk:
id: 'PERF-001' # Use prefixes: TECH, PERF, GAME, ART, PLAT, PLAY
category: performance
title: 'Particle system causing frame drops in boss battle'
description: 'Multiple particle emitters active during boss fight drops FPS below 30'
affected_components:
- 'BossArena.tscn'
- 'ParticleManager.gd'
- 'BossAttackEffects'
detection_method: 'Profiler showed 80% GPU usage on particles'
```
### 2. Risk Assessment
Evaluate each risk using probability × impact:
**Probability Levels:**
- `High (3)`: Likely to occur (>70% chance)
- `Medium (2)`: Possible occurrence (30-70% chance)
- `Low (1)`: Unlikely to occur (<30% chance)
**Impact Levels:**
- `High (3)`: Severe consequences (game unplayable, save corruption, platform rejection)
- `Medium (2)`: Moderate consequences (noticeable lag, minor bugs, progression issues)
- `Low (1)`: Minor consequences (visual glitches, UI issues, quality of life problems)
### Risk Score = Probability × Impact
- 9: Critical Risk (Red)
- 6: High Risk (Orange)
- 4: Medium Risk (Yellow)
- 2-3: Low Risk (Green)
- 1: Minimal Risk (Blue)
### 3. Risk Prioritization
Create risk matrix:
```markdown
## Risk Matrix
| Risk ID | Description | Probability | Impact | Score | Priority |
| -------- | ---------------------------- | ----------- | ---------- | ----- | -------- |
| GAME-001 | Boss fight progression block | High (3) | High (3) | 9 | Critical |
| PERF-001 | Particle FPS drops | Medium (2) | Medium (2) | 4 | Medium |
| PLAT-001 | Mobile export crashes | Low (1) | High (3) | 3 | Low |
```
### 4. Risk Mitigation Strategies
For each identified risk, provide mitigation:
```yaml
mitigation:
risk_id: 'PERF-001'
strategy: 'preventive' # preventive|detective|corrective
actions:
- 'Implement particle pooling system'
- 'Add LOD (Level of Detail) for particle effects'
- 'Use GPU particles instead of CPU particles'
- 'Limit max particle count per emitter'
testing_requirements:
- 'Performance profiling on min spec hardware'
- 'Stress test with all effects active'
- 'FPS monitoring during boss encounters'
residual_risk: 'Low - May still drop to 45 FPS on very low-end devices'
owner: 'game-dev'
timeline: 'Before beta release'
```
## Outputs
### Output 1: Gate YAML Block
Generate for pasting into gate file under `risk_summary`:
**Output rules:**
- Only include assessed risks; do not emit placeholders
- Sort risks by score (desc) when emitting highest and any tabular lists
- If no risks: totals all zeros, omit highest, keep recommendations arrays empty
```yaml
# risk_summary (paste into gate file):
risk_summary:
totals:
critical: X # score 9
high: Y # score 6
medium: Z # score 4
low: W # score 2-3
highest:
id: GAME-001
score: 9
title: 'Boss fight progression blocker'
recommendations:
must_fix:
- 'Fix collision detection in boss arena'
monitor:
- 'Track FPS metrics during gameplay'
```
### Output 2: Markdown Report
**Save to:** `qa.qaLocation/assessments/{epic}.{story}-risk-{YYYYMMDD}.md`
```markdown
# Risk Profile: Story {epic}.{story}
Date: {date}
Reviewer: Linus (Test Architect)
## Executive Summary
- Total Risks Identified: X
- Critical Risks: Y
- High Risks: Z
- Risk Score: XX/100 (calculated)
## Critical Risks Requiring Immediate Attention
### 1. [ID]: Risk Title
**Score: 9 (Critical)**
**Probability**: High - Detailed reasoning
**Impact**: High - Potential consequences
**Mitigation**:
- Immediate action required
- Specific steps to take
**Testing Focus**: Specific test scenarios needed
## Risk Distribution
### By Category
- Technical/Engine: X risks (Y critical)
- Performance: X risks (Y critical)
- Gameplay: X risks (Y critical)
- Art/Assets: X risks (Y critical)
- Platform: X risks (Y critical)
- Player Experience: X risks (Y critical)
### By Component
- Game Scenes: X risks
- Player Controller: X risks
- Enemy AI: X risks
- UI/Menus: X risks
- Audio System: X risks
- Save System: X risks
## Detailed Risk Register
[Full table of all risks with scores and mitigations]
## Risk-Based Testing Strategy
### Priority 1: Critical Risk Tests
- Playtesting scenarios for game-breaking bugs
- Performance testing on target platforms
- Save/load integrity testing
- Multiplayer stress testing (if applicable)
### Priority 2: High Risk Tests
- Integration test scenarios
- Edge case coverage
### Priority 3: Medium/Low Risk Tests
- Standard functional tests
- Regression test suite
## Risk Acceptance Criteria
### Must Fix Before Production
- All critical risks (score 9)
- High risks affecting security/data
### Can Deploy with Mitigation
- Medium risks with compensating controls
- Low risks with monitoring in place
### Accepted Risks
- Document any risks team accepts
- Include sign-off from appropriate authority
## Monitoring Requirements
Post-release monitoring for:
- Frame rate metrics and performance stats
- Crash reports and error logs
- Player progression analytics
- Achievement completion rates
- Player retention metrics
## Risk Review Triggers
Review and update risk profile when:
- Major gameplay mechanics added
- New platforms targeted
- Godot engine version upgraded
- Performance issues reported by playtesters
- Art style or asset pipeline changes
- Multiplayer features added
```
## Risk Scoring Algorithm
Calculate overall story risk score:
```text
Base Score = 100
For each risk:
- Critical (9): Deduct 20 points
- High (6): Deduct 10 points
- Medium (4): Deduct 5 points
- Low (2-3): Deduct 2 points
Minimum score = 0 (extremely risky)
Maximum score = 100 (minimal risk)
```
## Risk-Based Recommendations
Based on risk profile, recommend:
1. **Testing Priority**
- Which tests to run first
- Additional test types needed
- Test environment requirements
2. **Development Focus**
- Code review emphasis areas
- Additional validation needed
- Security controls to implement
3. **Deployment Strategy**
- Phased rollout for high-risk changes
- Feature flags for risky features
- Rollback procedures
4. **Monitoring Setup**
- Metrics to track
- Alerts to configure
- Dashboard requirements
## Integration with Quality Gates
**Deterministic gate mapping:**
- Any risk with score 9 Gate = FAIL (unless waived)
- Else if any score 6 Gate = CONCERNS
- Else Gate = PASS
- Unmitigated risks Document in gate
### Output 3: Story Hook Line
**Print this line for review task to quote:**
```text
Risk profile: qa.qaLocation/assessments/{epic}.{story}-risk-{YYYYMMDD}.md
```
## Key Principles
- Identify risks early and systematically
- Use consistent probability × impact scoring
- Provide actionable mitigation strategies
- Link risks to specific test requirements
- Track residual risk after mitigation
- Update risk profile as story evolves

Some files were not shown because too many files have changed in this diff Show More