tenant-onboarding-test-author
Use when a tenant onboarding or offboarding flow is added or changed, or before a compliance review: tests for account creation, isolation from the first API…
от testland★ 18 звёзд на GitHub
Установить tenant-onboarding-test-author в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
tenant-onboarding-test-author
Overview
Tenant onboarding and offboarding are lifecycle transitions, not steady-state access patterns. A new tenant's provisioning pipeline touches account records, isolation boundaries, quota tables, billing systems, seed data loaders, and delete-cascade paths - surfaces the runtime isolation test battery never exercises.
This skill produces a test suite for that lifecycle. The output is committed to
the project repo alongside the runtime suite from cross-tenant-data-leak-tests.
The workflow is:
- Map the provisioning pipeline surfaces.
- Enumerate test scenarios per surface.
- Generate test case stubs (fixtures + assertions).
- Emit the test suite skeleton.
- Build the coverage matrix.
Differentiation
| Skill | What it tests |
|---|---|
tenant-onboarding-test-author (this skill) |
Provisioning lifecycle: creation, quota, billing, seed data, idempotency, teardown |
cross-tenant-data-leak-tests |
Steady-state runtime: cross-tenant access attempts, IDOR, horizontal escalation |
cross-tenant-data-leak-tests |
CI gate: confirms isolation invariants pass before merge |
How to use
- Trace the onboarding and offboarding code path and inventory every state-changing surface, using references/provisioning-surface-map.md.
- For each surface, pull the scenarios that must hold from references/provisioning-test-scenarios.md - creation, isolation-at-create, quota, billing, seed, idempotency, teardown.
- Name each test
test_<surface>_<scenario>_<expected>()and declare the shared fixtures (Step 3 table). - Pick the framework for your stack (Step 4 table) and emit the suite skeleton from references/test-skeleton-examples.md.
- Build the coverage matrix (Step 5); treat every empty cell as a gap to justify or schedule.
- Run the suite as a non-privileged app role (not a superuser) so offboarding and RLS assertions stay valid, then cross-check the Anti-patterns table.
Step 1 - Map provisioning pipeline surfaces
Walk the onboarding code path end-to-end and enumerate every surface that changes state during provisioning or deprovisioning - tenant registry, identity store, database layer, object storage, quota table, billing record, seed data, re-provisioning path, and teardown. The full surface inventory table, plus the AWS Well-Architected SaaS Lens and Microsoft lifecycle gating notes: references/provisioning-surface-map.md.
Step 2 - Enumerate test scenarios per surface
For each surface from Step 1, identify the scenarios that must hold: account creation atomicity, isolation from the first call, default quota values, billing linkage, seed-data scoping, idempotent re-provisioning, and teardown with full deletion after the retention period. The full per-surface scenario catalog with its Microsoft citations: references/provisioning-test-scenarios.md.
Step 3 - Generate test cases
Naming convention matches the cross-tenant-data-leak-tests planning section:
test_<surface>_<scenario>_<expected>()
Examples:
test_account_creation_duplicate_slug_returns_conflict()
test_isolation_new_tenant_invisible_to_existing_tenant_immediately()
test_quota_default_values_match_tier_config_on_creation()
test_billing_record_exists_and_references_tenant_id_on_creation()
test_seed_data_scoped_to_new_tenant_only()
test_provisioning_idempotent_no_duplicate_quota_row()
test_offboarding_application_data_deleted_after_retention_period()
Required fixtures
| Fixture | Purpose |
|---|---|
existing_tenant |
A fully-provisioned tenant in steady state (pre-exists the new tenant) |
new_tenant |
The tenant being provisioned under test |
new_tenant_owner |
The user who triggered provisioning |
pricing_tier |
The tier config record that defines default quotas and features |
billing_stub |
A test double for the payment provider that records linkage calls |
offboarded_tenant |
A tenant that has been offboarded; used for teardown assertions |
Step 4 - Pick the test framework and emit skeleton
Same framework selection table as the cross-tenant-data-leak-tests planning section:
| Stack | Framework |
|---|---|
| Python (Django/Flask/FastAPI) | pytest |
| Node (Express/Nest) | Jest or Vitest + Supertest |
| JVM (Spring/Quarkus) | JUnit 5 + Testcontainers |
| Go | testing + httptest |
| Ruby (Rails) | RSpec + request specs |
The full pytest skeleton (one test per Step 2 scenario) and a language-agnostic SQL idempotency assertion: references/test-skeleton-examples.md.
Step 5 - Coverage matrix
Track one cell per (surface, scenario). Empty cells are coverage gaps that the PR author must justify or schedule.
Surface | cre
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- .tessl-plugin/plugin.json
- references/provisioning-surface-map.md
- references/provisioning-test-scenarios.md
- references/test-skeleton-examples.md
FAQ
Что делает скилл tenant-onboarding-test-author?
Use when a tenant onboarding or offboarding flow is added or changed, or before a compliance review: tests for account creation, isolation from the first API call, default quotas, billing links, seed data, idempotent re-provisioning and full deletion on teardown.
Как установить скилл tenant-onboarding-test-author?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл tenant-onboarding-test-author запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…