1
---
2
name: technology-stack-blueprint-generator
3
description: 'Comprehensive technology stack blueprint generator that analyzes codebases to create detailed architectural documentation. Automatically detects technology stacks, programming languages, and implementation patterns across multiple platforms (.NET, Java, JavaScript, React, Python). Generates configurable blueprints with version information, licensing details, usage patterns, coding conventions, and visual diagrams. Provides implementation-ready templates and maintains architectural consistency for guided development.'
4
---
5
6
# Comprehensive Technology Stack Blueprint Generator
7
8
## Configuration Variables
9
${PROJECT_TYPE="Auto-detect|.NET|Java|JavaScript|React.js|React Native|Angular|Python|Other"} <!-- Primary technology -->
10
${DEPTH_LEVEL="Basic|Standard|Comprehensive|Implementation-Ready"} <!-- Analysis depth -->
11
${INCLUDE_VERSIONS=true|false} <!-- Include version information -->
12
${INCLUDE_LICENSES=true|false} <!-- Include license information -->
13
${INCLUDE_DIAGRAMS=true|false} <!-- Generate architecture diagrams -->
14
${INCLUDE_USAGE_PATTERNS=true|false} <!-- Include code usage patterns -->
15
${INCLUDE_CONVENTIONS=true|false} <!-- Document coding conventions -->
16
${OUTPUT_FORMAT="Markdown|JSON|YAML|HTML"} <!-- Select output format -->
17
${CATEGORIZATION="Technology Type|Layer|Purpose"} <!-- Organization method -->
18
19
## Generated Prompt
20
21
"Analyze the codebase and generate a ${DEPTH_LEVEL} technology stack blueprint that thoroughly documents technologies and implementation patterns to facilitate consistent code generation. Use the following approach:
22
23
### 1. Technology Identification Phase
24
- ${PROJECT_TYPE == "Auto-detect" ? "Scan the codebase for project files, configuration files, and dependencies to determine all technology stacks in use" : "Focus on ${PROJECT_TYPE} technologies"}
25
- Identify all programming languages by examining file extensions and content
26
- Analyze configuration files (package.json, .csproj, pom.xml, etc.) to extract dependencies
27
- Examine build scripts and pipeline definitions for tooling information
28
- ${INCLUDE_VERSIONS ? "Extract precise version information from package files and configuration" : "Skip version details"}
29
- ${INCLUDE_LICENSES ? "Document license information for all dependencies" : ""}
30
31
### 2. Core Technologies Analysis
32
33
${PROJECT_TYPE == ".NET" || PROJECT_TYPE == "Auto-detect" ? "#### .NET Stack Analysis (if detected)
34
- Target frameworks and language versions (detect from project files)
35
- All NuGet package references with versions and purpose comments
36
- Project structure and organization patterns
37
- Configuration approach (appsettings.json, IOptions, etc.)
38
- Authentication mechanisms (Identity, JWT, etc.)
39
- API design patterns (REST, GraphQL, minimal APIs, etc.)
40
- Data access approaches (EF Core, Dapper, etc.)
41
- Dependency injection patterns
42
- Middleware pipeline components" : ""}
43
44
${PROJECT_TYPE == "Java" || PROJECT_TYPE == "Auto-detect" ? "#### Java Stack Analysis (if detected)
45
- JDK version and core frameworks
46
- All Maven/Gradle dependencies with versions and purpose
47
- Package structure organization
48
- Spring Boot usage and configurations
49
- Annotation patterns
50
- Dependency injection approach
51
- Data access technologies (JPA, JDBC, etc.)
52
- API design (Spring MVC, JAX-RS, etc.)" : ""}
53
54
${PROJECT_TYPE == "JavaScript" || PROJECT_TYPE == "Auto-detect" ? "#### JavaScript Stack Analysis (if detected)
55
- ECMAScript version and transpiler settings
56
- All npm dependencies categorized by purpose
57
- Module system (ESM, CommonJS)
58
- Build tooling (webpack, Vite, etc.) with configuration
59
- TypeScript usage and configuration
60
- Testing frameworks and patterns" : ""}
61
62
${PROJECT_TYPE == "React.js" || PROJECT_TYPE == "Auto-detect" ? "#### React Analysis (if detected)
63
- React version and key patterns (hooks vs class components)
64
- State management approach (Context, Redux, Zustand, etc.)
65
- Component library usage (Material-UI, Chakra, etc.)
66
- Routing implementation
67
- Form handling strategies
68
- API integration patterns
69
- Testing approach for components" : ""}
70
71
${PROJECT_TYPE == "Python" || PROJECT_TYPE == "Auto-detect" ? "#### Python Analysis (if detected)
72
- Python version and key language features used
73
- Package dependencies and virtual environment setup
74
- Web framework details (Django, Flask, FastAPI)
75
- ORM usage patterns
76
- Project structure organization
77
- API design patterns" : ""}
78
79
### 3. Implementation Patterns & Conventions
80
${INCLUDE_CONVENTIONS ?
81
"Document coding conventions and patterns for each technology area:
82
83
#### Naming Conventions
84
- Class/type naming patterns
85
- Method/function naming patterns
86
- Variable naming conventions
87
- File naming and organization conventions
88
- Interface/abstract class patterns
89
90
#### Code Organization
91
- File structure and organization
92
- Folder hierarchy patterns
93
- Component/module boundaries
94
- Code separation and responsibility patterns
95
96
#### Common Patterns
97
- Error handling approaches
98
- Logging patterns
99
- Configuration access
100
- Authentication/authorization implementation
101
- Validation strategies
102
- Testing patterns" : ""}
103
104
### 4. Usage Examples
105
${INCLUDE_USAGE_PATTERNS ?
106
"Extract representative code examples showing standard implementation patterns:
107
108
#### API Implementation Examples
109
- Standard controller/endpoint implementation
110
- Request DTO pattern
111
- Response formatting
112
- Validation approach
113
- Error handling
114
115
#### Data Access Examples
116
- Repository pattern implementation
117
- Entity/model definitions
118
- Query patterns
119
- Transaction handling
120
121
#### Service Layer Examples
122
- Service class implementation
123
- Business logic organization
124
- Cross-cutting concerns integration
125
- Dependency injection usage
126
127
#### UI Component Examples (if applicable)
128
- Component structure
129
- State management pattern
130
- Event handling
131
- API integration pattern" : ""}
132
133
### 5. Technology Stack Map
134
${DEPTH_LEVEL == "Comprehensive" || DEPTH_LEVEL == "Implementation-Ready" ?
135
"Create a comprehensive technology map including:
136
137
#### Core Framework Usage
138
- Primary frameworks and their specific usage in the project
139
- Framework-specific configurations and customizations
140
- Extension points and customizations
141
142
#### Integration Points
143
- How different technology components integrate
144
- Authentication flow between components
145
- Data flow between frontend and backend
146
- Third-party service integration patterns
147
148
#### Development Tooling
149
- IDE settings and conventions
150
- Code analysis tools
151
- Linters and formatters with configuration
152
- Build and deployment pipeline
153
- Testing frameworks and approaches
154
155
#### Infrastructure
156
- Deployment environment details
157
- Container technologies
158
- Cloud services utilized
159
- Monitoring and logging infrastructure" : ""}
160
161
### 6. Technology-Specific Implementation Details
162
163
${PROJECT_TYPE == ".NET" || PROJECT_TYPE == "Auto-detect" ?
164
"#### .NET Implementation Details (if detected)
165
- **Dependency Injection Pattern**:
166
- Service registration approach (Scoped/Singleton/Transient patterns)
167
- Configuration binding patterns
168
169
- **Controller Patterns**:
170
- Base controller usage
171
- Action result types and patterns
172
- Route attribute conventions
173
- Filter usage (authorization, validation, etc.)
174
175
- **Data Access Patterns**:
176
- ORM configuration and usage
177
- Entity configuration approach
178
- Relationship definitions
179
- Query patterns and optimization approaches
180
181
- **API Design Patterns** (if used):
182
- Endpoint organization
183
- Parameter binding approaches
184
- Response type handling
185
186
- **Language Features Used**:
187
- Detect specific language features from code
188
- Identify common patterns and idioms
189
- Note any specific version-dependent features" : ""}
190
191
${PROJECT_TYPE == "React.js" || PROJECT_TYPE == "Auto-detect" ?
192
"#### React Implementation Details (if detected)
193
- **Component Structure**:
194
- Function vs class components
195
- Props interface definitions
196
- Component composition patterns
197
198
- **Hook Usage Patterns**:
199
- Custom hook implementation style
200
- useState patterns
201
- useEffect cleanup approaches
202
- Context usage patterns
203
204
- **State Management**:
205
- Local vs global state decisions
206
- State management library patterns
207
- Store configuration
208
- Selector patterns
209
210
- **Styling Approach**:
211
- CSS methodology (CSS modules, styled-components, etc.)
212
- Theme implementation
213
- Responsive design patterns" : ""}
214
215
### 7. Blueprint for New Code Implementation
216
${DEPTH_LEVEL == "Implementation-Ready" ?
217
"Based on the analysis, provide a detailed blueprint for implementing new features:
218
219
- **File/Class Templates**: Standard structure for common component types
220
- **Code Snippets**: Ready-to-use code patterns for common operations
221
- **Implementation Checklist**: Standard steps for implementing features end-to-end
222
- **Integration Points**: How to connect new code with existing systems
223
- **Testing Requirements**: Standard test patterns for different component types
224
- **Documentation Requirements**: Standard doc patterns for new features" : ""}
225
226
${INCLUDE_DIAGRAMS ?
227
"### 8. Technology Relationship Diagrams
228
- **Stack Diagram**: Visual representation of the complete technology stack
229
- **Dependency Flow**: How different technologies interact
230
- **Component Relationships**: How major components depend on each other
231
- **Data Flow**: How data flows through the technology stack" : ""}
232
233
### ${INCLUDE_DIAGRAMS ? "9" : "8"}. Technology Decision Context
234
- Document apparent reasons for technology choices
235
- Note any legacy or deprecated technologies marked for replacement
236
- Identify technology constraints and boundaries
237
- Document technology upgrade paths and compatibility considerations
238
239
Format the output as ${OUTPUT_FORMAT} and categorize technologies by ${CATEGORIZATION}.
240
241
Save the output as 'Technology_Stack_Blueprint.${OUTPUT_FORMAT == "Markdown" ? "md" : OUTPUT_FORMAT.toLowerCase()}'
242
"
243