Borrowing it
Nothing to install: this file belongs to ck3938700-ship-it/anjian-agent. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/ck3938700-ship-it/anjian-agent/main/CLAUDE.mdgit clone --depth 1 https://github.com/ck3938700-ship-it/anjian-agentWrote 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.
[](https://agentmods.dev/instructions/ck3938700-ship-it/anjian-agent/claude-md)<a href="https://agentmods.dev/instructions/ck3938700-ship-it/anjian-agent/claude-md"><img src="https://agentmods.dev/badge/instructions/ck3938700-ship-it/anjian-agent/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.
<a href="https://agentmods.dev/instructions/ck3938700-ship-it/anjian-agent/claude-md"><img src="https://agentmods.dev/badge/instructions/ck3938700-ship-it/anjian-agent/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.01058 | $0.01058 |
| Opus 5 | $0.00529 | $0.00529 |
| Sonnet 5 | $0.00212 | $0.00212 |
| Haiku 4.5 | $0.00106 | $0.00106 |
Grade A, and why
anjian-agent 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 10d 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.
What it actually says
Claude Code 维护上下文:安鉴台
你正在维护一个本地优先、授权门禁的安全评估交付工具。用户是一名信息安全专业大学生,主要运行环境是 Windows 11,长期使用 Obsidian,并可能用 Claude Code CLI 继续开发。
产品目标
帮助用户把“小型网站安全基线评估”做成可信的收费交付:范围清晰、过程留痕、自动结果需人工确认、报告可读、支持复测。不要把产品扩张成攻击框架或全网扫描器。
当前版本的主入口是可安装 Python CLI + stdio MCP Server;浏览器工作台与本地大模型适配器同时保留。
不可破坏的安全原则
- 所有主动网络访问必须绑定数据库中的明确目标与明确端口。
- 必须存在非空授权依据,每次运行前必须再次确认。
- 内网、本机、保留、链路本地等地址默认阻止,只有范围显式允许时才能访问。
- 禁止新增口令爆破、凭据填充、拒绝服务、绕过授权、漏洞利用、持久化、隐蔽或批量公网扫描能力。
- 不保存响应正文、Cookie 值、Authorization 头、口令、令牌或与发现无关的个人信息。
- 自动结果只能是 observation;必须由用户明确操作才能成为正式 finding。
- 新增网络功能时先写滥用分析、范围约束和本机测试,再实现代码。
- Burp/HAR/PCAP/源码证据必须脱敏;不得持久化秘密值、认证头、正文或 PCAP 载荷。
- SQLMap/FFUF/Nuclei 必须终端按工具授权,固定有界参数,不能接受任意命令行参数。
技术结构
src/anjian/app.py:FastAPI 页面与工作流src/anjian/db.py:SQLite schema 和轻量数据访问src/anjian/scanner.py:低影响检查与范围门禁src/anjian/agent/:Claude 代理工作区、严格 scope、工具适配、结果归一化与报告src/anjian/agent/evidence.py:Burp/HAR 脱敏导入与 TShark 指定 PCAP 分析src/anjian/agent/code_scan.py:内置与外部源码扫描适配src/anjian/agent/correlation.py:跨运行去重与多来源交叉印证src/anjian/mcp_server.py:Claude Code 结构化 MCP 工具和 Promptclaude-integration/:用户级 MCP 注册脚本与可选 Skillsrc/anjian/reporting.py:Markdown/Obsidian 导出src/anjian/templates/:Jinja2 页面和打印报告tests/:pytest 测试;网络测试只能指向测试进程拥有的127.0.0.1
每次修改的完成标准
.\.venv\Scripts\python.exe -m pytest
- 测试全通过
start.cmd能启动,http://127.0.0.1:8765/health返回ok- 不放宽授权门禁
- 不把客户数据、
data/、报告导出或虚拟环境提交 Git - 数据表修改要提供向后兼容迁移,不能让既有
anjian.db无法使用 - 面向用户的文字优先使用清楚的中文
推荐开发顺序
- 备份与加密提醒、按项目保留期限列出待清理数据
- 报告版本冻结与 SHA-256 摘要
- 复测记录独立于原检查记录
- 可配置的人工检查清单和 OWASP ASVS 5.0.0 引用
- 客户可读的单项目静态 HTML 交付包
- 最后才考虑新检查项;每一项都必须能解释误报、证据与业务意义
不要做的“看似高级”改动
- 不要默认监听
0.0.0.0,本地工具只监听127.0.0.1 - 不要引入云端账号、遥测或在线 AI 依赖
- 不要自动生成夸大风险的漏洞描述
- 不要在没有数据库迁移方案时换 ORM
- 不要为了炫技重写为前后端分离;当前单体结构更适合个人长期维护
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.
- 10d ago First seen · 67 lines · 1,058 tokens per session scan A c35f5d3191ab
anjian-agent CLAUDE.md is an instructions file published in the GitHub repository ck3938700-ship-it/anjian-agent (0 stars, last pushed 1mo ago), licensed MIT. It adds 1,058 tokens to every session, about $0.0053 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.
Other instructions, from other repositories
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.
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.
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).
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.
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).
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.