thearchitectit/agent-guardrails-template/content-safety

Claude Code and agent skill by thearchitectit/agent-guardrails-template

Trust tier 3
  • community
Source check pending

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

SKILL.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:

json
{
"outputValidation": {
"contentFilter": {
"deniedTopics": ["violence", "hate", "self_harm", "sexual", "credentials"]
}
}
}
Allowlist Mode (Strict)

In strict mode, everything not on the allowed list is blocked. Use this for highly regulated environments:

json
{
"outputValidation": {
"contentFilter": {
"allowedTopics": ["code", "documentation"],
"strictMode": true
}
}
}

Built-In Topic Patterns

TopicPatterns
violencekill, murder, attack, assault, bomb, weapon, shoot, stab
hatehate, bigot, racist, slur, discrimination
self_harmsuicide, self-harm, cutting, overdose
sexualpornograph, explicit, nsfw, sexual
credentialspassword = ..., secret = ..., api_key = ...

Custom Topics

Add organization-specific topics with custom patterns:

json
{
"outputValidation": {
"contentFilter": {
"deniedTopics": ["internal_project_names"],
"topicPatterns": {
"internal_project_names": ["\\bProjectX\\b", "\\bAurora\\b", "\\bTitan\\b"]
}
}
}
}

What To Do When Content Is Blocked

  1. Do not rephrase the flagged content to work around the filter
  2. Inform the user that content was flagged by policy
  3. Proceed with the safe portions of your task
  4. 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/thearchitectit/agent-guardrails-template/content-safety/badge)](https://verified-skill.com/skills/thearchitectit/agent-guardrails-template/content-safety)

Something wrong with this skill or its page? Tell us.