@totaland/create-starter-kit 1.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +130 -18
- package/bin/index.js +109 -21
- package/package.json +2 -2
- package/templates/backend/.github/agents/ /360/237/216/255 planner.agent.md" +92 -0
- package/templates/backend/.github/agents/api-architect.agent.md +41 -0
- package/templates/backend/.github/agents/code-reviewer.agent.md +26 -0
- package/templates/backend/.github/agents/code-simplifier.agent.md +41 -0
- package/templates/backend/.github/agents/code-skeptic.agent.md +74 -0
- package/templates/backend/.github/agents/docs-specialist.agent.md +25 -0
- package/templates/backend/.github/agents/implementation-plan.agent.md +160 -0
- package/templates/backend/.github/agents/janitor.agent.md +90 -0
- package/templates/backend/.github/agents/ms-sql-dba.agent.md +25 -0
- package/templates/backend/.github/agents/plan.agent.md +115 -0
- package/templates/backend/.github/agents/planner.agent.md +15 -0
- package/templates/backend/.github/agents/playwright-tester.agent.md +13 -0
- package/templates/backend/.github/agents/postgresql-dba.agent.md +18 -0
- package/templates/backend/.github/agents/prd.agent.md +202 -0
- package/templates/backend/.github/agents/research-technical-spike.agent.md +170 -0
- package/templates/backend/.github/agents/software-engineer-agent-v1.agent.md +165 -0
- package/templates/backend/.github/agents/task-planner.agent.md +375 -0
- package/templates/backend/.github/agents/task-researcher.agent.md +255 -0
- package/templates/backend/.github/agents/tdd-green.agent.md +60 -0
- package/templates/backend/.github/agents/tdd-red.agent.md +60 -0
- package/templates/backend/.github/agents/tdd-refactor.agent.md +85 -0
- package/templates/backend/.github/agents/tech-debt-remediation-plan.agent.md +50 -0
- package/templates/backend/.github/agents/typescript-mcp-expert.agent.md +91 -0
- package/templates/backend/.github/agents/ultimate-thinking-beastmode.agent.md +644 -0
- package/templates/backend/.github/agents//360/237/216/255 generator.agent.md" +264 -0
- package/templates/backend/.github/agents//360/237/216/255 healer.agent.md" +44 -0
- package/templates/backend/.github/agents//360/237/216/255 pom.agent.md" +308 -0
- package/templates/backend/.github/instructions/a11y.instructions.md +369 -0
- package/templates/backend/.github/instructions/ms-sql-dba.instructions.md +25 -0
- package/templates/backend/.github/instructions/object-calisthenics.instructions.md +302 -0
- package/templates/backend/.github/instructions/performance-optimization.instructions.md +420 -0
- package/templates/backend/.github/instructions/playwright-python.instructions.md +62 -0
- package/templates/backend/.github/instructions/playwright-typescript.instructions.md +86 -0
- package/templates/backend/.github/instructions/security-and-owasp.instructions.md +51 -0
- package/templates/backend/.github/instructions/self-explanatory-code-commenting.instructions.md +162 -0
- package/templates/backend/.github/instructions/spec-driven-workflow-v1.instructions.md +323 -0
- package/templates/backend/.github/instructions/sql-sp-generation.instructions.md +74 -0
- package/templates/backend/.github/instructions/task-implementation.instructions.md +190 -0
- package/templates/backend/.github/instructions/typescript-mcp-server.instructions.md +228 -0
- package/templates/backend/.github/prompts/ai-prompt-engineering-safety-review.prompt.md +229 -0
- package/templates/backend/.github/prompts/architecture-blueprint-generator.prompt.md +321 -0
- package/templates/backend/.github/prompts/breakdown-epic-arch.prompt.md +65 -0
- package/templates/backend/.github/prompts/breakdown-epic-pm.prompt.md +57 -0
- package/templates/backend/.github/prompts/breakdown-feature-implementation.prompt.md +127 -0
- package/templates/backend/.github/prompts/breakdown-feature-prd.prompt.md +60 -0
- package/templates/backend/.github/prompts/breakdown-plan.prompt.md +508 -0
- package/templates/backend/.github/prompts/copilot-instructions-blueprint-generator.prompt.md +293 -0
- package/templates/backend/.github/prompts/create-agentsmd.prompt.md +248 -0
- package/templates/backend/.github/prompts/create-github-issue-feature-from-specification.prompt.md +27 -0
- package/templates/backend/.github/prompts/create-github-issues-feature-from-implementation-plan.prompt.md +27 -0
- package/templates/backend/.github/prompts/create-github-issues-for-unmet-specification-requirements.prompt.md +35 -0
- package/templates/backend/.github/prompts/create-implementation-plan.prompt.md +156 -0
- package/templates/backend/.github/prompts/create-llms.prompt.md +209 -0
- package/templates/backend/.github/prompts/create-specification.prompt.md +126 -0
- package/templates/backend/.github/prompts/create-technical-spike.prompt.md +230 -0
- package/templates/backend/.github/prompts/csharp-nunit.prompt.md +71 -0
- package/templates/backend/.github/prompts/ef-core.prompt.md +76 -0
- package/templates/backend/.github/prompts/folder-structure-blueprint-generator.prompt.md +404 -0
- package/templates/backend/.github/prompts/gen-specs-as-issues.prompt.md +165 -0
- package/templates/backend/.github/prompts/generate-custom-instructions-from-codebase.prompt.md +239 -0
- package/templates/backend/.github/prompts/java-junit.prompt.md +64 -0
- package/templates/backend/.github/prompts/memory-merger.prompt.md +107 -0
- package/templates/backend/.github/prompts/multi-stage-dockerfile.prompt.md +46 -0
- package/templates/backend/.github/prompts/playwright-automation-fill-in-form.prompt.md +29 -0
- package/templates/backend/.github/prompts/playwright-explore-website.prompt.md +19 -0
- package/templates/backend/.github/prompts/playwright-generate-test.prompt.md +19 -0
- package/templates/backend/.github/prompts/postgresql-code-review.prompt.md +214 -0
- package/templates/backend/.github/prompts/postgresql-optimization.prompt.md +406 -0
- package/templates/backend/.github/prompts/project-workflow-analysis-blueprint-generator.prompt.md +294 -0
- package/templates/backend/.github/prompts/prompt-builder.prompt.md +142 -0
- package/templates/backend/.github/prompts/remember.prompt.md +125 -0
- package/templates/backend/.github/prompts/review-and-refactor.prompt.md +15 -0
- package/templates/backend/.github/prompts/sql-code-review.prompt.md +303 -0
- package/templates/backend/.github/prompts/sql-optimization.prompt.md +298 -0
- package/templates/backend/.github/prompts/suggest-awesome-github-copilot-agents.prompt.md +72 -0
- package/templates/backend/.github/prompts/suggest-awesome-github-copilot-chatmodes.prompt.md +71 -0
- package/templates/backend/.github/prompts/suggest-awesome-github-copilot-collections.prompt.md +149 -0
- package/templates/backend/.github/prompts/suggest-awesome-github-copilot-instructions.prompt.md +88 -0
- package/templates/backend/.github/prompts/suggest-awesome-github-copilot-prompts.prompt.md +71 -0
- package/templates/backend/.github/prompts/technology-stack-blueprint-generator.prompt.md +242 -0
- package/templates/backend/.github/prompts/typescript-mcp-server-generator.prompt.md +90 -0
- package/templates/backend/.github/prompts/update-implementation-plan.prompt.md +157 -0
- package/templates/backend/.github/prompts/update-markdown-file-index.prompt.md +76 -0
- package/templates/backend/Project_Folders_Structure_Blueprint.md +529 -0
- package/templates/backend/README.md +99 -0
- package/templates/backend/biome.json +45 -0
- package/{template → templates/backend}/drizzle.config.ts +1 -1
- package/{template → templates/backend}/package.json +9 -4
- package/templates/backend/pnpm-lock.yaml +4240 -0
- package/templates/backend/src/features/health/health.test.ts +23 -0
- package/{template → templates/backend}/src/features/health/index.ts +1 -0
- package/templates/backend/src/features/health/schemas.ts +29 -0
- package/templates/backend/src/features/orders/controller.ts +18 -0
- package/templates/backend/src/features/orders/index.ts +10 -0
- package/templates/backend/src/features/orders/schemas.ts +62 -0
- package/{template → templates/backend}/src/index.ts +3 -36
- package/templates/backend/src/lib/openapi.ts +25 -0
- package/templates/backend/src/lib/validateRequest.test.ts +84 -0
- package/templates/backend/src/lib/validateRequest.ts +72 -0
- package/{template → templates/backend}/tsconfig.json +2 -2
- package/{template → templates/backend}/vitest.config.ts +8 -1
- package/templates/frontend/.env.example +7 -0
- package/templates/frontend/.github/agents/ /360/237/216/255 planner.agent.md" +92 -0
- package/templates/frontend/.github/agents/api-architect.agent.md +41 -0
- package/templates/frontend/.github/agents/code-reviewer.agent.md +26 -0
- package/templates/frontend/.github/agents/code-simplifier.agent.md +41 -0
- package/templates/frontend/.github/agents/code-skeptic.agent.md +74 -0
- package/templates/frontend/.github/agents/docs-specialist.agent.md +25 -0
- package/templates/frontend/.github/agents/implementation-plan.agent.md +160 -0
- package/templates/frontend/.github/agents/janitor.agent.md +90 -0
- package/templates/frontend/.github/agents/ms-sql-dba.agent.md +25 -0
- package/templates/frontend/.github/agents/plan.agent.md +115 -0
- package/templates/frontend/.github/agents/planner.agent.md +15 -0
- package/templates/frontend/.github/agents/playwright-tester.agent.md +13 -0
- package/templates/frontend/.github/agents/postgresql-dba.agent.md +18 -0
- package/templates/frontend/.github/agents/prd.agent.md +202 -0
- package/templates/frontend/.github/agents/research-technical-spike.agent.md +170 -0
- package/templates/frontend/.github/agents/software-engineer-agent-v1.agent.md +165 -0
- package/templates/frontend/.github/agents/task-planner.agent.md +375 -0
- package/templates/frontend/.github/agents/task-researcher.agent.md +255 -0
- package/templates/frontend/.github/agents/tdd-green.agent.md +60 -0
- package/templates/frontend/.github/agents/tdd-red.agent.md +60 -0
- package/templates/frontend/.github/agents/tdd-refactor.agent.md +85 -0
- package/templates/frontend/.github/agents/tech-debt-remediation-plan.agent.md +50 -0
- package/templates/frontend/.github/agents/typescript-mcp-expert.agent.md +91 -0
- package/templates/frontend/.github/agents/ultimate-thinking-beastmode.agent.md +644 -0
- package/templates/frontend/.github/agents//360/237/216/255 generator.agent.md" +264 -0
- package/templates/frontend/.github/agents//360/237/216/255 healer.agent.md" +44 -0
- package/templates/frontend/.github/agents//360/237/216/255 pom.agent.md" +308 -0
- package/templates/frontend/.github/instructions/a11y.instructions.md +369 -0
- package/templates/frontend/.github/instructions/ms-sql-dba.instructions.md +25 -0
- package/templates/frontend/.github/instructions/object-calisthenics.instructions.md +302 -0
- package/templates/frontend/.github/instructions/performance-optimization.instructions.md +420 -0
- package/templates/frontend/.github/instructions/playwright-python.instructions.md +62 -0
- package/templates/frontend/.github/instructions/playwright-typescript.instructions.md +86 -0
- package/templates/frontend/.github/instructions/security-and-owasp.instructions.md +51 -0
- package/templates/frontend/.github/instructions/self-explanatory-code-commenting.instructions.md +162 -0
- package/templates/frontend/.github/instructions/spec-driven-workflow-v1.instructions.md +323 -0
- package/templates/frontend/.github/instructions/sql-sp-generation.instructions.md +74 -0
- package/templates/frontend/.github/instructions/task-implementation.instructions.md +190 -0
- package/templates/frontend/.github/instructions/typescript-mcp-server.instructions.md +228 -0
- package/templates/frontend/.github/prompts/ai-prompt-engineering-safety-review.prompt.md +229 -0
- package/templates/frontend/.github/prompts/architecture-blueprint-generator.prompt.md +321 -0
- package/templates/frontend/.github/prompts/breakdown-epic-arch.prompt.md +65 -0
- package/templates/frontend/.github/prompts/breakdown-epic-pm.prompt.md +57 -0
- package/templates/frontend/.github/prompts/breakdown-feature-implementation.prompt.md +127 -0
- package/templates/frontend/.github/prompts/breakdown-feature-prd.prompt.md +60 -0
- package/templates/frontend/.github/prompts/breakdown-plan.prompt.md +508 -0
- package/templates/frontend/.github/prompts/copilot-instructions-blueprint-generator.prompt.md +293 -0
- package/templates/frontend/.github/prompts/create-agentsmd.prompt.md +248 -0
- package/templates/frontend/.github/prompts/create-github-issue-feature-from-specification.prompt.md +27 -0
- package/templates/frontend/.github/prompts/create-github-issues-feature-from-implementation-plan.prompt.md +27 -0
- package/templates/frontend/.github/prompts/create-github-issues-for-unmet-specification-requirements.prompt.md +35 -0
- package/templates/frontend/.github/prompts/create-implementation-plan.prompt.md +156 -0
- package/templates/frontend/.github/prompts/create-llms.prompt.md +209 -0
- package/templates/frontend/.github/prompts/create-specification.prompt.md +126 -0
- package/templates/frontend/.github/prompts/create-technical-spike.prompt.md +230 -0
- package/templates/frontend/.github/prompts/csharp-nunit.prompt.md +71 -0
- package/templates/frontend/.github/prompts/ef-core.prompt.md +76 -0
- package/templates/frontend/.github/prompts/folder-structure-blueprint-generator.prompt.md +404 -0
- package/templates/frontend/.github/prompts/gen-specs-as-issues.prompt.md +165 -0
- package/templates/frontend/.github/prompts/generate-custom-instructions-from-codebase.prompt.md +239 -0
- package/templates/frontend/.github/prompts/java-junit.prompt.md +64 -0
- package/templates/frontend/.github/prompts/memory-merger.prompt.md +107 -0
- package/templates/frontend/.github/prompts/multi-stage-dockerfile.prompt.md +46 -0
- package/templates/frontend/.github/prompts/playwright-automation-fill-in-form.prompt.md +29 -0
- package/templates/frontend/.github/prompts/playwright-explore-website.prompt.md +19 -0
- package/templates/frontend/.github/prompts/playwright-generate-test.prompt.md +19 -0
- package/templates/frontend/.github/prompts/postgresql-code-review.prompt.md +214 -0
- package/templates/frontend/.github/prompts/postgresql-optimization.prompt.md +406 -0
- package/templates/frontend/.github/prompts/project-workflow-analysis-blueprint-generator.prompt.md +294 -0
- package/templates/frontend/.github/prompts/prompt-builder.prompt.md +142 -0
- package/templates/frontend/.github/prompts/remember.prompt.md +125 -0
- package/templates/frontend/.github/prompts/review-and-refactor.prompt.md +15 -0
- package/templates/frontend/.github/prompts/sql-code-review.prompt.md +303 -0
- package/templates/frontend/.github/prompts/sql-optimization.prompt.md +298 -0
- package/templates/frontend/.github/prompts/suggest-awesome-github-copilot-agents.prompt.md +72 -0
- package/templates/frontend/.github/prompts/suggest-awesome-github-copilot-chatmodes.prompt.md +71 -0
- package/templates/frontend/.github/prompts/suggest-awesome-github-copilot-collections.prompt.md +149 -0
- package/templates/frontend/.github/prompts/suggest-awesome-github-copilot-instructions.prompt.md +88 -0
- package/templates/frontend/.github/prompts/suggest-awesome-github-copilot-prompts.prompt.md +71 -0
- package/templates/frontend/.github/prompts/technology-stack-blueprint-generator.prompt.md +242 -0
- package/templates/frontend/.github/prompts/typescript-mcp-server-generator.prompt.md +90 -0
- package/templates/frontend/.github/prompts/update-implementation-plan.prompt.md +157 -0
- package/templates/frontend/.github/prompts/update-markdown-file-index.prompt.md +76 -0
- package/templates/frontend/README.md +199 -0
- package/templates/frontend/biome.json +45 -0
- package/templates/frontend/components.json +22 -0
- package/templates/frontend/index.html +13 -0
- package/templates/frontend/package.json +44 -0
- package/templates/frontend/pnpm-lock.yaml +2011 -0
- package/templates/frontend/postcss.config.js +6 -0
- package/templates/frontend/public/vite.svg +1 -0
- package/templates/frontend/src/App.css +42 -0
- package/templates/frontend/src/App.tsx +17 -0
- package/templates/frontend/src/assets/react.svg +1 -0
- package/templates/frontend/src/components/layout/layout.component.tsx +31 -0
- package/templates/frontend/src/components/menu-toggle-icon.tsx +53 -0
- package/templates/frontend/src/components/ui/button.tsx +57 -0
- package/templates/frontend/src/docs/RECOMMENDED_LIBRARIES.md +226 -0
- package/templates/frontend/src/docs/SETUP_SUMMARY.md +162 -0
- package/templates/frontend/src/hooks/use-scroll.ts +21 -0
- package/templates/frontend/src/index.css +121 -0
- package/templates/frontend/src/lib/api-client.ts +46 -0
- package/templates/frontend/src/lib/utils.ts +6 -0
- package/templates/frontend/src/main.tsx +30 -0
- package/templates/frontend/src/pages/about/about.page.tsx +50 -0
- package/templates/frontend/src/pages/home/home.page.tsx +43 -0
- package/templates/frontend/tailwind.config.js +59 -0
- package/templates/frontend/tsconfig.app.json +41 -0
- package/templates/frontend/tsconfig.json +13 -0
- package/templates/frontend/tsconfig.node.json +26 -0
- package/templates/frontend/vite.config.ts +14 -0
- package/template/.env.example +0 -8
- package/template/AGENTS.md +0 -23
- package/template/ARCHITECTURE.md +0 -53
- package/template/ORDER_SYSTEM.md +0 -93
- package/template/biome.json +0 -3
- package/template/src/features/orders/controller.ts +0 -13
- package/template/src/features/orders/index.ts +0 -7
- /package/{template → templates/backend}/knip.json +0 -0
- /package/{template → templates/backend}/playwright.config.ts +0 -0
- /package/{template → templates/backend}/pnpm-workspace.yaml +0 -0
- /package/{template → templates/backend}/src/features/health/controller.ts +0 -0
- /package/{template → templates/backend}/tsconfig.build.json +0 -0
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: '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 maintaining architectural consistency and guiding new development.'
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Comprehensive Project Architecture Blueprint Generator
|
|
6
|
+
|
|
7
|
+
## Configuration Variables
|
|
8
|
+
${PROJECT_TYPE="Auto-detect|.NET|Java|React|Angular|Python|Node.js|Flutter|Other"} <!-- Primary technology -->
|
|
9
|
+
${ARCHITECTURE_PATTERN="Auto-detect|Clean Architecture|Microservices|Layered|MVVM|MVC|Hexagonal|Event-Driven|Serverless|Monolithic|Other"} <!-- Primary architectural pattern -->
|
|
10
|
+
${DIAGRAM_TYPE="C4|UML|Flow|Component|None"} <!-- Architecture diagram type -->
|
|
11
|
+
${DETAIL_LEVEL="High-level|Detailed|Comprehensive|Implementation-Ready"} <!-- Level of detail to include -->
|
|
12
|
+
${INCLUDES_CODE_EXAMPLES=true|false} <!-- Include sample code to illustrate patterns -->
|
|
13
|
+
${INCLUDES_IMPLEMENTATION_PATTERNS=true|false} <!-- Include detailed implementation patterns -->
|
|
14
|
+
${INCLUDES_DECISION_RECORDS=true|false} <!-- Include architectural decision records -->
|
|
15
|
+
${FOCUS_ON_EXTENSIBILITY=true|false} <!-- Emphasize extension points and patterns -->
|
|
16
|
+
|
|
17
|
+
## Generated Prompt
|
|
18
|
+
|
|
19
|
+
"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:
|
|
20
|
+
|
|
21
|
+
### 1. Architecture Detection and Analysis
|
|
22
|
+
- ${PROJECT_TYPE == "Auto-detect" ? "Analyze the project structure to identify all technology stacks and frameworks in use by examining:
|
|
23
|
+
- Project and configuration files
|
|
24
|
+
- Package dependencies and import statements
|
|
25
|
+
- Framework-specific patterns and conventions
|
|
26
|
+
- Build and deployment configurations" : "Focus on ${PROJECT_TYPE} specific patterns and practices"}
|
|
27
|
+
|
|
28
|
+
- ${ARCHITECTURE_PATTERN == "Auto-detect" ? "Determine the architectural pattern(s) by analyzing:
|
|
29
|
+
- Folder organization and namespacing
|
|
30
|
+
- Dependency flow and component boundaries
|
|
31
|
+
- Interface segregation and abstraction patterns
|
|
32
|
+
- Communication mechanisms between components" : "Document how the ${ARCHITECTURE_PATTERN} architecture is implemented"}
|
|
33
|
+
|
|
34
|
+
### 2. Architectural Overview
|
|
35
|
+
- Provide a clear, concise explanation of the overall architectural approach
|
|
36
|
+
- Document the guiding principles evident in the architectural choices
|
|
37
|
+
- Identify architectural boundaries and how they're enforced
|
|
38
|
+
- Note any hybrid architectural patterns or adaptations of standard patterns
|
|
39
|
+
|
|
40
|
+
### 3. Architecture Visualization
|
|
41
|
+
${DIAGRAM_TYPE != "None" ? `Create ${DIAGRAM_TYPE} diagrams at multiple levels of abstraction:
|
|
42
|
+
- High-level architectural overview showing major subsystems
|
|
43
|
+
- Component interaction diagrams showing relationships and dependencies
|
|
44
|
+
- Data flow diagrams showing how information moves through the system
|
|
45
|
+
- Ensure diagrams accurately reflect the actual implementation, not theoretical patterns` : "Describe the component relationships based on actual code dependencies, providing clear textual explanations of:
|
|
46
|
+
- Subsystem organization and boundaries
|
|
47
|
+
- Dependency directions and component interactions
|
|
48
|
+
- Data flow and process sequences"}
|
|
49
|
+
|
|
50
|
+
### 4. Core Architectural Components
|
|
51
|
+
For each architectural component discovered in the codebase:
|
|
52
|
+
|
|
53
|
+
- **Purpose and Responsibility**:
|
|
54
|
+
- Primary function within the architecture
|
|
55
|
+
- Business domains or technical concerns addressed
|
|
56
|
+
- Boundaries and scope limitations
|
|
57
|
+
|
|
58
|
+
- **Internal Structure**:
|
|
59
|
+
- Organization of classes/modules within the component
|
|
60
|
+
- Key abstractions and their implementations
|
|
61
|
+
- Design patterns utilized
|
|
62
|
+
|
|
63
|
+
- **Interaction Patterns**:
|
|
64
|
+
- How the component communicates with others
|
|
65
|
+
- Interfaces exposed and consumed
|
|
66
|
+
- Dependency injection patterns
|
|
67
|
+
- Event publishing/subscription mechanisms
|
|
68
|
+
|
|
69
|
+
- **Evolution Patterns**:
|
|
70
|
+
- How the component can be extended
|
|
71
|
+
- Variation points and plugin mechanisms
|
|
72
|
+
- Configuration and customization approaches
|
|
73
|
+
|
|
74
|
+
### 5. Architectural Layers and Dependencies
|
|
75
|
+
- Map the layer structure as implemented in the codebase
|
|
76
|
+
- Document the dependency rules between layers
|
|
77
|
+
- Identify abstraction mechanisms that enable layer separation
|
|
78
|
+
- Note any circular dependencies or layer violations
|
|
79
|
+
- Document dependency injection patterns used to maintain separation
|
|
80
|
+
|
|
81
|
+
### 6. Data Architecture
|
|
82
|
+
- Document domain model structure and organization
|
|
83
|
+
- Map entity relationships and aggregation patterns
|
|
84
|
+
- Identify data access patterns (repositories, data mappers, etc.)
|
|
85
|
+
- Document data transformation and mapping approaches
|
|
86
|
+
- Note caching strategies and implementations
|
|
87
|
+
- Document data validation patterns
|
|
88
|
+
|
|
89
|
+
### 7. Cross-Cutting Concerns Implementation
|
|
90
|
+
Document implementation patterns for cross-cutting concerns:
|
|
91
|
+
|
|
92
|
+
- **Authentication & Authorization**:
|
|
93
|
+
- Security model implementation
|
|
94
|
+
- Permission enforcement patterns
|
|
95
|
+
- Identity management approach
|
|
96
|
+
- Security boundary patterns
|
|
97
|
+
|
|
98
|
+
- **Error Handling & Resilience**:
|
|
99
|
+
- Exception handling patterns
|
|
100
|
+
- Retry and circuit breaker implementations
|
|
101
|
+
- Fallback and graceful degradation strategies
|
|
102
|
+
- Error reporting and monitoring approaches
|
|
103
|
+
|
|
104
|
+
- **Logging & Monitoring**:
|
|
105
|
+
- Instrumentation patterns
|
|
106
|
+
- Observability implementation
|
|
107
|
+
- Diagnostic information flow
|
|
108
|
+
- Performance monitoring approach
|
|
109
|
+
|
|
110
|
+
- **Validation**:
|
|
111
|
+
- Input validation strategies
|
|
112
|
+
- Business rule validation implementation
|
|
113
|
+
- Validation responsibility distribution
|
|
114
|
+
- Error reporting patterns
|
|
115
|
+
|
|
116
|
+
- **Configuration Management**:
|
|
117
|
+
- Configuration source patterns
|
|
118
|
+
- Environment-specific configuration strategies
|
|
119
|
+
- Secret management approach
|
|
120
|
+
- Feature flag implementation
|
|
121
|
+
|
|
122
|
+
### 8. Service Communication Patterns
|
|
123
|
+
- Document service boundary definitions
|
|
124
|
+
- Identify communication protocols and formats
|
|
125
|
+
- Map synchronous vs. asynchronous communication patterns
|
|
126
|
+
- Document API versioning strategies
|
|
127
|
+
- Identify service discovery mechanisms
|
|
128
|
+
- Note resilience patterns in service communication
|
|
129
|
+
|
|
130
|
+
### 9. Technology-Specific Architectural Patterns
|
|
131
|
+
${PROJECT_TYPE == "Auto-detect" ? "For each detected technology stack, document specific architectural patterns:" : `Document ${PROJECT_TYPE}-specific architectural patterns:`}
|
|
132
|
+
|
|
133
|
+
${(PROJECT_TYPE == ".NET" || PROJECT_TYPE == "Auto-detect") ?
|
|
134
|
+
"#### .NET Architectural Patterns (if detected)
|
|
135
|
+
- Host and application model implementation
|
|
136
|
+
- Middleware pipeline organization
|
|
137
|
+
- Framework service integration patterns
|
|
138
|
+
- ORM and data access approaches
|
|
139
|
+
- API implementation patterns (controllers, minimal APIs, etc.)
|
|
140
|
+
- Dependency injection container configuration" : ""}
|
|
141
|
+
|
|
142
|
+
${(PROJECT_TYPE == "Java" || PROJECT_TYPE == "Auto-detect") ?
|
|
143
|
+
"#### Java Architectural Patterns (if detected)
|
|
144
|
+
- Application container and bootstrap process
|
|
145
|
+
- Dependency injection framework usage (Spring, CDI, etc.)
|
|
146
|
+
- AOP implementation patterns
|
|
147
|
+
- Transaction boundary management
|
|
148
|
+
- ORM configuration and usage patterns
|
|
149
|
+
- Service implementation patterns" : ""}
|
|
150
|
+
|
|
151
|
+
${(PROJECT_TYPE == "React" || PROJECT_TYPE == "Auto-detect") ?
|
|
152
|
+
"#### React Architectural Patterns (if detected)
|
|
153
|
+
- Component composition and reuse strategies
|
|
154
|
+
- State management architecture
|
|
155
|
+
- Side effect handling patterns
|
|
156
|
+
- Routing and navigation approach
|
|
157
|
+
- Data fetching and caching patterns
|
|
158
|
+
- Rendering optimization strategies" : ""}
|
|
159
|
+
|
|
160
|
+
${(PROJECT_TYPE == "Angular" || PROJECT_TYPE == "Auto-detect") ?
|
|
161
|
+
"#### Angular Architectural Patterns (if detected)
|
|
162
|
+
- Module organization strategy
|
|
163
|
+
- Component hierarchy design
|
|
164
|
+
- Service and dependency injection patterns
|
|
165
|
+
- State management approach
|
|
166
|
+
- Reactive programming patterns
|
|
167
|
+
- Route guard implementation" : ""}
|
|
168
|
+
|
|
169
|
+
${(PROJECT_TYPE == "Python" || PROJECT_TYPE == "Auto-detect") ?
|
|
170
|
+
"#### Python Architectural Patterns (if detected)
|
|
171
|
+
- Module organization approach
|
|
172
|
+
- Dependency management strategy
|
|
173
|
+
- OOP vs. functional implementation patterns
|
|
174
|
+
- Framework integration patterns
|
|
175
|
+
- Asynchronous programming approach" : ""}
|
|
176
|
+
|
|
177
|
+
### 10. Implementation Patterns
|
|
178
|
+
${INCLUDES_IMPLEMENTATION_PATTERNS ?
|
|
179
|
+
"Document concrete implementation patterns for key architectural components:
|
|
180
|
+
|
|
181
|
+
- **Interface Design Patterns**:
|
|
182
|
+
- Interface segregation approaches
|
|
183
|
+
- Abstraction level decisions
|
|
184
|
+
- Generic vs. specific interface patterns
|
|
185
|
+
- Default implementation patterns
|
|
186
|
+
|
|
187
|
+
- **Service Implementation Patterns**:
|
|
188
|
+
- Service lifetime management
|
|
189
|
+
- Service composition patterns
|
|
190
|
+
- Operation implementation templates
|
|
191
|
+
- Error handling within services
|
|
192
|
+
|
|
193
|
+
- **Repository Implementation Patterns**:
|
|
194
|
+
- Query pattern implementations
|
|
195
|
+
- Transaction management
|
|
196
|
+
- Concurrency handling
|
|
197
|
+
- Bulk operation patterns
|
|
198
|
+
|
|
199
|
+
- **Controller/API Implementation Patterns**:
|
|
200
|
+
- Request handling patterns
|
|
201
|
+
- Response formatting approaches
|
|
202
|
+
- Parameter validation
|
|
203
|
+
- API versioning implementation
|
|
204
|
+
|
|
205
|
+
- **Domain Model Implementation**:
|
|
206
|
+
- Entity implementation patterns
|
|
207
|
+
- Value object patterns
|
|
208
|
+
- Domain event implementation
|
|
209
|
+
- Business rule enforcement" : "Mention that detailed implementation patterns vary across the codebase."}
|
|
210
|
+
|
|
211
|
+
### 11. Testing Architecture
|
|
212
|
+
- Document testing strategies aligned with the architecture
|
|
213
|
+
- Identify test boundary patterns (unit, integration, system)
|
|
214
|
+
- Map test doubles and mocking approaches
|
|
215
|
+
- Document test data strategies
|
|
216
|
+
- Note testing tools and frameworks integration
|
|
217
|
+
|
|
218
|
+
### 12. Deployment Architecture
|
|
219
|
+
- Document deployment topology derived from configuration
|
|
220
|
+
- Identify environment-specific architectural adaptations
|
|
221
|
+
- Map runtime dependency resolution patterns
|
|
222
|
+
- Document configuration management across environments
|
|
223
|
+
- Identify containerization and orchestration approaches
|
|
224
|
+
- Note cloud service integration patterns
|
|
225
|
+
|
|
226
|
+
### 13. Extension and Evolution Patterns
|
|
227
|
+
${FOCUS_ON_EXTENSIBILITY ?
|
|
228
|
+
"Provide detailed guidance for extending the architecture:
|
|
229
|
+
|
|
230
|
+
- **Feature Addition Patterns**:
|
|
231
|
+
- How to add new features while preserving architectural integrity
|
|
232
|
+
- Where to place new components by type
|
|
233
|
+
- Dependency introduction guidelines
|
|
234
|
+
- Configuration extension patterns
|
|
235
|
+
|
|
236
|
+
- **Modification Patterns**:
|
|
237
|
+
- How to safely modify existing components
|
|
238
|
+
- Strategies for maintaining backward compatibility
|
|
239
|
+
- Deprecation patterns
|
|
240
|
+
- Migration approaches
|
|
241
|
+
|
|
242
|
+
- **Integration Patterns**:
|
|
243
|
+
- How to integrate new external systems
|
|
244
|
+
- Adapter implementation patterns
|
|
245
|
+
- Anti-corruption layer patterns
|
|
246
|
+
- Service facade implementation" : "Document key extension points in the architecture."}
|
|
247
|
+
|
|
248
|
+
${INCLUDES_CODE_EXAMPLES ?
|
|
249
|
+
"### 14. Architectural Pattern Examples
|
|
250
|
+
Extract representative code examples that illustrate key architectural patterns:
|
|
251
|
+
|
|
252
|
+
- **Layer Separation Examples**:
|
|
253
|
+
- Interface definition and implementation separation
|
|
254
|
+
- Cross-layer communication patterns
|
|
255
|
+
- Dependency injection examples
|
|
256
|
+
|
|
257
|
+
- **Component Communication Examples**:
|
|
258
|
+
- Service invocation patterns
|
|
259
|
+
- Event publication and handling
|
|
260
|
+
- Message passing implementation
|
|
261
|
+
|
|
262
|
+
- **Extension Point Examples**:
|
|
263
|
+
- Plugin registration and discovery
|
|
264
|
+
- Extension interface implementations
|
|
265
|
+
- Configuration-driven extension patterns
|
|
266
|
+
|
|
267
|
+
Include enough context with each example to show the pattern clearly, but keep examples concise and focused on architectural concepts." : ""}
|
|
268
|
+
|
|
269
|
+
${INCLUDES_DECISION_RECORDS ?
|
|
270
|
+
"### 15. Architectural Decision Records
|
|
271
|
+
Document key architectural decisions evident in the codebase:
|
|
272
|
+
|
|
273
|
+
- **Architectural Style Decisions**:
|
|
274
|
+
- Why the current architectural pattern was chosen
|
|
275
|
+
- Alternatives considered (based on code evolution)
|
|
276
|
+
- Constraints that influenced the decision
|
|
277
|
+
|
|
278
|
+
- **Technology Selection Decisions**:
|
|
279
|
+
- Key technology choices and their architectural impact
|
|
280
|
+
- Framework selection rationales
|
|
281
|
+
- Custom vs. off-the-shelf component decisions
|
|
282
|
+
|
|
283
|
+
- **Implementation Approach Decisions**:
|
|
284
|
+
- Specific implementation patterns chosen
|
|
285
|
+
- Standard pattern adaptations
|
|
286
|
+
- Performance vs. maintainability tradeoffs
|
|
287
|
+
|
|
288
|
+
For each decision, note:
|
|
289
|
+
- Context that made the decision necessary
|
|
290
|
+
- Factors considered in making the decision
|
|
291
|
+
- Resulting consequences (positive and negative)
|
|
292
|
+
- Future flexibility or limitations introduced" : ""}
|
|
293
|
+
|
|
294
|
+
### ${INCLUDES_DECISION_RECORDS ? "16" : INCLUDES_CODE_EXAMPLES ? "15" : "14"}. Architecture Governance
|
|
295
|
+
- Document how architectural consistency is maintained
|
|
296
|
+
- Identify automated checks for architectural compliance
|
|
297
|
+
- Note architectural review processes evident in the codebase
|
|
298
|
+
- Document architectural documentation practices
|
|
299
|
+
|
|
300
|
+
### ${INCLUDES_DECISION_RECORDS ? "17" : INCLUDES_CODE_EXAMPLES ? "16" : "15"}. Blueprint for New Development
|
|
301
|
+
Create a clear architectural guide for implementing new features:
|
|
302
|
+
|
|
303
|
+
- **Development Workflow**:
|
|
304
|
+
- Starting points for different feature types
|
|
305
|
+
- Component creation sequence
|
|
306
|
+
- Integration steps with existing architecture
|
|
307
|
+
- Testing approach by architectural layer
|
|
308
|
+
|
|
309
|
+
- **Implementation Templates**:
|
|
310
|
+
- Base class/interface templates for key architectural components
|
|
311
|
+
- Standard file organization for new components
|
|
312
|
+
- Dependency declaration patterns
|
|
313
|
+
- Documentation requirements
|
|
314
|
+
|
|
315
|
+
- **Common Pitfalls**:
|
|
316
|
+
- Architecture violations to avoid
|
|
317
|
+
- Common architectural mistakes
|
|
318
|
+
- Performance considerations
|
|
319
|
+
- Testing blind spots
|
|
320
|
+
|
|
321
|
+
Include information about when this blueprint was generated and recommendations for keeping it updated as the architecture evolves."
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: 'Prompt for creating the high-level technical architecture for an Epic, based on a Product Requirements Document.'
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Epic Architecture Specification Prompt
|
|
6
|
+
|
|
7
|
+
## Goal
|
|
8
|
+
|
|
9
|
+
Act as a Senior Software Architect. Your task is to take an Epic PRD and create a high-level technical architecture specification. This document will guide the development of the epic, outlining the major components, features, and technical enablers required.
|
|
10
|
+
|
|
11
|
+
## Context Considerations
|
|
12
|
+
|
|
13
|
+
- The Epic PRD from the Product Manager.
|
|
14
|
+
- **Domain-driven architecture** pattern for modular, scalable applications.
|
|
15
|
+
- **Self-hosted and SaaS deployment** requirements.
|
|
16
|
+
- **Docker containerization** for all services.
|
|
17
|
+
- **TypeScript/Next.js** stack with App Router.
|
|
18
|
+
- **Turborepo monorepo** patterns.
|
|
19
|
+
- **tRPC** for type-safe APIs.
|
|
20
|
+
- **Stack Auth** for authentication.
|
|
21
|
+
|
|
22
|
+
**Note:** Do NOT write code in output unless it's pseudocode for technical situations.
|
|
23
|
+
|
|
24
|
+
## Output Format
|
|
25
|
+
|
|
26
|
+
The output should be a complete Epic Architecture Specification in Markdown format, saved to `/docs/ways-of-work/plan/{epic-name}/arch.md`.
|
|
27
|
+
|
|
28
|
+
### Specification Structure
|
|
29
|
+
|
|
30
|
+
#### 1. Epic Architecture Overview
|
|
31
|
+
|
|
32
|
+
- A brief summary of the technical approach for the epic.
|
|
33
|
+
|
|
34
|
+
#### 2. System Architecture Diagram
|
|
35
|
+
|
|
36
|
+
Create a comprehensive Mermaid diagram that illustrates the complete system architecture for this epic. The diagram should include:
|
|
37
|
+
|
|
38
|
+
- **User Layer**: Show how different user types (web browsers, mobile apps, admin interfaces) interact with the system
|
|
39
|
+
- **Application Layer**: Depict load balancers, application instances, and authentication services (Stack Auth)
|
|
40
|
+
- **Service Layer**: Include tRPC APIs, background services, workflow engines (n8n), and any epic-specific services
|
|
41
|
+
- **Data Layer**: Show databases (PostgreSQL), vector databases (Qdrant), caching layers (Redis), and external API integrations
|
|
42
|
+
- **Infrastructure Layer**: Represent Docker containerization and deployment architecture
|
|
43
|
+
|
|
44
|
+
Use clear subgraphs to organize these layers, apply consistent color coding for different component types, and show the data flow between components. Include both synchronous request paths and asynchronous processing flows where relevant to the epic.
|
|
45
|
+
|
|
46
|
+
#### 3. High-Level Features & Technical Enablers
|
|
47
|
+
|
|
48
|
+
- A list of the high-level features to be built.
|
|
49
|
+
- A list of technical enablers (e.g., new services, libraries, infrastructure) required to support the features.
|
|
50
|
+
|
|
51
|
+
#### 4. Technology Stack
|
|
52
|
+
|
|
53
|
+
- A list of the key technologies, frameworks, and libraries to be used.
|
|
54
|
+
|
|
55
|
+
#### 5. Technical Value
|
|
56
|
+
|
|
57
|
+
- Estimate the technical value (e.g., High, Medium, Low) with a brief justification.
|
|
58
|
+
|
|
59
|
+
#### 6. T-Shirt Size Estimate
|
|
60
|
+
|
|
61
|
+
- Provide a high-level t-shirt size estimate for the epic (e.g., S, M, L, XL).
|
|
62
|
+
|
|
63
|
+
## Context Template
|
|
64
|
+
|
|
65
|
+
- **Epic PRD:** [The content of the Epic PRD markdown file]
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: 'Prompt for creating an Epic Product Requirements Document (PRD) for a new epic. This PRD will be used as input for generating a technical architecture specification.'
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Epic Product Requirements Document (PRD) Prompt
|
|
6
|
+
|
|
7
|
+
## Goal
|
|
8
|
+
|
|
9
|
+
Act as an expert Product Manager for a large-scale SaaS platform. Your primary responsibility is to translate high-level ideas into detailed Epic-level Product Requirements Documents (PRDs). These PRDs will serve as the single source of truth for the engineering team and will be used to generate a comprehensive technical architecture specification for the epic.
|
|
10
|
+
|
|
11
|
+
Review the user's request for a new epic and generate a thorough PRD. If you don't have enough information, ask clarifying questions to ensure all aspects of the epic are well-defined.
|
|
12
|
+
|
|
13
|
+
## Output Format
|
|
14
|
+
|
|
15
|
+
The output should be a complete Epic PRD in Markdown format, saved to `/docs/ways-of-work/plan/{epic-name}/epic.md`.
|
|
16
|
+
|
|
17
|
+
### PRD Structure
|
|
18
|
+
|
|
19
|
+
#### 1. Epic Name
|
|
20
|
+
|
|
21
|
+
- A clear, concise, and descriptive name for the epic.
|
|
22
|
+
|
|
23
|
+
#### 2. Goal
|
|
24
|
+
|
|
25
|
+
- **Problem:** Describe the user problem or business need this epic addresses (3-5 sentences).
|
|
26
|
+
- **Solution:** Explain how this epic solves the problem at a high level.
|
|
27
|
+
- **Impact:** What are the expected outcomes or metrics to be improved (e.g., user engagement, conversion rate, revenue)?
|
|
28
|
+
|
|
29
|
+
#### 3. User Personas
|
|
30
|
+
|
|
31
|
+
- Describe the target user(s) for this epic.
|
|
32
|
+
|
|
33
|
+
#### 4. High-Level User Journeys
|
|
34
|
+
|
|
35
|
+
- Describe the key user journeys and workflows enabled by this epic.
|
|
36
|
+
|
|
37
|
+
#### 5. Business Requirements
|
|
38
|
+
|
|
39
|
+
- **Functional Requirements:** A detailed, bulleted list of what the epic must deliver from a business perspective.
|
|
40
|
+
- **Non-Functional Requirements:** A bulleted list of constraints and quality attributes (e.g., performance, security, accessibility, data privacy).
|
|
41
|
+
|
|
42
|
+
#### 6. Success Metrics
|
|
43
|
+
|
|
44
|
+
- Key Performance Indicators (KPIs) to measure the success of the epic.
|
|
45
|
+
|
|
46
|
+
#### 7. Out of Scope
|
|
47
|
+
|
|
48
|
+
- Clearly list what is _not_ included in this epic to avoid scope creep.
|
|
49
|
+
|
|
50
|
+
#### 8. Business Value
|
|
51
|
+
|
|
52
|
+
- Estimate the business value (e.g., High, Medium, Low) with a brief justification.
|
|
53
|
+
|
|
54
|
+
## Context Template
|
|
55
|
+
|
|
56
|
+
- **Epic Idea:** [A high-level description of the epic from the user]
|
|
57
|
+
- **Target Users:** [Optional: Any initial thoughts on who this is for]
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: 'Prompt for creating detailed feature implementation plans, following Epoch monorepo structure.'
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Feature Implementation Plan Prompt
|
|
6
|
+
|
|
7
|
+
## Goal
|
|
8
|
+
|
|
9
|
+
Act as an industry-veteran software engineer responsible for crafting high-touch features for large-scale SaaS companies. Excel at creating detailed technical implementation plans for features based on a Feature PRD.
|
|
10
|
+
Review the provided context and output a thorough, comprehensive implementation plan.
|
|
11
|
+
**Note:** Do NOT write code in output unless it's pseudocode for technical situations.
|
|
12
|
+
|
|
13
|
+
## Output Format
|
|
14
|
+
|
|
15
|
+
The output should be a complete implementation plan in Markdown format, saved to `/docs/ways-of-work/plan/{epic-name}/{feature-name}/implementation-plan.md`.
|
|
16
|
+
|
|
17
|
+
### File System
|
|
18
|
+
|
|
19
|
+
Folder and file structure for both front-end and back-end repositories following Epoch's monorepo structure:
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
apps/
|
|
23
|
+
[app-name]/
|
|
24
|
+
services/
|
|
25
|
+
[service-name]/
|
|
26
|
+
packages/
|
|
27
|
+
[package-name]/
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Implementation Plan
|
|
31
|
+
|
|
32
|
+
For each feature:
|
|
33
|
+
|
|
34
|
+
#### Goal
|
|
35
|
+
|
|
36
|
+
Feature goal described (3-5 sentences)
|
|
37
|
+
|
|
38
|
+
#### Requirements
|
|
39
|
+
|
|
40
|
+
- Detailed feature requirements (bulleted list)
|
|
41
|
+
- Implementation plan specifics
|
|
42
|
+
|
|
43
|
+
#### Technical Considerations
|
|
44
|
+
|
|
45
|
+
##### System Architecture Overview
|
|
46
|
+
|
|
47
|
+
Create a comprehensive system architecture diagram using Mermaid that shows how this feature integrates into the overall system. The diagram should include:
|
|
48
|
+
|
|
49
|
+
- **Frontend Layer**: User interface components, state management, and client-side logic
|
|
50
|
+
- **API Layer**: tRPC endpoints, authentication middleware, input validation, and request routing
|
|
51
|
+
- **Business Logic Layer**: Service classes, business rules, workflow orchestration, and event handling
|
|
52
|
+
- **Data Layer**: Database interactions, caching mechanisms, and external API integrations
|
|
53
|
+
- **Infrastructure Layer**: Docker containers, background services, and deployment components
|
|
54
|
+
|
|
55
|
+
Use subgraphs to organize these layers clearly. Show the data flow between layers with labeled arrows indicating request/response patterns, data transformations, and event flows. Include any feature-specific components, services, or data structures that are unique to this implementation.
|
|
56
|
+
|
|
57
|
+
- **Technology Stack Selection**: Document choice rationale for each layer
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
- **Technology Stack Selection**: Document choice rationale for each layer
|
|
61
|
+
- **Integration Points**: Define clear boundaries and communication protocols
|
|
62
|
+
- **Deployment Architecture**: Docker containerization strategy
|
|
63
|
+
- **Scalability Considerations**: Horizontal and vertical scaling approaches
|
|
64
|
+
|
|
65
|
+
##### Database Schema Design
|
|
66
|
+
|
|
67
|
+
Create an entity-relationship diagram using Mermaid showing the feature's data model:
|
|
68
|
+
|
|
69
|
+
- **Table Specifications**: Detailed field definitions with types and constraints
|
|
70
|
+
- **Indexing Strategy**: Performance-critical indexes and their rationale
|
|
71
|
+
- **Foreign Key Relationships**: Data integrity and referential constraints
|
|
72
|
+
- **Database Migration Strategy**: Version control and deployment approach
|
|
73
|
+
|
|
74
|
+
##### API Design
|
|
75
|
+
|
|
76
|
+
- Endpoints with full specifications
|
|
77
|
+
- Request/response formats with TypeScript types
|
|
78
|
+
- Authentication and authorization with Stack Auth
|
|
79
|
+
- Error handling strategies and status codes
|
|
80
|
+
- Rate limiting and caching strategies
|
|
81
|
+
|
|
82
|
+
##### Frontend Architecture
|
|
83
|
+
|
|
84
|
+
###### Component Hierarchy Documentation
|
|
85
|
+
|
|
86
|
+
The component structure will leverage the `shadcn/ui` library for a consistent and accessible foundation.
|
|
87
|
+
|
|
88
|
+
**Layout Structure:**
|
|
89
|
+
|
|
90
|
+
```
|
|
91
|
+
Recipe Library Page
|
|
92
|
+
├── Header Section (shadcn: Card)
|
|
93
|
+
│ ├── Title (shadcn: Typography `h1`)
|
|
94
|
+
│ ├── Add Recipe Button (shadcn: Button with DropdownMenu)
|
|
95
|
+
│ │ ├── Manual Entry (DropdownMenuItem)
|
|
96
|
+
│ │ ├── Import from URL (DropdownMenuItem)
|
|
97
|
+
│ │ └── Import from PDF (DropdownMenuItem)
|
|
98
|
+
│ └── Search Input (shadcn: Input with icon)
|
|
99
|
+
├── Main Content Area (flex container)
|
|
100
|
+
│ ├── Filter Sidebar (aside)
|
|
101
|
+
│ │ ├── Filter Title (shadcn: Typography `h4`)
|
|
102
|
+
│ │ ├── Category Filters (shadcn: Checkbox group)
|
|
103
|
+
│ │ ├── Cuisine Filters (shadcn: Checkbox group)
|
|
104
|
+
│ │ └── Difficulty Filters (shadcn: RadioGroup)
|
|
105
|
+
│ └── Recipe Grid (main)
|
|
106
|
+
│ └── Recipe Card (shadcn: Card)
|
|
107
|
+
│ ├── Recipe Image (img)
|
|
108
|
+
│ ├── Recipe Title (shadcn: Typography `h3`)
|
|
109
|
+
│ ├── Recipe Tags (shadcn: Badge)
|
|
110
|
+
│ └── Quick Actions (shadcn: Button - View, Edit)
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
- **State Flow Diagram**: Component state management using Mermaid
|
|
114
|
+
- Reusable component library specifications
|
|
115
|
+
- State management patterns with Zustand/React Query
|
|
116
|
+
- TypeScript interfaces and types
|
|
117
|
+
|
|
118
|
+
##### Security Performance
|
|
119
|
+
|
|
120
|
+
- Authentication/authorization requirements
|
|
121
|
+
- Data validation and sanitization
|
|
122
|
+
- Performance optimization strategies
|
|
123
|
+
- Caching mechanisms
|
|
124
|
+
|
|
125
|
+
## Context Template
|
|
126
|
+
|
|
127
|
+
- **Feature PRD:** [The content of the Feature PRD markdown file]
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: 'Prompt for creating Product Requirements Documents (PRDs) for new features, based on an Epic.'
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Feature PRD Prompt
|
|
6
|
+
|
|
7
|
+
## Goal
|
|
8
|
+
|
|
9
|
+
Act as an expert Product Manager for a large-scale SaaS platform. Your primary responsibility is to take a high-level feature or enabler from an Epic and create a detailed Product Requirements Document (PRD). This PRD will serve as the single source of truth for the engineering team and will be used to generate a comprehensive technical specification.
|
|
10
|
+
|
|
11
|
+
Review the user's request for a new feature and the parent Epic, and generate a thorough PRD. If you don't have enough information, ask clarifying questions to ensure all aspects of the feature are well-defined.
|
|
12
|
+
|
|
13
|
+
## Output Format
|
|
14
|
+
|
|
15
|
+
The output should be a complete PRD in Markdown format, saved to `/docs/ways-of-work/plan/{epic-name}/{feature-name}/prd.md`.
|
|
16
|
+
|
|
17
|
+
### PRD Structure
|
|
18
|
+
|
|
19
|
+
#### 1. Feature Name
|
|
20
|
+
|
|
21
|
+
- A clear, concise, and descriptive name for the feature.
|
|
22
|
+
|
|
23
|
+
#### 2. Epic
|
|
24
|
+
|
|
25
|
+
- Link to the parent Epic PRD and Architecture documents.
|
|
26
|
+
|
|
27
|
+
#### 3. Goal
|
|
28
|
+
|
|
29
|
+
- **Problem:** Describe the user problem or business need this feature addresses (3-5 sentences).
|
|
30
|
+
- **Solution:** Explain how this feature solves the problem.
|
|
31
|
+
- **Impact:** What are the expected outcomes or metrics to be improved (e.g., user engagement, conversion rate, etc.)?
|
|
32
|
+
|
|
33
|
+
#### 4. User Personas
|
|
34
|
+
|
|
35
|
+
- Describe the target user(s) for this feature.
|
|
36
|
+
|
|
37
|
+
#### 5. User Stories
|
|
38
|
+
|
|
39
|
+
- Write user stories in the format: "As a `<user persona>`, I want to `<perform an action>` so that I can `<achieve a benefit>`."
|
|
40
|
+
- Cover the primary paths and edge cases.
|
|
41
|
+
|
|
42
|
+
#### 6. Requirements
|
|
43
|
+
|
|
44
|
+
- **Functional Requirements:** A detailed, bulleted list of what the system must do. Be specific and unambiguous.
|
|
45
|
+
- **Non-Functional Requirements:** A bulleted list of constraints and quality attributes (e.g., performance, security, accessibility, data privacy).
|
|
46
|
+
|
|
47
|
+
#### 7. Acceptance Criteria
|
|
48
|
+
|
|
49
|
+
- For each user story or major requirement, provide a set of acceptance criteria.
|
|
50
|
+
- Use a clear format, such as a checklist or Given/When/Then. This will be used to validate that the feature is complete and correct.
|
|
51
|
+
|
|
52
|
+
#### 8. Out of Scope
|
|
53
|
+
|
|
54
|
+
- Clearly list what is _not_ included in this feature to avoid scope creep.
|
|
55
|
+
|
|
56
|
+
## Context Template
|
|
57
|
+
|
|
58
|
+
- **Epic:** [Link to the parent Epic documents]
|
|
59
|
+
- **Feature Idea:** [A high-level description of the feature request from the user]
|
|
60
|
+
- **Target Users:** [Optional: Any initial thoughts on who this is for]
|