Borrowing it
Nothing to install: this file belongs to api7/aisix. 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/api7/aisix/main/CLAUDE.mdgit clone --depth 1 https://github.com/api7/aisixWrote 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/api7/aisix/claude-md)<a href="https://agentmods.dev/instructions/api7/aisix/claude-md"><img src="https://agentmods.dev/badge/instructions/api7/aisix/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/api7/aisix/claude-md"><img src="https://agentmods.dev/badge/instructions/api7/aisix/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.11380 | $0.11380 |
| Opus 5.5 | $0.04552 | $0.04552 |
| Sonnet 5.5 | $0.02276 | $0.02276 |
| Haiku 4.5 | $0.01138 | $0.01138 |
Grade A, and why
aisix 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 today.
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.
How it starts
The opening of the file, as written. The whole thing — 306 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
Behavioral guidelines to reduce common LLM coding mistakes. Bias toward caution over speed; for trivial tasks, use judgment. Merge with project-specific instructions as needed.
1. Think Before Coding
Don't assume. Don't hide confusion. Surface tradeoffs.
- State assumptions explicitly; if uncertain, ask.
- If multiple interpretations exist, present them — don't pick silently.
- If a simpler approach exists, say so. Push back when warranted.
- If something is unclear, stop, name what's confusing, and ask.
Scope a customer-driven issue from the requester's quoted words, not from the rest of the body. These issues are filed in api7/AISIX-Cloud (a gateway change is routinely one half of a cross-repo issue) and are drafted with AI help, and the expansion only ever runs one way — it never states the ask smaller. One customer question ("how do I tell text / image / video requests apart in api7 or SLS, and how do I query it?") arrived as AISIX-Cloud#1461: five proposed wire fields, a modality taxonomy and nine acceptance checkboxes. Working from the body as written therefore over-delivers by default — that is the failure this rule exists to prevent, not a description of what to do.
- Find the quoted words by content, not by heading. That repo's
feature_request.ymlcollects them under 「原始需求(逐字)」, but blank issues are enabled andgh issue createbypasses the form, so most issues never went through it and one that imitates the template titles the section however its author chose. Read for the part that quotes the requester; only when the issue genuinely carries none, ask — never reconstruct it from the body. - Everything else in the issue — the user story, the proposed solution, the acceptance checkboxes, the pasted industry comparison — is analysis by whoever filed it, and loses to the quoted words on conflict. Leads, not a contract. The comparison against mainstream gateways that section 7 mandates is your own, run now against upstream HEAD, never the one pasted in the issue.
- Before writing code, state three things and get them confirmed: the quoted ask, what you will build, and what you are dropping as expansion. Dropping silently is as wrong as building it. "How much of the acceptance criteria should I do?" is the wrong question — it takes the expansion as the baseline and negotiates only its volume.
- None of this weakens delivery once scope IS agreed: the agreed scope still ships whole, across every surface it touches.
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.
- today Changed · +8 lines · +595 tokens per session 857666186577
- 7d ago Changed · -2 lines · -66 tokens per session fc62c9fc316f
- 10d ago Changed · +20 lines · +515 tokens per session f1d5a87bf2b1
- 14d ago Changed · +1 lines · +57 tokens per session 539db17e9d4a
- 15d ago Changed · +123 tokens per session 363750fcbb94
- 16d ago Changed · +4 lines · +51 tokens per session 58912b891a3e
- 22d ago Changed · +14 lines · +216 tokens per session c1ca9bf3dd20
- 27d ago Changed · +65 tokens per session b912ff109a1e
- 1mo ago Changed · +6 lines · +597 tokens per session b2b4d642bf9d
- 1mo ago First seen · 255 lines · 9,227 tokens per session scan A 62b63747cbb4
aisix CLAUDE.md is an instructions file published in the GitHub repository api7/aisix (214 stars, last pushed yesterday), licensed Apache-2.0. It adds 11,380 tokens to every session, about $0.0455 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-08-30.
aisix CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| aisix CLAUDE.mdapi7/aisix | Instructions file | 214 | yesterday | Apache-2.0 | A | 11,380 | Claude Code |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |