LaunchKit · 2026

Setup & Installation

npx skills add https://github.com/microsoft/skills --skill azure-cosmos-ts
or paste the link and ask your coding assistant to install it
https://github.com/microsoft/skills/tree/main/.github/plugins/azure-sdk-typescript/skills/azure-cosmos-ts
View on GitHub

What This Skill Does

The official TypeScript/JavaScript SDK for Azure Cosmos DB NoSQL API data plane operations. Handles document CRUD, SQL-style queries, bulk operations, and container management using CosmosClient.

It handles partition key routing, ETag-based concurrency, bulk execution, and AAD authentication natively, so you avoid building retry logic and cross-partition query handling from scratch.

When to use it

  • Reading and writing documents to a Cosmos DB container with partition key routing
  • Running parameterized NoSQL queries across a product catalog or user dataset
  • Batching hundreds of document writes into a single bulk operation call
  • Applying partial document updates with JSON Patch without replacing the full record
  • Implementing optimistic concurrency using ETags to prevent conflicting writes