anchor-test

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

A command-line workflow for running anchor verification and reporting each function’s health state.

In plain words
What is it for?
Use it after adding anchors or when investigating failed checks, with an optional verbose mode for a full error trace.
Why use it?
It shows whether recorded checks pass, have started failing, are outdated, or cannot run because the code does not compile independently.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it after adding anchors or when investigating failed checks, with an optional verbose mode for a full error trace.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/unknowbug/anchorlaw/anchor-test
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-test
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-test

README.md
[![agentmods](https://agentmods.dev/badge/skills/unknowbug/anchorlaw/anchor-test/github.svg)](https://agentmods.dev/skills/unknowbug/anchorlaw/anchor-test)
Your own site
<a href="https://agentmods.dev/skills/unknowbug/anchorlaw/anchor-test"><img src="https://agentmods.dev/badge/skills/unknowbug/anchorlaw/anchor-test/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-test

Your own site · 80×15
<a href="https://agentmods.dev/skills/unknowbug/anchorlaw/anchor-test"><img src="https://agentmods.dev/badge/skills/unknowbug/anchorlaw/anchor-test.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 646 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 89% 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.00035 $0.00646
Opus 5.5 $0.00014 $0.00258
Sonnet 5.5 $0.00007 $0.00129
Haiku 4.5 $0.00003 $0.00065

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

Security

Grade A, and why

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

89% identical to anchor.test — 14 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-test/SKILL.md · 39 lines

What it actually says

anchor.test — 运行验证

Protocol: spec/protocol-v0.27.md §5.4 (Anchor Health States), §9 (Degraded Verification) Layer: L2 (Anchors) Execution: inline

触发场景

添加 anchor 后验证、CI 失败排查时。

操作步骤

  1. 运行前置——副作用与逆(v0.22 §9.8):跑之前先看本轮会留下什么 in-place 副作用。同标签已有产物 → 先归档或换标签再跑(#144/#146 的协议化);会重建 index.yaml 之类就地写入的产物 → 先备份(重建式写入会静默丢弃白名单外字段)。derived 类(新命名产物/新临时目录)无需处理。逆指针登记在验证记录自己的字段里,不要塞进 source= 串。
  2. 运行(CLI,§14.4):anchorlaw test [module](-v 显示完整 traceback)。
  3. 按健康状态解读(§5.4):
    • healthy → 通过,声称已验证
    • degrading → 有测试失败:之前验证过的行为坏了 → 修复或更新 anchor,不得静默
    • unverified → 只有 idk:探索区,正常
    • stale_unknown → idk 超 90 天且函数改过(§5.3)→ 升级处理
    • uncompilable → 代码无法独立编译 → 按 §9 降级验证分类(Full/Partial/Degraded)处理,不硬跑
  4. 无法独立编译的代码先按 §9 分类模式,再决定能否运行。
  5. 判据前置集(v0.22 §15.4):若本轮结果要用于某条验收判据,先核该判据声明的 preconditions 当前是否仍满足;失效 → 判据 suspended、结论标注前提已失效待复核——不改任何 status。

输出

测试结果 + 每函数健康状态 + 本轮 in-place 副作用的逆登记(或不可逆声明)。

约束

  • 只通过 CLI 运行(§14.4)。
  • 失败不掩盖:degrading 如实报告。
  • 不自动回退副作用(§9.8):失败轮的日志与产物是更有价值的证据。
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 9f031392f8fc
  2. 20d ago Changed 73814b111000
  3. 1mo ago Changed 65cd47a5149f
  4. 1mo ago Changed d831ca221bf8
  5. 2mo ago Changed 9acc6d58af4c
  6. 2mo ago Changed · +3 lines 5401130c5027
  7. 2mo ago Changed 761435ed1722
  8. 3mo ago Changed a762dd2f3a25
  9. 3mo ago First seen · 36 lines · 35 tokens per session scan A acb3ee3813d8

Subscribe to this mod's changes

anchor-test is a skill published in the GitHub repository unknowbug/anchorlaw (7 stars, last pushed 7d ago), licensed MIT. It adds 35 tokens to every session and 646 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 89% identical to anchor.test, differing in 14 lines, and is treated as a copy.

Related

anchor-test compared with skills from other repositories

anchor-test next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
anchor-testunknowbug/anchorlawSkill77d agoMITA35Claude 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