Agent skill · marketing growth · jeremylongshore
clade-policy-guardrails
Implement content safety guardrails for Claude \u2014 input filtering,\n\
Why this skill is useful
Provides specific input and output validation functions tailored for Claude applications that enhance content safety and compliance.
What it needs
About 2k tokens when loaded. Last updated 2026-08-07. 2,604 stars on the source repository.
What this skill does
Anthropic Policy & Guardrails Overview Implement content safety guardrails for Claude-powered applications. Covers system prompt hardening with explicit rules, input validation (length limits, injection pattern detection), output validation (system prompt leak prevention), and compliance with Anthropic's Acceptable Use Policy. System Prompt Guardrails Input Validation Output Validation Anthropic's Built-In Safety Claude has built-in content safety that: Refuses to generate harmful content Avoids helping with illegal activities Declines to impersonate real people Won't generate explicit content You don't need to replicate this — focus your guardrails on application-specific rules. Usage Policies Review Anthropic's Acceptable Use Policy Don't use Claude for: weapons, CSAM, deception at scale, surveillance Monitor for policy violations in your application's logs Error Handling Error Cause Solution ------- ------- ---------- API Error Check error type and status code See clade-common-errors Output Record the applicable policy, input/output decision, safe refusal or escalation path, test case identifier, and owner of any approved exception. Do not retain unnecessary prompt content, credentials, or personal data in guardrail logs; use redacted correlation data with the shortest compatible retention period. Examples See System Prompt Guardrails, Input Validation function, Output Validation function, and Anthropic Built-In Safety section above. Resources Anthropic AUP Safety Best Practices Next Steps See clade-architecture-variants for different Claude app patterns. Prerequisites Completed clade-install-auth Application with user-facing Claude interactions Understanding of your application's content policy requirements Instructions Step 1: Review the patterns below Each section contains production-ready code examples. Copy and adapt them to your use case. Step 2: Apply to your codebase Integrate the patterns that match your requirements. Test each change individually. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills jeremylongshore/clade-policy-guardrails--ae92e4