Skip to content
🤖 Consolidated, AI-optimized BMAD docs: llms-full.txt. Fetch this plain text file for complete context.

How to Document an Existing Project

Use the document-project workflow to scan your entire codebase and generate comprehensive documentation about its current state.


  • Starting work on an undocumented legacy project
  • Documentation is outdated and needs refresh
  • AI agents need context about existing code patterns
  • Onboarding new team members

  • BMad Method installed in your project
  • Access to the codebase you want to document

Start a fresh chat and load the Analyst agent.

Tell the agent:

Run the document-project workflow

The workflow will:

  • Scan your codebase structure
  • Identify architecture patterns
  • Document the technology stack
  • Create reference documentation
  • Generate a PRD-like document from existing code

The output will be saved to project-documentation-{date}.md in your output folder.

Review the documentation for:

  • Accuracy of detected patterns
  • Completeness of architecture description
  • Any missing business rules or intent

  • Project overview - High-level description of what the project does
  • Technology stack - Detected frameworks, libraries, and tools
  • Architecture patterns - Code organization and design patterns found
  • Business rules - Logic extracted from the codebase
  • Integration points - External APIs and services

  • Run this before any major brownfield work
  • Keep the documentation updated as the project evolves
  • Use it as input for future PRD creation