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.
npx skills add unknowbug/anchorlaw --skill anchor-scangit clone --depth 1 https://github.com/unknowbug/anchorlawWrote 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/skills/unknowbug/anchorlaw/anchor-scan)<a href="https://agentmods.dev/skills/unknowbug/anchorlaw/anchor-scan"><img src="https://agentmods.dev/badge/skills/unknowbug/anchorlaw/anchor-scan/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/skills/unknowbug/anchorlaw/anchor-scan"><img src="https://agentmods.dev/badge/skills/unknowbug/anchorlaw/anchor-scan.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.00042 | $0.00826 |
| Opus 5.5 | $0.00017 | $0.00330 |
| Sonnet 5.5 | $0.00008 | $0.00165 |
| Haiku 4.5 | $0.00004 | $0.00083 |
Grade A, and why
anchor-scan 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 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.
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.
This is a copy
95% identical to anchor.scan — 3 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
What it actually says
anchor.scan — 静态审查
Protocol: spec/protocol-v0.27.md §6 (Scanner Pattern Catalog), §7 Level 1 Layer: L1 (Scanner) Execution: subprocess
触发场景(触发点,MUST 强度)
以下两个触发点 MUST 运行本 skill(改完代码待提交前,或收到防御性模式报告时):
- 模块并入审查前(流水线 stage 3)(与 §15.4 门禁中 judge 审查配套;v0.10 流水线 stage 5 并入审查):Worker 完成模块、或主 Agent 完成代码改动后,先跑 scan 获得 findings 清单并逐条处置,再交 Judge 并入审查——scan 的 findings 清单是 Judge 审查的机械证据来源之一(AGENTS.md 将 scan 列为「发散型优化例外」:触发必跑,执行方式 subprocess 可选,二者不冲突)。
- 收到防御性模式报告时:CI 报告 / scanner 输出 / 他人反馈疑似防御性模式,MUST 跑 scan 核实后再处置,不得凭感觉判断「没问题」。
计划预置(§15.4 Plan-time placement 精神):工作流计划(todo)在规划阶段预置本 skill 的触发步骤;到达并入审查步骤时发现未预置/未执行 → MUST 停下补跑 scan 再进入审查,不得跳过。
反模式(触发不完整即进入审查/提交):
- 跳过 scan 直接交并入审查或交付,无 findings 处置记录
- 收到防御性模式报告不跑 scan,直接凭感觉判断「没问题」
- 静默忽略 WARNING(无「补 anchor 或修」处理决定,与操作步骤 §6.1 分级一致)
操作步骤
- 运行扫描(CLI,§14.4):
anchorlaw-scanner check <dir>(独立 scanner 包,Python 防御模式)anchorlaw-scanner check --lang cpp <dir>(C++ @anchor 标注提取验证,§8 annotation-extraction)- 或
anchorlaw check <dir>(完整包内置入口,--no-recursive可关递归)
- 解读输出分级(§6.1):
- ERROR → 必须修(吞噬异常、无意义测试等致命模式)
- WARNING → 纯逻辑公开函数缺 anchor 等,高锚定价值 → 补 anchor 或修
- INFO → I/O 类函数缺 anchor,锚定价值低 → 补 @anchor.idk 或忽略
- 提交前确认 ERROR = 0,且 WARNING 均有处理决定。
输出
findings 清单 + 每个 finding 的处理决定(修 / 补 idk / 忽略 / 挑战)。
约束
- 只通过 CLI 扫描,不 import 内部 API(§14.4)。
- 疑似误报必须走
anchor.challenge(§12),不得静默忽略。
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.
- 6d ago Changed 66b1f386a6a9
- 20d ago Changed 60423786bdc2
- 1mo ago Changed b7c75b13b22e
- 1mo ago Changed 8ec07a3aca90
- 2mo ago Changed 305d47163384
- 2mo ago Changed 9798ac0fd355
- 2mo ago Changed b9c457a937e5
- 3mo ago Changed 2ef8ca70369b
- 3mo ago First seen · 47 lines · 42 tokens per session scan A f43723ba1e21
anchor-scan is a skill published in the GitHub repository unknowbug/anchorlaw (7 stars, last pushed 7d ago), licensed MIT. It adds 42 tokens to every session and 826 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 95% identical to anchor.scan, differing in 3 lines, and is treated as a copy.
anchor-scan compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| anchor-scanunknowbug/anchorlaw | Skill | 7 | 7d ago | MIT | A | 42 | Claude Code, Codex |
| implement-type-annotationsambient-code/agentready | Skill | 158 | 15d ago | MIT | A | 30 | Claude Code, Codex |
| codex-code-reviewNickCrew/Claude-Cortex | Skill | 77 | 12d ago | MIT | A | 85 | Claude Code, Codex |
| evaluator-optimizerNickCrew/Claude-Cortex | Skill | 77 | 12d ago | MIT | A | 33 | Claude Code, Codex |
| openspec-plus-applysudokar/openspec-plus | Skill | 220 | 3mo ago | MIT | A | 110 | Claude Code, Codex |
| openspec-plus-designsudokar/openspec-plus | Skill | 220 | 3mo ago | MIT | A | 82 | Claude Code, Codex |
| openspec-plus-specsudokar/openspec-plus | Skill | 220 | 3mo ago | MIT | A | 88 | Claude Code, Codex |