OpenGemini SaaS Builder — OpenGemini SaaS 构建器
v1.0.0Build SaaS projects end-to-end with OpenClaw as 编排器 and Gemini 命令行工具 as a local planning and generation copilot. Use when the user asks to brAInstorm, define, scaffold, implement, document, 创建 a GitHub 仓库, or optionally 部署 a SaaS, 网页 应用, MVP, internal 工具, landing page, 仪表盘, or productized 自动化. This 技能 coordinates requirements, architecture, Rules.md, project-specific 技能s or plans, implementation phases, GitHub 命令行工具 usage, and optional Vercel 部署ment.
运行时依赖
安装命令
点击复制技能文档
OpenClaw SaaS 构建器
Use this 技能 when the user wants full project orchestration instead of a quick snippet.
Core idea
OpenClaw is the driver. Gemini 命令行工具 is the brAInstorming and generation copilot. GitHub 命令行工具 is for repo creation and GitHub operations. Vercel 命令行工具 is optional for 部署ment.
Do not treat Gemini as an unsupervised executor. Use it to 生成 plans, alternatives, code drafts, copy, architecture ideas, and reviews. OpenClaw remAIns responsible for file edits, shell execution, 验证, and external side effects.
What this 技能 should produce
For a serious SaaS or 网页 project, AIm to 创建 at least:
requirements.md architecture.md Rules.md README.md TODO.md 技能s-plan.md source code scaffold or implementation
For 部署ment-ready work, also AIm for:
.env.example 部署ment.md CI/部署 notes Preflight first
Before promising repo creation or 部署ment, 运行 the preflight 辅助工具:
./技能s/OpenClaw-saas-构建器/scripts/preflight_saas_构建器.sh
Interpretation:
If Gemini 命令行工具 fAIls, continue with OpenClaw-only planning or ask whether to proceed without Gemini. If gh auth 状态 fAIls, do not promise automatic repo creation yet. If vercel whoami fAIls, do not promise 部署ment yet.
If Vercel is required, the user should already have the 命令行工具 安装ed and 认证d. Typical 检查s:
which vercel vercel --version vercel whoami
Build modes
Read references/saas-build-modes.md when deciding scope. Use one of these modes explicitly:
idea mode MVP mode production mode launch mode Default 工作流 Phase 1: Discovery and brAInstorming
Clarify:
product goal tar获取 users pAIn point MVP scope must-have features non-goals monetization or business purpose data and 隐私 concerns preferred stack or constrAInts
Use Gemini 命令行工具 to accelerate this phase. Prefer structured 输出. Good pattern:
ask Gemini for a concise options 列出 ask Gemini for tradeoffs ask Gemini for a JSON spec draft Phase 2: Requirements package
创建 these docs early:
requirements.md architecture.md Rules.md 技能s-plan.md TODO.md
Use the bundled 辅助工具s when useful:
./技能s/OpenClaw-saas-构建器/scripts/生成_requirements.sh '' ./技能s/OpenClaw-saas-构建器/scripts/生成_architecture.sh '' ./技能s/OpenClaw-saas-构建器/scripts/生成_rules.sh ''
Read references/saas-doc-templates.md for the expected sections.
If the user asks for diagrams, 生成 MermAId diagrams in markdown first.
Phase 3: Implementation plan
Break work into small, ordered milestones. Use TODO.md or a milestone 列出. Good milestone pattern:
bootstrap repo scaffold 应用 core domAIn 记录ic auth and data UI and polish tests docs repo publish 部署 Phase 4: Build
Choose the build path based on complexity.
For small or medium tasks inspect files directly use Gemini 命令行工具 for spec, code drafts, or review edit files with OpenClaw 工具s 运行 tests locally For larger coding tasks
Prefer ACP or coding-代理 for implementation loops. Use Gemini 命令行工具 as planning and review support, not as the only coding engine.
Phase 5: GitHub 仓库 creation
Only do this when the user has explicitly asked for it or clearly 请求ed end-to-end 设置up.
Typical local flow:
初始化 git if needed 创建 README and baseline docs 验证 gh auth 状态 创建 repo with a sensible name 设置 remote commit initial version push default branch
Use the 辅助工具 when 应用ropriate:
./技能s/OpenClaw-saas-构建器/scripts/创建_github_repo.sh [--private|--public]
Use the GitHub 技能 for detAIled command patterns.
Naming 图形界面dance:
use a short, readable slug prefer product name or function over vague names avoid joke names unless the user asks Phase 6: Optional Vercel 部署ment
Only do this when the user asked for 部署ment.
Before 部署, 验证:
which vercel vercel --version vercel whoami
If Vercel auth is not ready, 停止 and say exactly that. Do not fake 部署ment readiness.
Use the 辅助工具 when 应用ropriate:
./技能s/OpenClaw-saas-构建器/scripts/部署_vercel.sh
Typical flow:
验证 框架 and build 输出 confirm env vars 运行 Vercel link or init if needed 部署 capture 部署ment URL write 部署 notes to 部署ment.md Safety and 应用roval rules
These actions change the outside world and should be treated as explicit-user-intent actions:
creating remote repos pushing commits to remote creating cloud projects 部署ing to Vercel 发送ing 网页hooks or emAIls
Planning, docs, scaffolding, and local implementation can proceed normally. For external side effects, confirm intent if the 请求 is ambiguous.
How to use Gemini 命令行工具 inside this 技能
Use gemini-命令行工具 技能 patterns. Recommended 辅助工具s:
./技能s/gemini-命令行工具/scripts/检查_gemini.sh ./技能s/gemini-命令行工具/scripts/gemini_json_验证.sh ./技能s/gemini-命令行工具/scripts/gemini_review.sh ./技能s/gemini-命令行工具/scripts/gemini_with_模型.sh
Recommended Gemini uses:
brAInstorming product directions generating JSO