Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

deep-dive-template.md 5.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345
  1. # {{target_name}} - Deep Dive Documentation
  2. **Generated:** {{date}}
  3. **Scope:** {{target_path}}
  4. **Files Analyzed:** {{file_count}}
  5. **Lines of Code:** {{total_loc}}
  6. **Workflow Mode:** Exhaustive Deep-Dive
  7. ## Overview
  8. {{target_description}}
  9. **Purpose:** {{target_purpose}}
  10. **Key Responsibilities:** {{responsibilities}}
  11. **Integration Points:** {{integration_summary}}
  12. ## Complete File Inventory
  13. {{#each files_in_inventory}}
  14. ### {{file_path}}
  15. **Purpose:** {{purpose}}
  16. **Lines of Code:** {{loc}}
  17. **File Type:** {{file_type}}
  18. **What Future Contributors Must Know:** {{contributor_note}}
  19. **Exports:**
  20. {{#each exports}}
  21. - `{{signature}}` - {{description}}
  22. {{/each}}
  23. **Dependencies:**
  24. {{#each imports}}
  25. - `{{import_path}}` - {{reason}}
  26. {{/each}}
  27. **Used By:**
  28. {{#each dependents}}
  29. - `{{dependent_path}}`
  30. {{/each}}
  31. **Key Implementation Details:**
  32. ```{{language}}
  33. {{key_code_snippet}}
  34. ```
  35. {{implementation_notes}}
  36. **Patterns Used:**
  37. {{#each patterns}}
  38. - {{pattern_name}}: {{pattern_description}}
  39. {{/each}}
  40. **State Management:** {{state_approach}}
  41. **Side Effects:**
  42. {{#each side_effects}}
  43. - {{effect_type}}: {{effect_description}}
  44. {{/each}}
  45. **Error Handling:** {{error_handling_approach}}
  46. **Testing:**
  47. - Test File: {{test_file_path}}
  48. - Coverage: {{coverage_percentage}}%
  49. - Test Approach: {{test_approach}}
  50. **Comments/TODOs:**
  51. {{#each todos}}
  52. - Line {{line_number}}: {{todo_text}}
  53. {{/each}}
  54. ---
  55. {{/each}}
  56. ## Contributor Checklist
  57. - **Risks & Gotchas:** {{risks_notes}}
  58. - **Pre-change Verification Steps:** {{verification_steps}}
  59. - **Suggested Tests Before PR:** {{suggested_tests}}
  60. ## Architecture & Design Patterns
  61. ### Code Organization
  62. {{organization_approach}}
  63. ### Design Patterns
  64. {{#each design_patterns}}
  65. - **{{pattern_name}}**: {{usage_description}}
  66. {{/each}}
  67. ### State Management Strategy
  68. {{state_management_details}}
  69. ### Error Handling Philosophy
  70. {{error_handling_philosophy}}
  71. ### Testing Strategy
  72. {{testing_strategy}}
  73. ## Data Flow
  74. {{data_flow_diagram}}
  75. ### Data Entry Points
  76. {{#each entry_points}}
  77. - **{{entry_name}}**: {{entry_description}}
  78. {{/each}}
  79. ### Data Transformations
  80. {{#each transformations}}
  81. - **{{transformation_name}}**: {{transformation_description}}
  82. {{/each}}
  83. ### Data Exit Points
  84. {{#each exit_points}}
  85. - **{{exit_name}}**: {{exit_description}}
  86. {{/each}}
  87. ## Integration Points
  88. ### APIs Consumed
  89. {{#each apis_consumed}}
  90. - **{{api_endpoint}}**: {{api_description}}
  91. - Method: {{method}}
  92. - Authentication: {{auth_requirement}}
  93. - Response: {{response_schema}}
  94. {{/each}}
  95. ### APIs Exposed
  96. {{#each apis_exposed}}
  97. - **{{api_endpoint}}**: {{api_description}}
  98. - Method: {{method}}
  99. - Request: {{request_schema}}
  100. - Response: {{response_schema}}
  101. {{/each}}
  102. ### Shared State
  103. {{#each shared_state}}
  104. - **{{state_name}}**: {{state_description}}
  105. - Type: {{state_type}}
  106. - Accessed By: {{accessors}}
  107. {{/each}}
  108. ### Events
  109. {{#each events}}
  110. - **{{event_name}}**: {{event_description}}
  111. - Type: {{publish_or_subscribe}}
  112. - Payload: {{payload_schema}}
  113. {{/each}}
  114. ### Database Access
  115. {{#each database_operations}}
  116. - **{{table_name}}**: {{operation_type}}
  117. - Queries: {{query_patterns}}
  118. - Indexes Used: {{indexes}}
  119. {{/each}}
  120. ## Dependency Graph
  121. {{dependency_graph_visualization}}
  122. ### Entry Points (Not Imported by Others in Scope)
  123. {{#each entry_point_files}}
  124. - {{file_path}}
  125. {{/each}}
  126. ### Leaf Nodes (Don't Import Others in Scope)
  127. {{#each leaf_files}}
  128. - {{file_path}}
  129. {{/each}}
  130. ### Circular Dependencies
  131. {{#if has_circular_dependencies}}
  132. ⚠️ Circular dependencies detected:
  133. {{#each circular_deps}}
  134. - {{cycle_description}}
  135. {{/each}}
  136. {{else}}
  137. ✓ No circular dependencies detected
  138. {{/if}}
  139. ## Testing Analysis
  140. ### Test Coverage Summary
  141. - **Statements:** {{statements_coverage}}%
  142. - **Branches:** {{branches_coverage}}%
  143. - **Functions:** {{functions_coverage}}%
  144. - **Lines:** {{lines_coverage}}%
  145. ### Test Files
  146. {{#each test_files}}
  147. - **{{test_file_path}}**
  148. - Tests: {{test_count}}
  149. - Approach: {{test_approach}}
  150. - Mocking Strategy: {{mocking_strategy}}
  151. {{/each}}
  152. ### Test Utilities Available
  153. {{#each test_utilities}}
  154. - `{{utility_name}}`: {{utility_description}}
  155. {{/each}}
  156. ### Testing Gaps
  157. {{#each testing_gaps}}
  158. - {{gap_description}}
  159. {{/each}}
  160. ## Related Code & Reuse Opportunities
  161. ### Similar Features Elsewhere
  162. {{#each similar_features}}
  163. - **{{feature_name}}** (`{{feature_path}}`)
  164. - Similarity: {{similarity_description}}
  165. - Can Reference For: {{reference_use_case}}
  166. {{/each}}
  167. ### Reusable Utilities Available
  168. {{#each reusable_utilities}}
  169. - **{{utility_name}}** (`{{utility_path}}`)
  170. - Purpose: {{utility_purpose}}
  171. - How to Use: {{usage_example}}
  172. {{/each}}
  173. ### Patterns to Follow
  174. {{#each patterns_to_follow}}
  175. - **{{pattern_name}}**: Reference `{{reference_file}}` for implementation
  176. {{/each}}
  177. ## Implementation Notes
  178. ### Code Quality Observations
  179. {{#each quality_observations}}
  180. - {{observation}}
  181. {{/each}}
  182. ### TODOs and Future Work
  183. {{#each all_todos}}
  184. - **{{file_path}}:{{line_number}}**: {{todo_text}}
  185. {{/each}}
  186. ### Known Issues
  187. {{#each known_issues}}
  188. - {{issue_description}}
  189. {{/each}}
  190. ### Optimization Opportunities
  191. {{#each optimizations}}
  192. - {{optimization_suggestion}}
  193. {{/each}}
  194. ### Technical Debt
  195. {{#each tech_debt_items}}
  196. - {{debt_description}}
  197. {{/each}}
  198. ## Modification Guidance
  199. ### To Add New Functionality
  200. {{modification_guidance_add}}
  201. ### To Modify Existing Functionality
  202. {{modification_guidance_modify}}
  203. ### To Remove/Deprecate
  204. {{modification_guidance_remove}}
  205. ### Testing Checklist for Changes
  206. {{#each testing_checklist_items}}
  207. - [ ] {{checklist_item}}
  208. {{/each}}
  209. ---
  210. _Generated by `document-project` workflow (deep-dive mode)_
  211. _Base Documentation: docs/index.md_
  212. _Scan Date: {{date}}_
  213. _Analysis Mode: Exhaustive_