Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans

PalateKit

Menu

Request a resource

Describe the resource you are missing in one sentence. We will email you when it is published.

0 / 280

Unlock PalateKit

Unlock everything

Plan

Paying means accepting our terms of sale.

Secure payment by Stripe. Receipts and invoices sent by email.

Welcome back

Sign in to install, download or save this resource. A free account is enough for free resources.

Apply Cosmos DB performance rules v1.0.0

Use this resource to apply Azure Cosmos DB best practices for modelling, partitioning and queries

New

  • 302 downloads
  • 144 likes
  • 222 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install cosmosdb-performance-rules

With no option, the skill goes to ~/.agents/skills/; add --agent claude-code (or codex, cursor…) to target an agent.

First time: connect the CLI with

npx --yes palatekit@latest login

The agent loads only the rules relevant to your question, out of more than seventy, then reviews or writes the code accordingly. It covers modelling, partitioning, queries, the SDK, indexing and global distribution.

Mostly picked by

Updated November 2, 2026

Card for the “Apply Cosmos DB performance rules” skill

Details

Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • SKILL.md: rule categories ordered by impact, plus an index
  • rules/: one file per rule (composite index, partitioning, multi-region, 2 MB item limit and others)

Good fit for

  • You are designing a data model for Azure Cosmos DB
  • You are optimizing slow or costly queries

Not for

    Tags

    • cosmos db
    • azure
    • partitioning
    • performance

    About

    You say

    “Review my Cosmos DB orders model and tell me whether the partition key fits.”

    Card for the “Apply Cosmos DB performance rules” skill

    Skill published by cline under the MIT license, delivered in its original version.

    Show more

    How to use it

    1. Install the skill in your agent's skills folder
    2. Ask your agent to apply Azure Cosmos DB best practices for modelling, partitioning and queries
    3. Review and adjust the result

    Content preview

    Files

    • LICENSE10.7 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • rules/_sections.md2.2 KB
    • rules/_template.md0.8 KB
    • rules/global-conflict-resolution.md4.1 KB
    • rules/global-consistency.md3.8 KB
    • rules/global-failover.md3.8 KB
    • rules/global-multi-region.md3.3 KB
    • rules/global-read-regions.md4 KB
    • rules/global-zone-redundancy.md3.6 KB
    • rules/index-composite.md6.2 KB
    • rules/index-exclude-unused.md3.2 KB
    • rules/index-lazy-consistent.md3.2 KB
    • rules/index-range-vs-hash.md3.6 KB
    • rules/index-spatial.md3.2 KB
    • rules/model-avoid-2mb-limit.md2.1 KB
    • rules/model-denormalize-reads.md3.5 KB
    • rules/model-embed-related.md2.5 KB
    • rules/model-id-constraints.md3 KB
    • rules/model-json-serialization.md4.2 KB
    • rules/model-nesting-depth.md3.4 KB
    • rules/model-numeric-precision.md3.3 KB
    • rules/model-reference-large.md2.3 KB
    • rules/model-relationship-references.md3.7 KB
    • rules/model-schema-versioning.md2.5 KB
    • rules/model-type-discriminator.md3.6 KB
    • rules/monitoring-azure-monitor.md4.6 KB
    • rules/monitoring-diagnostic-logs.md5.2 KB
    • rules/monitoring-latency.md4.3 KB
    • rules/monitoring-ru-consumption.md4.4 KB
    • rules/monitoring-throttling.md4.5 KB
    • rules/partition-20gb-limit.md2.9 KB
    • rules/partition-avoid-hotspots.md3.5 KB
    • rules/partition-hierarchical.md2.8 KB
    • rules/partition-high-cardinality.md2.3 KB
    • rules/partition-key-length.md2.9 KB
    • rules/partition-query-patterns.md2.8 KB
    • rules/partition-synthetic-keys.md3.9 KB
    • rules/pattern-change-feed-materialized-views.md7.4 KB
    • rules/pattern-efficient-ranking.md6 KB
    • rules/pattern-service-layer-relationships.md4.9 KB
    • rules/query-avoid-cross-partition.md2.5 KB
    • rules/query-avoid-scans.md2.6 KB
    • rules/query-order-filters.md2.6 KB
    • rules/query-pagination.md6.4 KB
    • rules/query-parameterize.md2.9 KB
    • rules/query-use-projections.md2.8 KB
    • rules/sdk-async-api.md3.3 KB
    • rules/sdk-availability-strategy.md5.4 KB
    • rules/sdk-circuit-breaker.md8.6 KB
    • rules/sdk-connection-mode.md3 KB
    • rules/sdk-diagnostics.md3.7 KB
    • rules/sdk-emulator-ssl.md8 KB
    • rules/sdk-etag-concurrency.md8.3 KB
    • rules/sdk-excluded-regions.md5 KB
    • rules/sdk-java-content-response.md4 KB
    • rules/sdk-java-cosmos-config.md6.1 KB
    • rules/sdk-java-spring-boot-versions.md4.9 KB
    • rules/sdk-local-dev-config.md5.6 KB
    • rules/sdk-newtonsoft-dependency.md4 KB
    • rules/sdk-preferred-regions.md3.2 KB
    • rules/sdk-retry-429.md3.8 KB
    • rules/sdk-serialization-enums.md2.9 KB
    • rules/sdk-singleton-client.md3.8 KB
    • rules/sdk-spring-data-annotations.md3.5 KB
    • rules/sdk-spring-data-repository.md3.5 KB
    • rules/throughput-autoscale.md2.7 KB
    • rules/throughput-burst.md2.8 KB
    • rules/throughput-container-vs-database.md3.3 KB
    • rules/throughput-right-size.md3.2 KB
    • rules/throughput-serverless.md2.7 KB
    • rules/vector-distance-query.md4.9 KB
    • rules/vector-embedding-policy.md3.9 KB
    • rules/vector-enable-feature.md3.1 KB
    • rules/vector-index-type.md4.8 KB
    • rules/vector-normalize-embeddings.md8.9 KB
    • rules/vector-repository-pattern.md13.3 KB
    • SKILL.md10.3 KB

    Origin and licence

    Listed unmodified

    Author
    cline
    Source
    github.com/cline/skills/tree/26378461e978f2b4e2e6d67b57121b86b2a79ba5/skills/cosmosdb-best-practices
    Licence
    MIT

    Notice

    « cosmosdb-best-practices » (cline, MIT) livré dans sa version d'origine : fiche en français et en anglais par PalateKit.

    User reviews

    –

    No ratings yet

    Loading reviews…

    Delete your review?

    Your rating and comment will be removed from the page.