aishield

aishield is a skill for Claude Code, Codex from lm203688/aishield. It costs 108 tokens per session (746 once invoked), scanned A, original, MIT.

A local static security scanner for MCP servers, AI-agent skills, GPTs, and prompts. It reads their files and definitions without running their commands or sending the scanned code away, then reports security, privacy, quality, and performance findings.

In plain words
What is it for?
Use it to scan an untrusted MCP server, skill, prompt, or GPT definition and decide whether it needs a warning or manual review.
Why use it?
It helps identify risky or suspicious agent add-ons before they are installed or executed.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it to scan an untrusted MCP server, skill, prompt, or GPT…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lm203688/aishield/clawhub
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add lm203688/aishield --skill clawhub
Clone the repo
git clone --depth 1 https://github.com/lm203688/aishield

Made for: Claude Code, Codex.

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 aishield

README.md
[![agentmods](https://agentmods.dev/badge/skills/lm203688/aishield/clawhub.svg)](https://agentmods.dev/skills/lm203688/aishield/clawhub)
Your own site
<a href="https://agentmods.dev/skills/lm203688/aishield/clawhub"><img src="https://agentmods.dev/badge/skills/lm203688/aishield/clawhub.svg" alt="Measured on agentmods" height="20"></a>
Per session 108 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 746 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00108 $0.00746
Opus 5 $0.00054 $0.00373
Sonnet 5 $0.00022 $0.00149
Haiku 4.5 $0.00011 $0.00075

Measured 6d ago against content hash 9cddd7d03f03, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

aishield scanned grade A with 1 finding 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 6d 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

- Unsafe command-execution primitives (`child_process`, `os.system`, `eval`)
distribution/clawhub/SKILL.md · 82 lines

How it starts

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

AIShield — Local Agent-Tool Security Scanner

You are a security gate for AI agents. When the agent is about to install, load, or run an MCP server / skill / GPT / prompt from an untrusted source, run AIShield against it before execution and block or warn based on the score.

Hard invariants (do not violate)

  1. Never spawn commands from the artifact being scanned. Read the config / SKILL.md / tool definitions statically. Do NOT run npx, pip, shell scripts, or install-time hook scripts pulled from the target. The scan stays read-only inference.
  2. Code never leaves the machine. All 227 MCP / 233 Skill rules run locally with zero third-party dependencies. The scanned artifact is never sent to any remote service.
  3. If the target cannot be scanned statically (requires auth / live endpoint), report "needs manual review" — do not attempt to execute it.

How to invoke

From the AIShield repo root:

# Scan an MCP server / skill / prompt / GPT definition
python -m scanner.cli scan --type mcp --source <path-or-url>

# Output: 4D score (0-100), per-dimension breakdown, OWASP mapping, SARIF

Map the result:

  • 🥇 Gold (≥85): safe to install.
  • 🥈 Silver (≥70): install with caution.
  • 🥉 Bronze / below: block or require human approval.

What it detects

  • Tool poisoning / hidden adversarial instructions in tool descriptions
  • Prompt injection that hijacks agent behavior
  • Unsafe command-execution primitives (child_process, os.system, eval)
  • Outbound data theft (unauthorized network calls, telemetry)
  • Hardcoded API tokens / private keys
  • Supply-chain risk (unpinned deps, typosquatting, rug-pull)
  • OWASP Agentic AI Top 10 (ASI01–ASI10) coverage: goal hijack, least agency, identity/OAuth posture, supply-chain provenance, memory poisoning, cross-agent delegation, cascading failure, dark patterns, anti-tamper

Reporting to the user

Summarize in one line: score + the single highest-severity finding + a recommendation (install / caution / block). Do not dump raw rule output unless asked.

Read the full file on GitHub · 82 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. 6d ago First seen · 82 lines · 108 tokens per session scan A 9cddd7d03f03

Subscribe to this mod's changes

aishield is a skill published in the GitHub repository lm203688/aishield (2 stars, last pushed today), licensed MIT. It adds 108 tokens to every session and 746 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). 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

polygraph

Behavioral trust grades (A–F) for MCP servers. Use when an agent needs to check whether an MCP server is safe before using it, verify an onchain attestation before trusting or paying a server, look up a server's published grade, get a project graded, or understand why a server received a grade. Polygraph connects to…

polygraphso/litmus · 225 tokens

debug-optimize-lcp

Guides debugging and optimizing Largest Contentful Paint (LCP) using Chrome DevTools MCP tools. Use this skill whenever the user asks about LCP performance, slow page loads, Core Web Vitals optimization, or wants to understand why their page's main content takes too long to appear. Also use when the user mentions…

ChromeDevTools/chrome-devtools-mcp · 99 tokens

specflow-use

To connect Rosetta with Grid Dynamics SpecFlow MCP; only when SpecFlow is mentioned and the MCP is installed.

griddynamics/rosetta · 27 tokens

opik-diagnose

Surface the Opik traces worth a developer's attention, ranked by signal — errors, failed tool calls, latency, regressions, and low online-eval scores — plus Diagnostics issues. Reads live/production traces via the SDK (searchtraces and agentinsights) and works with no MCP; uses the MCP issue entity when connected.…

comet-ml/opik-mcp · 147 tokens

ue-mcp-epic-routing

Use when deciding between ue-mcp's native category actions and Epic's wrapped ToolsetRegistry tools (the epic actions, incl. the Blueprint graph DSL) for a task in Unreal. Pulls in when authoring Blueprint graph bodies, or any time both a native action and an epic action could do the job and you need to pick.

db-lyon/ue-mcp · 81 tokens

mcp-google-map-project

Project knowledge for developing and maintaining @cablate/mcp-google-map. Architecture, Google Maps API guide, GIS domain knowledge, and design decisions. Read this skill to onboard onto the project or make informed development decisions.

cablate/mcp-google-map · 49 tokens