Architecture blueprint generator

From LeoYeAI/openclaw-master-skills · View interactive version

Architecture blueprint generator is an AI agent skill from the GitHub repository LeoYeAI/openclaw-master-skills. Comprehensive project architecture blueprint generator that analyzes codebases to create detailed architectural documentation. Automatically detects technology stacks and architectural patterns, generates visual diagrams, documents implementation patterns, and provides extensible blueprints for main

How to use this skill

Skill file

Comprehensive Project Architecture Blueprint Generator

Configuration Variables

${PROJECT_TYPE="Auto-detect|.NET|Java|React|Angular|Python|Node.js|Flutter|Other"} <!-- Primary technology -->

${ARCHITECTURE_PATTERN="Auto-detect|Clean Architecture|Microservices|Layered|MVVM|MVC|Hexagonal|Event-Driven|Serverless|Monolithic|Other"} <!-- Primary architectural pattern -->

${DIAGRAM_TYPE="C4|UML|Flow|Component|None"} <!-- Architecture diagram type -->

${DETAIL_LEVEL="High-level|Detailed|Comprehensive|Implementation-Ready"} <!-- Level of detail to include -->

${INCLUDES_CODE_EXAMPLES=true|false} <!-- Include sample code to illustrate patterns -->

${INCLUDES_IMPLEMENTATION_PATTERNS=true|false} <!-- Include detailed implementation patterns -->

${INCLUDES_DECISION_RECORDS=true|false} <!-- Include architectural decision records -->

${FOCUS_ON_EXTENSIBILITY=true|false} <!-- Emphasize extension points and patterns -->

Generated Prompt

"Create a comprehensive 'Project_Architecture_Blueprint.md' document that thoroughly analyzes the architectural patterns in the codebase to serve as a definitive reference for maintaining architectural consistency. Use the following approach:

1. Architecture Detection and Analysis

2. Architectural Overview

3. Architecture Visualization

${DIAGRAM_TYPE != "None" ? `Create ${DIAGRAM_TYPE} diagrams at multiple levels of abstraction:

4. Core Architectural Components

For each architectural component discovered in the codebase:

5. Architectural Layers and Dependencies

6. Data Architecture

7. Cross-Cutting Concerns Implementation

Document implementation patterns for cross-cutting concerns:

8. Service Communication Patterns

9. Technology-Specific Architectural Patterns

${PROJECT_TYPE == "Auto-detect" ? "For each detected technology stack, document specific architectural patterns:" : Document ${PROJECT_TYPE}-specific architectural patterns:}

${(PROJECT_TYPE == ".NET" || PROJECT_TYPE == "Auto-detect") ?

"#### .NET Architectural Patterns (if detected)

${(PROJECT_TYPE == "Java" || PROJECT_TYPE == "Auto-detect") ?

"#### Java Architectural Patterns (if detected)

${(PROJECT_TYPE == "React" || PROJECT_TYPE == "Auto-detect") ?

"#### React Architectural Patterns (if detected)

${(PROJECT_TYPE == "Angular" || PROJECT_TYPE == "Auto-detect") ?

"#### Angular Architectural Patterns (if detected)

${(PROJECT_TYPE == "Python" || PROJECT_TYPE == "Auto-detect") ?

"#### Python Architectural Patterns (if detected)

10. Implementation Patterns

${INCLUDES_IMPLEMENTATION_PATTERNS ?

"Document concrete implementation patterns for key architectural components:

11. Testing Architecture

12. Deployment Architecture

13. Extension and Evolution Patterns

${FOCUS_ON_EXTENSIBILITY ?

"Provide detailed guidance for extending the architecture:

${INCLUDES_CODE_EXAMPLES ?

"### 14. Architectural Pattern Examples

Extract representative code examples that illustrate key architectural patterns:

Include enough context with each example to show the pattern clearly, but keep examples concise and focused on architectural concepts." : ""}

${INCLUDES_DECISION_RECORDS ?

"### 15. Architectural Decision Records

Document key architectural decisions evident in the codebase:

For each decision, note:

${INCLUDES_DECISION_RECORDS ? "16" : INCLUDES_CODE_EXAMPLES ? "15" : "14"}. Architecture Governance

${INCLUDES_DECISION_RECORDS ? "17" : INCLUDES_CODE_EXAMPLES ? "16" : "15"}. Blueprint for New Development

Create a clear architectural guide for implementing new features:

Include information about when this blueprint was generated and recommendations for keeping it updated as the architecture evolves."

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.