跳到正文
Skillpedia
通用编程7.5k · #13225

saas-builder

它能做什么

这个技能指导用户从开源项目 SaaS Boilerplate 出发,把它改造成自己的产品。适合需要快速搭建软件即服务应用的创始人和开发者。

适用场景

  • ✓你想把 SaaS Boilerplate 用在自己的产品想法上的时候。
  • ✓你需要检查自己的产品想法与该模板如何匹配的时候。
  • ✓你在规划 SaaS 应用的页面、数据模型、角色和上线范围的时候。

技能链接

https://github.com/ixartz/SaaS-Boilerplate/blob/main/skills/saas-builder/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/ixartz/SaaS-Boilerplate/blob/main/skills/saas-builder/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我想基于 SaaS Boilerplate 做一个排班 SaaS。请帮我完成设置,并规划第一版的内容。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会先克隆项目、安装依赖,并运行它的构建和测试。只有在基础版本通过之后,它才会规划并修改营销页面、路由、数据库和登录功能,以适配你的产品。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

SaaS Builder

Purpose

Verify the local baseline, then adapt the boilerplate's marketing, routes, schema, auth, i18n, UI, and tests for the user's SaaS MVP.

Mandatory Baseline Gate

Run these commands before planning, editing, or implementing product-specific work:

git clone https://github.com/ixartz/SaaS-Boilerplate.git <target-directory>
cd <target-directory>
npm install

Users usually run npx skills add ixartz/saas-boilerplate from a parent/root directory; it creates .agents/ there and clones the boilerplate into <target-directory>. Since the app is one level below the agent's initial cwd, cd <target-directory> before reading app files or running project commands, and confirm package.json, src/, and skills/ exist.

Then verify the baseline:

npm run build-local
npm run test

Setup and verification commands are hard gates. Do not continue to mapping or implementation work until the baseline is fixed.

Working Rules

  • Use the verified clone as the source of truth. Inspect current files before making claims or edits.
  • Keep changes minimal. Do not reformat unrelated files.
  • Do not change these: src/components/DemoBadge.tsx, its DemoBadge usage in src/app/[locale]/layout.tsx, or src/app/[locale]/(auth)/dashboard/page.tsx.
  • Use marketing routes only for promotional content.
  • Treat landing and marketing page adaptation as part of every SaaS implementation unless the user explicitly scopes it out.
  • Build product workflows as dedicated authenticated dashboard feature pages, not in the dashboard index: use src/app/[locale]/(auth)/dashboard/<feature>/page.tsx for CRUD, data entry, tools, and customer-specific views.
  • Split complex product workflows across several authenticated pages when needed. Do not force every part of a workflow into a single page; a feature can use separate pages for list, create, edit, detail, settings, or related subflows.

Project Conventions

  • Keep the existing stack and patterns unless the user explicitly asks to replace them: Next.js App Router, TypeScript, React, Tailwind CSS, Shadcn/Radix UI, Clerk, Drizzle ORM, T3 Env, next-intl, LogTape, Vitest, Storybook, and Playwright.
  • Add environment variables through src/libs/Env.ts; avoid direct process.env except in bootstrapping or instrumentation.
  • Put user-visible copy in every supported locale file.
  • Prefer existing Clerk account and organization features before custom auth flows.
  • Follow nearby style and import conventions.
  • Run npm run db:generate whenever src/models/Schema.ts changes.
  • Persist product data in the database, not in local state or memory. Use Drizzle ORM for all database access.
  • Make new components visually polished and consistent with the current UI: reuse existing Shadcn/Radix primitives, Tailwind tokens, spacing, typography, states, and responsive patterns before introducing new visual treatments.
  • Use shadcn/ui theme tokens for UI colors; change colors only in src/styles/global.css, not locally in components.
  • React Compiler is enabled, so don't add useMemo or useCallback.

MVP Scope

  • Default to a first-version MVP unless the user asks for more.
  • Build the smallest runnable core workflow.
  • Defer nonessential architecture, integrations, and edge cases.
  • Leave the app runnable with npm run dev, but do not start local servers, persistent database processes, or open localhost unless the user explicitly asks.

Final Verification Gate

After building the SaaS based on the user's intent and making all necessary changes, run npm run lint, then rerun the baseline verification sequence.

Gate Failure Handling

When a gate fails, inspect and fix the cause. Change tests only when stale or incorrect. Rerun the gate commands until they pass. If a gate fails after all fixes, report the command, exit status, and relevant output to the user.

Common Extension Points

Use these as starting search targets:

  • General SaaS settings: src/utils/AppConfig.ts
  • Locales and i18n: src/locales/en.json, src/locales/fr.json
  • Database schema: src/models/Schema.ts
  • Marketing: src/app/[locale]/(marketing)
  • User dashboard overview: src/app/[locale]/(auth)/dashboard/page.tsx
  • Product feature pages: src/app/[locale]/(auth)/dashboard/<feature>/page.tsx

Mapping Heuristics

  • Use a tenant only for the top-level organization a user can join and switch between, where membership, permissions, billing, collaboration, or data isolati
常见问题

智能体在检查基础版本之前会改动任何内容吗?

不会。在开始规划或产品工作之前,构建和测试命令必须先通过。

模板中的哪些部分可以修改?

营销页面、路由、数据结构、身份验证、语言支持、界面和测试可以修改,但某些演示文件保持不动。

它会让改动保持最小吗?

会。技能要求避免对无关文件重新格式化。

详情

作者的原始描述

Clone, verify, map, and build on top of ixartz/SaaS-Boilerplate for a user's SaaS idea. Use when a user wants to reuse SaaS Boilerplate, evaluate how their product fits it, or build product-specific pages, database schema, roles, permissions, MVP features, and launch scope on top of the boilerplate.

repo: ixartz/SaaS-Boilerplate

热度

GitHub 星标
7.5k
排名
#13225
许可证
MIT
更新时间
2026/11/1

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

相似技能