partition-strategy

Community

Design efficient Cosmos DB partition keys

AuthorFaysilAlshareef
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Helping architects and engineers choose partition keys and query patterns for Cosmos DB to minimize RU costs, avoid hot partitions, and improve query performance across single-tenant and multi-tenant scenarios.

Core Features & Use Cases

  • Hierarchical partition guidance: Advice for designing up to three-level partition keys (tenant, time, discriminator) to support point reads and scoped queries.
  • Partition key construction patterns: Examples for building full and partial PartitionKey values and choosing between entity-per-container and polymorphic container designs.
  • Operational guidance: Recommendations to detect existing partition patterns, reduce cross-partition fan-out, and monitor RU consumption.
  • Use Case: Design partitioning for an invoices container in a multi-tenant system to support tenant-isolated queries and monthly reporting without hot partitions.

Quick Start

Ask the skill to recommend a hierarchical partition key and query strategy for a Cosmos container storing multi-tenant invoices with high write volume.

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: partition-strategy
Download link: https://github.com/FaysilAlshareef/dotnet-ai-kit/archive/main.zip#partition-strategy

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 471,000+ vetted skills library on demand.