当前位置: 首页 > Skill >

OpenGemini SaaS Builder

OpenGemini SaaS Builder

OpenGemini SaaS Builder

使用 OpenClaw 作为编排器,Gemini CLI 作为本地规划和生成的副驾驶,端到端构建 SaaS 项目。当用户要求头脑风暴时使用。

1.0.0 2026.11.23 386
获取Skill文件查看使用说明
作 者:林澄 许可证: 更新时间:2026.11.23
本文目录展开

OpenClaw SaaS Builder

Use this skill when the user wants full project orchestration instead of a quick snippet.

Core idea

OpenClaw is the driver. Gemini CLI is the brainstorming and generation copilot. GitHub CLI is for repo creation and GitHub operations. Vercel CLI is optional for deployment.

Do not treat Gemini as an unsupervised executor. Use it to generate plans, alternatives, code drafts, copy, architecture ideas, and reviews. OpenClaw remains responsible for file edits, shell execution, validation, and external side effects.

What this skill should produce

For a serious SaaS or web project, aim to create at least:

  • requirements.md
  • architecture.md
  • Rules.md
  • README.md
  • TODO.md
  • skills-plan.md
  • source code scaffold or implementation

For deployment-ready work, also aim for:

  • .env.example
  • deployment.md
  • CI/deploy notes

Preflight first

Before promising repo creation or deployment, run the preflight helper:

./skills/openclaw-saas-builder/scripts/preflight_saas_builder.sh

Interpretation:

  • If Gemini CLI fails, continue with OpenClaw-only planning or ask whether to proceed without Gemini.
  • If gh auth status fails, do not promise automatic repo creation yet.
  • If vercel whoami fails, do not promise deployment yet.

If Vercel is required, the user should already have the CLI installed and authenticated. Typical checks:

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 workflow

Phase 1: Discovery and brainstorming

Clarify:

  • product goal
  • target users
  • pain point
  • MVP scope
  • must-have features
  • non-goals
  • monetization or business purpose
  • data and privacy concerns
  • preferred stack or constraints

Use Gemini CLI to accelerate this phase. Prefer structured output. Good pattern:

  • ask Gemini for a concise options list
  • ask Gemini for tradeoffs
  • ask Gemini for a JSON spec draft

Phase 2: Requirements package

Create these docs early:

  • requirements.md
  • architecture.md
  • Rules.md
  • skills-plan.md
  • TODO.md

Use the bundled helpers when useful:

./skills/openclaw-saas-builder/scripts/generate_requirements.sh <project-name> '<brief>'
./skills/openclaw-saas-builder/scripts/generate_architecture.sh <project-name> '<brief>'
./skills/openclaw-saas-builder/scripts/generate_rules.sh <project-name> '<brief>'

Read references/saas-doc-templates.md for the expected sections.

If the user asks for diagrams, generate Mermaid diagrams in markdown first.

Phase 3: Implementation plan

Break work into small, ordered milestones. Use TODO.md or a milestone list. Good milestone pattern:

  1. bootstrap repo
  2. scaffold app
  3. core domain logic
  4. auth and data
  5. UI and polish
  6. tests
  7. docs
  8. repo publish
  9. deploy

Phase 4: Build

Choose the build path based on complexity.

For small or medium tasks

  • inspect files directly
  • use Gemini CLI for spec, code drafts, or review
  • edit files with OpenClaw tools
  • run tests locally

For larger coding tasks

Prefer ACP or coding-agent for implementation loops. Use Gemini CLI as planning and review support, not as the only coding engine.

Phase 5: GitHub repository creation

Only do this when the user has explicitly asked for it or clearly requested end-to-end setup.

Typical local flow:

  1. initialize git if needed
  2. create README and baseline docs
  3. verify gh auth status
  4. create repo with a sensible name
  5. set remote
  6. commit initial version
  7. push default branch

Use the helper when appropriate:

./skills/openclaw-saas-builder/scripts/create_github_repo.sh <repo-name> [--private|--public]

Use the GitHub skill for detailed command patterns.

Naming guidance:

  • use a short, readable slug
  • prefer product name or function over vague names
  • avoid joke names unless the user asks

Phase 6: Optional Vercel deployment

Only do this when the user asked for deployment.

Before deploy, verify:

which vercel
vercel --version
vercel whoami

If Vercel auth is not ready, stop and say exactly that. Do not fake deployment readiness.

Use the helper when appropriate:

./skills/openclaw-saas-builder/scripts/deploy_vercel.sh

Typical flow:

  1. verify framework and build output
  2. confirm env vars
  3. run Vercel link or init if needed
  4. deploy
  5. capture deployment URL
  6. write deploy notes to deployment.md

Safety and approval 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
  • deploying to Vercel
  • sending webhooks or emails

Planning, docs, scaffolding, and local implementation can proceed normally. For external side effects, confirm intent if the request is ambiguous.

How to use Gemini CLI inside this skill

Use gemini-cli skill patterns. Recommended helpers:

  • ./skills/gemini-cli/scripts/check_gemini.sh
  • ./skills/gemini-cli/scripts/gemini_json_validate.sh
  • ./skills/gemini-cli/scripts/gemini_review.sh
  • ./skills/gemini-cli/scripts/gemini_with_model.sh

Recommended Gemini uses:

  • brainstorming product directions
  • generating JSON specs
  • drafting architecture alternatives
  • drafting landing-page copy
  • reviewing rewritten files
  • naming ideas for repos or products

Bad use:

  • blindly executing Gemini-generated shell
  • trusting invalid JSON
  • letting Gemini decide external side effects without review

Recommended outputs by project stage

Early stage

  • requirements.md
  • architecture.md
  • Rules.md
  • TODO.md

Mid stage

  • code scaffold
  • component and module plan
  • .env.example
  • test checklist

Late stage

  • README.md
  • deployment.md
  • GitHub repo
  • deploy URL

References

Read these when needed:

  • references/saas-doc-templates.md
  • references/repo-and-deploy-checklist.md
  • references/saas-build-modes.md

Use skills/gemini-cli/references/website-prompts.md when the project includes a marketing site or landing page.

Publish readiness notes

This skill is meant to be practical, not magical. It assumes:

  • Gemini CLI is installed and authenticated
  • GitHub CLI is installed and authenticated for repo creation
  • Vercel CLI is installed and authenticated for deployment
  • OpenClaw remains the orchestrator for validation, editing, and safety decisions

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,034
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,019
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,017
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,014
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,013
Skill 文件
  • SKILL.md
    • OpenClaw SaaS Builder
    • Core idea
    • What this skill should produce
    • Preflight first
    • Build modes
    • Default workflow
      • Phase 1: Discovery and brainstorming
      • Phase 2: Requirements package
      • Phase 3: Implementation plan
      • Phase 4: Build
        • For small or medium tasks
        • For larger coding tasks
      • Phase 5: GitHub repository creation
      • Phase 6: Optional Vercel deployment
    • Safety and approval rules
    • How to use Gemini CLI inside this skill
    • Recommended outputs by project stage
      • Early stage
      • Mid stage
      • Late stage
    • References
    • Publish readiness notes
  • 项目或源文件

相关 Skill

更多
Gemini Web Search Gemini Web Search 使用 Gemini CLI(@google/gemini-cli)进行网络搜索或事实查找,并返回有来源的摘要。当用户询问“今天X发生了什么”“最新消息是什么”“搜索网页”“查找来源/链接”,或任何需要最新信息的任务时使用。若 Gemini 可用但速度较慢,优先选择此工具;请在 TTY 环境中运行,等待更长时间,并核实来源质量。
Vibe-Switch Vibe-Switch AI 代理的 tmux — 一条命令并行编排多个 AI 编码代理。同时运行 Claude Code、Codex CLI 和 Gemini CLI...
Agents Plugin Marketplace Agents Plugin Marketplace 84个生产级代理插件,192个代理,156项技能和102条命令,适用于 Claude Code、Codex CLI、Cursor、OpenCode 与 Gemini CLI
ACP Background Runs ACP Background Runs 将ACP或外部编码代理(如Codex、Claude Code、Gemini CLI、OpenCode)的请求路由至非阻塞的OpenClaw后台ACP运行...
Skill Port Skill Port Skill Port 对跨 Claude Code、Codex、Gemini CLI 及 Agent Skills 兼容运行时的 AI agent 技能进行审计和移植。检查可移植性、目标 agent 兼容性、风险脚本/钩子/MCP 配置,在不安装或运行源码的情况下构建安全目标布局。