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.
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-tsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install azure-ai-contentsafety-ts in Claude Code
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agentic-awesome-skills/skills/azure-ai-contentsafety-ts ~/.gemini/antigravity-cli/skills/azure-ai-contentsafety-tsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install azure-ai-contentsafety-ts in Antigravity CLI
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
ANo 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 →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
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.
