Loading...
Loading...
Compare original and translation side by side
Auto-Load Trigger: Presence ofornext.config.*in"next"package.json
自动加载触发条件: 存在或next.config.*中包含package.json"next"
/agent_reset/vibe-primeAgent/agent_reset/vibe-primeAgentnpx tsc --noEmitnpx tsc --noEmitpython scripts/vibe-verify.pypython scripts/vibe-verify.pydocs/features/docs/features/FeatureName.mddocs/features/docs/features/FeatureName.mddocs/issues/tsc --noEmitdocs/issues/tsc --noEmitvibe-verify.pyvibe-verify.py'use client'useEffectapp/api/.../route.ts{ cache: 'no-store' }revalidate = N'use client'useEffectapp/api/.../route.ts{ cache: 'no-store' }revalidate = Nsrc/
├── app/ # Next.js App Router pages
├── features/ # Business domains
│ └── [FeatureName]/
│ ├── components/ # Feature-specific components
│ ├── hooks/ # Feature-specific hooks
│ └── *.service.ts # Business logic
├── components/
│ ├── ui/ # Reusable UI (Button, Card)
│ └── layout/ # Layout components
├── lib/ # Utilities, clients
└── scripts/ # Automation (vibe-verify.py)src/
├── app/ # Next.js App Router 页面
├── features/ # 业务领域
│ └── [FeatureName]/
│ ├── components/ # 功能专属组件
│ ├── hooks/ # 功能专属hooks
│ └── *.service.ts # 业务逻辑
├── components/
│ ├── ui/ # 可复用UI组件(按钮、卡片等)
│ └── layout/ # 布局组件
├── lib/ # 工具类、客户端
└── scripts/ # 自动化脚本(vibe-verify.py)use*use*Why Tailwind for AI Reliability: Tailwind colocates styles with UI in a single file. Unlike separatefiles, AI agents see the complete context (logic + styles + structure) without jumping between files. This dramatically reduces hallucinations and context fragmentation..css
@import "tailwindcss";
@theme {
--color-background: #ffffff;
--color-foreground: #0b1221;
--color-border: #e5e7eb;
}
@theme .dark {
--color-background: #0b1221;
--color-foreground: #e5e7eb;
}@themetailwind.config.dark<html>为何选择Tailwind保障AI可靠性: Tailwind将样式与UI代码放在同一文件中。与单独的文件不同,AI Agent无需在文件间切换即可查看完整上下文(逻辑+样式+结构),大幅减少幻觉和上下文碎片化问题。.css
@import "tailwindcss";
@theme {
--color-background: #ffffff;
--color-foreground: #0b1221;
--color-border: #e5e7eb;
}
@theme .dark {
--color-background: #0b1221;
--color-foreground: #e5e7eb;
}@themetailwind.config<html>.darkimport { z } from 'zod';
const schema = z.object({
email: z.string().email(),
password: z.string().min(8),
});import { z } from 'zod';
const schema = z.object({
email: z.string().email(),
password: z.string().min(8),
});templates/docs/Coding_Guidelines.mdtemplates/docs/Coding_Guidelines.md| Command | When |
|---|---|
| After every TS/TSX edit |
| Before handoff |
| Check code style |
| Verify production build |
| 命令 | 使用时机 |
|---|---|
| 每次编辑TS/TSX文件后 |
| 交付前 |
| 检查代码风格 |
| 验证生产构建 |
git status # See changed files
git diff # See what changed
git checkout -- <file> # Revert specific file
git stash # Save and revert allgit status # 查看已修改文件
git diff # 查看具体变更内容
git checkout -- <file> # 还原指定文件
git stash # 保存并还原所有变更