AgentSkillsCN

tenant-isolation-validation

验证租户隔离与行级安全(RLS)检查的准确性。当用户提及租户隔离、RLS 验证,或需要进行多租户访问权限检查时,可使用此功能。

SKILL.md
--- frontmatter
name: tenant-isolation-validation
description: Validate tenant isolation and RLS safety checks. Use when the user mentions tenant isolation, RLS validation, or multi-tenant access checks.

Tenant Isolation Validation

Quick Start

  1. Review the tenant isolation guidance.
  2. Run the tenant safety checks.
  3. Summarize violations and remediation steps.

Steps

  • Follow docs/security/tenant-isolation.md.
  • Use repo scripts:
    • scripts/check-tenant-safety.ts
    • scripts/mcp/tenant-validate.sh
  • Confirm RLS policies enforce tenant boundaries.

Output

  • Report of any cross-tenant access risks.
  • Clear remediation steps and affected tables.