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 $0.00020 $0.00253
Sonnet 5 $0.00008 $0.00101
Haiku 4.5 $0.00004 $0.00051

Measured 6d ago against content hash 29cfa2ac6e4a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 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.

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

What it actually says

anchor.noise — 噪声卡管理

Protocol: spec/protocol-v0.20.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. 6d ago Changed 29cfa2ac6e4a
  2. 10d 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 (5 stars, last pushed yesterday), licensed MIT. It adds 40 tokens to every session and 506 once invoked, about $0.0002 per session on Opus 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

Other skills, from other repositories

solid-principles

SOLID principles checklist with Java examples. Use when a class has too many responsibilities, an abstraction leaks, or a dependency points the wrong way, and when the user asks about Single Responsibility, Open/Closed, Liskov, Interface Segregation or Dependency Inversion. For naming, duplication and method length…

decebals/claude-code-java · 73 tokens

security-audit

Java security checklist covering OWASP Top 10, input validation, injection prevention, and secure coding. Works with Spring, Quarkus, Jakarta EE, and plain Java. Use when reviewing code security, before releases, or when user asks about vulnerabilities.

decebals/claude-code-java · 55 tokens

issue-triage

Triage and categorize GitHub issues with priority labels. Use when user says "triage issues", "check issues", "review open issues", or during regular maintenance of GitHub issue backlog.

decebals/claude-code-java · 44 tokens

ring:migrating-to-lib-observability

Migrating a Lerian Go app off lib-commons observability imports (deprecated shims or removed APIs) to lib-observability via a fixed mapping table, then bumps go.mod and validates the build; ring:backend-go applies the edits. Covers log/zap/runtime/assert, opentelemetry/tracing, HTTP middleware, context helpers, and…

LerianStudio/ring · 104 tokens

ring:searching-code

Forensic code search and analysis with optional Chain of Draft (CoD) ultra-concise mode. Five-phase methodology (clarification, planning, execution, analysis, synthesis) with severity assessment. Use for targeted investigation of specific patterns, bugs, or vulnerabilities. Skip for broad architecture mapping (use…

LerianStudio/ring · 74 tokens

ring:exploring-codebases

Exploring a codebase across phases: scopes the target, detects architecture, components, and layers, deep-dives each discovered perspective, then synthesizes findings into actionable guidance with file:line evidence. Use to understand how a feature or system works before planning changes, or to orient on an unfamiliar…

LerianStudio/ring · 91 tokens