Skills azure-cosmos-ts
๐Ÿ“ฆ

azure-cosmos-ts

Content revision r2 Safe โš™๏ธ External commands๐ŸŒ Network access๐Ÿ”‘ Env variables

Build Azure Cosmos DB Apps with TypeScript

Azure Cosmos DB development requires correct authentication, partition keys, queries, and failure handling. This skill provides practical TypeScript patterns for common data plane operations.

Supports: Claude Codex Code(CC)
๐Ÿฅ‰ 78 Bronze

Install with my Agent

Copy this request to your Agent. It includes the canonical Skill page and manifest.

Agent request
Review the Skillstore skill "azure-cosmos-ts" from https://skillstore.io/skills/sickn33-azure-cosmos-ts.md and its manifest at https://skillstore.io/api/skills/sickn33-azure-cosmos-ts/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.

Your Agent should still show its plan and request any confirmation required by the security policy.

Agent-readable resources

Use these links when an AI agent, crawler, or script needs clean context instead of reading the full page.

Test it

Using "azure-cosmos-ts". Plan secure authentication for a TypeScript API running in Azure.

Expected outcome:

A setup plan using DefaultAzureCredential, a named endpoint variable, required Azure roles, startup validation, and account key avoidance.

Using "azure-cosmos-ts". Design product lookup by category and maximum price.

Expected outcome:

A parameterized query approach scoped by category, with pagination guidance and notes about request units and cross-partition costs.

Using "azure-cosmos-ts". Review concurrent product price updates.

Expected outcome:

A workflow that reads the item ETag, applies conditional replacement, handles precondition failures, and preserves conflicting updates.

Security Audit

Safe
v5 โ€ข 7/23/2026 Open versioned report

The static alerts are false positives caused by Markdown code fences, TypeScript template literals, inline code, documented environment variable access, and a placeholder Azure endpoint. The skill contains instructional examples only, with no executable scripts, credential exfiltration, prompt injection, or system reconnaissance.

1
Files scanned
481
Lines analyzed
0
Review items
0
False positives ignored
No confirmed security findings were detected by the latest completed static and semantic audit. This does not prove the skill has no side effects.
Audited by: codex View Audit History โ†’
Share & cite this report

Share the versioned assessment report, neutral badge, embed card, and citations. Skillstore reports evidence without deciding whether this Skill is safe.

Open versioned report
Security Assessment

Copy report link

https://skillstore.io/skills/sickn33-azure-cosmos-ts/audits/5?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_report

Markdown badge

[![Skillstore security assessment](https://skillstore.io/badges/skills/sickn33-azure-cosmos-ts/security.svg)](https://skillstore.io/skills/sickn33-azure-cosmos-ts?utm_source=security_passport_badge)

HTML badge

<a href="https://skillstore.io/skills/sickn33-azure-cosmos-ts?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/sickn33-azure-cosmos-ts/security.svg" alt="Skillstore security assessment" loading="lazy"></a>

Embed card

<iframe src="https://skillstore.io/embed/skills/sickn33-azure-cosmos-ts.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>
Academic citations (APA ยท BibTeX ยท CFF)

APA citation

sickn33. (2026). azure-cosmos-ts security audit report (audit version 5) [Author version unspecified]. Skillstore. https://skillstore.io/skills/sickn33-azure-cosmos-ts/audits/5

BibTeX citation

@techreport{sickn33-sickn33-azure-cosmos-ts-2026, author = {sickn33}, title = {azure-cosmos-ts security audit report (audit version 5)}, institution = {Skillstore}, year = {2026}, number = {5}, url = {https://skillstore.io/skills/sickn33-azure-cosmos-ts/audits/5}, note = {Author version unspecified} }

CITATION.cff

cff-version: 1.2.0 message: "If you use this Skill, cite its author and this versioned security audit report." title: "azure-cosmos-ts security audit report (audit version 5)" version: "unspecified" type: report authors: - name: "sickn33" date-released: "2026-07-23" url: "https://skillstore.io/skills/sickn33-azure-cosmos-ts/audits/5" identifiers: - type: other value: "skillstore:sickn33-azure-cosmos-ts:audit:5" description: "Skillstore immutable audit report identifier"

Skillstore Score

Why this score Evidence Confidence: High
55
Architecture
85
Maintainability
87
Content
68
Community
83
Spec Compliance

What You Can Build

Create a Cosmos DB service

Design a typed service layer for document creation, lookup, updates, deletion, and category queries.

Review data access patterns

Check authentication, parameterized queries, partition keys, retries, and ETag handling before deployment.

Plan high-volume writes

Select bulk operation patterns and partition keys for workloads with many document changes.

Try These Prompts

Connect with Azure AD
Show how to connect a Node.js TypeScript application to Cosmos DB with DefaultAzureCredential and named environment variables.
Build typed document operations
Create a typed Cosmos DB service for [entity] with create, read, patch, replace, upsert, and delete methods.
Design a safe query
Design a parameterized query for [filter requirements]. Include pagination, partition key usage, and handling for rate limits.
Review a production data layer
Review my Cosmos DB access design for authentication, partitioning, bulk writes, ETags, retries, disposal, scalability, and cost risks.

Best Practices

  • Prefer DefaultAzureCredential and assign only the required Cosmos DB data roles.
  • Use parameterized queries and include partition keys whenever the access pattern permits.
  • Handle rate limits, ETag conflicts, missing documents, and client disposal explicitly.

Avoid

  • Do not embed account keys, connection strings, or production endpoints in source code.
  • Do not use broad cross-partition queries without reviewing request unit cost.
  • Do not replace shared documents without ETag checks when concurrent updates are possible.

Frequently Asked Questions

Does this skill provision Azure Cosmos DB accounts?
No. It covers data plane operations with @azure/cosmos, not management plane provisioning with @azure/arm-cosmosdb.
Which authentication method is recommended?
Use DefaultAzureCredential with Azure role assignments when possible. Account keys and connection strings need stronger secret controls.
Does it support hierarchical partition keys?
Yes. It shows a MultiHash partition key with multiple paths and the corresponding item lookup format.
Can it help prevent query injection?
Yes. The examples use named query parameters instead of joining untrusted values into query text.
Does it cover bulk writes?
Yes. It demonstrates mixed bulk operations and checking each operation result.
Will the examples work without modification?
No. Replace sample identifiers, define project types, configure credentials, and test partitioning, indexing, throughput, and failure behavior.

Developer Details

Author

sickn33

License

MIT

Skillstore revision

r2

Version notice

The author did not declare a version.

Ref

f9e2c34b4f19c7f3e6b0a1e93227b5f77cc12526

Maintenance freshness

7/26/2026

Usage

6 downloads ยท 93 views

File structure

๐Ÿ“„ SKILL.md