CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

multi-tenant-safety-checker

The guide provides SQL and Prisma examples for enforcing tenant isolation, including RLS policies, tenant-context handling, middleware, and composite indexes. It also includes automated isolation and regression tests, an RLS audit script, and checklists for security controls and testing. Its best-practice recommendations call for regular configuration audits and monitoring cross-tenant access attempts.

Quality

75%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Low

Low-risk findings worth noting

Fix and improve this skill with Tessl

tessl review fix ./.agents/skills/multi-tenant-safety-checker/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Scored by GLM 5.3

Content

57%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

The content is highly actionable and code-rich, covering RLS setup, tenant context, testing, auditing, and indexing comprehensively. Its main weaknesses are verbosity from repeated SQL and duplicate checklists, an implicit rather than explicit workflow, and a monolithic single-file structure that should offload tests and scripts to bundle files.

Suggestions

Move the test suite, audit script, and checklists into scripts/ and references/ files, keeping SKILL.md as a concise overview with clearly signaled one-level-deep links.

Consolidate the three repeated CREATE POLICY / FORCE ROW LEVEL SECURITY blocks into a parameterized snippet (e.g. FOR EACH table in tenants tables), and merge the duplicated 'Tenant Isolation Checklist' and 'Output Checklist' sections.

Add an explicit ordered workflow (1. enable RLS, 2. add tenant context middleware, 3. create composite indexes, 4. run audit-rls, 5. run isolation tests) so validation checkpoints are wired into the sequence rather than left as standalone artifacts.

DimensionReasoningScore

Conciseness

The body is code-dense with no basic-concept padding, but contains noticeable tightening opportunities: three near-identical CREATE POLICY and FORCE ROW LEVEL SECURITY statements repeated per table, two overlapping checklists ('Tenant Isolation Checklist' and 'Output Checklist'), and a Prisma middleware section that duplicates the RLS filtering mechanism. This fits 'mostly efficient but could be tightened' rather than the minor-trims bar of 4.

3 / 5

Actionability

Provides concrete, mostly executable guidance: complete SQL DDL for RLS, a full TypeScript test suite, an RLS audit script, and index DDL. Not 5 because several snippets are not self-contained — the audit script uses an undefined 'prisma' client and the API-route example references undefined 'app' and 'tenantContext' — leaving copy-paste gaps.

4 / 5

Workflow Clarity

Sections follow a sensible implicit order (setup, tenant context, checklist, tests, audit, indexes, middleware, regression, best practices) and validation material is abundant, but no explicit sequence ties the pieces together (e.g. enable RLS, then run audit-rls, then run the isolation tests). The checkpoints exist as standalone artifacts rather than wired steps, matching 'sequence present but checkpoints implicit' rather than the 'clear sequence' of 4.

3 / 5

Progressive Disclosure

Section headers are clear and consistent, but the skill ships no bundle files at all and inlines roughly 300 lines of tests, an audit script, and checklists that clearly belong in separate scripts/ and references/ files. This matches 'some structure but content that should be separate is inline' — above the header-less wall-of-text of 2, below the appropriately-split structure of 4.

3 / 5

Total

13

/

20

Passed

Description

83%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong description that clearly states what the skill does and gives explicit quoted trigger phrases. Its main weaknesses are minor: missing common trigger variations and one overly broad trigger term ('data security').

DimensionReasoningScore

Specificity

Names the domain and several concrete actions — 'using Row Level Security, automated testing, and security audits' and 'Prevents data leakage between tenants' — matching the anchor for several specific actions with minor gaps. Not 5 because the actions are named at a mechanism level without the comprehensive, fine-grained action enumeration of the top anchor.

4 / 5

Completeness

Explicitly answers both 'what' ('Ensures tenant isolation at query and policy level using Row Level Security, automated testing, and security audits') and 'when' ('Use for "multi-tenancy", "tenant isolation", "RLS", or "data security"') with concrete trigger phrases, matching the top anchor. Not 4 because the 'when' clause is fully explicit rather than merely present.

5 / 5

Trigger Term Quality

Quoted triggers 'multi-tenancy', 'tenant isolation', 'RLS', and 'data security' are phrases users would naturally say, giving good keyword coverage. Not 5 because common variations are missing, e.g. 'multi-tenant', 'Postgres/PostgreSQL', or 'row level security' spelled out.

4 / 5

Distinctiveness Conflict Risk

The RLS/tenant-isolation niche is mostly distinct with targeted triggers, but 'data security' is broad enough to overlap with general security-skills. Not 5 due to that residual overlap risk; not 3 because the core triggers are far more specific than 'Works with document files'.

4 / 5

Total

17

/

20

Passed

Validation

93%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 15 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

referenced_paths_exist

Referenced path issues: 1 possibly missing (scripts/audit-rls.ts)

Warning

Total

15

/

16

Passed

Repository

sathishssj3/Stereix-Engine

Path

.agents/skills/multi-tenant-safety-checker/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.