/saas-builder:saas-deploymentfrom saas-builder
Move a SaaS application to production. Deployment with Vercel, Railway, or Fly.io, domain configuration, SSL, environment variables, CI/CD, monitoring, and operational readiness. Use this skill when the user wants anything related to deploy, publishing, production, hosting, domain, SSL, CI/CD, monitoring, or "going live". Phrases like "deploy", "publish", "go live", "put it on Vercel", "connect a domain" trigger this skill.
Ships in saas-builder. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill moves a SaaS application from the development environment to production and ensures its operational readiness. Deployment is not just "uploading code to a server" — it's switching all external services to production mode, verifying security, and setting up monitoring.
Dependency: This skill is Phase 8 of the saas-launcher orchestrator skill. It can also be used independently. Ideally applied after all other phases are complete.
Related skills: Production migration steps from all other skills are consolidated in this skill.
When to choose: For almost any project using Next.js.
Why: The hosting platform by the company that makes Next.js. Zero configuration — connect your repo, deploy, done. Automatic preview deployments (a separate URL for each PR), global low latency via edge network, built-in analytics and Web Vitals measurement, free SSL.
Free tier limits: 100 GB bandwidth/month, 100 hours build time, serverless functions with a 10-second timeout. More than enough for most early-stage SaaS.
When it falls short: Long-running background jobs (operations exceeding 10 seconds), applications requiring WebSockets (Vercel has limited WebSocket support), those who want their own database on the same platform.
When to choose: For those who want database and application on a single platform.
Why: Hosts services like PostgreSQL, Redis, and MySQL on the same platform. Cron job and background worker support. Ability to run Docker containers.
Free tier: $5 credit/month. Sufficient for small projects but quickly requires a paid plan as traffic grows.
When to choose: For projects requiring global distribution, container-based deployment, WebSockets, or long-lived connections.
Why: Runs containers across multiple regions. Persistent volume (persistent disk) support. WebSockets and long-polling are natively supported.
Extra overhead: Writing and managing a Dockerfile is required. Not as "zero configuration" as Vercel or Railway.
Deployment is not just "upload the code". Follow this order:
Create the production counterpart of every variable used in development. These must be different:
Auth:
NEXTAUTH_SECRET — Generate a new value for production (openssl rand -base64 32). Must not be the same as development.NEXTAUTH_URL — Production domain: https://myapp.comPayment (see saas-payments):
sk_test_ → sk_live_, pk_test_ → pk_live_.Database:
Email:
General:
NEXT_PUBLIC_SITE_URL — Production domain: https://myapp.comOn the chosen hosting platform:
DNS records:
DNS propagation: Can take anywhere from 15 minutes to 48 hours. Check propagation with dig myapp.com A. Be patient.
This step is critical and must be done carefully (details in the saas-payments skill):
https://myapp.com/api/stripe/webhook (or Lemon Squeezy equivalent)Google OAuth (details in the saas-auth skill):
Check that domain verification is complete in the email service dashboard (details in the saas-email skill). All three of SPF, DKIM, and DMARC records must show "verified".
After the deploy is complete, run these tests:
Functional tests:
SEO tests (see saas-landing-seo):
Performance test:
Once the application is in production, monitoring is vital. You can't fix an error you can't see, and you can't respond to an outage you don't know about.
An external service that regularly checks whether your application is accessible. Point it to your health check endpoint (/api/health) to check every minute.
Recommended services: BetterStack (formerly Better Uptime), UptimeRobot. Both have sufficient free tiers.
You'll receive an email or SMS notification when there's an outage — you'll know before your customers do.
A service that collects, groups, and alerts on errors in your application. Users don't report errors — they leave silently.
Recommended: Sentry. Its free tier is sufficient for most early-stage SaaS. Integration is simple — just a few lines of configuration.
What Sentry provides:
For understanding how users use the application.
To start: Vercel Analytics (free, built-in) or Plausible (privacy-focused, simple). Google Analytics is also an option but requires cookie consent for GDPR.
Key metrics to track:
Vercel, Railway, and Fly.io all offer built-in log viewing. Sufficient to start. As you scale, move to a log aggregation service like Axiom, Datadog, or LogTail.
When Vercel or Railway is connected to your GitHub repo, CI/CD already happens:
main branch → automatic production deployThis is sufficient for most early-stage SaaS.
As you grow, add automated pre-deploy checks:
If these checks fail on a PR, the merge can be blocked — preventing broken code from reaching production.
Git already versions all code. Code is safe as long as the GitHub/GitLab repo isn't deleted. Extra precaution: keep a local clone up to date.
If the platform (Vercel, Railway) crashes, your environment variables may be lost. Keep a copy in a secure place (a password manager like 1Password or Bitwarden).
Don't think about scaling in the early stage — avoid premature optimisation. But keep these points in mind:
As you grow on Vercel:
As you grow on the database:
General principle: "Measure before optimising." Unless you've experienced a bottleneck, your current setup is sufficient.
NEXTAUTH_SECRET generated uniquely for production.env.local and sensitive files in .gitignoreWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub carriegale2710/skills-library --plugin saas-builder12 skills in this plugin
/saas-analyticsSet up PostHog analytics and product analysis for a SaaS application. Event tracking, user identification, feature flags, session replay, funnel analysis, and privacy-compliant configuration. Use this skill when the user wants anything related to user analytics, PostHog, event tracking, user behaviour, feature flags, A/B testing, conversion analysis, or metric tracking. Phrases like "set up analytics", "track users", "add PostHog", "create a feature flag" trigger this skill.
/saas-api-securitySet up an API security layer for a SaaS application. Rate limiting, plan-based access control, input validation, error handling, CORS, and health checks. Use this skill when the user wants anything related to API security, rate limiting, authorisation, input validation, error handling, or API protection. Phrases like "secure the API", "add rate limiting", "check the plan", "input validation" trigger this skill.
/saas-authSet up the authentication layer of a SaaS application. Covers Google OAuth, Magic Link, email/password login, JWT session management, and middleware for protected routes. Use this skill when the user wants to add authentication, set up login, or configure user sessions.
Other plugins' skills for the same job