Files
BMAD-METHOD/.bmad/bmm/workflows/document-project/templates/deep-dive-template.md
Brian Madison 7eb52520fa Major Enhancements:
- Installation path is now fully configurable, allowing users to specify custom installation directories during setup
  - Default installation location changed to .bmad (hidden directory) for cleaner project root organization

    Web Bundle Improvements:

    - All web bundles (single agent and team) now include party mode support for multi-agent collaboration!
    - Advanced elicitation capabilities integrated into standalone agents
    - All bundles enhanced with party mode agent manifests
    - Added default-party.csv files to bmm, bmgd, and cis module teams
    - The default party file is what will be used with single agent bundles. teams can customize for different party configurations before web bundling through a setting in the team yaml file
    - New web bundle outputs for all agents (analyst, architect, dev, pm, sm, tea, tech-writer, ux-designer, game-*, creative-squad)

    Phase 4 Workflow Updates (In Progress):

    - Initiated shift to separate phase 4 implementation artifacts from documentation
        - Phase 4 implementation artifacts (stories, code review, sprint plan, context files) will move to dedicated location outside docs folder
        - Installer questions and configuration added for artifact path selection
        - Updated workflow.yaml files for code-review, sprint-planning, story-context, epic-tech-context, and retrospective workflows to support this, but still might require some udpates

    Additional Changes:

    - New agent and action command header models for standardization
    - Enhanced web-bundle-activation-steps fragment
    - Updated web-bundler.js to support new structure
    - VS Code settings updated for new .bmad directory
    - Party mode instructions and workflow enhanced for better orchestration

   IDE Installer Updates:

    - Show version number of installer in cli
    - improved Installer UX
    - Gemini TOML Improved to have clear loading instructions with @ commands
    - All tools agent launcher mds improved to use a central file template critical indication isntead of hardcoding in 2 different locations.
2025-11-09 17:39:05 -06:00

5.7 KiB

{{target_name}} - Deep Dive Documentation

Generated: {{date}} Scope: {{target_path}} Files Analyzed: {{file_count}} Lines of Code: {{total_loc}} Workflow Mode: Exhaustive Deep-Dive

Overview

{{target_description}}

Purpose: {{target_purpose}} Key Responsibilities: {{responsibilities}} Integration Points: {{integration_summary}}

Complete File Inventory

{{#each files_in_inventory}}

{{file_path}}

Purpose: {{purpose}} Lines of Code: {{loc}} File Type: {{file_type}}

What Future Contributors Must Know: {{contributor_note}}

Exports: {{#each exports}}

  • {{signature}} - {{description}} {{/each}}

Dependencies: {{#each imports}}

  • {{import_path}} - {{reason}} {{/each}}

Used By: {{#each dependents}}

  • {{dependent_path}} {{/each}}

Key Implementation Details:

{{key_code_snippet}}

{{implementation_notes}}

Patterns Used: {{#each patterns}}

  • {{pattern_name}}: {{pattern_description}} {{/each}}

State Management: {{state_approach}}

Side Effects: {{#each side_effects}}

  • {{effect_type}}: {{effect_description}} {{/each}}

Error Handling: {{error_handling_approach}}

Testing:

  • Test File: {{test_file_path}}
  • Coverage: {{coverage_percentage}}%
  • Test Approach: {{test_approach}}

Comments/TODOs: {{#each todos}}

  • Line {{line_number}}: {{todo_text}} {{/each}}

{{/each}}

Contributor Checklist

  • Risks & Gotchas: {{risks_notes}}
  • Pre-change Verification Steps: {{verification_steps}}
  • Suggested Tests Before PR: {{suggested_tests}}

Architecture & Design Patterns

Code Organization

{{organization_approach}}

Design Patterns

{{#each design_patterns}}

  • {{pattern_name}}: {{usage_description}} {{/each}}

State Management Strategy

{{state_management_details}}

Error Handling Philosophy

{{error_handling_philosophy}}

Testing Strategy

{{testing_strategy}}

Data Flow

{{data_flow_diagram}}

Data Entry Points

{{#each entry_points}}

  • {{entry_name}}: {{entry_description}} {{/each}}

Data Transformations

{{#each transformations}}

  • {{transformation_name}}: {{transformation_description}} {{/each}}

Data Exit Points

{{#each exit_points}}

  • {{exit_name}}: {{exit_description}} {{/each}}

Integration Points

APIs Consumed

{{#each apis_consumed}}

  • {{api_endpoint}}: {{api_description}}
    • Method: {{method}}
    • Authentication: {{auth_requirement}}
    • Response: {{response_schema}} {{/each}}

APIs Exposed

{{#each apis_exposed}}

  • {{api_endpoint}}: {{api_description}}
    • Method: {{method}}
    • Request: {{request_schema}}
    • Response: {{response_schema}} {{/each}}

Shared State

{{#each shared_state}}

  • {{state_name}}: {{state_description}}
    • Type: {{state_type}}
    • Accessed By: {{accessors}} {{/each}}

Events

{{#each events}}

  • {{event_name}}: {{event_description}}
    • Type: {{publish_or_subscribe}}
    • Payload: {{payload_schema}} {{/each}}

Database Access

{{#each database_operations}}

  • {{table_name}}: {{operation_type}}
    • Queries: {{query_patterns}}
    • Indexes Used: {{indexes}} {{/each}}

Dependency Graph

{{dependency_graph_visualization}}

Entry Points (Not Imported by Others in Scope)

{{#each entry_point_files}}

  • {{file_path}} {{/each}}

Leaf Nodes (Don't Import Others in Scope)

{{#each leaf_files}}

  • {{file_path}} {{/each}}

Circular Dependencies

{{#if has_circular_dependencies}} ⚠️ Circular dependencies detected: {{#each circular_deps}}

  • {{cycle_description}} {{/each}} {{else}} ✓ No circular dependencies detected {{/if}}

Testing Analysis

Test Coverage Summary

  • Statements: {{statements_coverage}}%
  • Branches: {{branches_coverage}}%
  • Functions: {{functions_coverage}}%
  • Lines: {{lines_coverage}}%

Test Files

{{#each test_files}}

  • {{test_file_path}}
    • Tests: {{test_count}}
    • Approach: {{test_approach}}
    • Mocking Strategy: {{mocking_strategy}} {{/each}}

Test Utilities Available

{{#each test_utilities}}

  • {{utility_name}}: {{utility_description}} {{/each}}

Testing Gaps

{{#each testing_gaps}}

  • {{gap_description}} {{/each}}

Similar Features Elsewhere

{{#each similar_features}}

  • {{feature_name}} ({{feature_path}})
    • Similarity: {{similarity_description}}
    • Can Reference For: {{reference_use_case}} {{/each}}

Reusable Utilities Available

{{#each reusable_utilities}}

  • {{utility_name}} ({{utility_path}})
    • Purpose: {{utility_purpose}}
    • How to Use: {{usage_example}} {{/each}}

Patterns to Follow

{{#each patterns_to_follow}}

  • {{pattern_name}}: Reference {{reference_file}} for implementation {{/each}}

Implementation Notes

Code Quality Observations

{{#each quality_observations}}

  • {{observation}} {{/each}}

TODOs and Future Work

{{#each all_todos}}

  • {{file_path}}:{{line_number}}: {{todo_text}} {{/each}}

Known Issues

{{#each known_issues}}

  • {{issue_description}} {{/each}}

Optimization Opportunities

{{#each optimizations}}

  • {{optimization_suggestion}} {{/each}}

Technical Debt

{{#each tech_debt_items}}

  • {{debt_description}} {{/each}}

Modification Guidance

To Add New Functionality

{{modification_guidance_add}}

To Modify Existing Functionality

{{modification_guidance_modify}}

To Remove/Deprecate

{{modification_guidance_remove}}

Testing Checklist for Changes

{{#each testing_checklist_items}}

  • {{checklist_item}} {{/each}}

Generated by document-project workflow (deep-dive mode) Base Documentation: docs/index.md Scan Date: {{date}} Analysis Mode: Exhaustive