Install any skill in seconds. Free to start, no credit card required.
Get Started Free →microsoft/azure-ai-contentsafety-ts
Analyze text and images for harmful content using Azure AI Content Safety (@azure-rest/ai-content-safety).
Passed 22 of 22 test cases with the skill, and 17 of 22 without it.
and 4 more in the full report
5 fixed17 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 5 test cases the skill fixed. Same model, same prompt, with and without the skill.
Write TypeScript code to initialize an Azure AI Content Safety client for production deployment where authentication should use environment-configured Azure credentials.
| Checked | Without skill | With skill |
|---|---|---|
| Passes requiredEnvVars setting AZURE_TOKEN_CREDENTIALS to DefaultAzureCredential. | Missed | Passed |
| Supplies the credential object directly as the second argument to the ContentSafetyClient factory function. | Passed | Passed |
The instructions your model reads when the skill loads.
Analyze text and images for harmful content with customizable blocklists.
npm install @azure-rest/ai-content-safety @azure/identity @azure/core-auth
CONTENT_SAFETY_ENDPOINT=https://<resource>.cognitiveservices.azure.com
CONTENT_SAFETY_KEY=<api-key>
AZURE_TOKEN_CREDENTIALS=prod # Required only if DefaultAzureCredential is used in production
Important: This is a REST client. ContentSafetyClient is a function, not a class.
import ContentSafetyClient from "@azure-rest/ai-content-safety";
import { AzureKeyCredential } from "@azure/core-auth";
const client = ContentSafetyClient(
process.env.CONTENT_SAFETY_ENDPOINT!,
new AzureKeyCredential(process.env.CONTENT_SAFETY_KEY!)
);
import ContentSafetyClient from "@azure-rest/ai-content-safety";
import { DefaultAzureCredential, ManagedIdentityCredential } from "@azure/identity";
test cases passed, vs 17 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.