shield

shield is a skill for Claude Code from kobepaw/goop-shield-community. It costs 67 tokens per session (1,673 once invoked), scanned A, original, Apache-2.0.

A security layer for AI agents that checks incoming prompts for attacks and scans outgoing answers for leaked secrets or harmful content.

In plain words
What is it for?
Use it to filter prompts before sending them to a language model and inspect its responses afterward. It can also track attacks across turns in a conversation.
Why use it?
It helps prevent prompt-injection and jailbreak attempts from steering the agent, and catches unsafe information before users see it.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions Claude Code; built for continue.dev.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is Run: python scripts/check.py.

Good fit Use it to filter prompts before sending them to a language model and inspect its responses afterward. It can also track attacks across turns in a conversation.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/kobepaw/goop-shield-community
agentmods
npx agentmods add skills/kobepaw/goop-shield-community/skill

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for shield

README.md
[![agentmods](https://agentmods.dev/badge/skills/kobepaw/goop-shield-community/skill.svg)](https://agentmods.dev/skills/kobepaw/goop-shield-community/skill)
Your own site
<a href="https://agentmods.dev/skills/kobepaw/goop-shield-community/skill"><img src="https://agentmods.dev/badge/skills/kobepaw/goop-shield-community/skill.svg" alt="Measured on agentmods" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,673 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00067 $0.01673
Opus 5 $0.00034 $0.00837
Sonnet 5 $0.00013 $0.00335
Haiku 4.5 $0.00007 $0.00167

Measured 8d ago against content hash b96bca05180b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

shield scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skill/SKILL.md · 232 lines

How it starts

The opening of the file, as written. The whole thing — 232 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Shield

Runtime defense pipeline for AI agents. Intercepts prompts before they reach an LLM and scans responses before they reach the user. Up to 36 inline defenses (24 enabled by default) and 3 output scanners, ranked by an adaptive Thompson-sampling backend.

Quick Start

Run: pip install goop-shield[mcp]
Run: scripts/setup.sh balanced
Run: python scripts/check.py

The setup script configures your MCP server entry and creates a default shield.yaml. The check script verifies the server starts and all defenses load.

Core Workflow: Defending Prompts

ALWAYS defend user prompts before sending them to an LLM.

Use the shield_defend tool:

{
  "prompt": "the user's prompt text",
  "session_id": "conversation-123",
  "context": {}
}
  • prompt (required): The raw prompt to defend.
  • session_id (optional): Ties requests to a conversation for multi-turn attack detection. Use the same session ID for all turns in a conversation.
  • context (optional): Arbitrary metadata passed to defenses.

Interpreting Results

{
  "allowed": true,
  "filtered_prompt": "cleaned prompt text",
  "defenses_applied": ["prompt_normalizer", "safety_filter", "..."],
  "confidence": 0.12,
  "latency_ms": 8.3
}
Field Meaning
allowed true = safe to send to LLM. false = blocked.
filtered_prompt The sanitized prompt. Use this instead of the original when allowed=true.
confidence Threat confidence score (0-1).
latency_ms Pipeline execution time.

Decision Logic

  • allowed=true -- Use filtered_prompt as the LLM input.
  • allowed=false -- Do NOT send to LLM. Inform the user: "Your request was blocked by security policy." Never reveal which defense triggered or how to bypass it.

Confidence Thresholds

Range Interpretation
> 0.8 Definite attack. Prompt will almost certainly be blocked.
0.5 - 0.8 Suspicious. May be blocked depending on active defenses and preset.
< 0.5 Likely benign. Prompt will usually be allowed (possibly sanitized).

Read the full file on GitHub · 232 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 232 lines · 67 tokens per session scan A b96bca05180b

Subscribe to this mod's changes

shield is a skill published in the GitHub repository kobepaw/goop-shield-community (3 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 67 tokens to every session and 1,673 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

ziran

ZIRAN is an open-source security testing framework for AI agents. It discovers dangerous tool chain compositions via knowledge graph analysis, detects execution-level side effects (not just text output), and runs multi-phase trust exploitation campaigns that model real attacker behavior.

taoq-ai/ziran · 0 tokens

agentguard

Runtime guardrails for AI coding agents. Stop loops, budget overruns, retry storms, and timeouts before they burn money. Zero dependencies, local-first, MIT licensed.

bmdhodl/agent47 · 38 tokens

llamaguard

Meta's 7-8B specialized moderation model for LLM input/output filtering. 6 safety categories - violence/hate, sexual content, weapons, substances, self-harm, criminal planning. 94-95% accuracy. Deploy with vLLM, HuggingFace, Sagemaker. Integrates with NeMo Guardrails.

davila7/claude-code-templates · 74 tokens

agent-safety

Use when bounding an LLM agent that already runs — scoping its task domain, gating tools to least privilege, defending against prompt injection in untrusted web/email/RAG text, requiring human approval on irreversible actions, capping runtime and cost, or triaging what it already did. NOT building the loop, tools, or…

ericrisco/rsc-harness · 79 tokens

bluesky-engagement

Automated Bluesky reply monitoring and draft queueing for ThumbGate's acquisition engagement loop. Polls the AT Protocol notifications endpoint every 15 minutes, writes human-reviewable draft replies into a queue file, and never auto-posts without sign-off. Trigger when the user asks about Bluesky replies, engagement…

IgorGanapolsky/ThumbGate · 96 tokens

agent-architect-kit

Status: shipped 2026-04-21. Test-backed. CLI-automatable. Safe to recommend publicly.

IgorGanapolsky/ThumbGate · 0 tokens