system-design
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSystem Design
系统设计
Generate comprehensive Technical Architecture Documents with modular design for startups.
生成针对创业公司优化的模块化设计的全面技术架构文档。
Design Principles
设计原则
- Modularity: Separated concerns for independent testing and development
- Simplicity: Minimal complexity appropriate for startup resources
- Scalability: Designed to grow with user base
- Cost-effectiveness: Optimized for startup budget
- 模块化:关注点分离,支持独立测试与开发
- 简洁性:复杂度最低化,适配创业公司资源
- 可扩展性:可随用户规模增长而扩展
- 成本效益:针对创业公司预算优化
Input
输入
Project folder path in containing:
$ARGUMENTS- - Product requirements (required)
prd.md - ,
idea.md- Additional context (optional)validate.md
$ARGUMENTS- - 产品需求文档(必填)
prd.md - 、
idea.md- 额外上下文(可选)validate.md
Workflow
工作流程
Phase 1: Setup & Validation
阶段1:设置与验证
- Verify exists
prd.md - Read supporting docs if present
- Read references/tech-stack.md for technology recommendations
- Backup existing if present
tad.md
- 验证是否存在
prd.md - 若存在则读取支持文档
- 读取references/tech-stack.md获取技术建议
- 若存在现有则备份
tad.md
Phase 2: Extract Context
阶段2:提取上下文
From PRD extract:
- Product name and vision
- Core features and requirements
- User flows
- Non-functional requirements
- Third-party integrations
- Analytics requirements
从PRD中提取:
- 产品名称与愿景
- 核心功能与需求
- 用户流程
- 非功能性需求
- 第三方集成
- 分析需求
Phase 3: Clarify Architecture
阶段3:明确架构
Ask user (if not clear):
| Decision | Options |
|---|---|
| Deployment | Vercel/Netlify (recommended), AWS, GCP, Self-hosted |
| Database | PostgreSQL, MongoDB, Supabase/Firebase, Multiple |
| Auth | Social (OAuth), Email/password, Magic links, Enterprise SSO |
| Budget | Free tier, <$50/mo, <$200/mo, Flexible |
若信息不明确,询问用户:
| 决策项 | 选项 |
|---|---|
| 部署 | Vercel/Netlify(推荐)、AWS、GCP、自托管 |
| 数据库 | PostgreSQL、MongoDB、Supabase/Firebase、多数据库 |
| 认证 | 社交登录(OAuth)、邮箱/密码、魔法链接、企业SSO |
| 预算 | 免费层级、<$50/月、<$200/月、灵活预算 |
Phase 4: Research & Validation
阶段4:研究与验证
Conduct 5 research rounds:
- Technology Stack: Validate choices against industry standards
- Infrastructure: Compare hosting for cost and scalability
- Security: Review OWASP guidelines for chosen stack
- Risk Assessment: Identify bottlenecks, vendor lock-in
- Holistic Review: Ensure PRD alignment and startup feasibility
开展5轮研究:
- 技术栈:验证技术选择是否符合行业标准
- 基础设施:对比托管方案的成本与可扩展性
- 安全:针对所选技术栈审查OWASP指南
- 风险评估:识别瓶颈、供应商锁定等风险
- 全面审查:确保与PRD对齐且适配创业公司可行性
Phase 5: Generate TAD
阶段5:生成TAD
Create with sections:
tad.md- System Overview - Purpose, scope, PRD alignment
- Architecture Diagram - Mermaid diagrams for system and flows
- Technology Stack - Frontend, backend, database, infrastructure, DevOps
- System Components - Modular design with interfaces and dependencies
- Data Architecture - Schema, models, flows, storage
- Infrastructure - Hosting, environments, scaling, CI/CD, monitoring
- Security - Auth, authorization, data protection, API security
- Performance - Targets, optimization strategies, caching
- Development - Environment setup, project structure, testing, deployment
- Risks - Risk matrix with mitigations
- Appendix - Research insights, alternatives, costs, glossary
See references/tad-template.md for full template structure.
创建包含以下章节的:
tad.md- 系统概述 - 目的、范围、与PRD的对齐情况
- 架构图 - 系统与流程的Mermaid图表
- 技术栈 - 前端、后端、数据库、基础设施、DevOps
- 系统组件 - 模块化设计及接口与依赖关系
- 数据架构 - schema、模型、流程、存储
- 基础设施 - 托管、环境、扩展、CI/CD、监控
- 安全 - 认证、授权、数据保护、API安全
- 性能 - 目标、优化策略、缓存
- 开发 - 环境搭建、项目结构、测试、部署
- 风险 - 含缓解措施的风险矩阵
- 附录 - 研究见解、替代方案、成本估算、术语表
查看references/tad-template.md获取完整模板结构。
Phase 6: Output
阶段6:输出
- Write to project folder
tad.md - Summarize architecture decisions
- Highlight modular design benefits
- List cost estimates by phase
- Suggest next steps (setup dev environment, create tasks)
- 将写入项目文件夹
tad.md - 总结架构决策
- 强调模块化设计的优势
- 按阶段列出成本估算
- 建议后续步骤(搭建开发环境、创建任务)
Modification Mode
修改模式
For existing TAD changes:
- Create timestamped backup
- Ask what to modify (stack, infrastructure, security, data, scaling)
- Apply changes preserving structure
- Update revision history
针对现有TAD的修改:
- 创建带时间戳的备份
- 询问需修改的内容(技术栈、基础设施、安全、数据、扩展)
- 保留结构的前提下应用修改
- 更新修订历史
Guidelines
指南
- Practical: Implementable solutions for startups
- Cost-conscious: Consider budget implications
- Modular: Emphasize separation of concerns
- Specific: Concrete technology choices
- Visual: Include mermaid diagrams
- 实用性:为创业公司提供可落地的解决方案
- 成本敏感:考虑预算影响
- 模块化:强调关注点分离
- 具体性:给出明确的技术选择
- 可视化:包含Mermaid图表