thearchitectit/agent-guardrails-template/content-safety
Claude Code and agent skill by thearchitectit/agent-guardrails-template
- community
Checking that the SKILL.md file is still in the repository.
Topic-based content filtering to block harmful or unauthorized content in agent output
Install
npx vskill@latest install thearchitectit/agent-guardrails-template/content-safetySKILL.md
Content Safety & Filtering
Content filtering supplements output validation by scanning for topic-level harmful content rather than specific secret patterns. It enforces organizational content policies.
Automatic Enforcement
When configured, the content filter runs alongside output validation on every tool result. Since tool_result handlers are side-effect only (they cannot block content from reaching the agent), the filter detects and warns about denied content via violation logging and status bar alerts.
Filtering Modes
Denylist Mode
Block specific topics from appearing in any output:
Allowlist Mode (Strict)
In strict mode, everything not on the allowed list is blocked. Use this for highly regulated environments:
Built-In Topic Patterns
| Topic | Patterns | |
|---|---|---|
| violence | kill, murder, attack, assault, bomb, weapon, shoot, stab | |
| hate | hate, bigot, racist, slur, discrimination | |
| self_harm | suicide, self-harm, cutting, overdose | |
| sexual | pornograph, explicit, nsfw, sexual | |
| credentials | password = ..., secret = ..., api_key = ... |
Custom Topics
Add organization-specific topics with custom patterns:
What To Do When Content Is Blocked
- Do not rephrase the flagged content to work around the filter
- Inform the user that content was flagged by policy
- Proceed with the safe portions of your task
- If the block seems incorrect, suggest the user review their content filter configuration
MCP Bridge
When connected, guardrail_mcp with action filter_content applies server-side content policies that may be stricter than local configuration.
References
- [[output-security]] — Secret/PII pattern scanning (complementary)
- [[injection-defense]] — Injection attack detection (complementary)
- [[policy-config]] — How policies cascade from org → team → project
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpi-extension/skills/content-safety/SKILL.md
Popularity
- Repository stars
- 78
- Repository forks
- 2
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/thearchitectit/agent-guardrails-template/content-safety)