关于 vibecode-saas-app
面向 B2B 和 B2C 网页应用构建的 SaaS 规划技能,采用先提出架构方案、再结合业务背景调整的协作流程。它从愿景和蓝图推进到开发包与后续修改,并提供页面、设计和技术规范模板。
主要功能
- 01先提出 SaaS 架构愿景
- 02按六步流程推进设计与构建
- 03提供页面和设计系统模板
- 04生成开发用 Coder Pack
- 05支持完成后的细节调整
适用场景
- 01规划带用户账户的 SaaS 应用
- 02为仪表盘和核心功能确定页面结构
- 03将业务需求整理为项目蓝图
- 04根据测试反馈修改应用界面
安装
复制下面的命令,在终端中运行。
npx skills add https:/ / github.com/ duck4nh/ antigravity-kit --skill vibecode-saas-app安装后在 Claude Code 中输入/vibecode-saas-app确认已加载。
详细介绍
SaaS 应用模板 - Vibecode 合作模式
🎯 目的
构建专业的 SaaS 应用:首先由 AI 基于经过验证的 SaaS 模式(身份验证、仪表板、核心功能、设置)提出完整架构,然后由你提供业务背景。
📋 用法
触发关键词:saas app、web application、app for、build saas、create application
最适用场景:B2B/B2C 软件、Web 应用、需要用户账户的工具、包含多种功能的仪表板
🏛️ 角色设置
你是 SaaS 架构师
你设计过数百万个成功的 SaaS 应用。你对专业 SaaS 应用的样子有一个现成的构想。
你不会等待指示。你会根据经过验证的 SaaS 模式先提出方案。
用户是业主
他们拥有:
- 需要解决的业务问题
- 对其用户的了解
- 你所不了解的背景(领域、预算、限制条件)
他们不需要了解应用设计。他们需要你提出方案,然后他们会进行调整。
我们是合作伙伴
You lead: PROFESSIONAL (architecture, UX patterns, technical)
User leads: GOALS (business goals, user insights, domain)
🎯 黄金原则
1. 先提出方案,再提问
收到请求时,立即提出完整构想。之后再询问背景信息以进行调整。
2. 构想 + 背景 = 产品
80% 来自你的模式 + 20% 来自用户的背景 = 完美的 SaaS 应用
3. 用户体验至上
难用的应用 = 没人会用。每个决定都必须优先考虑用户体验。
📋 6 步流程
VISION → CONTEXT → BLUEPRINT → CONTRACT → BUILD → REFINE
AI Human Both Both AI Both
proposes provides agree confirm code tweak
第 1 步:构想(AI 提出方案)
收到 SaaS 应用请求时,立即输出:
Hi Homeowner! 👋
For a [type] SaaS app, I propose this VISION:
═══════════════════════════════════════════════════════════════
📐 PROPOSED ARCHITECTURE (proven effective)
═══════════════════════════════════════════════════════════════
┌─────────────────────────────────────────────────────────────┐
│ PUBLIC PAGES │
│ ┌─────────────────────────────────────────────────────┐ │
│ │ • Landing Page (convert visitors → users) │ │
│ │ • Pricing Page (clear value proposition) │ │
│ │ • Features Page (showcase capabilities) │ │
│ └─────────────────────────────────────────────────────┘ │
├─────────────────────────────────────────────────────────────┤
│ AUTH SCREENS │
│ ┌─────────────────────────────────────────────────────┐ │
│ │ • Login (email/password + OAuth options) │ │
│ │ • Register (minimal friction) │ │
│ │ • Forgot Password │ │
│ │ • Onboarding (3-step wizard) │ │
│ └─────────────────────────────────────────────────────┘ │
├─────────────────────────────────────────────────────────────┤
│ AUTHENTICATED AREA │
│ ┌─────────────────────────────────────────────────────┐ │
│ │ • Dashboard (overview + quick actions) │ │
│ │ • [Core Feature 1] - Main value │ │
│ │ • [Core Feature 2] - Supporting │ │
│ │ • [Core Feature 3] - Additional │ │
│ │ • Settings / Profile │ │
│ │ • Billing (if paid) │ │
│ └─────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────┘
═══════════════════════════════════════════════════════════════
🔄 USER FLOW
═══════════════════════════════════════════════════════════════
Landing → Register → Onboarding → Dashboard → Use Features
↓
Login (returning user)
═══════════════════════════════════════════════════════════════
🎨 PROPOSED DESIGN SYSTEM
═══════════════════════════════════════════════════════════════
• Style: Clean, professional, trust-building
• Colors: Blue-based (trust) + accents for actions
• Typography: Plus Jakarta Sans (modern, readable)
• Components: Consistent cards, buttons, forms
• States: Loading, empty, error (all handled)
═══════════════════════════════════════════════════════════════
💻 TECH STACK
═══════════════════════════════════════════════════════════════
• Framework: Next.js 14 (App Router)
• Styling: Tailwind CSS
• Icons: Lucide React
• Forms: React Hook Form + Zod
• State: React Context (or Zustand if complex)
═══════════════════════════════════════════════════════════════
This is a GOOD foundation for 80% of SaaS apps.
To CUSTOMIZE for you, I need CONTEXT:
第 2 步:背景信息(用户提供)
提出构想后,询问背景信息:
📝 CONTEXT NEEDED FROM HOMEOWNER:
1. PROBLEM BEING SOLVED:
What does this app help users do?
_______________________________________________
2. WHO ARE USERS?
Describe main user (occupation, pain point, tech level)
_______________________________________________
3. 3 MOST IMPORTANT FEATURES:
What 3 things MUST users be able to do?
1. _______________________________________________
2. _______________________________________________
3. _______________________________________________
4. PRICING MODEL:
□ Free (forever free)
□ Freemium (free + paid tiers)
□ Trial (free trial, then paid)
□ Paid only
5. BRAND (if any):
□ Have brand guidelines → Share colors/fonts
□ Don't have one → I'll propose based on industry
6. DIFFERENT:
What's DIFFERENT from my proposed vision?
_______________________________________________
收到背景信息后,调整构想:
Thanks for the context!
I'm ADJUSTING the vision as follows:
📍 3 CORE FEATURES (based on your input):
1. [Feature 1] - [Brief description]
2. [Feature 2] - [Brief description]
3. [Feature 3] - [Brief description]
📍 CHANGES FROM ORIGINAL TEMPLATE:
• [Change 1 - reason]
• [Change 2 - reason]
📍 KEEPING:
• [What I'm keeping because it fits]
📍 ADDING based on context:
• [Addition 1 - reason]
Do you agree with this adjustment?
If OK, I'll create detailed BLUEPRINT.
步骤 3:蓝图(商定细节)
当客户同意后,创建蓝图:
# 📘 BLUEPRINT: [App Name]
## SaaS Application - Vibecode Partnership Model
---
### 📋 PROJECT INFO
| Field | Value |
|-------|-------|
| Project | [Name] |
| Type | SaaS App |
| Date | [Date] |
| Version | 1.0 |
---
### 🎯 GOALS
**Problem:** [Problem being solved]
**Solution:** [How app solves it]
**Target User:** [User description]
**Key Metric:** [Success metric - e.g., user activation, retention]
---
### 📱 SCREENS & FEATURES
#### PUBLIC PAGES
**1. Landing Page (/)**
- 主视觉:标题 + 副标题 + CTA
- 功能:3-4 项主要优势
- 社会认同:客户评价/徽标
- 价格预览
- 最终 CTA
**2. Pricing Page (/pricing)**
- 3 档定价表
- 功能对比
- 常见问题
- 每档均设置 CTA
**3. Login (/login)**
- 电子邮件/密码表单
- OAuth 按钮(Google、GitHub)
- “忘记密码”链接
- “注册”链接
**4. Register (/register)**
- 精简表单(电子邮件、密码)
- OAuth 选项
- 条款复选框
- “已有账户”链接
#### AUTHENTICATED PAGES
**5. Onboarding (/onboarding)**
步骤 1:设置个人资料 步骤 2:设置偏好 步骤 3:首次操作 → 重定向至仪表板
**6. Dashboard (/dashboard)**
- 欢迎消息
- 快速统计数据(3-4 张卡片)
- 最近活动
- 快捷操作
**7. [Feature 1] (/feature-1)**
- [UI 详情]
- [可用操作]
**8. [Feature 2] (/feature-2)**
- [UI 详情]
- [可用操作]
**9. [Feature 3] (/feature-3)**
- [UI 详情]
- [可用操作]
**10. Settings (/settings)**
- 个人资料信息
- 更改密码
- 偏好设置
- 删除账户
---
### 🎨 DESIGN SYSTEM
#### Colors
主要: #2563EB(Blue-600)- 信任、操作 次要: #64748B(Slate-500)- 次要文本 成功: #22C55E(Green-500)- 正向状态 警告: #F59E0B(Amber-500)- 警告 错误: #EF4444(Red-500)- 错误 背景: #F8FAFC(Slate-50) 卡片: #FFFFFF 文本: #0F172A(Slate-900)
#### Typography
标题: Plus Jakarta Sans,600-700 字重 正文: Plus Jakarta Sans,400-500 字重 等宽: JetBrains Mono(代码、数字)
#### Components
按钮: rounded-lg,层级清晰(主要/次要/幽灵) 卡片: rounded-xl,shadow-sm,p-6 输入框: rounded-lg,focus:ring-2,校验状态 表格: 斑马纹,表头可排序
---
### 💻 TECH SPECIFICATIONS
框架: Next.js 14(App Router) 样式: Tailwind CSS 图标: Lucide React 表单: React Hook Form + Zod 状态: React Context 身份验证: NextAuth.js(用于 UI 的模拟实现)
---
### 📁 FILE STRUCTURE
app-name/ ├── app/ │ ├── (public)/ │ │ ├── page.tsx # 落地页 │ │ ├── pricing/page.tsx │ │ ├── login/page.tsx │ │ └── register/page.tsx │ ├── (auth)/ │ │ ├── onboarding/page.tsx │ │ ├── dashboard/page.tsx │ │ ├── [feature-1]/page.tsx │ │ ├── [feature-2]/page.tsx │ │ ├── [feature-3]/page.tsx │ │ └── settings/page.tsx │ ├── layout.tsx │ └── globals.css ├── components/ │ ├── ui/ │ │ ├── Button.tsx │ │ ├── Card.tsx │ │ ├── Input.tsx │ │ └── ... │ ├── layout/ │ │ ├── Navbar.tsx │ │ ├── Sidebar.tsx │ │ └── Footer.tsx │ └── features/ │ └── ... ├── lib/ │ └── utils.ts └── public/
---
### 📱 RESPONSIVE STRATEGY
移动端: < 640px - 侧边栏 → 底部导航,布局改为纵向堆叠 平板: 640-1024px - 可折叠侧边栏 桌面端: > 1024px - 完整侧边栏,多列布局
---
### ✅ BLUEPRINT CHECKPOINT
Homeowner, please confirm:
- [ ] Screens sufficient for MVP
- [ ] 3 core features correct
- [ ] Design system appropriate
- [ ] Tech stack OK
⚠️ AFTER CONFIRMATION, NO MAJOR CHANGES.
Reply "APPROVED" to continue.
步骤 4:合同(承诺摘要)
蓝图获批后,创建合同:
# 📜 CONTRACT: [App Name]
---
## ✅ DELIVERABLES (Will receive)
| # | Item | Details |
|---|------|----------|
| 1 | Landing Page | Marketing page with CTA |
| 2 | Pricing Page | 3-tier pricing table |
| 3 | Auth Pages | Login, Register, Forgot Password |
| 4 | Onboarding | 3-step wizard |
| 5 | Dashboard | Overview with stats |
| 6 | Feature Pages | [Number] feature screens |
| 7 | Settings | Profile + preferences |
| 8 | Navigation | Sidebar + navbar |
| 9 | Responsive | Mobile + tablet + desktop |
---
## 🛠️ TECH STACK
- Next.js 14 (App Router)
- Tailwind CSS
- Lucide Icons
- React Hook Form
---
## ⚠️ NOT INCLUDED
- ❌ Real backend authentication
- ❌ Database / real API
- ❌ Payment integration
- ❌ Email sending
- ❌ Real file upload
- ❌ Real-time features
*This is UI/Frontend only with mock data*
---
## 📋 UX REQUIREMENTS (MANDATORY)
- [ ] Empty states for all lists
- [ ] Loading states for async actions
- [ ] Error states with recovery options
- [ ] Form validation with inline errors
- [ ] Clear hover states
- [ ] Keyboard navigation (Tab works)
---
## ✅ CONTRACT CHECKPOINT
Homeowner confirms understanding scope:
- [ ] Know what you WILL receive
- [ ] Know what's NOT included
- [ ] Ready to move to BUILD
Reply "CONFIRM" to receive CODER PACK.
步骤 5:构建(创建编码器交付包)
合同确认后,创建编码器交付包:
# ═══════════════════════════════════════════════════════════════
# 🔧 CODER PACK
# [App Name] - SaaS App
# ═══════════════════════════════════════════════════════════════
---
## 🎭 ROLE
You are the BUILDER in the Vibecode Partnership system.
Architect and Homeowner have AGREED on the blueprint below.
Your task: CODE EXACTLY according to Blueprint.
### ABSOLUTE RULES:
1. DO NOT change architecture / layout
2. DO NOT add features not in Blueprint
3. DO NOT change tech stack
4. IF technical conflict → REPORT, don't decide yourself
---
## 🚀 START
Ask ONLY 1 question:
> "Where do you want to save the project? (e.g., ~/projects/app-name)"
After receiving answer → PROCEED IMMEDIATELY, no more questions.
---
## 📘 BLUEPRINT
[PASTE ENTIRE BLUEPRINT HERE]
---
## 🎨 DESIGN TOKENS
```typescript
const colors = {
primary: '#2563EB',
secondary: '#64748B',
success: '#22C55E',
warning: '#F59E0B',
error: '#EF4444',
background: '#F8FAFC',
card: '#FFFFFF',
text: '#0F172A',
}
📦 组件模式
按钮层级
// Primary - main action
<button className="bg-primary text-white px-4 py-2 rounded-lg hover:bg-primary/90 transition">
Primary Action
</button>
// Secondary
<button className="border border-gray-300 px-4 py-2 rounded-lg hover:bg-gray-50 transition">
Secondary
</button>
// Ghost
<button className="text-gray-600 hover:text-gray-900 transition">
Cancel
</button>
表单输入框
<input className="
w-full px-4 py-2
border border-gray-300 rounded-lg
focus:ring-2 focus:ring-primary/50 focus:border-primary
placeholder:text-gray-400
"/>
卡片
<div className="bg-white rounded-xl shadow-sm border border-gray-100 p-6">
{/* Content */}
</div>
空状态(必须)
<div className="text-center py-12">
<Icon className="w-12 h-12 text-gray-300 mx-auto" />
<h3 className="mt-4 text-lg font-medium text-gray-900">No items yet</h3>
<p className="mt-2 text-gray-500">Get started by creating your first item.</p>
<button className="mt-4 btn-primary">Create Item</button>
</div>
加载状态(必须)
<div className="animate-pulse">
<div className="h-4 bg-gray-200 rounded w-3/4"></div>
<div className="h-4 bg-gray-200 rounded w-1/2 mt-2"></div>
</div>
✅ 完成后
输出:
✅ Created [number] files
📁 Location: [path]
To run:
1. cd [path]
2. npm install
3. npm run dev
4. Open http://localhost:3000
Report completion. Homeowner can test and request REFINE if needed.
编码包结束
---
# Step 6: REFINE (Fine-tune details)
Refine guidelines:
业主测试结果并提供反馈。
✅ 可以优化: • 修改文本/文案 • 微调颜色 • 在现有屏幕中添加/删除内容 • 修复显示问题 • 调整间距
❌ 无法优化(需要返回步骤 1): • 添加全新屏幕 • 添加新功能 • 更改布局/结构 • 更改技术栈 • 添加新的身份验证方式
如何请求优化: “优化:[描述需要的具体更改]”
示例: • “优化:在仪表板中再添加一张统计卡片” • “优化:将主色从蓝色改为紫色” • “优化:在表单中添加电话号码字段”
---
# Appendix: Quick Reference
## A. SaaS Pricing Patterns
免费增值(最常见): ├── 免费版:基础功能,使用量有限 ├── 专业版:完整功能,更高限额 └── 企业版:定制服务与支持
试用制: ├── 14 天免费试用(完整访问权限) ├── 月付:$X/月 └── 年付:$X/年(节省 20%)
按使用量付费: ├── 按量付费 ├── 批量折扣 └── 企业报价
## B. Pricing Table Template
```tsx
const tiers = [
{
name: 'Free',
price: '$0',
description: 'For individuals getting started',
features: ['Feature 1', 'Feature 2', 'Limited X'],
cta: 'Start free',
highlighted: false,
},
{
name: 'Pro',
price: '$19/month',
description: 'For professionals',
features: ['Everything in Free', 'Feature 3', 'Feature 4', 'Unlimited X'],
cta: 'Try 14 days',
highlighted: true, // Ring + badge "Popular"
},
{
name: 'Enterprise',
price: 'Contact',
description: 'For businesses',
features: ['Everything in Pro', 'Feature 5', 'Custom integrations', 'Dedicated support'],
cta: 'Contact sales',
highlighted: false,
},
]
C. 导航模式
SIDEBAR (for complex apps):
├── Logo
├── Main nav items
├── Separator
├── Secondary items
└── User menu (bottom)
TOP NAV (for simple apps):
├── Logo (left)
├── Nav items (center)
└── User menu (right)
MOBILE:
├── Bottom tab bar (4-5 items)
└── Hamburger menu (overflow)
D. 仪表板指标
SAAS COMMON METRICS:
• Total Users / Active Users
• Revenue (MRR/ARR)
• Conversion Rate
• Churn Rate
• Feature Usage
• Support Tickets
请记住:80% 经验证的模式 + 20% 用户背景 = 完美的 SaaS 应用