Content moderation api
Skill a5c-ai/babysitter/library/specializations/ai-agents-conversational/skills/content-moderation-api
Content moderation API integration using OpenAI Moderation, Perspective API, and othersFrom its SKILL.md
npx -y skills add a5c-ai/babysitter --skill content-moderation-apiAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
1.5 KB, 228 tokens by cl100k_base, as published. Nobody here has run it
Content Moderation API Skill
Capabilities
- Integrate OpenAI Moderation API
- Set up Perspective API for toxicity detection
- Configure moderation thresholds
- Implement content filtering pipelines
- Design moderation response handling
- Create moderation logging and reporting
Target Processes
- content-moderation-safety
- system-prompt-guardrails
Implementation Details
Moderation APIs
- OpenAI Moderation: Hate, violence, self-harm, sexual content
- Perspective API: Toxicity, insult, profanity, threat
- Azure Content Safety: Text and image moderation
- LlamaGuard: Open-source safety classifier
Configuration Options
- API credentials and endpoints
- Category thresholds
- Action policies (block, warn, flag)
- Logging configuration
- Fallback behavior
Best Practices
- Set appropriate thresholds
- Handle edge cases gracefully
- Log moderation decisions
- Regular threshold review
- Multi-layer moderation
Dependencies
- openai
- google-cloud-language (Perspective)
- azure-ai-contentsafety
What ships with it: 1 file
501 B alongside SKILL.md
- README.md501 B