Files
nexus/wiki/concepts/Design-to-Code-Workflow.md
2026-04-22 12:02:55 +08:00

40 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "Design-to-Code Workflow"
type: concept
tags: []
last_updated: 2025-12-30
---
## Definition
Design-to-Code Workflow设计到代码工作流是一种递进式 AI 辅助开发方法,通过从高层次的抽象描述逐步细化为可执行代码,实现人机协作的编程实践。
## Core Principles
### 三阶段递进
1. **设计文档**:详细描述需求和架构
2. **伪代码**Service 层具体逻辑用伪代码写明
3. **代码**AI 根据伪代码直接生成可执行代码
### 工作流程
```
需求文档 → 伪代码(含Service层逻辑) → AI直出代码 → 另一AI review → 跑测试用例 → AI自动commit+push
```
## Key Benefits
- **减少迭代次数**:详细伪代码使 AI 一次直出成为可能
- **质量保证**:双 AI 协作(生成+review确保代码质量
- **可追溯**:设计文档保留了完整的决策过程
- **降低认知负担**:开发者无需记忆所有实现细节
## Related Concepts
- [[Vibe Coding]]:整体方法论背景
- [[Multi-AI Review]]:双人编程模式
- [[Verification-First Engineering]]:验证优先原则
## Sources
- [[vibe-coding经验收集]]