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
Not recommended
48/ 100 5-point scale 2.4 / 5
Trust15 / 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.

Reliability7 / 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.

Adaptability8 / 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.

Convention8 / 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.

Effectiveness6 / 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.

Verifiability4 / 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 it does & when to 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.

Pros & cons

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 to install

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 to use

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 Identity for Python

A practical skill for securing Python Azure applications with Microsoft Entra ID credentials.

Dev & Engineering ✓ Microsoft · Official

Azure Event Hubs Java Skill

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

Dev & Engineering ✓ Microsoft · Official

Azure Tables for Python

A practical guide to building authenticated Azure Tables applications with Python entity CRUD, queries, and partition-scoped batch operations.

Dev & Engineering ✓ Microsoft · Official

Azure Identity for TypeScript

Configure secure, flexible Microsoft Entra ID authentication for TypeScript Azure applications.

Automation & Ops ✓ Microsoft · Official

Azure Reliability Advisor

Assess and improve reliability for Azure Functions and App Service.

Dev & Engineering ✓ Microsoft · Official

Azure Cloud Architect

Guides coding agents through production-grade Azure architecture design and review using Azure Architecture Center practices.

Dev & Engineering ✓ Microsoft · Official

Azure AI Text Analytics for Python

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

Automation & Ops ✓ Microsoft · Official

Azure Resource Architecture Visualizer

Analyze Azure resource groups and turn their dependencies into detailed Mermaid architecture diagrams.

Dev & Engineering ✓ Microsoft · Official

Azure Maps for .NET

Build .NET location features for search, routing, maps, geolocation, and weather.

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 Blob Storage for Python

Guides secure, production-minded Blob Storage operations in Python.

Dev & Engineering ✓ Microsoft · Official

Azure Queue Storage for Python

Gives coding agents reliable Python patterns for secure Azure Queue Storage messaging and asynchronous task processing.

Automation & Ops ✓ Microsoft · Official

Azure AI Gateway Governance

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

Automation & Ops ✓ Microsoft · Official

AKS Automatic Readiness

Assess Kubernetes workloads for AKS Automatic compatibility and identify migration blockers before you switch.

Dev & Engineering ✓ Microsoft · Official

Azure Cosmos DB ARM for .NET

Provision and manage Azure Cosmos DB resources from .NET through ARM.

Dev & Engineering ✓ Microsoft · Official

Azure Playwright Workspace Manager

Provision and manage Microsoft Playwright Testing workspaces with .NET and Azure Resource Manager.

Dev & Engineering ✓ Microsoft · Official

Azure Cosmos DB for Python

A practical guide for building reliable Python applications on Azure Cosmos DB’s NoSQL API.

Dev & Engineering ✓ Microsoft · Official

Azure Key Vault SDK for Python

Gives Python coding agents practical guidance for securely managing Azure Key Vault secrets, keys, and certificates.

Dev & Engineering ✓ Microsoft · Official

Azure API Management for Python

Gives coding agents practical Python SDK patterns for managing Azure API Management services, APIs, products, subscriptions, and policies.

Dev & Engineering ✓ Microsoft · Official

Azure Monitor Query for Python

Generate Python code for querying Azure Monitor logs and metrics.

Related skills