一键导入
using-saas-kit
Use when setting up the SaaS Kit in a Phoenix app or installing/listing its features. Covers the install flow and every `mix saaskit.*` task.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when setting up the SaaS Kit in a Phoenix app or installing/listing its features. Covers the install flow and every `mix saaskit.*` task.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when the app needs branded 404 and 500 error pages and a way to raise not-found from LiveViews. Covers install, the Fallback exception, and tweaking the templates.
Use when the app needs an admin-only dashboard at `/admin` for managing users, teams, and admins, with charts, impersonation, and the LiveDashboard. Covers install, configuration, and tweaks.
Use when authenticated routes must be gated behind email confirmation, redirecting users whose `confirmed_at` is nil to a confirmation page. Covers install, configuration, and tweaks for the confirmation gate.
Use when the app needs user accounts, sign-in, and roles. Covers installing phx.gen.auth-based auth with role-based access, profiles, and admin bootstrapping, plus how to tweak it.
Use when the app needs a Cmd+K/Ctrl+K command palette for quick navigation and search. Covers installing the LiveView palette, its protocol-based result formatting, and how to make resources searchable.
Use when the app needs database-backed error tracking without an external SaaS. Covers installing ErrorTracker with automatic Phoenix/LiveView/Oban reporting, migrations, pruning, and a dashboard.
| name | using-saas-kit |
| description | Use when setting up the SaaS Kit in a Phoenix app or installing/listing its features. Covers the install flow and every `mix saaskit.*` task. |
| user-invocable | true |
SaaS Kit ships production-ready features (auth, teams, payments, oauth, …) into
an existing Phoenix app as a set of mix saaskit.* tasks. You generate a normal
Phoenix app, point it at a boilerplate token, then install features one at a
time. Each feature is a catalog entry under the kit; this skill is the entry
point — read it first, then open the matching feature skill.
mix phx.new available).Run this outside an existing Phoenix project:
mix phx.new my_saas
mix.exsdef deps do
[
{:saas_kit, "~> 3.0"}
]
end
Add to config/dev.exs:
config :saas_kit, boilerplate_token: "<token>"
Without this, mix saaskit.setup raises and points you at the boilerplate page.
mix deps.get
mix saaskit.setup
saaskit.setup installs the initial SaaS Kit feature and creates local project
state. It also offers to install agent guidance (--agent-skills to accept
without prompting, --no-agent-skills to skip).
Install a whole plan, or features individually:
mix saaskit.plan.install <token> # install a saved plan's features
mix saaskit.feature.install authentication
After setup, these tasks drive everything. All support --json where shown, so
an agent can probe state machine-readably.
mix saaskit.statusReports current state: config status, app name, installed/pending feature counts, and the suggested next command. Use it as the first probe in any session.
mix saaskit.status
mix saaskit.status --json
mix saaskit.helpGetting-started info and the full task catalog. Runs fully offline; reports
whether boilerplate_token is set.
mix saaskit.help
mix saaskit.help --json
mix saaskit.feature.listLists all available features and their installation status.
mix saaskit.feature.list
mix saaskit.feature.list --filter "auth,billing"
mix saaskit.feature.list --json
--filter — comma-separated words matched against name, slug, or description.--json — machine-readable list (slug, name, packages, dependencies,
decisions, installed).mix saaskit.feature.showFull detail for one feature (description, packages, dependencies, decisions).
mix saaskit.feature.show authentication
mix saaskit.feature.show authentication --json
mix saaskit.feature.installInstalls one feature. Some features ask decisions — answer them up front with
--decision, or resume an interrupted install with --step.
mix saaskit.feature.install authentication
mix saaskit.feature.install authentication --token <token>
mix saaskit.feature.install payments --decision provider=stripe_subscription
mix saaskit.feature.install authentication --step <uuid>
mix saaskit.plan.installInstalls a saved plan (multiple features at once).
mix saaskit.plan.install <plan_id>
mix saaskit.plan.install <plan_id> <token>
mix saaskit.status — confirm configured and see the next command.mix saaskit.feature.list — pick features (respect dependencies).core features first (e.g. authentication), then add-ons.after install checklist
(mix ecto.migrate, config edits) before moving on.authentication/, teams/, payments/, …). Open the one matching the
feature you're installing for when-to-use guidance, config, and tweaks.