Agent skill · software engineering · aiskillstore

azure-ai-contentsafety-py

Azure AI Content Safety SDK for Python. Use for detecting harmful content in text and images with multi-severity classification.

Why this skill is useful

Provides specific commands and patterns for integrating Azure AI Content Safety SDK into applications, which the AI wouldn't reliably generate on its own.

What it needs

Requires azure-ai-contentsafety installed locally. Requires azure account access. About 2k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

Azure AI Content Safety SDK for Python Detect harmful user-generated and AI-generated content in applications. Installation Environment Variables Authentication API Key Entra ID Analyze Text Analyze Image Image from URL Text Blocklist Management Create Blocklist Add Block Items Analyze with Blocklist Severity Levels Text analysis returns 4 severity levels (0, 2, 4, 6) by default. For 8 levels (0-7): Harm Categories Category Description ---------- ------------- Hate Attacks based on identity (race, religion, gender, etc.) Sexual Sexual content, relationships, anatomy Violence Physical harm, weapons, injury SelfHarm Self-injury, suicide, eating disorders Severity Scale Level Text Range Image Range Meaning ------- ------------ ------------- --------- 0 Safe Safe No harmful content 2 Low Low Mild references 4 Medium Medium Moderate content 6 High High Severe content Client Types Client Purpose -------- --------- ContentSafetyClient Analyze text and images BlocklistClient Manage custom blocklists Best Practices 1. Use blocklists for domain-specific terms 2. Set severity thresholds appropriate for your use case 3. Handle multiple categories — content can be harmful in multiple ways 4. Use haltonblocklisthit for immediate rejection 5. Log analysis results for audit and improvement 6. Consider 8-severity mode for finer-grained control 7. Pre-moderate AI outputs before showing to users When to Use This skill is applicable to execute the workflow or actions described in the overview. Limitations Use this skill only when the task clearly matches the scope described above. Do not treat the output as a substitute for environment-specific validation, testing, or expert review. Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/azure-ai-contentsafety-py

View the source on GitHub

Browse the @skills marketplace