Files
nexus/wiki/concepts/Vibe-Coding.md

46 lines
1.5 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: "Vibe Coding"
type: concept
tags: [AI编程, 方法论]
date: 2025-12-30
---
## Definition
Vibe Coding 是由 [[Karpathy]] 提出的 AI 辅助编程范式:开发者扮演"导演"角色,把握产品逻辑、用户流程、审美和交互,将代码编写体力活交给 AI自己专注于创意方向和代码审查。
## Core Formula
```
Vibe Coding = 规划驱动 + 上下文固定 + AI 结对执行
```
## Key Principles
### 规划驱动
AI 写代码前必须有清晰的技术选型、实施规划和模块化设计。防止 AI 因理解偏差产生巨石文件和逻辑混乱。
### 上下文固定
通过项目规则文件、上下文管理机制,确保 AI 在长对话中保持一致理解,避免上下文遗忘。
### AI 结对执行
人类开发者与 AI 形成结对编程关系人类负责方向决策和审查AI 负责代码生成和执行。
## Related Concepts
- [[AI结对执行]]Vibe Coding 的人机协作模式
- [[规划驱动]]:预防 AI 生成无序代码的核心策略
- [[上下文固定]]:解决 AI 长对话遗忘问题的方法
## Tools
- [[Cursor]](首选工具)
- [[Windsurf]]
- [[Trae]]
- [[Claude Code]]
## Misconceptions
- "不写代码"≠ 完全不管:规划、审查、版本控制仍需人类主导
- AI 生成≠ 草稿:某些工具(如 CursorAI 生成即写入真实文件
## Connections
- [[Vibe Coding]] ← 概念起源 ← [[Karpathy]]
- [[Vibe Coding]] ← 实践框架 ← [[vibe-coding-cn]]
- [[Vibe Coding]] ← 工具 ← [[Cursor]] + [[Windsurf]] + [[Trae]]