Folder Structure Blueprint Generator

Folder Structure Blueprint Generator

Analyses a project's folders across stacks and writes a blueprint document with naming conventions, file placement patterns and templates for adding new features.

Skill files1 file
SKILL.md406 lines
1
---
2
name: folder-structure-blueprint-generator
3
description: 'Comprehensive technology-agnostic prompt for analyzing and documenting project folder structures. Auto-detects project types (.NET, Java, React, Angular, Python, Node.js, Flutter), generates detailed blueprints with visualization options, naming conventions, file placement patterns, and extension templates for maintaining consistent code organization across diverse technology stacks.'
4
---
5
6
# Project Folder Structure Blueprint Generator
7
8
## Configuration Variables
9
10
${PROJECT_TYPE="Auto-detect|.NET|Java|React|Angular|Python|Node.js|Flutter|Other"}
11
<!-- Select primary technology -->
12
13
${INCLUDES_MICROSERVICES="Auto-detect|true|false"}
14
<!-- Is this a microservices architecture? -->
15
16
${INCLUDES_FRONTEND="Auto-detect|true|false"}
17
<!-- Does project include frontend components? -->
18
19
${IS_MONOREPO="Auto-detect|true|false"}
20
<!-- Is this a monorepo with multiple projects? -->
21
22
${VISUALIZATION_STYLE="ASCII|Markdown List|Table"}
23
<!-- How to visualize the structure -->
24
25
${DEPTH_LEVEL=1-5}
26
<!-- How many levels of folders to document in detail -->
27
28
${INCLUDE_FILE_COUNTS=true|false}
29
<!-- Include file count statistics -->
30
31
${INCLUDE_GENERATED_FOLDERS=true|false}
32
<!-- Include auto-generated folders -->
33
34
${INCLUDE_FILE_PATTERNS=true|false}
35
<!-- Document file naming/location patterns -->
36
37
${INCLUDE_TEMPLATES=true|false}
38
<!-- Include file/folder templates for new features -->
39
40
## Generated Prompt
41
42
"Analyze the project's folder structure and create a comprehensive 'Project_Folders_Structure_Blueprint.md' document that serves as a definitive guide for maintaining consistent code organization. Use the following approach:
43
44
### Initial Auto-detection Phase
45
46
${PROJECT_TYPE == "Auto-detect" ?
47
"Begin by scanning the folder structure for key files that identify the project type:
48
- Look for solution/project files (.sln, .csproj, .fsproj, .vbproj) to identify .NET projects
49
- Check for build files (pom.xml, build.gradle, settings.gradle) for Java projects
50
- Identify package.json with dependencies for JavaScript/TypeScript projects
51
- Look for specific framework files (angular.json, react-scripts entries, next.config.js)
52
- Check for Python project identifiers (requirements.txt, setup.py, pyproject.toml)
53
- Examine mobile app identifiers (pubspec.yaml, android/ios folders)
54
- Note all technology signatures found and their versions" :
55
"Focus analysis on ${PROJECT_TYPE} project structure"}
56
57
${IS_MONOREPO == "Auto-detect" ?
58
"Determine if this is a monorepo by looking for:
59
- Multiple distinct projects with their own configuration files
60
- Workspace configuration files (lerna.json, nx.json, turborepo.json, etc.)
61
- Cross-project references and shared dependency patterns
62
- Root-level orchestration scripts and configuration" : ""}
63
64
${INCLUDES_MICROSERVICES == "Auto-detect" ?
65
"Check for microservices architecture indicators:
66
- Multiple service directories with similar/repeated structures
67
- Service-specific Dockerfiles or deployment configurations
68
- Inter-service communication patterns (APIs, message brokers)
69
- Service registry or discovery configuration
70
- API gateway configuration files
71
- Shared libraries or utilities across services" : ""}
72
73
${INCLUDES_FRONTEND == "Auto-detect" ?
74
"Identify frontend components by looking for:
75
- Web asset directories (wwwroot, public, dist, static)
76
- UI framework files (components, modules, pages)
77
- Frontend build configuration (webpack, vite, rollup, etc.)
78
- Style sheet organization (CSS, SCSS, styled-components)
79
- Static asset organization (images, fonts, icons)" : ""}
80
81
### 1. Structural Overview
82
83
Provide a high-level overview of the ${PROJECT_TYPE == "Auto-detect" ? "detected project type(s)" : PROJECT_TYPE} project's organization principles and folder structure:
84
85
- Document the overall architectural approach reflected in the folder structure
86
- Identify the main organizational principles (by feature, by layer, by domain, etc.)
87
- Note any structural patterns that repeat throughout the codebase
88
- Document the rationale behind the structure where it can be inferred
89
90
${IS_MONOREPO == "Auto-detect" ?
91
"If detected as a monorepo, explain how the monorepo is organized and the relationship between projects." :
92
IS_MONOREPO ? "Explain how the monorepo is organized and the relationship between projects." : ""}
93
94
${INCLUDES_MICROSERVICES == "Auto-detect" ?
95
"If microservices are detected, describe how they are structured and organized." :
96
INCLUDES_MICROSERVICES ? "Describe how the microservices are structured and organized." : ""}
97
98
### 2. Directory Visualization
99
100
${VISUALIZATION_STYLE == "ASCII" ?
101
"Create an ASCII tree representation of the folder hierarchy to depth level ${DEPTH_LEVEL}." : ""}
102
103
${VISUALIZATION_STYLE == "Markdown List" ?
104
"Use nested markdown lists to represent the folder hierarchy to depth level ${DEPTH_LEVEL}." : ""}
105
106
${VISUALIZATION_STYLE == "Table" ?
107
"Create a table with columns for Path, Purpose, Content Types, and Conventions." : ""}
108
109
${INCLUDE_GENERATED_FOLDERS ?
110
"Include all folders including generated ones." :
111
"Exclude auto-generated folders like bin/, obj/, node_modules/, etc."}
112
113
### 3. Key Directory Analysis
114
115
Document each significant directory's purpose, contents, and patterns:
116
117
${PROJECT_TYPE == "Auto-detect" ?
118
"For each detected technology, analyze directory structures based on observed usage patterns:" : ""}
119
120
${(PROJECT_TYPE == ".NET" || PROJECT_TYPE == "Auto-detect") ?
121
"#### .NET Project Structure (if detected)
122
123
- **Solution Organization**:
124
- How projects are grouped and related
125
- Solution folder organization patterns
126
- Multi-targeting project patterns
127
128
- **Project Organization**:
129
- Internal folder structure patterns
130
- Source code organization approach
131
- Resource organization
132
- Project dependencies and references
133
134
- **Domain/Feature Organization**:
135
- How business domains or features are separated
136
- Domain boundary enforcement patterns
137
138
- **Layer Organization**:
139
- Separation of concerns (Controllers, Services, Repositories, etc.)
140
- Layer interaction and dependency patterns
141
142
- **Configuration Management**:
143
- Configuration file locations and purposes
144
- Environment-specific configurations
145
- Secret management approach
146
147
- **Test Project Organization**:
148
- Test project structure and naming
149
- Test categories and organization
150
- Test data and mock locations" : ""}
151
152
${(PROJECT_TYPE == "React" || PROJECT_TYPE == "Angular" || PROJECT_TYPE == "Auto-detect") ?
153
"#### UI Project Structure (if detected)
154
155
- **Component Organization**:
156
- Component folder structure patterns
157
- Grouping strategies (by feature, type, etc.)
158
- Shared vs. feature-specific components
159
160
- **State Management**:
161
- State-related file organization
162
- Store structure for global state
163
- Local state management patterns
164
165
- **Routing Organization**:
166
- Route definition locations
167
- Page/view component organization
168
- Route parameter handling
169
170
- **API Integration**:
171
- API client organization
172
- Service layer structure
173
- Data fetching patterns
174
175
- **Asset Management**:
176
- Static resource organization
177
- Image/media file structure
178
- Font and icon organization
179
180
- **Style Organization**:
181
- CSS/SCSS file structure
182
- Theme organization
183
- Style module patterns" : ""}
184
185
### 4. File Placement Patterns
186
187
${INCLUDE_FILE_PATTERNS ?
188
"Document the patterns that determine where different types of files should be placed:
189
190
- **Configuration Files**:
191
- Locations for different types of configuration
192
- Environment-specific configuration patterns
193
194
- **Model/Entity Definitions**:
195
- Where domain models are defined
196
- Data transfer object (DTO) locations
197
- Schema definition locations
198
199
- **Business Logic**:
200
- Service implementation locations
201
- Business rule organization
202
- Utility and helper function placement
203
204
- **Interface Definitions**:
205
- Where interfaces and abstractions are defined
206
- How interfaces are grouped and organized
207
208
- **Test Files**:
209
- Unit test location patterns
210
- Integration test placement
211
- Test utility and mock locations
212
213
- **Documentation Files**:
214
- API documentation placement
215
- Internal documentation organization
216
- README file distribution" :
217
"Document where key file types are located in the project."}
218
219
### 5. Naming and Organization Conventions
220
Document the naming and organizational conventions observed across the project:
221
222
- **File Naming Patterns**:
223
- Case conventions (PascalCase, camelCase, kebab-case)
224
- Prefix and suffix patterns
225
- Type indicators in filenames
226
227
- **Folder Naming Patterns**:
228
- Naming conventions for different folder types
229
- Hierarchical naming patterns
230
- Grouping and categorization conventions
231
232
- **Namespace/Module Patterns**:
233
- How namespaces/modules map to folder structure
234
- Import/using statement organization
235
- Internal vs. public API separation
236
237
- **Organizational Patterns**:
238
- Code co-location strategies
239
- Feature encapsulation approaches
240
- Cross-cutting concern organization
241
242
### 6. Navigation and Development Workflow
243
Provide guidance for navigating and working with the codebase structure:
244
245
- **Entry Points**:
246
- Main application entry points
247
- Key configuration starting points
248
- Initial files for understanding the project
249
250
- **Common Development Tasks**:
251
- Where to add new features
252
- How to extend existing functionality
253
- Where to place new tests
254
- Configuration modification locations
255
256
- **Dependency Patterns**:
257
- How dependencies flow between folders
258
- Import/reference patterns
259
- Dependency injection registration locations
260
261
${INCLUDE_FILE_COUNTS ?
262
"- **Content Statistics**:
263
- Files per directory analysis
264
- Code distribution metrics
265
- Complexity concentration areas" : ""}
266
267
### 7. Build and Output Organization
268
Document the build process and output organization:
269
270
- **Build Configuration**:
271
- Build script locations and purposes
272
- Build pipeline organization
273
- Build task definitions
274
275
- **Output Structure**:
276
- Compiled/built output locations
277
- Output organization patterns
278
- Distribution package structure
279
280
- **Environment-Specific Builds**:
281
- Development vs. production differences
282
- Environment configuration strategies
283
- Build variant organization
284
285
### 8. Technology-Specific Organization
286
287
${(PROJECT_TYPE == ".NET" || PROJECT_TYPE == "Auto-detect") ?
288
"#### .NET-Specific Structure Patterns (if detected)
289
290
- **Project File Organization**:
291
- Project file structure and patterns
292
- Target framework configuration
293
- Property group organization
294
- Item group patterns
295
296
- **Assembly Organization**:
297
- Assembly naming patterns
298
- Multi-assembly architecture
299
- Assembly reference patterns
300
301
- **Resource Organization**:
302
- Embedded resource patterns
303
- Localization file structure
304
- Static web asset organization
305
306
- **Package Management**:
307
- NuGet configuration locations
308
- Package reference organization
309
- Package version management" : ""}
310
311
${(PROJECT_TYPE == "Java" || PROJECT_TYPE == "Auto-detect") ?
312
"#### Java-Specific Structure Patterns (if detected)
313
314
- **Package Hierarchy**:
315
- Package naming and nesting conventions
316
- Domain vs. technical packages
317
- Visibility and access patterns
318
319
- **Build Tool Organization**:
320
- Maven/Gradle structure patterns
321
- Module organization
322
- Plugin configuration patterns
323
324
- **Resource Organization**:
325
- Resource folder structures
326
- Environment-specific resources
327
- Properties file organization" : ""}
328
329
${(PROJECT_TYPE == "Node.js" || PROJECT_TYPE == "Auto-detect") ?
330
"#### Node.js-Specific Structure Patterns (if detected)
331
332
- **Module Organization**:
333
- CommonJS vs. ESM organization
334
- Internal module patterns
335
- Third-party dependency management
336
337
- **Script Organization**:
338
- npm/yarn script definition patterns
339
- Utility script locations
340
- Development tool scripts
341
342
- **Configuration Management**:
343
- Configuration file locations
344
- Environment variable management
345
- Secret management approaches" : ""}
346
347
### 9. Extension and Evolution
348
Document how the project structure is designed to be extended:
349
350
- **Extension Points**:
351
- How to add new modules/features while maintaining conventions
352
- Plugin/extension folder patterns
353
- Customization directory structures
354
355
- **Scalability Patterns**:
356
- How the structure scales for larger features
357
- Approach for breaking down large modules
358
- Code splitting strategies
359
360
- **Refactoring Patterns**:
361
- Common refactoring approaches observed
362
- How structural changes are managed
363
- Incremental reorganization patterns
364
365
${INCLUDE_TEMPLATES ?
366
"### 10. Structure Templates
367
368
Provide templates for creating new components that follow project conventions:
369
370
- **New Feature Template**:
371
- Folder structure for adding a complete feature
372
- Required file types and their locations
373
- Naming patterns to follow
374
375
- **New Component Template**:
376
- Directory structure for a typical component
377
- Essential files to include
378
- Integration points with existing structure
379
380
- **New Service Template**:
381
- Structure for adding a new service
382
- Interface and implementation placement
383
- Configuration and registration patterns
384
385
- **New Test Structure**:
386
- Folder structure for test projects/files
387
- Test file organization templates
388
- Test resource organization" : ""}
389
390
### ${INCLUDE_TEMPLATES ? "11" : "10"}. Structure Enforcement
391
392
Document how the project structure is maintained and enforced:
393
394
- **Structure Validation**:
395
- Tools/scripts that enforce structure
396
- Build checks for structural compliance
397
- Linting rules related to structure
398
399
- **Documentation Practices**:
400
- How structural changes are documented
401
- Where architectural decisions are recorded
402
- Structure evolution history
403
404
Include a section at the end about maintaining this blueprint and when it was last updated.
405
"
406

© GitHub, Inc. · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 13,334 prompts

More by @OpenSourceBuffGuy

See all
Woman stares blankly into open refrigerator prompt image

Woman stares blankly into open refrigerator

Generates a 30-second, 12-shot candid home-video montage of a woman in her messy apartment with her dog, with Korean dialogue, handheld drift and detailed ambient sound.

video-prompt, reference-image, face-reference, character-consistency, timed-beats, multi-shot, handheld, home-video, film-grain, candid, lip-sync, animals, pet-care, natural-light, camera-movement, humorous, casual, woman, korea, structured-output, long-form, vlog, cozy

Woman walks golden retriever in analog vlog prompt image

Woman walks golden retriever in analog vlog

Generates a handheld analog-style morning vlog of a woman walking her golden retriever, with scripted spoken lines and camera placement notes.

video-prompt, seedance, vlog, handheld, film-grain, lip-sync, home-video, pov, selfie, camera-movement, animals, pet-care, cozy, candid, natural-light, golden-hour, woman, structured-output, for-content-creators, long-form, casual, character-design, short-film

Nine Christmas portraits of one fluffy dog prompt image

Nine Christmas portraits of one fluffy dog

Makes a 3x3 grid of nine hyperrealistic Christmas portraits of the same dog from a reference photo, in trees, snow, studio and cozy indoor scenes.

image-prompt, nano-banana, reference-image, pet-portrait, christmas, holiday, animals, multi-panel, photorealistic, cinematic, soft-lighting, winter, cozy, social-media-graphic, invitation, vertical-format, vibrant-colors, dramatic-lighting, studio-lighting, for-families, pet-care, long-form, bokeh, food-photography

Reviews

Loading reviews…

Discussion

Loading comments…