agentleFS
hi-donwihi-donwi/Donwi-Skills/skills/saas-onboarding/SKILL.md

saas-onboarding

Skill0 starsChanged 13 days agoMITView on GitHub

Build tenant provisioning, activation, suspension, offboarding, and deletion workflows. Use for organization lifecycle and recovery, not repository onboarding, member renewals, or subscription pricing.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Verify custom-domain control and unique mapping before routing traffic.

    line 35
  2. Distinctive:

    Before offboarding, verify authority and the approved export, retention, hold, cancellation, and deletion policy.

    line 39

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

SaaS Onboarding and Tenant Lifecycle

Overview

Provision and retire organizations through resumable, authorized transitions. The lifecycle must govern access and workers, not just a welcome screen.

When to use

  • Creating tenants, seeding configuration, verifying domains, or tracking activation.
  • Suspending, restoring, exporting, or deleting an organization's data and integrations.

Hand off when

NeedSkill
Learning an unfamiliar repositorycodebase-onboarding
Member invitations, eligibility, and owner transfermembership-management
Persistence isolation and trusted tenant contextsaas-multitenancy
Commercial subscription statesaas-billing

Process

  1. Define states and allowed transitions such as requested, provisioning, active, suspended, deletion-pending, and deleted. Keep billing and activation progress distinct.
  2. Authenticate the requester, validate reserved identifiers and ownership, and create an idempotent provisioning record. Establish the first owner atomically with scope.
  3. Persist provisioning steps and effect keys. Retry only unfinished steps; never activate a partially configured tenant or duplicate external customer resources.
  4. Verify custom-domain control and unique mapping before routing traffic. Document DNS propagation, certificate issuance, expiry, and takeover prevention on removal.
  5. Apply lifecycle checks at requests, credentials, scheduled work, and integrations. Suspension invalidates stale access and fences provisioning or background retries.
  6. Before offboarding, verify authority and the approved export, retention, hold, cancellation, and deletion policy. Do not run destructive operations without authorization.
  7. Track deletion across databases, files, search, caches, analytics, and integrations. Record backup expiry and restoration suppression; do not promise immediate backup erasure.
  8. Define recovery objectives and test a tenant-scoped restore without overwriting other tenants, duplicating effects, or resurrecting previously deleted data.

Red flags

  • Boolean active flags with no resumable provisioning or auditable transition history.
  • Domain ownership assumed from a submitted host or retries reviving suspended tenants.
  • Deleting held records, silently retaining integrations, or claiming backups are purged.

Verification

  • Repeated signup and step failures provision one complete tenant only.
  • Suspension and deletion block stale sessions, workers, domains, and service credentials.
  • Export, hold enforcement, restore isolation, and deletion manifests are verified.

References

  • references/lifecycle-checklist.md - transition contracts and recovery exercises.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.