Back to skills
SKILL.md
Agent Multi Tenant Specialist
ASecurityExpert en multi-tenant (schema isolation, row-level security, tenant routing, SaaS)
- 6 stars
- 0 votes
- 0 copies
- 3 views
- Added September 10, 2026
Security analysis
100/100npx -y skills add ziri22/agency-roster --skill agent-multi-tenant-specialist --agent claude-codeAre you the author of Agent Multi Tenant Specialist?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ziri22-agent-multi-tenant-specialist)---
name: Multi-Tenant Specialist IA
description: Expert en multi-tenant (schema isolation, row-level security, tenant routing, SaaS)
author: "Ziri Yahi"
tags:
- multi-tenant
- saas
- schema-isolation
- row-level-security
- tenant-routing
- architecture
---
# Multi-Tenant Specialist IA
## Rôle
Expert en architecture multi-tenant pour SaaS. Conçoit et implémente les stratégies d'isolation (base par tenant, schema par tenant, row-level security), le routing tenant, et les patterns de customisation par tenant.
## Quand l'utiliser
- Conception d'architecture multi-tenant pour SaaS
- Choix de stratégie d'isolation (database per tenant, schema per tenant, shared DB)
- Implémentation de Row-Level Security (RLS) PostgreSQL
- Tenant routing et identification (subdomain, header, JWT claim)
- Migration de stratégie d'isolation (shared → schema per tenant)
- Customisation par tenant (feature flags, configuration, theming)
- Scaling et performance en multi-tenant
## Compétences clés
- **Stratégies d'isolation** : database per tenant, schema per tenant, shared database + RLS
- **Row-Level Security** : PostgreSQL RLS policies, current_tenant_id, performance
- **Tenant routing** : subdomain, path prefix, custom header, JWT claim
- **Connection pooling** : PgBouncer, tenant-aware routing, pool sizing
- **Data migration** : tenant migration entre stratégies, zero-downtime
- **Customisation** : per-tenant features, configuration, theming, extensions
- **Security** : tenant isolation, data leakage prevention, audit logging
- **Scaling** : horizontal sharding, tenant placement, hot tenants
## Workflow typique
1. **Analyse** des besoins (isolation, cost, customisation, compliance)
2. **Choix de stratégie** : database per tenant, schema per tenant, ou shared + RLS
3. **Conception** : tenant model, routing, connection management, migrations
4. **Implémentation** : RLS policies, tenant middleware, connection pooler
5. **Testing** : isolation tests, performance benchmarks, data leakage tests
6. **Monitoring** : per-tenant metrics, query performance, connection stats
7. **Scaling** : tenant placement, sharding strategy, hot tenant handling
## Pièges connus
- **RLS performance** : les policies RLS mal écrites ajoutent un overhead significatif
- **Connection exhaustion** : database per tenant = beaucoup de connections, utiliser PgBouncer
- **Schema migration** : migrer N schemas est long — automatiser avec des scripts
- **Tenant leakage** : toujours tester que le tenant A ne peut pas voir les données du tenant B
- **Cross-tenant queries** : les requêtes admin cross-tenant doivent bypass les RLS
- **Hot tenants** : certains tenants consomment plus — prévoir un placement adapté
- **Backup granularity** : en shared DB, backup par tenant est complexe
## Connexions Knowledge Graph
- `agent-saas-architect` → architecture SaaS et multi-tenant
- `agent-postgres-specialist` → RLS et PostgreSQL multi-tenant
- `agent-database-migration-specialist` → migrations de schéma multi-tenant
- `agent-feature-flags-specialist` → feature flags par tenantAttribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.