thearchitectit/agent-guardrails-template/output-security

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.

Prevent sensitive data (secrets, credentials, PII) from leaking in agent output

Install

npx vskill@latest install thearchitectit/agent-guardrails-template/output-security

SKILL.md

Output Security & Secret Scanning

The pi-guardrails extension automatically scans your tool call results for sensitive data. This prevents accidental exposure of secrets, credentials, and PII in conversation history and logs.

Automatic Enforcement

The output validation handler runs on every tool_result event. When sensitive data is detected:

  • Critical findings (AWS keys, GitHub tokens, private keys, database URLs): The content is redacted and a violation is logged.
  • Warning findings (generic API keys, JWTs, emails, IP addresses): The content passes through but is flagged in the violation log.

Detected Secret Types

Critical Severity
TypePattern Example
AWS Access KeyAKIA... (16 char alphanumeric)
AWS Secret Keyaws_secret_access_key = ...
GitHub Tokenghp_..., gho_..., ghu_..., etc.
GitLab Tokenglpat-...
Slack Tokenxoxb-..., xoxp-..., etc.
Stripe Live Keysk_live_...
Private Key-----BEGIN RSA PRIVATE KEY-----
Database URLpostgres://..., mysql://..., mongodb://...
Warning Severity
TypePattern Example
Stripe Test Keysk_test_...
JWTeyJ... (base64 segments)
Generic API Keyapi_key = ..., secret = ...
Email (if PII enabled)user@domain.com
IP Address (if PII enabled)192.168.1.1

Auto-Redaction

When autoRedact is enabled in config, sensitive values are replaced with [REDACTED] in the tool result you receive. The original value is never stored in logs.

What To Do When Secrets Are Detected

  1. Do not repeat the secret value in your response
  2. Warn the user that a secret was exposed in the output
  3. Suggest rotating the credential immediately
  4. Log the violation using guardrail_log_violation with law "law-3" and severity "critical"

Configuration

json
{
"outputValidation": {
"enablePII": false,
"autoRedact": true,
"redactionText": "[REDACTED]"
}
}

MCP Bridge

When connected, guardrail_mcp with action scan_output provides server-side scanning with a larger pattern database and shared audit trail.

References

  • [[injection-defense]] — Complementary input scanning for injection attacks
  • [[content-safety]] — Topic-based content filtering
  • [[canary-tokens]] — Detect if secrets are being exfiltrated in agent output

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/output-security/badge)](https://verified-skill.com/skills/thearchitectit/agent-guardrails-template/output-security)

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