azure-cosmos-java
Build Azure Cosmos DB Apps with Java
Azure Cosmos DB integrations require careful client, partition, query, and throughput choices. This skill provides focused Java SDK patterns for synchronous and reactive workflows.
Install with my Agent
Copy this request to your Agent. It includes the canonical Skill page and manifest.
Review the Skillstore skill "azure-cosmos-java" from https://skillstore.io/skills/sickn33-azure-cosmos-java.md and its manifest at https://skillstore.io/api/skills/sickn33-azure-cosmos-java/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-java". Set up a synchronous client for a development service.
Expected outcome:
- Dependency guidance using the Azure SDK bill of materials.
- A client setup outline using endpoint and key environment variables.
- A reminder to reuse one client throughout the application.
Using "azure-cosmos-java". Design CRUD operations for customer records partitioned by tenant.
Expected outcome:
- A container plan using the tenant identifier as the partition path.
- Create, read, replace, and delete steps that include the tenant partition value.
- Conflict and throttling cases to handle during testing.
Using "azure-cosmos-java". Review a slow reactive Cosmos DB service.
Expected outcome:
- Check whether the asynchronous client is reused instead of created per request.
- Inspect partition distribution, request-unit charges, preferred regions, and connection mode.
- Measure throttling and retry behavior before changing provisioned throughput.
Security Audit
SafeAll 40 static findings are false positives caused by Markdown formatting, SDK configuration examples, or documentation links. No executable scripts, credential files, obfuscated payloads, prompt injection, or malicious network behavior were found.
Risk Factors
โ๏ธ External commands (26)
๐ Network access (7)
๐ Env variables (2)
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.
Copy report link
https://skillstore.io/skills/sickn33-azure-cosmos-java/audits/6?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown badge
[](https://skillstore.io/skills/sickn33-azure-cosmos-java?utm_source=security_passport_badge)HTML badge
<a href="https://skillstore.io/skills/sickn33-azure-cosmos-java?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/sickn33-azure-cosmos-java/security.svg" alt="Skillstore security assessment" loading="lazy"></a>Embed card
<iframe src="https://skillstore.io/embed/skills/sickn33-azure-cosmos-java.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-java security audit report (audit version 6) [Author version unspecified]. Skillstore. https://skillstore.io/skills/sickn33-azure-cosmos-java/audits/6BibTeX citation
@techreport{sickn33-sickn33-azure-cosmos-java-2026,
author = {sickn33},
title = {azure-cosmos-java security audit report (audit version 6)},
institution = {Skillstore},
year = {2026},
number = {6},
url = {https://skillstore.io/skills/sickn33-azure-cosmos-java/audits/6},
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-java security audit report (audit version 6)"
version: "unspecified"
type: report
authors:
- name: "sickn33"
date-released: "2026-07-23"
url: "https://skillstore.io/skills/sickn33-azure-cosmos-java/audits/6"
identifiers:
- type: other
value: "skillstore:sickn33-azure-cosmos-java:audit:6"
description: "Skillstore immutable audit report identifier"
Skillstore Score
Why this score Evidence Confidence: HighWhat You Can Build
Create a Java data service
Design client setup, container access, CRUD operations, and queries for a Java backend.
Plan a scalable data model
Compare partition, consistency, region, and connection choices before implementing a Cosmos DB workload.
Diagnose throughput behavior
Review request charges, client reuse, direct mode, and rate-limit handling for an existing service.
Try These Prompts
Show the Maven dependency and a minimal synchronous Cosmos DB Java client using named environment variables.
Design Java CRUD operations for [entity] using database [database], container [container], and partition key [path].
Create an asynchronous workflow that initializes resources, processes [operation], handles conflicts and throttling, and reports request charges.
Review my Cosmos DB Java design for client reuse, partitioning, consistency, regions, direct mode, request units, and failure handling.
Best Practices
- Reuse a single Cosmos client and select the asynchronous client for high-throughput workloads.
- Choose a high-cardinality partition key that distributes storage and request traffic evenly.
- Measure request-unit charges and test throttling, retries, consistency, and regional behavior.
Avoid
- Do not create a new Cosmos client for every request or operation.
- Do not select a low-cardinality partition key without workload measurements.
- Do not place account keys in source code, logs, prompts, or generated examples.