Guard
Designs and audits AI guardrail layers — input/output filters, PII detection, content moderation, and runtime policy enforcement. Use when adding safety controls to an LLM feature or auditing existing ones. Trigger with \"design guardrails\", \"audit our AI safety controls\".
- Type
- Subagent
- Repository
- jeremylongshore/tons-of-skills-marketplace
- GitHub stars
- 2.8k
- License
- MIT
- Repo last updated
- Sep 27, 2026
- Source file
- plugins/ai-agency/tonone/agents/guard.md
- Model
- sonnet
- Version
- 1.0.0
- Author
- Jeremy Longshore <[email protected]>
What Guard is
Guard is a subagent published in the jeremylongshore/tons-of-skills-marketplace repository on GitHub, which has about 2.8k stars. The repository describes itself as: “Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.”
A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.
Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to Guard and get back a compact result.
How to install Guard
Claude Code
- Download guard.md from the repository.
- Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
- Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Claude Cowork
- Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
- Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.
Inside the source file
An excerpt from plugins/ai-agency/tonone/agents/guard.md, shared under the repository's MIT license. Read the full file on GitHub.
You are Guard — AI Guardrails Engineer on the AI Operations Team. Input/output safety filters, PII detection, content moderation, policy enforcement.
Think in production reliability, cost efficiency, and measurable quality. Every AI system recommendation must be paired with an eval or metric that proves it works.
Communication
Respond terse. All technical substance stays — only filler dies. Follow output-kit protocol: compressed prose, no filler, fragments OK. Documents: normal prose. See docs/output-kit.md for CLI skeleton, severity indicators, 40-line rule.
Operating Principle
Guardrails are not censorship — they are the operational safety layer that keeps AI systems trustworthy at scale. Every guardrail has a false positive cost: over-filtering destroys user experience; under-filtering creates liability. PII in model outputs is a data breach. The best guardrail designs are layered: input classification, output validation, and async audit — no single layer is sufficient.
What you skip: Designing guardrails that are security theater — high latency, low accuracy, easily bypassed.
What you never skip: Never ship an LLM feature without output validation. Never log PII from user inputs unmasked. Never design a single-layer safety system.
Scope
Owns: Input/output safety filters, PII detection, content moderation, policy enforcement
Skills
- /guard-design — Design guardrail layers — input classifiers, output validators, PII scrubbers, policy rule engines.
- /guard-audit — Audit guardrail coverage — bypass vectors, false positive rates, policy gap analysis, red-team scenarios.
- /guard-recon — Map current AI safety controls — filter inventory, coverage gaps, latency impact, incident history.
Key Rules
- Input classifiers must run before the LLM call — not after
- Output validators must block on policy violation, not just log it
- PII detection: regex for structured PII (SSN, CC), NER model for unstructured
- Track false positive rate as a first-class metric — policy changes can break UX
- Red-team guardrails quarterly — adversarial prompt injection evolves constantly
Process Disciplines
When performing work, follow these superpowers process skills:
Iron rule: No completion claims without fresh verification.
Output Format
Follow the output format defined in docs/output-kit.md.
Before you install
- Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
- Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
- Try it in a test project or a copy of your files before pointing it at real work.
- Pin the version you tested, and review changes before updating.
- Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.
FAQ
What is Guard?
Guard is a subagent for Claude Code and Claude Cowork from the jeremylongshore/tons-of-skills-marketplace repository on GitHub. Designs and audits AI guardrail layers — input/output filters, PII detection, content moderation, and runtime policy enforcement. Use when adding safety controls to an LLM feature or auditing existing ones. Trigger with \"design guardrails\", \"audit our AI safety controls\".
How do I install Guard in Claude Code?
Download guard.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Can I use Guard in Claude Cowork?
Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
Is Guard safe to install?
It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.
Similar resources
- Lb Test Test load balancer traffic distribution and failover strategies Slash Command · jeremylongshore/tons-of-skills-marketplace
- Legal Obligations Maps every obligation, deadline, trap, and financial exposure in a contract into a chronological obligations matrix with total exposure calculation and imbalance scoring. Use when auditing a contract for missed deadlines, auto-renewal traps, or worst-case cost. Trigger with \"map contract obligations\", \"calculate financial exposure\". Subagent · jeremylongshore/tons-of-skills-marketplace
- Legal Recommendations Synthesizes findings from the clauses, compliance, obligations, and risks agents into a prioritized action plan with P0-P4 recommendations, exact replacement clause language, and complete negotiation scripts. Use when preparing to negotiate or sign a contract after the upstream analysis pipeline runs. Trigger with \"generate contract recommendations\", \"build negotiation strategy\". Subagent · jeremylongshore/tons-of-skills-marketplace
- Legal Compliance Checks every contract clause against applicable regulatory frameworks (GDPR, CCPA, employment law, UCC, sector-specific regulations) by jurisdiction and outputs a structured compliance checklist with enforceability assessments. Use when verifying a contract for regulatory exposure before signing. Trigger with \"check contract compliance\", \"verify regulatory requirements\". Subagent · jeremylongshore/tons-of-skills-marketplace
- Guide Writes and audits API reference docs, integration guides, and SDK documentation that developers actually use. Use when documenting an API endpoint, auditing doc coverage, or writing a developer quickstart. Trigger with \"document this API\", \"audit our developer docs\". Subagent · jeremylongshore/tons-of-skills-marketplace
- Grid Designs spatial foundations — spacing scales, responsive grids, breakpoints, and layout primitives for design systems. Use when creating or auditing layout systems for a product. Trigger with \"design a layout system\", \"audit our grid\". Subagent · jeremylongshore/tons-of-skills-marketplace
- Helm Head of Product — turns goals and user problems into scoped product briefs ready for engineering handoff via the Helm↔Apex interface. Use when defining what to build, prioritizing scope, or dispatching product specialists. Trigger with \"write a product brief\", \"help me scope this feature\". Subagent · jeremylongshore/tons-of-skills-marketplace
- Glyph Designs type systems — font pairing, scale, hierarchy, and readability tokens for design systems. Use when setting up or auditing typography for a product or codebase. Trigger with \"design a type system\", \"audit our typography\". Subagent · jeremylongshore/tons-of-skills-marketplace