29 lines
719 B
Plaintext
29 lines
719 B
Plaintext
|
|
# v0 Code Generation Rules - Claude Opus
|
||
|
|
|
||
|
|
## Model Selection
|
||
|
|
- Production components: claude-opus (默认)
|
||
|
|
- Rapid prototyping: v0-1.5-turbo
|
||
|
|
- Code review: claude-3.5-sonnet
|
||
|
|
|
||
|
|
## Code Standards
|
||
|
|
- Framework: Next.js App Router
|
||
|
|
- Styling: Tailwind CSS v4
|
||
|
|
- Components: shadcn/ui
|
||
|
|
- No placeholders
|
||
|
|
- Production-ready only
|
||
|
|
|
||
|
|
## Design System
|
||
|
|
- Use design tokens from globals.css
|
||
|
|
- Follow color system (3-5 colors max)
|
||
|
|
- Max 2 font families
|
||
|
|
- Mobile-first approach
|
||
|
|
- 所有页面组件保持一致性
|
||
|
|
- 使用现有导航系统
|
||
|
|
- 遵循毛玻璃设计风格
|
||
|
|
- 精简文字,增加流程图
|
||
|
|
|
||
|
|
## v0 Usage
|
||
|
|
- 使用 @v0 前缀调用v0生成代码
|
||
|
|
- 默认使用 claude-opus 模型
|
||
|
|
- 生成前先说明需求,确保理解正确
|