cosmos-run-integration-tests

cosmos-run-integration-tests is a skill for Claude Code, Codex from Azure/azure-sdk-for-java. It costs 142 tokens per session (1,863 once invoked), scanned A, original, MIT.

A local test procedure for Azure Cosmos integration tests, which check how an application works with a real Cosmos database and customer workflows. It follows the project's continuous-integration build and test steps.

In plain words
What is it for?
Use it to build, install, and run the Azure Cosmos customer-workflow integration tests locally with Maven and the correct test profile.
Why use it?
It avoids confusing local test results caused by using different Java versions for building and testing, or by skipping the required build step.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one.

Good fit Use it to build, install, and run the Azure Cosmos customer-workflow integration tests locally with Maven and the correct test profile.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/azure/azure-sdk-for-java/cosmos-run-integration-tests
About the project

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.

Azure/azure-sdk-for-java · 2,565 stars · on GitHub

Install

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.

Any agent
npx skills add Azure/azure-sdk-for-java --skill cosmos-run-integration-tests
Clone the repo
git clone --depth 1 https://github.com/Azure/azure-sdk-for-java

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for cosmos-run-integration-tests

README.md
[![agentmods](https://agentmods.dev/badge/skills/azure/azure-sdk-for-java/cosmos-run-integration-tests/github.svg)](https://agentmods.dev/skills/azure/azure-sdk-for-java/cosmos-run-integration-tests)
Your own site
<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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cosmos-run-integration-tests

Your own site · 80×15
<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="Reviewed on agentmods" width="80" height="20"></a>
Per session 142 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,863 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00142 $0.01863
Opus 5.5 $0.00057 $0.00745
Sonnet 5.5 $0.00028 $0.00373
Haiku 4.5 $0.00014 $0.00186

Measured 2mo ago against content hash 0f43eb9d6175, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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 2mo 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.

sdk/cosmos/azure-cosmos-tests/.github/skills/cosmos-run-integration-tests/SKILL.md · 114 lines

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):

  1. Build + install (-DskipTests ... install) — compiles main + test classes, installs jars.
  2. 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"

Read the full file on GitHub · 114 lines

Changes

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.

  1. 2mo ago First seen · 114 lines · 142 tokens per session scan A 0f43eb9d6175

Subscribe to this mod's changes

cosmos-run-integration-tests is a skill published in the GitHub repository Azure/azure-sdk-for-java (2,565 stars, last pushed today), licensed MIT. It adds 142 tokens to every session and 1,863 once invoked, about $0.0006 per session on Opus 5.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.

Related

Other skills, from other repositories

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.

Azure/azure-sdk-for-net · 68 tokens

date-formatter

Converts dates between formats and handles timezone differences.

Azure/azure-sdk-for-net · 13 tokens

develop-inspection-feature

End-to-end workflow for adding a new inspection or quick-fix feature to the explyt/spring-plugin repository: duplicate check, fact verification against authoritative javadoc, base-class and gating choice (isAvailableForFile), visible-element highlighting, registration, platform tests, branch and PR. Use when the user…

explyt/spring-plugin · 103 tokens

java-affected-tests

Use before opening or updating an OpenMetadata PR that changes Java, a JSON schema, an index mapping, a SQL migration, seed data or a pom — PR CI no longer runs the Java integration tests (they run only in the merge queue) and the JavaUIIT/search-it suites run only nightly, so this selects the unit tests and…

open-metadata/OpenMetadata · 120 tokens

tika-eval-compare

Compare extracts from two Tika builds over a corpus to detect regressions in content, encoding, exceptions, and embedded-document handling. Use for "compare before/after extracts", "eval this change against the corpus".

apache/tika · 50 tokens

azure-security-keyvault-keys-java

Azure Key Vault Keys Java SDK for cryptographic key management. Use when creating, managing, or using RSA/EC keys, performing encrypt/decrypt/sign/verify operations, or working with HSM-backed keys.

microsoft/skills · 50 tokens