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-ts

Skill by sickn33

Analyzes text and images for harmful content using the Azure AI Content Safety REST SDK in TypeScript. It also supports custom blocklists for domain-specific terms. Aimed at developers adding content moderation to Azure-based apps.

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

Install azure-ai-contentsafety-ts

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-ts ~/.claude/skills/azure-ai-contentsafety-ts

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

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

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

About

This skill shows how to use the Azure AI Content Safety REST SDK in TypeScript. It covers analyzing text and images for harm in four categories: Hate, Sexual, Violence and SelfHarm. Results come back as severity levels, with FourSeverityLevels or EightSeverityLevels output. The client is created as a function, not a class, using an API key or DefaultAzureCredential.

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

What it can do

  • Analyze textChecks text against harm categories and returns a severity for each.
  • Analyze imageChecks an image sent as base64 content or from a blob URL.
  • Create and update blocklistsCreates or updates a named blocklist with a description.
  • Add blocklist itemsAdds blocked terms with descriptions to a blocklist.
  • Analyze with blocklistChecks text against named blocklists and reports any matches.
  • List and delete blocklistsLists existing blocklists or deletes one by name.
  • Content moderation helperCombines severity thresholds and blocklist matches into an allow or block result.

What you need

  • Azure AI Content Safety endpoint and API key, or Azure credentials for DefaultAzureCredential
  • Node.js with npm
  • The npm packages @azure-rest/ai-content-safety, @azure/identity and @azure/core-auth

Try asking

  • Check this customer review for hate, violence or self-harm content using Azure Content Safety.
  • Create a blocklist called my-blocklist and add these prohibited terms to it.
  • Analyze this image with Azure Content Safety and report the severity for each category.

Good to know

  • The output is not a substitute for environment-specific validation, testing, or expert review.
  • A zero severity is a model result, not proof of safety.
  • Authorize cloud transmission of private content before sending it.
  • Do not expose raw error bodies or blocklisted text in public logs.

Security check

A

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

Checked automatically: skills/azure-ai-contentsafety-ts/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-ts

All alternatives →

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

azure-ai-contentsafety-ts: common questions

What harm categories does it check?

It checks Hate, Sexual, Violence and SelfHarm. Each category returns a severity level.

What severity levels are returned?

By default the output is FourSeverityLevels, with values 0, 2, 4 and 6. EightSeverityLevels returns values from 0 to 7.

Can I use my own blocked terms?

Yes. The skill covers creating blocklists, adding items to them, and passing blocklist names when analyzing text.

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

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

Is azure-ai-contentsafety-ts free?

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

Is azure-ai-contentsafety-ts 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-ts?

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

azure-ai-contentsafety-ts Install

Add to stack

Loading.