tenant-lifecycle-management

Model, enforce, and audit multi-tenant lifecycle state machines for SaaS products.

Updated Mar 29, 2026
One-click install
npx skills add https://github.com/marquesfelip/agents-and-skills --skill tenant-lifecycle-management
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tenant-lifecycle-management
Source: https://github.com/marquesfelip/agents-and-skills/tree/main/skills/tenant-lifecycle-management
Command: npx skills add https://github.com/marquesfelip/agents-and-skills --skill tenant-lifecycle-management

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Model, enforce, and audit multi-tenant lifecycle state machines for SaaS products.

Core Features & Use Cases

  • Define all tenant states and transitions, ensuring correctness and traceability.
  • Atomic provisioning during tenant creation (tenant record, owner, entitlements) with rollback on failure.
  • Support for provisioning, trial, activation, suspension, and deletion workflows, including retention and purge.
  • Immutable status history and scheduled purges for compliance, with guards against unauthorized transitions.

Quick Start

Define and initialize a complete tenant lifecycle for a new SaaS tenant by applying the provisioning, transition, and deletion workflows described above.

Frequently Asked Questions about tenant-lifecycle-management

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I model and enforce multi-tenant lifecycle state machines for a SaaS application?

Multi-tenant lifecycle state machines enforce correct tenant state transitions across creation, provisioning, suspension, and deletion. They use guarded workflows and immutable status history to ensure traceability and prevent unauthorized state changes in SaaS environments.

What is the best way to handle atomic tenant provisioning during SaaS onboarding?

Atomic tenant provisioning creates the tenant record, owner, and entitlements simultaneously. If any step fails, the entire operation rolls back, ensuring no partial tenant data is committed to the database during SaaS onboarding workflows.

How does tenant lifecycle management handle data retention and scheduled purges?

Tenant lifecycle management handles data retention by applying scheduled purges and archival workflows after deletion. It maintains immutable history and enforces data isolation safeguards to meet compliance requirements throughout the tenant lifecycle.

Can I audit tenant state transitions and track suspension or reactivation history?

Yes, you can audit tenant state transitions using immutable status history. The system records every lifecycle event, including suspension, reactivation, and deletion, providing a complete traceable audit trail for compliance and debugging.

Does this approach support guarded transitions to prevent unauthorized tenant state changes?

Yes, guarded transitions are fully supported to prevent unauthorized tenant state changes. The system enforces defined schemas and interfaces, ensuring that tenants only move between allowed states like trial, activation, and suspension safely.