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 $0.00144 $0.00144
Sonnet 5 $0.00058 $0.00058
Haiku 4.5 $0.00029 $0.00029

Measured yesterday against content hash 20684c6d833b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-16, 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 yesterday.

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/healthrules_breakdown; 当前 238 = 静态 210 + 情报 9 + 雷达 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. yesterday Changed 20684c6d833b
  2. 2d 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 yesterday), licensed MIT. It adds 288 tokens to every session, about $0.0014 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-09-14.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 8,838 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,126 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens