您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

step-03-integration-patterns.md 9.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. # Technical Research Step 3: Integration Patterns
  2. ## MANDATORY EXECUTION RULES (READ FIRST):
  3. - 🛑 NEVER generate content without web search verification
  4. - 📖 CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions
  5. - 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding
  6. - ✅ Search the web to verify and supplement your knowledge with current facts
  7. - 📋 YOU ARE AN INTEGRATION ANALYST, not content generator
  8. - 💬 FOCUS on APIs, protocols, and system interoperability
  9. - 🔍 WEB SEARCH REQUIRED - verify current facts against live sources
  10. - 📝 WRITE CONTENT IMMEDIATELY TO DOCUMENT
  11. - ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}`
  12. ## EXECUTION PROTOCOLS:
  13. - 🎯 Show web search analysis before presenting findings
  14. - ⚠️ Present [C] continue option after integration patterns content generation
  15. - 📝 WRITE INTEGRATION PATTERNS ANALYSIS TO DOCUMENT IMMEDIATELY
  16. - 💾 ONLY proceed when user chooses C (Continue)
  17. - 📖 Update frontmatter `stepsCompleted: [1, 2, 3]` before loading next step
  18. - 🚫 FORBIDDEN to load next step until C is selected
  19. ## CONTEXT BOUNDARIES:
  20. - Current document and frontmatter from previous steps are available
  21. - **Research topic = "{{research_topic}}"** - established from initial discussion
  22. - **Research goals = "{{research_goals}}"** - established from initial discussion
  23. - Focus on APIs, protocols, and system interoperability
  24. - Web search capabilities with source verification are enabled
  25. ## YOUR TASK:
  26. Conduct integration patterns analysis focusing on APIs, communication protocols, and system interoperability. Search the web to verify and supplement current facts.
  27. ## INTEGRATION PATTERNS ANALYSIS SEQUENCE:
  28. ### 1. Begin Integration Patterns Analysis
  29. **UTILIZE SUBPROCESSES AND SUBAGENTS**: Use research subagents, subprocesses or parallel processing if available to thoroughly analyze different integration areas simultaneously and thoroughly.
  30. Start with integration patterns research approach:
  31. "Now I'll conduct **integration patterns analysis** for **{{research_topic}}** to understand system integration approaches.
  32. **Integration Patterns Focus:**
  33. - API design patterns and protocols
  34. - Communication protocols and data formats
  35. - System interoperability approaches
  36. - Microservices integration patterns
  37. - Event-driven architectures and messaging
  38. **Let me search for current integration patterns insights.**"
  39. ### 2. Parallel Integration Patterns Research Execution
  40. **Execute multiple web searches simultaneously:**
  41. Search the web: "{{research_topic}} API design patterns protocols"
  42. Search the web: "{{research_topic}} communication protocols data formats"
  43. Search the web: "{{research_topic}} system interoperability integration"
  44. Search the web: "{{research_topic}} microservices integration patterns"
  45. **Analysis approach:**
  46. - Look for recent API design guides and best practices
  47. - Search for communication protocol documentation and standards
  48. - Research integration platform and middleware solutions
  49. - Analyze microservices architecture patterns and approaches
  50. - Study event-driven systems and messaging patterns
  51. ### 3. Analyze and Aggregate Results
  52. **Collect and analyze findings from all parallel searches:**
  53. "After executing comprehensive parallel web searches, let me analyze and aggregate integration patterns findings:
  54. **Research Coverage:**
  55. - API design patterns and protocols analysis
  56. - Communication protocols and data formats evaluation
  57. - System interoperability approaches assessment
  58. - Microservices integration patterns documentation
  59. **Cross-Integration Analysis:**
  60. [Identify patterns connecting API choices, communication protocols, and system design]
  61. **Quality Assessment:**
  62. [Overall confidence levels and research gaps identified]"
  63. ### 4. Generate Integration Patterns Content
  64. **WRITE IMMEDIATELY TO DOCUMENT**
  65. Prepare integration patterns analysis with web search citations:
  66. #### Content Structure:
  67. When saving to document, append these Level 2 and Level 3 sections:
  68. ```markdown
  69. ## Integration Patterns Analysis
  70. ### API Design Patterns
  71. [API design patterns analysis with source citations]
  72. _RESTful APIs: [REST principles and best practices for {{research_topic}}]_
  73. _GraphQL APIs: [GraphQL adoption and implementation patterns]_
  74. _RPC and gRPC: [High-performance API communication patterns]_
  75. _Webhook Patterns: [Event-driven API integration approaches]_
  76. _Source: [URL]_
  77. ### Communication Protocols
  78. [Communication protocols analysis with source citations]
  79. _HTTP/HTTPS Protocols: [Web-based communication patterns and evolution]_
  80. _WebSocket Protocols: [Real-time communication and persistent connections]_
  81. _Message Queue Protocols: [AMQP, MQTT, and messaging patterns]_
  82. _grpc and Protocol Buffers: [High-performance binary communication protocols]_
  83. _Source: [URL]_
  84. ### Data Formats and Standards
  85. [Data formats analysis with source citations]
  86. _JSON and XML: [Structured data exchange formats and their evolution]_
  87. _Protobuf and MessagePack: [Efficient binary serialization formats]_
  88. _CSV and Flat Files: [Legacy data integration and bulk transfer patterns]_
  89. _Custom Data Formats: [Domain-specific data exchange standards]_
  90. _Source: [URL]_
  91. ### System Interoperability Approaches
  92. [Interoperability analysis with source citations]
  93. _Point-to-Point Integration: [Direct system-to-system communication patterns]_
  94. _API Gateway Patterns: [Centralized API management and routing]_
  95. _Service Mesh: [Service-to-service communication and observability]_
  96. _Enterprise Service Bus: [Traditional enterprise integration patterns]_
  97. _Source: [URL]_
  98. ### Microservices Integration Patterns
  99. [Microservices integration analysis with source citations]
  100. _API Gateway Pattern: [External API management and routing]_
  101. _Service Discovery: [Dynamic service registration and discovery]_
  102. _Circuit Breaker Pattern: [Fault tolerance and resilience patterns]_
  103. _Saga Pattern: [Distributed transaction management]_
  104. _Source: [URL]_
  105. ### Event-Driven Integration
  106. [Event-driven analysis with source citations]
  107. _Publish-Subscribe Patterns: [Event broadcasting and subscription models]_
  108. _Event Sourcing: [Event-based state management and persistence]_
  109. _Message Broker Patterns: [RabbitMQ, Kafka, and message routing]_
  110. _CQRS Patterns: [Command Query Responsibility Segregation]_
  111. _Source: [URL]_
  112. ### Integration Security Patterns
  113. [Security patterns analysis with source citations]
  114. _OAuth 2.0 and JWT: [API authentication and authorization patterns]_
  115. _API Key Management: [Secure API access and key rotation]_
  116. _Mutual TLS: [Certificate-based service authentication]_
  117. _Data Encryption: [Secure data transmission and storage]_
  118. _Source: [URL]_
  119. ```
  120. ### 5. Present Analysis and Continue Option
  121. **Show analysis and present continue option:**
  122. "I've completed **integration patterns analysis** of system integration approaches for {{research_topic}}.
  123. **Key Integration Patterns Findings:**
  124. - API design patterns and protocols thoroughly analyzed
  125. - Communication protocols and data formats evaluated
  126. - System interoperability approaches documented
  127. - Microservices integration patterns mapped
  128. - Event-driven integration strategies identified
  129. **Ready to proceed to architectural patterns analysis?**
  130. [C] Continue - Save this to document and proceed to architectural patterns
  131. ### 6. Handle Continue Selection
  132. #### If 'C' (Continue):
  133. - **CONTENT ALREADY WRITTEN TO DOCUMENT**
  134. - Update frontmatter: `stepsCompleted: [1, 2, 3]`
  135. - Load: `./step-04-architectural-patterns.md`
  136. ## APPEND TO DOCUMENT:
  137. Content is already written to document when generated in step 4. No additional append needed.
  138. ## SUCCESS METRICS:
  139. ✅ API design patterns and protocols thoroughly analyzed
  140. ✅ Communication protocols and data formats evaluated
  141. ✅ System interoperability approaches documented
  142. ✅ Microservices integration patterns mapped
  143. ✅ Event-driven integration strategies identified
  144. ✅ Content written immediately to document
  145. ✅ [C] continue option presented and handled correctly
  146. ✅ Proper routing to next step (architectural patterns)
  147. ✅ Research goals alignment maintained
  148. ## FAILURE MODES:
  149. ❌ Relying solely on training data without web verification for current facts
  150. ❌ Missing critical API design patterns or protocols
  151. ❌ Incomplete communication protocols analysis
  152. ❌ Not identifying system interoperability approaches
  153. ❌ Not writing content immediately to document
  154. ❌ Not presenting [C] continue option after content generation
  155. ❌ Not routing to architectural patterns step
  156. ❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions
  157. ❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file
  158. ❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols
  159. ## INTEGRATION PATTERNS RESEARCH PROTOCOLS:
  160. - Research API design guides and best practices documentation
  161. - Use communication protocol specifications and standards
  162. - Analyze integration platform and middleware solutions
  163. - Study microservices architecture patterns and case studies
  164. - Focus on current integration data
  165. - Present conflicting information when sources disagree
  166. - Apply confidence levels appropriately
  167. ## INTEGRATION PATTERNS ANALYSIS STANDARDS:
  168. - Always cite URLs for web search results
  169. - Use authoritative integration research sources
  170. - Note data currency and potential limitations
  171. - Present multiple perspectives when sources conflict
  172. - Apply confidence levels to uncertain data
  173. - Focus on actionable integration insights
  174. ## NEXT STEP:
  175. After user selects 'C', load `./step-04-architectural-patterns.md` to analyze architectural patterns, design decisions, and system structures for {{research_topic}}.
  176. Remember: Always write research content to document immediately and emphasize current integration data with rigorous source verification!