aishield: Instructions file for Claude Code

CLAUDE.md

aishield CLAUDE.md is an instructions file for Claude Code from lm203688/aishield. It costs 288 tokens per session, scanned A, original, MIT.

A short instruction file for AI coding agents working on AIShield, a local security scanner. It lists rules about safe scanning, private data, accurate rule counts, and the commands used to verify changes.

In plain words
What is it for?
Use it to start work on AIShield, run its test suite, verify scanning isolation, and follow the project's local development routine.
Why use it?
It gives the agent critical constraints before it edits the repository, including not running commands found in scanned content. It also reduces mistakes caused by outdated documentation or incomplete checks.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

This is lm203688/aishield's own configuration. It tells Claude Code how to work on aishield itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything aishield configures →

Reuse

Borrowing it

Nothing to install: this file belongs to lm203688/aishield. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/lm203688/aishield/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/lm203688/aishield

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 aishield CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/lm203688/aishield/claude-md/github.svg)](https://agentmods.dev/instructions/lm203688/aishield/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/lm203688/aishield/claude-md"><img src="https://agentmods.dev/badge/instructions/lm203688/aishield/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for aishield CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/lm203688/aishield/claude-md"><img src="https://agentmods.dev/badge/instructions/lm203688/aishield/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 288 This file is loaded in full into every session.
When invoked 288 The same file — it is already loaded in full.
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.00288 $0.00288
Opus 5.5 $0.00115 $0.00115
Sonnet 5.5 $0.00058 $0.00058
Haiku 4.5 $0.00029 $0.00029

Measured 16d ago against content hash 7aecba2e90f6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

aishield CLAUDE.md 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 16d 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.

CLAUDE.md · 22 lines

What it actually says

CLAUDE.md

Agent 原生项目手册见 AGENTS.md —— 架构、核心不变量、贡献约定(含范围纪律)都在那里。

硬不变量(违背即 bug,先读再动)

  1. 扫描器绝不 spawn 被扫配置里的命令 —— 被扫内容只当字符串读取、做正则/语义匹配。 自证:python scripts/prove_isolation.py
  2. 代码与配置绝不上传云端 —— 本地优先、零依赖、可离线。
  3. 勿引用过期规则计数(227/215/133/228)。真值看 /api/v1/health 的 rules_breakdown; 当前 256 = 静态 286 + 情报 8 + 雷达 19。
  4. 本地绿 ≠ CI 绿;多文件推送走 scripts/_push_batch.py,推完 API 复验。

一键启动

git clone https://github.com/lm203688/aishield.git && cd aishield
python -m venv .venv && source .venv/bin/activate && pip install pytest
python tests/run_all.py
python scripts/prove_isolation.py
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. 16d ago Changed 7aecba2e90f6
  2. 24d ago Changed · -4 tokens per session 4538026215fd
  3. 1mo ago Changed 2abd7fcbc562
  4. 1mo ago Changed ff3ced4ac504
  5. 1mo ago Changed · +4 tokens per session d1cb2b3f9f55
  6. 1mo ago Changed 20684c6d833b
  7. 1mo ago First seen · 22 lines · 288 tokens per session scan A a8a75e52e7fa

Subscribe to this mod's changes

aishield CLAUDE.md is an instructions file published in the GitHub repository lm203688/aishield (2 stars, last pushed 7d ago), licensed MIT. It adds 288 tokens to every session, about $0.0012 per session on Opus 5.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-09-14.

Related

aishield CLAUDE.md compared with instructions from other repositories

aishield CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
aishield CLAUDE.mdlm203688/aishieldInstructions file27d agoMITA288Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,649GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot