workspace-isolation-check
OfficialValidate multi-tenant isolation, prevent data leaks.
Authoralldigitalrewards
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Ensuring strict data separation in a multi-tenant application is critical but highly complex, with potential vulnerabilities across various code layers. This skill automates the validation of workspace isolation, systematically checking API routes, database queries, RLS policies, and middleware to prevent data leakage.
Core Features & Use Cases
- Comprehensive Code Scan: Checks all relevant code (API routes, DB queries, Prisma schema, RLS policies, pages, server actions) for isolation violations.
- Pattern Enforcement: Verifies adherence to established patterns like
requireWorkspaceAccess(),workspaceIdfilters, and correct RLS policy usage. - Detailed Reporting: Generates a checklist-based report highlighting any detected violations and suggesting fixes.
- Use Case: After modifying an API route or a database query, use this skill to perform a full workspace isolation check. It will scan the changed files, verify that all queries include
workspaceIdfilters, that API routes use proper auth helpers, and that RLS policies are correctly applied, ensuring no cross-workspace data exposure.
Quick Start
Perform a workspace isolation check on the recently modified API route app/api/w/[slug]/challenges/route.ts. Report any missing auth checks or workspaceId filters.
Dependency Matrix
Required Modules
serenagrep
Components
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: workspace-isolation-check Download link: https://github.com/alldigitalrewards/changemaker-minimal/archive/main.zip#workspace-isolation-check Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.