anchor-degrade

anchor-degrade is a skill for Claude Code, Codex from unknowbug/anchorlaw. It costs 53 tokens per session (843 once invoked), scanned A, a copy of anchor.degrade, MIT.

A verification procedure for cases where generated code cannot be compiled on its own. It labels verification as full, partial, or degraded and records which functions could not be compiled.

In plain words
What is it for?
Use it to classify external dependencies, record unresolved functions in a YAML file, review traces manually when needed, and mark reports with their verification limits.
Why use it?
It prevents unverifiable code from being presented as fully tested and limits repeated guesswork when no new runtime evidence is available.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it to classify external dependencies, record unresolved functions in a YAML file, review traces manually when needed, and mark reports with their verification limits.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/unknowbug/anchorlaw/anchor-degrade
Install

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.

Any agent
npx skills add unknowbug/anchorlaw --skill anchor-degrade
Clone the repo
git clone --depth 1 https://github.com/unknowbug/anchorlaw

Made for: Claude Code, Codex.

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 anchor-degrade

README.md
[![agentmods](https://agentmods.dev/badge/skills/unknowbug/anchorlaw/anchor-degrade/github.svg)](https://agentmods.dev/skills/unknowbug/anchorlaw/anchor-degrade)
Your own site
<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.

agentmods 80×15 button for anchor-degrade

Your own site · 80×15
<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>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 843 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 86% copy Near-identical to another mod 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.00053 $0.00843
Opus 5.5 $0.00021 $0.00337
Sonnet 5.5 $0.00011 $0.00169
Haiku 4.5 $0.00005 $0.00084

Measured 6d ago against content hash cf118652aa8f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

Origin

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.

dsh/skills/anchor-degrade/SKILL.md · 38 lines

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 无法执行时。

操作步骤

  1. 分类模式(§9.1):
    • Full — 自包含 + anchorlaw 已装 → anchorlaw test 可跑
    • Partial — 有未解析外部依赖 → test 不能跑,@pt 仍须带 source(假设记录,验证推迟)
    • Degraded — anchorlaw 未装 → 人工对照 trace 审查
  2. 判定自包含性(§9.2):无外部函数调用 / 无全局引用 / 无外部自定义类型 → Full;否则查依赖,全部可解析才 Full。
  3. 登记:Partial/Degraded 的函数写入 uncompilable_functions.yaml(函数名、源位置、未解析依赖清单、建议路径——§9.3 字段)。
  4. retry cap(§9.4,v0.13 证据饱和):实现→验证循环受证据饱和约束——连续 3 轮假设验证无新数据层证据(trace/probe)必须回到数据层采集(动态 trace),禁止无新数据反复改假设(过程熵增);产生新证据的轮次重置计数不消耗 cap(不切断持续获证的探索);工程修复不计数。
  5. 诚实声明(§9.5):Partial/Degraded 下所有导出/报告前缀标注降级模式,置信度不自动提升。
  6. 登记副作用的逆(v0.22 §9.8):降级路径下的验证动作常就地改写(重建 index.yaml、覆盖日志、改门控默认值、污染执行体)——每个 in-place 副作用 MUST 登记可寻址的逆(归档件路径 / 换标签后的新名 / env 还原记录)或给出显式不可逆声明及原因;derived 类(新命名产物/新临时目录)自动合规。只登记不执行:禁止自动回退(会删掉失败轮证据,与 #146 相反);也不得为凑条款伪造逆。
  7. 核对判据前置集(v0.22 §15.4):引用某条判据的结论前,核其 preconditions(key/expected/check)当前是否仍满足;失效 → 判据 suspended、结论标注「前提已失效,待复核」,不得自动改任何 status。

输出

模式分类结论 / uncompilable_functions.yaml 记录 / 降级声明前缀。

约束

  • 降级不是防御性逃避——是诚实标注当前验证天花板。
  • 无新数据层证据不迭代假设。
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. 6d ago Changed cf118652aa8f
  2. 20d ago Changed 5c0c03285581
  3. 1mo ago Changed f25d2160cb64
  4. 1mo ago Changed f9fce78357b7
  5. 2mo ago Changed 2d3589770cfe
  6. 2mo ago Changed · +2 lines b26af0776b85
  7. 2mo ago Changed c3c9d108c59e
  8. 3mo ago Changed e5d3e90b8fba
  9. 3mo ago First seen · 36 lines · 53 tokens per session scan A 6bba21ec0c12

Subscribe to this mod's changes

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.

Related

anchor-degrade compared with skills from other repositories

anchor-degrade next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
anchor-degradeunknowbug/anchorlawSkill77d agoMITA53Claude Code, Codex
implement-type-annotationsambient-code/agentreadySkill15815d agoMITA30Claude Code, Codex
codex-code-reviewNickCrew/Claude-CortexSkill7712d agoMITA85Claude Code, Codex
evaluator-optimizerNickCrew/Claude-CortexSkill7712d agoMITA33Claude Code, Codex
openspec-plus-applysudokar/openspec-plusSkill2203mo agoMITA110Claude Code, Codex
openspec-plus-designsudokar/openspec-plusSkill2203mo agoMITA82Claude Code, Codex
openspec-plus-specsudokar/openspec-plusSkill2203mo agoMITA88Claude Code, Codex