Azure SDK for Java is a collection of Java libraries that let applications connect to and manage Azure services. Java developers use its client libraries to consume services and its management libraries to configure Azure resources. The catalogue add-ons support development with these libraries.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/azure/azure-sdk-for-java/cosmos-run-integration-testsnpx skills add Azure/azure-sdk-for-java --skill cosmos-run-integration-testsgit clone --depth 1 https://github.com/Azure/azure-sdk-for-javaWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/azure/azure-sdk-for-java/cosmos-run-integration-tests)<a href="https://agentmods.dev/skills/azure/azure-sdk-for-java/cosmos-run-integration-tests"><img src="https://agentmods.dev/badge/skills/azure/azure-sdk-for-java/cosmos-run-integration-tests.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00142 | $0.01863 |
| Opus 5 | $0.00071 | $0.00932 |
| Sonnet 5 | $0.00028 | $0.00373 |
| Haiku 4.5 | $0.00014 | $0.00186 |
Grade A, and why
cosmos-run-integration-tests scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 114 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Running azure-cosmos integration tests locally (CI-equivalent)
TL;DR
CI runs tests in two separate Maven invocations, both on the same JDK (the version CI pins
via JavaTestVersion in eng/pipelines/templates/variables/globals.yml):
- Build + install (
-DskipTests ... install) — compiles main + test classes, installs jars. - Test (
verify -P<profile> -DskipCompile=true -DskipTestCompile=true) — failsafe runs the TestNG suite.
Because step 2 skips compilation, it runs the classes/jars step 1 produced — so both steps must use the same JDK (see below).
There is no separate "surefire command" — integration tests run through failsafe via mvn verify -P<profile>.
⚠️ Critical: use the same JDK for build (step 1) and test (step 2)
Step 1 compiles main + test classes and installs the azure-cosmos / azure-cosmos-tests jars into
~/.m2 using whatever JAVA_HOME you build with. A local incremental install packages those classes
at the build JDK's class-file version (the java9plus profile's default-compile /
default-testCompile use <release>${java.vm.specification.version}</release>, i.e. the build VM's
version). Step 2 then skips compilation (-DskipCompile=true -DskipTestCompile=true) and runs those
already-built classes.
So if step 1 and step 2 use different JDKs you get class-file version mismatches. Example: build on a
newer JDK (class file v65/v69), then run step 2 on JDK 17 (v61) and javac / the runtime rejects the
jars with misleading errors like:
cannot access com.azure.cosmos.implementation.TestConfigurations
bad class file: ...azure-cosmos-*.jar(.../TestConfigurations.class)
class file has wrong version 65.0, should be 61.0
This is NOT a JPMS / module-path / javaModulesSurefireArgLine problem. The parent already sets
useModulePath=false; azure-cosmos lands on -classpath correctly. The only cause is the JDK mismatch
between the two steps.
Fix: pick one JDK and use it for both steps — ideally the major version CI uses for tests
(JavaTestVersion in eng/pipelines/templates/variables/globals.yml). Point JAVA_HOME at that JDK and
prepend it to PATH at the top of every command (adjust the path to your local install):
$env:JAVA_HOME='<path-to-your-jdk>' # e.g. C:\Program Files\OpenLogic\jdk-21.0.10.7-hotspot
$env:PATH="$env:JAVA_HOME\bin;$env:PATH"
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 6d ago First seen · 114 lines · 142 tokens per session scan A 0f43eb9d6175
cosmos-run-integration-tests is a skill published in the GitHub repository Azure/azure-sdk-for-java (2,566 stars, last pushed today), licensed MIT. It adds 142 tokens to every session and 1,863 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
date-formatter
Converts dates between formats and handles timezone differences.
generate-code-cs
Generate the code from typespec for C#. Parameter: C# SDK repository root location .
translate-a-sample
Translate the Azure SDK sample from python to C# and generate markdownn file for the sample. Parameters: C# SDK repository root; python SDK repository root; Package name: one of Azure.AI.Projects, Azure.AI.Projects.Agents or Azure.AI.Extensions.OpenAI; The name of sample file in Python SDK repository.
build-sample-matrix
Build the matrix of all the samples throughout different frameworks.
author-test
Generate a test given sample. Parameters: C# SDK repository root; Package name: one of Azure.AI.Projects, Azure.AI.Projects.Agents or Azure.AI.Extensions.OpenAI; the sample to use as a starting point for the test.
update-changelog
Update the CHANGELOG.md files of C# projects. Parameters: csroot C# SDK repository root.