Sponsor Suno AI Music arrow_forward
Subagent

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
GitHub stars
2.8k
License
MIT
Repo last updated
Sep 27, 2026
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

  1. Download guard.md from the repository.
  2. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
  3. 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

  1. 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.
  2. 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

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under MIT. This directory is independent and not affiliated with Anthropic or the resource's authors.