cu-sdk-setup

A setup guide for using the Java SDK for Azure AI Content Understanding, Microsoft's service for analyzing and extracting information from content. It covers the required Java tools, Azure resources, models, and settings.

In plain words
What is it for?
Use it to install and configure the SDK, check Java and Maven, prepare Azure resources, set authentication settings, and run sample programs.
Why use it?
It helps avoid setup errors caused by missing software, Azure configuration, deployed models, or environment variables. It also pauses for user confirmation at specified steps.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/azure/azure-sdk-for-java/cu-sdk-setup
Any agent
npx skills add Azure/azure-sdk-for-java --skill cu-sdk-setup
Clone the repo
git clone --depth 1 https://github.com/Azure/azure-sdk-for-java

Made for: Claude Code, Codex.

Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,312 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. Scan, not verified.
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 $0.00047 $0.07312
Opus 5 $0.00023 $0.03656
Sonnet 5 $0.00009 $0.01462
Haiku 4.5 $0.00005 $0.00731

Measured 2d ago against content hash e2ebe320fed7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

cu-sdk-setup scanned grade B with 2 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 2d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/setup_user_env.ps1, scripts/setup_user_env.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

> - **Debian / Ubuntu / WSL** → `sudo apt update && sudo apt install -y openjdk-21-jdk maven`

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

> Before asking the user for deployment names, probe what the resource already has configured. Use `curl` with the endpoint and credentials gathered above.
sdk/contentunderstanding/azure-ai-contentunderstanding/.github/skills/cu-sdk-setup/SKILL.md · 577 lines

How it starts

The opening of the file, as written. The whole thing — 577 lines — stays where its author put it; the contents beside it link to each section on GitHub.

SDK User Environment Setup for Azure AI Content Understanding (Java)

Set up your Java environment to use the Azure AI Content Understanding SDK and run samples.

[COPILOT INTERACTION MODEL]: This skill is designed to be interactive. At each step marked with [ASK USER], pause execution and prompt the user for input or confirmation before proceeding. Do NOT silently skip these prompts. Use the ask_questions tool when available.

Prerequisites

Before starting, ensure you have:

  • JDK 8 or later installed (JDK 11+ recommended; JDK 17/21 LTS also supported)
  • Apache Maven 3.6+ installed
  • An Azure subscription (create one for free)
  • A Microsoft Foundry resource in a supported region
  • Azure CLI installed (recommended for DefaultAzureCredential auth via az login)

[COPILOT] Probe JDK/Maven runtime first (before asking): Do not take the user's word for it — run these checks, then report. This prevents silent failures later during mvn operations.

java -version 2>&1 | head -1
mvn -version 2>&1 | head -1

Decision table:

Finding Action
JDK 8+ and Maven 3.6+ both present ✓ Good to go. Proceed to the [ASK USER] block below.
java missing Report the finding, then go to the [ASK USER] JDK/Maven install choice block below.
JDK version < 8 Report the finding, then go to the [ASK USER] JDK/Maven install choice block below.
mvn missing Report the finding, then go to the [ASK USER] JDK/Maven install choice block below.
Maven version < 3.6 Report the finding, then go to the [ASK USER] JDK/Maven install choice block below.

[ASK USER] JDK/Maven install choice (only when probe fails): Ask the user: "JDK or Maven is missing / too old. How would you like to proceed?"

  • Option A: Install it for me — Agent runs the platform-appropriate install command (see below), verifies, and continues.
  • Option B: I'll install it myself — Agent prints the install command for the user's platform and stops. User runs it, re-opens the terminal, and tells the agent to resume.

Default install commands (Option A):

  • macOSbrew install openjdk@21 maven (requires Homebrew; if not installed, fall back to Option B)
  • Debian / Ubuntu / WSLsudo apt update && sudo apt install -y openjdk-21-jdk maven
  • Windowswinget install Microsoft.OpenJDK.21 and winget install Apache.Maven

Before running Option A, confirm with the user one more time by restating the exact command that will execute, then proceed. After install, re-run the probe to verify JDK 8+ and Maven 3.6+ before continuing.

Report the detected versions back to the user in one sentence before the [ASK USER] block below.

Read the full file on GitHub · 577 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2d ago First seen · 577 lines · 47 tokens per session scan B e2ebe320fed7

Subscribe to this mod's changes

cu-sdk-setup is a skill published in the GitHub repository Azure/azure-sdk-for-java (2,565 stars, last pushed today), licensed MIT. It adds 47 tokens to every session and 7,312 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 2 findings (asks for root, makes network calls). 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

dpg-migration

Migration logic for Azure SDK for .NET data-plane libraries migrating from AutoRest/Swagger to TypeSpec-based generation. Uses MCP tools from the generator-agent server for automated deterministic fixes.

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

csharp-azure-spector-coverage-gaps

Discovers and implements gaps in Spector test coverage for the Azure C# HTTP client emitter. Use when asked to find missing Spector scenarios, add Spector test coverage, or implement a specific Spector spec for the Azure C# emitter. Can also compare coverage between the Azure dashboard and the Standard (TypeSpec core)…

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

auto-build-repair

Headless, bounded repair of custom-code build failures in an already-generated Azure SDK PR. Thin wrapper over the shared azure-sdk-mcp:azsdkcustomizedcodeupdate engine in custom-code-only scope (editScope: CustomCode); the skill owns the iterate-until-green loop, capped by a per-language maxIterations read from…

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

azure-sdk-mgmt-pr-review

Review Azure SDK management-plane pull requests, check naming conventions, API compatibility, and code quality.

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

mgmt-review-comment-resolution

Resolve review comments on Azure management-plane .NET SDK PRs. Handles renaming types/properties, changing property types, and other API surface adjustments by updating TypeSpec client.tsp and regenerating.

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

mitigate-breaking-changes

Patterns and techniques for mitigating breaking changes during Azure management-plane SDK migration from Swagger/AutoRest to TypeSpec. Covers SDK-side customizations (partial classes, CodeGenType, CodeGenSuppress) and TypeSpec decorator customizations (clientName, access, markAsPageable, alternateType…

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