counter-metric-check

counter-metric-check is a skill for Claude Code from ayeshakhalid192007-dev/graph-engineering-crash-course. It costs 46 tokens per session (1,203 once invoked), scanned A, original, MIT.

A check that compares an independent counter reading with its recorded ceiling for each period in a governance graph. The watched loop's headline number does not affect the decision.

In plain words
What is it for?
It helps create governance edges for periods where the independent counter-metric exceeds its ceiling, after checking that the watched loop cannot read that signal.
Why use it?
It prevents the main process from judging its own performance without considering a separate warning signal.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; reads .claude/ paths; mentions Claude Code.

Good fit It helps create governance edges for periods where the independent counter-metric exceeds its ceiling, after checking that the watched loop cannot read that signal.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ayeshakhalid192007-dev/graph-engineering-crash-course/counter-metric-check
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 ayeshakhalid192007-dev/graph-engineering-crash-course --skill counter-metric-check
Clone the repo
git clone --depth 1 https://github.com/ayeshakhalid192007-dev/graph-engineering-crash-course

Made for: Claude Code.

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 counter-metric-check

README.md
[![agentmods](https://agentmods.dev/badge/skills/ayeshakhalid192007-dev/graph-engineering-crash-course/counter-metric-check/github.svg)](https://agentmods.dev/skills/ayeshakhalid192007-dev/graph-engineering-crash-course/counter-metric-check)
Your own site
<a href="https://agentmods.dev/skills/ayeshakhalid192007-dev/graph-engineering-crash-course/counter-metric-check"><img src="https://agentmods.dev/badge/skills/ayeshakhalid192007-dev/graph-engineering-crash-course/counter-metric-check/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 counter-metric-check

Your own site · 80×15
<a href="https://agentmods.dev/skills/ayeshakhalid192007-dev/graph-engineering-crash-course/counter-metric-check"><img src="https://agentmods.dev/badge/skills/ayeshakhalid192007-dev/graph-engineering-crash-course/counter-metric-check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,203 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.00046 $0.01203
Opus 5 $0.00023 $0.00602
Sonnet 5 $0.00009 $0.00241
Haiku 4.5 $0.00005 $0.00120

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

Security

Grade A, and why

counter-metric-check 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 10d 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.

starters/counter-metric-loop/.claude/skills/counter-metric-check/SKILL.md · 100 lines

How it starts

The opening of the file, as written. The whole thing — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.

counter-metric-check

Whatever the watched loop's own headline number did in a given period plays no part in this skill's decision for that period. The only input that matters is the second, independently owned reading and where it sits relative to its ceiling.

Instructions

You are a Claude Code skill implementing the counter-metric-loop pattern. Work through these steps in order:

  1. Load the governance graph before anything else. Open governance-graph.example.json (or the file the user names) and parse nodes and edges.
  2. Locate the two loop nodes. One carries role: "primary" (the loop under watch); the other carries role: "counter" (the independent signal). In this kit's shipped graph those are pr-approval-loop and release-pipeline.
  3. Check isolation before doing anything that depends on it holding. Walk every edge whose subject is the primary loop and confirm none of them reaches the counter loop, the threshold node, or a period under a predicate that would let the primary loop read the counter reading (reads, consumes, receives, or anything with that meaning). If one turns up, stop here and report it: a counter-metric the watched loop can see has stopped being a counter-metric, and nothing downstream of that fact is worth computing.
  4. Read the ceiling. Follow the counter loop's bound-by edge to its threshold node and note the ceiling and metric fields there.
  5. Pick the periods to evaluate. Absent a specific period from the user, use every type: "period" node in the graph — four in this kit's shipped scenario, week-14 through week-17.
  6. Take both readings straight off the graph's reported edges — the primary loop's edge into a period, and the counter loop's separate edge into that same period. Neither reading is something to estimate or infer; a period lacking either edge is UNVERIFIABLE, full stop.
  7. Let the counter reading alone decide the verdict. Above the ceiling means FLAGGED. At or below it means CLEAN. Keep the primary reading in the record for context, but it never tips a verdict either way — a loud week on the headline number is not itself proof of anything, in either direction.
  8. Produce a governance edge for each FLAGGED period. Fields: subject (counter loop), predicate: "flags-divergence", object (primary loop), period, primary_reading, counter_reading, metric, ceiling. CLEAN and UNVERIFIABLE periods get no edge.
  9. Write divergence-report.json (or wherever the user asked) at this kit's root, holding: isolation_check (the step-3 result and its detail), a periods array (one entry per period —period_id, primary_reading, counter_reading, ceiling, verdict, and citation, which is the counter loop's exact reported edge on a FLAGGED period and null everywhere else), and new_governance_edges holding step 8's output.
  10. Summarize on the way out. State the CLEAN/FLAGGED/UNVERIFIABLE counts and, for every FLAGGED period, the reading pair that triggered it.

Read the full file on GitHub · 100 lines

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. 10d ago First seen · 100 lines · 46 tokens per session scan A b7c7968a9722

Subscribe to this mod's changes

counter-metric-check is a skill published in the GitHub repository ayeshakhalid192007-dev/graph-engineering-crash-course (5 stars, last pushed 15d ago), licensed MIT. It adds 46 tokens to every session and 1,203 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

animate

Build a web animation: whether it should animate at all, the purpose, the tool, the properties, the easing curve, the duration, interruption and exit. Writes the CSS or Motion code for dropdowns, modals, toasts, tooltips, accordions, press feedback, stagger and scroll reveals. Use to animate something or make a…

ericrisco/rsc-harness · 75 tokens

author-skill

Use when authoring a NEW rsc skill or editing an existing one — scoping it to one job, writing the description that decides whether it ever loads, splitting the body into references/, writing its evals, auditing it against the rubric. NOT building a product feature (that is specify) and NOT designing an agent loop…

ericrisco/rsc-harness · 79 tokens

building-agents

Use when building or restructuring an LLM agent — provider adapter, tool calling, structured output, RAG, agent loop, eval gate, cost routing, tracing, MCP server — model-agnostic across OpenAI/Anthropic/Gemini/OSS so a model swap is a config change. NOT vector-store SQL alone (that is postgresdb) or service…

ericrisco/rsc-harness · 85 tokens

cpp

Use when writing, reviewing, modernizing, building, or debugging C++ - RAII and resource lifetime, smart-pointer ownership, move semantics and the Rule of Zero/Five, target-based CMake with FetchContent, and killing undefined behavior with ASan/UBSan/TSan plus clang-tidy. NOT borrow-checker / Result-Option / cargo…

ericrisco/rsc-harness · 81 tokens

gamedev-multiplayer

Use when adding multiplayer or netcode to a game — client-server vs P2P, server authority and anti-cheat, state replication vs RPCs, prediction and reconciliation, lag compensation, plus Godot 4 / Unity NGO / Unreal wiring. NOT single-player gameplay (that is godot, unity, unreal), NOT matchmaking or server hosting…

ericrisco/rsc-harness · 86 tokens

open-weights

Use when choosing an open-weight LLM and clearing it for use — which family and size fit the task, the hardware and the budget, and above all whether the license permits shipping. Owns the license-class map (OSI-open versus custom-community versus non-commercial), the always-verify-the-model-card rule, size-to-VRAM…

ericrisco/rsc-harness · 146 tokens