/gabbe-security:ai-safety-guardrailsfrom gabbe-security
Adds input, output, retrieval, and execution guardrails around LLM features: PII scrubbing, jailbreak pre-filters, output validation, and human approval for high-stakes actions. Use when building or reviewing features that send user data to a model or act on model output.
Ships in gabbe-security. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill protects the system from its own AI.
Phase and gate: S02 and S03 (rails in the design and spec), S05 (build), S07 (review). Evidence: a table of rails (input, output, dialog, retrieval, execution) in docs/security/THREAT_MODEL.md, and a test for each rail. Part of security-baseline.skill.md for AI software.
KNOWN-WEAK, necessary-not-sufficient layers. Delimiters/"Sandwich Defense" and pattern-matching jailbreak filters are trivially bypassed and must never be the sole or authoritative defense — treat them as cheap pre-filters only. The authoritative controls are structural (instruction hierarchy, dual-LLM quarantine, least-privilege tokens, egress filtering, HITL on trifecta-complete actions). See
prompt-injection-defense.skill(which states: "Pattern-matching filters and 'ask the LLM to detect the injection' are known-weak and trivially bypassed") for the layered defense these rails must enforce.
Rather than treating guardrails as a single filter, model them as rails — NeMo-Guardrails-style middleware that sits around the LLM and intercepts each stage of the interaction. Defense-in-depth means more than one rail is active, so a bypass at one stage is still caught at another.
prompt-injection-defense.skill for the layered direct/indirect injection defenses these rails enforce.output-validation.skill for the schema-validation + retry-on-failure and PII-masking mechanics.For how these controls map onto named AI-risk standards (OWASP LLM Top 10, NIST AI RMF, MITRE ATLAS, ISO/IEC 42001, EU AI Act), see the guide ai-risk-standards-map.
The table of rails with the test for each, and the list of actions that need human approval.
What SKILL.md sets; muted values are Claude Code's defaults
21 skills in this plugin
/access-controlDesign roles and permissions with least privilege and review authorisation checks. Use when adding roles, permissions or admin features, or when auditing who can access what./agent-sandboxingIntrinsic least-privilege isolation for agents touching a local OS, shell, or filesystem — the enforcement layer behind prompt-injection-defense and ai-safety-guardrails. Use when: agent sandbox, sandbox policy, least privilege isolation, filesystem allowlist, egress deny-by-default, syscall restriction, microVM agent isolation, contain agent blast radius./agent-tool-reviewReview which tools, permissions and data an AI agent in the software has, and cut them to what its task needs. Use at S02 and S07 for any product or feature in which a model can call tools, write files, send messages or run code. Use when: agent tool permissions, tool permission review, excessive agency, agent least privilege, mcp tool review, agent capability review./ai-ethics-complianceCheck an AI feature against EU AI Act and GDPR duties, test for bias and proxy variables, and screen for dark patterns. Use before shipping a feature that scores, ranks or profiles people, or that talks to users as an AI. Use when: ai ethics, eu ai act, bias test, fairness check, dark pattern, ai transparency./ai-red-teamingProactively attack your own AI and agent system to find failures before adversaries, scoring attack-success-rate and gating CI on it. Use when: ai red teaming, red team plan, attack success rate, ASR scorecard, jailbreak testing, crescendo attack, automated adversarial testing, OWASP LLM red team./api-securityAudit and harden REST or GraphQL endpoints against broken object-level authorisation, weak authentication and resource abuse. Use when adding or reviewing an API, tokens or rate limits.npx claudepluginhub andreibesleaga/gabbe --plugin gabbe-securityOther plugins' skills for the same job