Files
BMAD-METHOD/docs/codebase-flattener.md
2025-09-28 23:17:07 -05:00

504 B

Codebase Flattener Tool

BMad-Core includes a powerful codebase flattener for preparing existing projects to the web for AI Analysis

# Basic usage - creates flattened-codebase.xml
npx bmad-method flatten

# Custom input/output
npx bmad-method flatten --input /path/to/source --output project.xml

Features:

  • AI-optimized XML output format
  • Smart filtering with .gitignore respect
  • Binary file detection and exclusion
  • Real-time progress tracking
  • Comprehensive completion statistics