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
Not recommended
52/ 100 5-point scale 2.6 / 5
Trust15 / 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.

Reliability8 / 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.

Adaptability10 / 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.

Convention9 / 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.

Effectiveness6 / 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.

Verifiability4 / 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 it does & when to 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.

Pros & cons

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 to install

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 to use

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.

Compared to similar skills

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 Identity for Python

A practical skill for securing Python Azure applications with Microsoft Entra ID credentials.

Dev & Engineering ✓ Microsoft · Official

Azure Event Hubs Java Skill

Build production-oriented Java event streaming applications on Azure Event Hubs.

Dev & Engineering ✓ Microsoft · Official

Azure Tables for Python

A practical guide to building authenticated Azure Tables applications with Python entity CRUD, queries, and partition-scoped batch operations.

Dev & Engineering ✓ Microsoft · Official

Azure Identity for TypeScript

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

Automation & Ops ✓ Microsoft · Official

Azure Reliability Advisor

Assess and improve reliability for Azure Functions and App Service.

Dev & Engineering ✓ Microsoft · Official

Azure Cloud Architect

Guides coding agents through production-grade Azure architecture design and review using Azure Architecture Center practices.

Dev & Engineering ✓ Microsoft · Official

Azure AI Text Analytics for Python

Guides Python developers through Azure-powered text analysis and NLP workflows.

Automation & Ops ✓ Microsoft · Official

Azure Resource Architecture Visualizer

Analyze Azure resource groups and turn their dependencies into detailed Mermaid architecture diagrams.

Dev & Engineering ✓ Microsoft · Official

Azure Maps for .NET

Build .NET location features for search, routing, maps, geolocation, and weather.

Dev & Engineering ✓ Microsoft · Official

Azure AI Vision Image Analysis

Guides Python coding agents in implementing Azure AI Vision image understanding.

Dev & Engineering ✓ Microsoft · Official

Azure Blob Storage for Python

Guides secure, production-minded Blob Storage operations in Python.

Dev & Engineering ✓ Microsoft · Official

Azure Queue Storage for Python

Gives coding agents reliable Python patterns for secure Azure Queue Storage messaging and asynchronous task processing.

Automation & Ops ✓ Microsoft · Official

Azure AI Gateway Governance

Use Azure API Management to govern traffic across AI models, MCP tools, and agents.

Automation & Ops ✓ Microsoft · Official

AKS Automatic Readiness

Assess Kubernetes workloads for AKS Automatic compatibility and identify migration blockers before you switch.

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 Playwright Workspace Manager

Provision and manage Microsoft Playwright Testing workspaces with .NET and Azure Resource Manager.

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 Key Vault SDK for Python

Gives Python coding agents practical guidance for securely managing Azure Key Vault secrets, keys, and certificates.

Dev & Engineering ✓ Microsoft · Official

Azure API Management for Python

Gives coding agents practical Python SDK patterns for managing Azure API Management services, APIs, products, subscriptions, and policies.

Dev & Engineering ✓ Microsoft · Official

Azure Monitor Query for Python

Generate Python code for querying Azure Monitor logs and metrics.

Related skills