|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345 |
- # {{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:**
-
- ```{{language}}
- {{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}}
-
- ## Related Code & Reuse Opportunities
-
- ### 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_
|