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-degradegit 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-degrade)<a href="https://agentmods.dev/skills/unknowbug/anchorlaw/anchor-degrade"><img src="https://agentmods.dev/badge/skills/unknowbug/anchorlaw/anchor-degrade/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-degrade"><img src="https://agentmods.dev/badge/skills/unknowbug/anchorlaw/anchor-degrade.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.00053 | $0.00843 |
| Opus 5.5 | $0.00021 | $0.00337 |
| Sonnet 5.5 | $0.00011 | $0.00169 |
| Haiku 4.5 | $0.00005 | $0.00084 |
Grade A, and why
anchor-degrade 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
86% identical to anchor.degrade — 5 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.degrade — 降级验证
Protocol: spec/protocol-v0.27.md §9 (Degraded Verification) Layer: L2 (Anchors) — 与 anchor.test 同域(CLI 入口同为 anchorlaw test) Execution: subprocess
触发场景
生成代码依赖二进制内部符号,无法独立编译运行;anchorlaw test 无法执行时。
操作步骤
- 分类模式(§9.1):
- Full — 自包含 + anchorlaw 已装 →
anchorlaw test可跑 - Partial — 有未解析外部依赖 → test 不能跑,@pt 仍须带 source(假设记录,验证推迟)
- Degraded — anchorlaw 未装 → 人工对照 trace 审查
- Full — 自包含 + anchorlaw 已装 →
- 判定自包含性(§9.2):无外部函数调用 / 无全局引用 / 无外部自定义类型 → Full;否则查依赖,全部可解析才 Full。
- 登记:Partial/Degraded 的函数写入
uncompilable_functions.yaml(函数名、源位置、未解析依赖清单、建议路径——§9.3 字段)。 - retry cap(§9.4,v0.13 证据饱和):实现→验证循环受证据饱和约束——连续 3 轮假设验证无新数据层证据(trace/probe)必须回到数据层采集(动态 trace),禁止无新数据反复改假设(过程熵增);产生新证据的轮次重置计数不消耗 cap(不切断持续获证的探索);工程修复不计数。
- 诚实声明(§9.5):Partial/Degraded 下所有导出/报告前缀标注降级模式,置信度不自动提升。
- 登记副作用的逆(v0.22 §9.8):降级路径下的验证动作常就地改写(重建
index.yaml、覆盖日志、改门控默认值、污染执行体)——每个 in-place 副作用 MUST 登记可寻址的逆(归档件路径 / 换标签后的新名 / env 还原记录)或给出显式不可逆声明及原因;derived 类(新命名产物/新临时目录)自动合规。只登记不执行:禁止自动回退(会删掉失败轮证据,与 #146 相反);也不得为凑条款伪造逆。 - 核对判据前置集(v0.22 §15.4):引用某条判据的结论前,核其
preconditions(key/expected/check)当前是否仍满足;失效 → 判据 suspended、结论标注「前提已失效,待复核」,不得自动改任何 status。
输出
模式分类结论 / uncompilable_functions.yaml 记录 / 降级声明前缀。
约束
- 降级不是防御性逃避——是诚实标注当前验证天花板。
- 无新数据层证据不迭代假设。
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 cf118652aa8f
- 20d ago Changed 5c0c03285581
- 1mo ago Changed f25d2160cb64
- 1mo ago Changed f9fce78357b7
- 2mo ago Changed 2d3589770cfe
- 2mo ago Changed · +2 lines b26af0776b85
- 2mo ago Changed c3c9d108c59e
- 3mo ago Changed e5d3e90b8fba
- 3mo ago First seen · 36 lines · 53 tokens per session scan A 6bba21ec0c12
anchor-degrade is a skill published in the GitHub repository unknowbug/anchorlaw (7 stars, last pushed 7d ago), licensed MIT. It adds 53 tokens to every session and 843 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 86% identical to anchor.degrade, differing in 5 lines, and is treated as a copy.
anchor-degrade compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| anchor-degradeunknowbug/anchorlaw | Skill | 7 | 7d ago | MIT | A | 53 | 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 |