Dev & Engineering ✓ Microsoft · Official javaazure-aicontent-moderationimage-analysisblocklist-managementharm-detection

Azure AI Content Safety for Java

Helps Java applications detect harmful text and images and manage custom blocklists.

FollowSkills review · FSRS-2.0
Use with care
48/ 100 5-point scale 2.4 / 5
1 2 3 4 5 6
1Trust15 / 25 · 3.0/5

The evidence shows credentials are supplied through environment variables or Azure identity credentials, with no malware or covert exfiltration; however, URL-based image analysis sends data to an external Azure service, examples print potentially sensitive blocklist text, and blocklist creation, modification, and deletion lack confirmation, permission boundaries, or rollback guidance, so points are deducted.

2Reliability7 / 20 · 1.8/5

The evidence covers client creation, text and image analysis, blocklists, and exception handling, including synchronous and asynchronous patterns; however, the main document uses 1.1.0-beta.1 while the reference uses 1.0.16, some examples omit visible imports or variable definitions, and no skill-specific reproducible tests are provided, so the score is conservative under the static ceiling.

3Adaptability8 / 15 · 2.7/5

The evidence identifies the Java SDK audience, use cases, and trigger phrases fairly clearly, covering text, images, and blocklists; however, non-fit boundaries, input/output contracts, semantic boundaries, Chinese-language handling, and mainland-China network reachability are not stated, and the triggers remain broad, so points are deducted.

4Convention8 / 15 · 2.7/5

The evidence includes front matter, MIT licensing, a version field, installation notes, structured sections, and a separate examples file; however, dependency versions conflict between files, and changelog, maintenance ownership and update path, troubleshooting, and known limitations are not documented, so points are deducted.

5Effectiveness6 / 15 · 2.0/5

The evidence provides directly adaptable Java snippets for core analysis and blocklist operations, offering clear value over writing the integration from scratch; however, the code was not executed, API/version consistency is uncertain, and production decisions such as thresholds, retries, and privacy handling require review, so full marks are not justified.

6Verifiability4 / 10 · 2.0/5

The evidence consists mainly of the skill's own code samples, metadata, and repository documentation; although the repository contains generic tests and CI files, no skill-specific tests covering key paths or third-party execution evidence are shown, so only limited static auditability is credited.

Evidence confidence:Low Reviewed Jul 20, 2026 Reviewed revision 9ccaf7c3704a
Before you use it
  • Align the SDK dependency versions in the main document and references/examples.md, then compile-check all examples against the target version.
  • Document least privilege, privacy, log redaction, and data flows for API keys, input text, image URLs, and blocklist match text.
  • Deleting a blocklist is high-impact; add explicit confirmation and backup or recovery guidance.
  • Document mainland-China reachability, Chinese-content handling, and regional service limitations.
See the full review method →

What does this skill do, and when should you use it?

This skill supports developers building moderation applications with the Azure AI Content Safety SDK for Java. It covers text and image analysis, detection of hate, sexual, violence, and self-harm content, and text blocklist administration. It includes client setup with API keys or DefaultAzureCredential. It is a good fit for Azure-based Java services that need moderation guidance, but its examples use a beta SDK version and the source does not provide skill-specific test results.

Explains how to add com.azure:azure-ai-contentsafety:1.1.0-beta.1, create ContentSafetyClient and BlocklistClient instances, analyze text, local image bytes, or image URLs, read category and severity results, select categories and severity output modes, apply blocklists, and create, update, retrieve, list, add, remove, and delete blocklists and blocklist items. It also documents HttpResponseException handling, required environment variables, and practices involving batching, caching, category selection, and severity thresholds.

  1. A Java web service needs to screen user-submitted text for hate, violence, sexual, or self-harm content.
  2. An image-upload application needs to moderate local images before storing or displaying them.
  3. A community or customer-support system needs custom blocklists and must stop processing when a match occurs.
  4. A production Java service using Azure managed identity needs to access Content Safety through DefaultAzureCredential.

What are this skill's strengths and limitations?

Pros
  • Covers text analysis, image analysis, and custom blocklist management.
  • Provides both API-key and DefaultAzureCredential authentication examples.
  • Includes severity handling, exception handling, environment variables, and common operations.
  • Released under the MIT license and suited to Java/Azure development workflows.
Limitations
  • The examples use SDK version 1.1.0-beta.1; stability and API-change risks are not discussed.
  • Requires network access to an Azure AI Content Safety endpoint.
  • The source provides no dedicated test coverage or acceptance results for this individual skill.
  • Pricing, regional availability, and service quota information are not included.

How do you install this skill?

Add the following dependency to the Java project's Maven configuration: com.azure:azure-ai-contentsafety:1.1.0-beta.1. The source does not provide a complete project file or additional build commands. The broader skill collection can be installed with npx skills add microsoft/skills, then selected through its wizard.

How do you use this skill?

Ask the coding agent for “content safety Java,” “content moderation Azure,” “analyze text safety,” “image moderation Java,” or “blocklist management.” Set CONTENT_SAFETY_ENDPOINT. Set CONTENT_SAFETY_KEY when using AzureKeyCredential, or set AZURE_TOKEN_CREDENTIALS when using DefaultAzureCredential in production. Create the client and call analyzeText, analyzeImage, or the relevant blocklist-management methods.

FAQ

Do I need an API key?
Not necessarily. The examples support KeyCredential as well as DefaultAzureCredential or ManagedIdentityCredential. All authentication modes still require CONTENT_SAFETY_ENDPOINT.
Which moderation categories are supported?
The examples cover Hate, Sexual, Violence, and Self-harm for text and image analysis, with severity results for each category.
How are failures handled?
The examples catch HttpResponseException and read the HTTP status code and error message. Listed common errors include InvalidRequestBody, ResourceNotFound, and TooManyRequests.
Does using the Azure service cost money?
The supplied source does not provide pricing or billing details, so those must be checked separately in Azure service documentation.

More skills from this repository

All from microsoft/agent-skills

Dev & Engineering ✓ Microsoft · Official

Azure AI Content Safety for TypeScript

Add text and image harm detection with customizable blocklists to TypeScript applications.

Dev & Engineering ✓ Microsoft · Official

Azure AI Content Safety for Python

Guides Python applications in detecting harmful text and images and enforcing custom blocklists.

Dev & Engineering ✓ Microsoft · Official

Azure AI Persistent Agents for Java

Guides Java developers through building and managing Azure AI agents with persistent threads, messages, runs, and tools.

Dev & Engineering ✓ Microsoft · Official

Azure AI Vision Image Analysis

Guides Python coding agents in implementing Azure AI Vision image understanding.

Dev & Engineering ✓ Microsoft · Official

Azure AI Anomaly Detector for Java

A practical Java skill for building univariate and multivariate time-series anomaly detection with Azure AI Anomaly Detector.

Dev & Engineering ✓ Microsoft · Official

Azure App Configuration for Java

Guides Java apps in centralizing settings, feature flags, and release snapshots.

Dev & Engineering ✓ Microsoft · Official

Azure Identity for Java

Configure secure Microsoft Entra ID authentication for Java applications using Azure SDKs.

Dev & Engineering ✓ Microsoft · Official

Azure SMS for Java

Send Azure Communication Services SMS from Java with per-recipient results and delivery tracking.

Dev & Engineering ✓ Microsoft · Official

Azure Cosmos DB Java Skill

Guides Java developers in building globally distributed, partitioned, and reactive Azure Cosmos DB applications.

Dev & Engineering ✓ Microsoft · Official

Azure Monitor Telemetry for Java

Guides Java teams in exporting OpenTelemetry data to Azure Monitor.

Dev & Engineering ✓ Microsoft · Official

Azure AI Vision Image Analysis for Java

A practical Java SDK guide for captions, OCR, object detection, tagging, and smart image cropping.

Automation & Ops ✓ Microsoft · Official

Azure AI Gateway Governance

Use Azure API Management to govern traffic across AI models, MCP tools, and agents.

Dev & Engineering ✓ Microsoft · Official

Azure AI Projects for Java

Guides Java developers in managing Azure AI Foundry project resources.

Dev & Engineering ✓ Microsoft · Official

Azure AI Text Analytics for Python

Guides Python developers through Azure-powered text analysis and NLP workflows.

Dev & Engineering ✓ Microsoft · Official

Azure Voice Live for Python

Guides Python developers in building real-time, bidirectional voice AI applications on Azure.

Dev & Engineering ✓ Microsoft · Official

Azure OpenAI Custom Deployment Guide

A guided Azure OpenAI deployment flow for precise version, capacity, policy, and SKU control.

Dev & Engineering ✓ Microsoft · Official

Azure AI VoiceLive for Java

Build real-time, bidirectional AI voice conversations in Java over WebSocket.

Data & Analysis ✓ Microsoft · Official

Azure Data Explorer Kusto Analytics

Query, aggregate, and analyze Azure Data Explorer logs, telemetry, and time-series data with KQL.

Dev & Engineering ✓ Microsoft · Official

Azure Key Vault Secrets for Java

Guides Java developers through secure storage, retrieval, rotation, recovery, and backup of application secrets in Azure Key Vault.

Dev & Engineering ✓ Microsoft · Official

Azure Event Hubs Java Skill

Build production-oriented Java event streaming applications on Azure Event Hubs.

Related skills