skillfed

saas-platforms

Learn to architect multi-tenant SaaS platforms with database isolation strategies, Stripe subscription management, and usage tracking. Covers tenant context injection, row-level security, plan entitlements, and webhook handling for production-ready billing systems.

SaaS Platforms skill teaches you to build multi-tenant applications with subscription billing and tenant isolation.

AI-generated summary based on this skill's SKILL.md

19 5 MIT updated by miles990

Install

miles990/claude-software-skills/saas-platforms · repository language: TypeScript

git clone https://github.com/miles990/claude-software-skills
cp -r claude-software-skills/domain-applications/saas-platforms ~/.claude/skills/saas-platforms
npx skillfed install miles990/claude-software-skills/saas-platforms

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

How do you build SaaS multi-tenant applications?

saas-platforms teaches you to architect multi-tenant SaaS applications with proper data isolation strategies. You'll learn tenant context injection patterns, database isolation approaches (shared vs. per-tenant), and row-level security implementation in PostgreSQL. The skill covers middleware for tenant identification, query filtering to ensure data boundaries, and best practices for maintaining security across customer accounts in production environments.

What stripe subscription billing implementation does saas-platforms cover?

saas-platforms guides you through Stripe subscription billing implementation, including customer creation, subscription lifecycle management, and webhook handling for payment events. You'll learn to sync subscription states with your database, handle failed payments, manage plan changes, and process refunds. The skill also covers integrating Stripe's API for real-time billing updates and reconciliation strategies.

How can you set up usage-based and metered billing for SaaS?

saas-platforms covers metered billing implementation using Stripe's usage records and billing cycles. You'll learn to track customer consumption metrics, report usage to Stripe, and calculate charges based on actual usage. The skill includes strategies for rate limiting, usage aggregation, and handling billing disputes when customers contest metered charges.

What multi-tenancy database strategies does saas-platforms teach?

saas-platforms explores multiple multi-tenancy database strategies including shared database with row-level security, database-per-tenant isolation, and hybrid approaches. You'll learn trade-offs between scalability, data isolation, backup complexity, and operational overhead. The skill covers Prisma multi-tenant setup patterns, tenant context propagation, and query optimization for isolated data access.

How do you create feature flags and plan-based access control?

saas-platforms teaches feature flag implementation and entitlement systems for plan-based access control. You'll learn to gate features by subscription tier, enforce plan limits, and manage feature rollouts. The skill covers storing entitlements in your database, checking permissions in middleware, and handling downgrade scenarios when customers lose access to premium features.

What onboarding flows and customer lifecycle tracking does saas-platforms include?

saas-platforms covers designing user onboarding flows and tracking customer lifecycle events. You'll learn to capture signup data, create initial tenant contexts, trigger welcome sequences, and monitor activation metrics. The skill includes webhook integration for subscription events, churn tracking, and lifecycle stage management to support customer retention strategies.

SKILL.md

rendered from the published skill — quoted content, verbatim

SaaS Platform Development

Overview

Building Software-as-a-Service applications with multi-tenancy, subscription billing, and user management.


Multi-Tenancy

Database Strategies

```typescript // Strategy 1: Shared database with tenant_id column interface TenantEntity { tenantId: string; // ... other fields }

// Middleware to inject tenant context function tenantMiddleware(req: Request, res: Response, next: NextFunction) { const tenantId = req.headers['x-tenant-id'] || req.user?.tenantId;

if (!tenantId) { return res.status(400).json({ error: 'Tenant ID required' }); }

req.tenantId = tenantId; next(); }

// Prisma middleware for automatic tenant

(truncated - see the full file via the links below)

Read as markdown · JSON record · Browse the source repository

File tree — 4 files
domain-applications/saas-platforms/SKILL.md
domain-applications/saas-platforms/templates/README.md
domain-applications/saas-platforms/templates/billing-config.ts
domain-applications/saas-platforms/templates/tenant-schema.prisma

Related skills

Tags

tenant-isolation recurring-revenue metered-billing feature-entitlements customer-lifecycle schema-per-tenant payment-processing access-control usage-tracking plan-management