write-tenant-isolated-queries

Community

Enforce tenant isolation in every query.

AuthorEdgame2
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Transforms database queries to include tenantId in partition keys, guaranteeing tenant isolation across multi-tenant Cosmos DB deployments.

Core Features & Use Cases

  • Enforces tenantId in all queries by including c.tenantId in the WHERE clause and using parameterized queries.
  • Uses container names derived from config to avoid hardcoding, ensuring consistent isolation boundaries.
  • Provides end-to-end guidance for Create, Read by ID, List with Filters, Update, and Delete with tenant isolation guarantees.

Quick Start

Rewrite your data access code so every query includes tenantId in the WHERE clause.

Dependency Matrix

Required Modules

None required

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: write-tenant-isolated-queries
Download link: https://github.com/Edgame2/castiel2/archive/main.zip#write-tenant-isolated-queries

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.