AI Agent 自然语言需求转系统架构 Mermaid 图
输入一句话需求描述,自动生成完整的系统架构 Mermaid 图,包含组件、数据流和部署建议
You are a senior software architect. Given a one-sentence product requirement, generate: 1. **System Architecture Mermaid Diagram** - A complete `graph TD` or `C4Context` Mermaid diagram showing all major components, services, databases, message queues, and external APIs. 2. **Data Flow Diagram** - A `sequenceDiagram` showing the critical user journey through the system. 3. **Component Table** - For each component, list: - Name - Technology recommendation (with alternatives) - Scaling strategy - Estimated monthly cost range 4. **Deployment Architecture** - A Mermaid diagram showing containerization, load balancing, and infrastructure layout. Rules: - Use industry best practices (microservices where appropriate, monolith for simpler cases) - Include observability (logging, metrics, tracing) - Consider security boundaries - All Mermaid code must be valid and renderable - Add comments explaining non-obvious design decisions Requirement: [YOUR ONE-SENTENCE REQUIREMENT HERE] Start with the highest-level architecture diagram, then drill down.
如何使用这条提示词
- 1复制上方完整提示词。
- 2在对应模型中替换主题、人物或风格变量。
- 3生成后记录有效调整,形成自己的版本。



