Dev & Engineering ✓ Microsoft · Official azure-cosmos-dbtypescriptjavascriptcrudnosql-querybulk-operationspartition-key

Azure Cosmos DB TypeScript Skill

Gives TypeScript and JavaScript coding agents practical Cosmos DB data-access patterns.

FollowSkills review · FSRS-2.0
Use with care
52/ 100 5-point scale 2.6 / 5
1 2 3 4 5 6
1Trust15 / 25 · 3.0/5

The skill recommends Microsoft Entra authentication, distinguishes data and management planes, and places keys in environment variables, reducing obvious credential exposure. However, CRUD, bulk deletion, and container-creation examples provide no user confirmation, least-privilege guidance, data-flow disclosure, or rollback plan; the connection-string example also lacks sensitive-data warnings, so points were deducted.

2Reliability8 / 20 · 2.0/5

The document covers authentication, CRUD, queries, partition keys, error handling, and concurrency with useful status-code guidance. However, the main file uses executeBulkOperations while the reference uses bulk, and static evidence cannot establish API/version consistency. No skill-specific executable tests are shown, so the score remains conservative under the static cap.

3Adaptability10 / 15 · 3.3/5

Triggers, the TypeScript/JavaScript audience, and the data-plane versus management-plane boundary are reasonably clear, with broad common Cosmos DB coverage. Non-fit cases, input/output constraints, permission prerequisites, environment limitations, and Chinese-language guidance are under-specified, so points were deducted.

4Convention9 / 15 · 3.0/5

The skill has YAML metadata, installation and environment sections, progressive topical organization, references, best practices, related SDKs, an MIT license, and version fields. It lacks a changelog, explicit maintenance ownership and update path, FAQ, known-limitations section, and dependency version-lock guidance, so points were deducted.

5Effectiveness6 / 15 · 2.0/5

The examples provide a useful starting point for CRUD, queries, pagination, bulk processing, and ETag concurrency, and parameterized queries and error handling add practical value. However, the conflicting bulk APIs and undefined context such as generateItems prevent treating the output as directly compilable or fully production-ready, so points were deducted.

6Verifiability4 / 10 · 2.0/5

The repository materials show general CI, evaluation workflows, and harness tests, providing some auditability. The supplied evidence does not show skill-specific tests, acceptance criteria, or third-party execution results; key SDK claims remain primarily self-documented, warranting only limited static evidence credit.

Evidence confidence:Low Reviewed Jul 20, 2026 Reviewed revision 9ccaf7c3704a
Before you use it
  • The bulk reference uses container.items.bulk while the main document uses executeBulkOperations; verify against the pinned SDK types and official API documentation before use.
  • Deletes, bulk writes, container creation, and cross-partition queries can cause irreversible data changes or material cost; confirmation, authorization, cost preview, and recovery procedures are not specified.
  • The skill does not systematically explain the sensitivity of Cosmos endpoints, document contents, query results, or telemetry, nor logging-redaction requirements.
  • No skill-specific acceptance tests or compilation evidence are supplied; treat the snippets as unverified starting points rather than production-validated code.
See the full review method →

What does this skill do, and when should you use it?

This skill targets Azure Cosmos DB NoSQL data-plane work through the @azure/cosmos SDK. It covers document creation, reads, replacements, upserts, deletes, patches, parameterized queries, pagination, cross-partition queries, and bulk operations. It also documents Microsoft Entra authentication, key-based authentication, partition keys, ETag concurrency, and error handling. It does not provision or manage Cosmos DB accounts, databases, or containers through ARM.

Guides agents through installing @azure/cosmos and @azure/identity, configuring endpoint, database, container, and authentication variables, and creating CosmosClient, database, and container objects. It produces examples for document CRUD, Patch, SQL queries, pagination, cross-partition queries, bulk operations, simple and hierarchical partition keys, ETag-based conditional updates, handling 404/409/412/429 errors, and disposing the client during shutdown.

  1. A Node.js and TypeScript backend developer needs a Cosmos DB document service layer.
  2. An application team needs parameterized NoSQL queries with paginated reads.
  3. A service needs to create, read, replace, delete, or patch many documents in bulk.
  4. A Cosmos DB application needs Microsoft Entra, key-based, or connection-string authentication examples.
  5. A multi-tenant application needs simple or hierarchical partition-key patterns and guidance for avoiding unnecessary cross-partition queries.

What are this skill's strengths and limitations?

Pros
  • Covers the practical data-plane flow from client setup through CRUD, queries, bulk work, and concurrency control.
  • Includes Microsoft Entra, key-based, and connection-string authentication examples.
  • Addresses parameterized queries, partition keys, 429 responses, and ETag handling.
  • Clearly separates the data-plane SDK from the ARM management SDK.
Limitations
  • It is limited to JavaScript/TypeScript @azure/cosmos data-plane operations and does not cover ARM resource management.
  • It requires Node.js 20 or later and an Azure Cosmos DB environment.
  • The source does not provide independent test coverage or verification results for this individual skill.
  • Users must supply the Cosmos endpoint, database, container, and authentication configuration.

How do you install this skill?

In Copilot CLI or a compatible skills installation flow, run: npx skills add microsoft/skills, then select azure-cosmos-ts in the wizard. The collection is installed into the chosen agent directory, such as .github/skills/ for GitHub Copilot. You may also copy the .github/plugins/azure-sdk-typescript/skills/azure-cosmos-ts/ directory from the repository; the source does not specify another standalone installer.

How do you use this skill?

Give the coding agent a request such as: “Use @azure/cosmos and TypeScript to build a Cosmos DB document service with parameterized queries, partition keys, and 429 retry handling.” Before use, configure COSMOS_ENDPOINT, COSMOS_DATABASE, and COSMOS_CONTAINER. For key authentication, configure COSMOS_KEY; for DefaultAzureCredential, configure AZURE_TOKEN_CREDENTIALS as described. The source does not provide a standalone execution or test command for this skill.

How does this skill compare with similar options?

Unlike @azure/arm-cosmosdb, this skill uses @azure/cosmos for data-plane work such as documents, queries, and stored procedures; @azure/arm-cosmosdb manages accounts, databases, and containers through ARM. @azure/identity supplies authentication credentials rather than performing Cosmos DB data operations.

FAQ

Can this skill create a Cosmos DB account?
No. It covers @azure/cosmos data-plane operations. Account and other Azure resource management belong to @azure/arm-cosmosdb.
Is Microsoft Entra authentication mandatory?
No. The skill recommends Microsoft Entra Token Credential, but also documents endpoint-and-key and connection-string authentication.
What runtime setup is required?
The source requires Node.js >= 20.0.0 and the @azure/cosmos and @azure/identity packages. You also need an accessible Cosmos DB endpoint and corresponding configuration.
Does it include a complete test suite?
The source does not establish that azure-cosmos-ts has an independent test suite, so its individual test coverage cannot be confirmed from the provided material.

More skills from this repository

All from microsoft/agent-skills

Dev & Engineering ✓ Microsoft · Official

Azure Cosmos DB for Python

A practical guide for building reliable Python applications on Azure Cosmos DB’s NoSQL API.

Dev & Engineering ✓ Microsoft · Official

Azure Cosmos DB Python Service Builder

Build secure, testable Azure Cosmos DB NoSQL services for Python and FastAPI applications.

Dev & Engineering ✓ Microsoft · Official

Azure Blob Storage for TypeScript

A practical guide for uploading, downloading, and managing Azure Blob Storage from TypeScript and JavaScript applications.

Dev & Engineering ✓ Microsoft · Official

Azure Service Bus for TypeScript

Build enterprise messaging workflows with Azure Service Bus.

Dev & Engineering ✓ Microsoft · Official

Azure Queue Storage TypeScript Skill

Build Azure Queue Storage workers that send, receive, inspect, and manage messages in TypeScript or JavaScript.

Dev & Engineering ✓ Microsoft · Official

Azure Cosmos DB Java Skill

Guides Java developers in building globally distributed, partitioned, and reactive Azure Cosmos DB applications.

Dev & Engineering ✓ Microsoft · Official

Azure Cosmos DB for Rust

A practical guide to building Rust applications with the official Azure Cosmos DB NoSQL client.

Dev & Engineering ✓ Microsoft · Official

Azure Cosmos DB ARM for .NET

Provision and manage Azure Cosmos DB resources from .NET through ARM.

Dev & Engineering ✓ Microsoft · Official

Azure App Configuration for TypeScript

Build TypeScript apps with centralized settings, feature flags, and runtime configuration refresh.

Dev & Engineering ✓ Microsoft · Official

Azure Key Vault Secrets for TypeScript

Securely store and retrieve application secrets in Azure Key Vault while managing key lifecycles from Node.js.

Dev & Engineering ✓ Microsoft · Official

Azure Key Vault Keys for TypeScript

A practical TypeScript guide to creating, protecting, rotating, and using cryptographic keys in Azure Key Vault.

Dev & Engineering ✓ Microsoft · Official

Azure Identity for TypeScript

Configure secure, flexible Microsoft Entra ID authentication for TypeScript Azure applications.

Dev & Engineering ✓ Microsoft · Official

Azure Playwright Cloud Testing

Scale TypeScript Playwright tests on Azure-hosted browsers and publish results.

Dev & Engineering ✓ Microsoft · Official

Azure Event Hubs TypeScript Skill

Build TypeScript event-streaming applications with batching, partition-aware consumers, checkpointing, and Azure identity authentication.

Dev & Engineering ✓ Microsoft · Official

Azure AI Content Safety for TypeScript

Add text and image harm detection with customizable blocklists to TypeScript applications.

Dev & Engineering ✓ Microsoft · Official

Azure Document Intelligence for TypeScript

Extract document text, tables, and structured fields in TypeScript applications.

Dev & Engineering ✓ Microsoft · Official

Azure Translation for TypeScript

Build TypeScript applications for text translation, transliteration, language detection, and document translation.

Dev & Engineering ✓ Microsoft · Official

Azure AI Search for TypeScript

Build TypeScript search apps with vector, hybrid, and semantic retrieval patterns.

Dev & Engineering ✓ Microsoft · Official

Azure AI Projects for TypeScript

Practical TypeScript guidance for building Azure AI Foundry applications with project clients, agents, tools, and evaluations.

Dev & Engineering ✓ Microsoft · Official

Azure PostgreSQL TypeScript Connector

A practical pg-based guide for secure, pooled Azure PostgreSQL access in Node.js and TypeScript.

Related skills