Agent skill · software engineering · aiskillstore
azure-ai-contentsafety-ts
Analyze text and images for harmful content with customizable blocklists.
Why this skill is useful
Provides specific API commands and patterns for analyzing text and images for harmful content using Azure's Content Safety SDK, which the AI wouldn't reliably generate on its own.
What it needs
Requires @azure-rest/ai-content-safety, @azure/core-auth, @azure/identity installed locally. Requires azure account access. About 3k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.
What this skill does
Azure AI Content Safety REST SDK for TypeScript Analyze text and images for harmful content with customizable blocklists. Installation Environment Variables Authentication Important: This is a REST client. ContentSafetyClient is a function, not a class. API Key DefaultAzureCredential Analyze Text Analyze Image Base64 Content Blob URL Blocklist Management Create Blocklist Add Items to Blocklist Analyze with Blocklist List Blocklists Delete Blocklist Harm Categories Category API Term Description ---------- ---------- ------------- Hate and Fairness Hate Discriminatory language targeting identity groups Sexual Sexual Sexual content, nudity, pornography Violence Violence Physical harm, weapons, terrorism Self-Harm SelfHarm Self-injury, suicide, eating disorders Severity Levels Level Risk Recommended Action ------- ------ ------------------- 0 Safe Allow 2 Low Review or allow with warning 4 Medium Block or require human review 6 High Block immediately Output Types: FourSeverityLevels (default): Returns 0, 2, 4, 6 EightSeverityLevels: Returns 0-7 Content Moderation Helper API Endpoints Operation Method Path ----------- -------- ------ Analyze Text POST /text:analyze Analyze Image POST /image:analyze Create/Update Blocklist PATCH /text/blocklists/{blocklistName} List Blocklists GET /text/blocklists Delete Blocklist DELETE /text/blocklists/{blocklistName} Add Blocklist Items POST /text/blocklists/{blocklistName}:addOrUpdateBlocklistItems List Blocklist Items GET /text/blocklists/{blocklistName}/blocklistItems Remove Blocklist Items POST /text/blocklists/{blocklistName}:removeBlocklistItems Key Types Best Practices 1. Always use isUnexpected() - Type guard for error handling 2. Set appropriate thresholds - Different categories may need different severity thresholds 3. Use blocklists for domain-specific terms - Supplement AI detection with custom rules 4. Log moderation decisions - Keep audit trail for compliance 5. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills aiskillstore/azure-ai-contentsafety-ts