CtrlK
BlogDocsLog inGet started
Tessl Logo

testland/tenant-onboarding-test-author

Workflow-driven skill that authors a test suite for tenant provisioning and offboarding: account creation, isolation at creation (no cross-tenant bleed from a new tenant's first API call), default resource quotas, billing record linkage, seed and default data correctness, idempotent re-provisioning, and teardown with full data deletion. Walks through mapping provisioning surfaces, generating test cases per surface, emitting the test suite skeleton (pytest / Jest / JUnit / Go test), and producing a coverage matrix. Use when a new tenant onboarding flow is introduced or changed, when the offboarding pipeline is modified, or when auditing provisioning coverage before a compliance review. Distinct from tenant-leak-test-author (runtime cross-tenant access) and cross-tenant-data-leak-tests (CI gate): this skill covers the provisioning lifecycle, not steady-state access control.

79

Quality

99%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Passed

No findings from the security scan

Overview
Quality
Evals
Security
Files

provisioning-surface-map.mdreferences/

Provisioning pipeline surface map

Walk the onboarding code path end-to-end and enumerate every surface that changes state during provisioning or deprovisioning. Per the AWS Well-Architected SaaS Lens (docs.aws.amazon.com/wellarchitected/latest/saas-lens/tenant-isolation.html), isolation must be established at every layer of the stack independently:

SurfaceWhat to captureHow to find it
Tenant registry / catalogRecord created, unique key assignedCentral tenants table or tenant-management service
Identity storeUser account created, role bindingsAuth provider admin API or IAM config
Database layerSchema/row/database provisioned per isolation modelORM migration runner, schema-per-tenant scripts
Object storageBucket or prefix created with scoped policyIaC for storage resources
Quota / rate-limit tableDefault quotas inserted for the new tenantQuota service or DB seeding script
Billing recordBilling entry linked to tenant IDBilling service or payment-provider webhook handler
Seed / default dataFeature flags, default roles, template data loadedSeed scripts, fixture loaders
Re-provisioning pathIdempotent re-run: no duplicate records, no failed constraintsProvisioning entry point called twice
Offboarding / teardownData deletion, billing cancellation, quota cleanupDelete or deactivate endpoint

Per the Microsoft Multitenant Architecture Center (learn.microsoft.com/en-us/azure/architecture/guide/multitenant/considerations/tenant-life-cycle), onboarding must account for data residency, compliance tier, billing model, and disaster-recovery SLOs, each of which can gate provisioning steps. Capture which conditions gate each surface - a compliance-gated provisioning step needs its own test branch.

Per the Microsoft resource organisation guidance (learn.microsoft.com/en-us/azure/architecture/guide/multitenant/approaches/resource-organization), quota and subscription limits must be modelled per tenant at provisioning time. Record the expected default quota values - they are assertions, not implementation details.

SKILL.md

tile.json