anchor-noise

anchor-noise is a skill for Claude Code, Codex from unknowbug/anchorlaw. It costs 40 tokens per session (506 once invoked), scanned A, original, MIT.

A noise-card system for recording runtime failures as structured notes that can later become regression tests, which are tests that prevent the same problem from returning.

In plain words
What is it for?
Use it to create a record when code fails unexpectedly, list or search unresolved failures, and mark a failure resolved after adding a corresponding test.
Why use it?
It turns scattered error observations into searchable records with the trigger, observed result, expected result, and reusable lesson. Resolved records can be converted into tests.

Skill for Claude CodeCodex

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

Good fit Use it to create a record when code fails unexpectedly, list or search unresolved failures, and mark a failure resolved after adding a corresponding test.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/unknowbug/anchorlaw/anchor-noise"><img src="https://agentmods.dev/badge/skills/unknowbug/anchorlaw/anchor-noise.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 506 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 original No closer match found 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.00040 $0.00506
Opus 5.5 $0.00016 $0.00202
Sonnet 5.5 $0.00008 $0.00101
Haiku 4.5 $0.00004 $0.00051

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

Security

Grade A, and why

anchor-noise 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 3d 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.

dsh/skills/anchor-noise/SKILL.md · 48 lines

What it actually says

anchor.noise — 噪声卡管理

Protocol: spec/protocol-v0.27.md §3 (Noise Card JSON Schema) Layer: L3 (Noise) Execution: inline

触发场景

运行时观察到失败/异常;或存在未解决噪声卡积压时。

操作步骤

  1. 创建(§14.4 唯一代码内钩子,无 CLI 入口)——在捕获失败的 except 块中调用:
    import anchorlaw as pract  # 需已安装 anchorlaw(stub 仅含 test/idk)
    try:
        result = func(bad_input)
    except Exception as e:
        pract.create_noise_card(
            trigger="func(bad_input)",
            function_name="func",
            observed=f"抛出 {type(e).__name__}: {e}",
            expected="应返回默认值而非崩溃",
            discovery="函数未处理该输入形态",
            curriculum="处理外部输入时先校验形态,再执行运算",
        )
        raise
    
    必填字段:noise_id(自动) / timestamp(自动) / trigger / function_name / observed / expected(§3 schema)。
  2. 列出:anchorlaw noise list(--all 含已解决)
  3. 搜索:anchorlaw noise search <keyword>
  4. 解决(转为回归测试):anchorlaw noise resolve <noise_id> --converted-test "<测试描述>"

输出

创建的噪声卡 / 积压清单 / 搜索命中 / 解决记录。

约束

  • curriculum 必须可操作(可复用教训),不写空话。
  • 除创建外的所有管理操作一律 CLI(§14.4)。
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. 3d ago Changed 739f1ed13609
  2. 17d ago Changed 529acb8e01d2
  3. 1mo ago Changed 74e7a5fb1158
  4. 1mo ago Changed a19b4ddc7b71
  5. 2mo ago Changed d9877505dedf
  6. 2mo ago Changed 48ff645be2f3
  7. 2mo ago Changed 64b96cc0ea44
  8. 2mo ago Changed 29cfa2ac6e4a
  9. 3mo ago First seen · 48 lines · 40 tokens per session scan A 17afe5af2b01

Subscribe to this mod's changes

anchor-noise is a skill published in the GitHub repository unknowbug/anchorlaw (7 stars, last pushed 3d ago), licensed MIT. It adds 40 tokens to every session and 506 once invoked, about $0.0002 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-31.

Related

anchor-noise compared with skills from other repositories

anchor-noise next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
anchor-noiseunknowbug/anchorlawSkill73d agoMITA40Claude Code, Codex
implement-type-annotationsambient-code/agentreadySkill15812d agoMITA30Claude Code, Codex
codex-code-reviewNickCrew/Claude-CortexSkill759d agoMITA85Claude Code, Codex
evaluator-optimizerNickCrew/Claude-CortexSkill759d agoMITA33Claude Code, Codex
openspec-plus-applysudokar/openspec-plusSkill2192mo agoMITA110Claude Code, Codex
openspec-plus-designsudokar/openspec-plusSkill2192mo agoMITA82Claude Code, Codex
openspec-plus-specsudokar/openspec-plusSkill2192mo agoMITA88Claude Code, Codex