Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

azure-ai-contentsafety-java

Skill by sickn33

Guides developers in building Java content moderation apps with the Azure AI Content Safety SDK. It covers text and image analysis and custom blocklist management.

  • Score 90
  • 50k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install azure-ai-contentsafety-java

Built from the published package, never by AI.

git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/azure-ai-contentsafety-java ~/.claude/skills/azure-ai-contentsafety-java

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install azure-ai-contentsafety-java in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill guides an AI assistant in building content moderation applications with the Azure AI Content Safety SDK for Java. It covers adding the azure-ai-contentsafety Maven dependency and creating clients with an API key or DefaultAzureCredential. It shows how to analyze text and images for hate, sexual, violence and self-harm content, and how to manage custom blocklists.

Text results use a 0 to 7 severity scale, and images use a trimmed scale of 0, 2, 4 and 6. The source also notes that model scores are probabilistic, that service errors are unassessed rather than severity zero, and that blocklist changes affect live moderation. It is aimed at Java developers who need content safety checks in their applications.

Written from the project's SKILL.md and checked against it.

What it can do

  • Analyze textScores text for hate, sexual, violence and self-harm categories with severity levels.
  • Analyze text with optionsLimits analysis to chosen categories and sets the output type, such as eight severity levels.
  • Analyze text with blocklistChecks text against named blocklists and can halt on a blocklist hit.
  • Analyze imageScores image content from file bytes for the same harm categories.
  • Analyze image from URLScores an image referenced by a blob URL.
  • Create or update blocklistCreates or updates a text blocklist and returns the HTTP status code.
  • Add block itemsAdds or updates text items in a blocklist with optional descriptions.
  • List and get blocklistsLists all text blocklists or retrieves one by name.
  • Remove block itemsRemoves blocklist items by their item IDs.
  • Delete blocklistDeletes a text blocklist by name.

What you need

  • Java
  • Maven
  • Azure AI Content Safety endpoint
  • API key or Azure credentials for DefaultAzureCredential

Try asking

  • Write a Java method that analyzes text for hate and violence with Content Safety.
  • Show me how to create a blocklist and add terms with the Azure Java SDK.
  • Analyze an image from a URL for harmful content using Java.

Good to know

  • The Maven example uses version 1.1.0-beta.1, which is a beta release.
  • Blocklist changes take about 5 minutes to take effect.
  • Model scores are probabilistic and do not guarantee content is safe.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/azure-ai-contentsafety-java/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md8 KB

Alternatives to azure-ai-contentsafety-java

All alternatives →

Compare with function_health, windows-privilege-escalation or github-actions-advanced

azure-ai-contentsafety-java: common questions

What harm categories does it check?

The source lists hate, sexual, violence and self-harm categories. Text uses a 0 to 7 severity scale and images use 0, 2, 4 and 6.

How do custom blocklists work?

You create a named blocklist, add text items, and reference it in text analysis. Changes take about 5 minutes to take effect.

How does it authenticate to Azure?

It supports an API key with the endpoint from environment variables, or DefaultAzureCredential.

How do I install azure-ai-contentsafety-java?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is azure-ai-contentsafety-java free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is azure-ai-contentsafety-java safe to use?

It scores 90 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to azure-ai-contentsafety-java?

Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.

azure-ai-contentsafety-java Install

Add to stack

Loading.