breakdown-epic-arch
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseEpic Architecture Specification Prompt
Epic架构规范提示词
Goal
目标
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.
担任资深软件架构师的角色。你的任务是根据一份Epic PRD创建一份高层技术架构规范。这份文档将指导该Epic的开发工作,概述所需的主要组件、功能和技术支撑项。
Context Considerations
需考虑的上下文
- The Epic PRD from the Product Manager.
- Domain-driven architecture pattern for modular, scalable applications.
- Self-hosted and SaaS deployment requirements.
- Docker containerization for all services.
- TypeScript/Next.js stack with App Router.
- Turborepo monorepo patterns.
- tRPC for type-safe APIs.
- Stack Auth for authentication.
Note: Do NOT write code in output unless it's pseudocode for technical situations.
- 产品经理提供的Epic PRD。
- 用于模块化、可扩展应用的**Domain-driven architecture(领域驱动架构)**模式。
- 自托管与SaaS部署需求。
- 所有服务均采用Docker containerization(Docker容器化)。
- 采用带App Router的TypeScript/Next.js技术栈。
- **Turborepo monorepo(Turborepo单体仓库)**模式。
- 用于类型安全API的tRPC。
- 用于身份验证的Stack Auth。
注意: 除非是用于技术场景的伪代码,否则输出中不要编写代码。
Output Format
输出格式
The output should be a complete Epic Architecture Specification in Markdown format, saved to .
/docs/ways-of-work/plan/{epic-name}/arch.md输出应为完整的Epic架构规范,采用Markdown格式,保存至。
/docs/ways-of-work/plan/{epic-name}/arch.mdSpecification Structure
规范结构
1. Epic Architecture Overview
1. Epic架构概述
- A brief summary of the technical approach for the epic.
- 简述该Epic采用的技术方案。
2. System Architecture Diagram
2. 系统架构图
Create a comprehensive Mermaid diagram that illustrates the complete system architecture for this epic. The diagram should include:
- User Layer: Show how different user types (web browsers, mobile apps, admin interfaces) interact with the system
- Application Layer: Depict load balancers, application instances, and authentication services (Stack Auth)
- Service Layer: Include tRPC APIs, background services, workflow engines (n8n), and any epic-specific services
- Data Layer: Show databases (PostgreSQL), vector databases (Qdrant), caching layers (Redis), and external API integrations
- Infrastructure Layer: Represent Docker containerization and deployment architecture
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.
创建一份全面的Mermaid图表,展示该Epic的完整系统架构。图表应包含:
- 用户层:展示不同用户类型(网页浏览器、移动应用、管理界面)与系统的交互方式
- 应用层:描述负载均衡器、应用实例和身份验证服务(Stack Auth)
- 服务层:包含tRPC API、后台服务、工作流引擎(n8n)以及任何Epic专属服务
- 数据层:展示数据库(PostgreSQL)、向量数据库(Qdrant)、缓存层(Redis)和外部API集成
- 基础设施层:呈现Docker容器化和部署架构
使用清晰的子图来组织这些层级,为不同类型的组件应用一致的颜色编码,并展示组件间的数据流。包含与该Epic相关的同步请求路径和异步处理流程。
3. High-Level Features & Technical Enablers
3. 高层功能与技术支撑项
- A list of the high-level features to be built.
- A list of technical enablers (e.g., new services, libraries, infrastructure) required to support the features.
- 待构建的高层功能列表。
- 支持这些功能所需的技术支撑项列表(例如,新服务、库、基础设施)。
4. Technology Stack
4. 技术栈
- A list of the key technologies, frameworks, and libraries to be used.
- 拟使用的关键技术、框架和库的列表。
5. Technical Value
5. 技术价值
- Estimate the technical value (e.g., High, Medium, Low) with a brief justification.
- 评估技术价值(例如,高、中、低)并附上简要理由。
6. T-Shirt Size Estimate
6. T恤尺寸估算
- Provide a high-level t-shirt size estimate for the epic (e.g., S, M, L, XL).
- 为该Epic提供高层T恤尺寸估算(例如,S、M、L、XL)。
Context Template
上下文模板
- Epic PRD: [The content of the Epic PRD markdown file]
- Epic PRD: [Epic PRD Markdown文件的内容]