thearchitectit/agent-guardrails-template/output-security
Claude Code and agent skill by thearchitectit/agent-guardrails-template
- community
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-securitySKILL.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
| Type | Pattern Example | |
|---|---|---|
| AWS Access Key | AKIA... (16 char alphanumeric) | |
| AWS Secret Key | aws_secret_access_key = ... | |
| GitHub Token | ghp_..., gho_..., ghu_..., etc. | |
| GitLab Token | glpat-... | |
| Slack Token | xoxb-..., xoxp-..., etc. | |
| Stripe Live Key | sk_live_... | |
| Private Key | -----BEGIN RSA PRIVATE KEY----- | |
| Database URL | postgres://..., mysql://..., mongodb://... |
Warning Severity
| Type | Pattern Example | |
|---|---|---|
| Stripe Test Key | sk_test_... | |
| JWT | eyJ... (base64 segments) | |
| Generic API Key | api_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
- Do not repeat the secret value in your response
- Warn the user that a secret was exposed in the output
- Suggest rotating the credential immediately
- Log the violation using
guardrail_log_violationwith law "law-3" and severity "critical"
Configuration
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
- SKILL.md in the repositoryCheckingpi-extension/skills/output-security/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/output-security)