calibrate

calibrate is a skill for Claude Code from Borda/AI-Rig. It costs 47 tokens per session (14,393 once invoked), scanned A, original, Apache-2.0.

A benchmarking workflow for checking whether agents and skills find known problems and accurately judge their own results.

In plain words
What is it for?
Use it to measure recall, precision, and confidence calibration, compare a target with a general baseline, and apply improvements based on repeated weaknesses.
Why use it?
It compares outputs with synthetic tasks that have defined answers, exposing missed issues and overconfidence.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions .claude-plugin; mentions subagents.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the foundry plugin — 10 skills, 10 agents shipped together

Good fit Use it to measure recall, precision, and confidence calibration, compare a target with a general baseline, and apply improvements based on repeated weaknesses.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add Borda/AI-Rig
Claude Code
/plugin install foundry

Made for: Claude Code.

Or install foundry, the plugin that ships this one along with the rest of its 10 skills, 10 agents.

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 calibrate

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/borda/ai-rig/calibrate"><img src="https://agentmods.dev/badge/skills/borda/ai-rig/calibrate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 14,393 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.00047 $0.14393
Opus 5.5 $0.00019 $0.05757
Sonnet 5.5 $0.00009 $0.02879
Haiku 4.5 $0.00005 $0.01439

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

Security

Grade A, and why

calibrate 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 7d 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.

plugins/cc_foundry/skills/calibrate/SKILL.md · 491 lines

How it starts

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

Validate agents and skills by measuring outputs against synthetic problems with defined ground truth. Primary signal: calibration bias — gap between self-reported confidence and actual recall. Well-calibrated agent reports 0.9 when it finds ~90% of issues. Miscalibrated: reports 0.9, finds 60%.

Calibration data drives improvement loop: systematic gaps: instruction updates; persistent overconfidence: overconfidence checks in the target's <antipatterns-to-flag>.

NOT for: static routing overlap analysis (use /foundry:audit); manually reviewing skill output quality (use /develop:review (requires develop plugin)).

  • $ARGUMENTS: parse --flags first, then resolve remaining tokens as scope targets

    Flags (order independent):

    • --fast — 3 problems per target (default when neither pace flag passed)
    • --full — 10 problems per target; mutually exclusive with --fast
    • --ab-test — also run general-purpose baseline and report delta metrics; requires benchmark (default --fast if no pace flag); mutually exclusive with --apply
    • --apply — prepare proposals for application: with --fast/--full: benchmark then review the concrete edits; without pace flag: skip benchmark, select the most recent proposal per target; application always requires the Step 6 approval; mutually exclusive with --ab-test
    • --skip-gate — suppress fan-out and follow-up gates; for programmatic callers; never bypasses Step 6 edit approval
    • --local — read rules (rules target), mode files and the cross-plugin availability check from source tree (plugins/*/) instead of installed plugin cache; agent/skill targets come from source tree in both modes (resolve_agent_file.py); for plugin-dev workflows where local edits aren't yet installed; sets LOCAL_MODE=true in all pipeline spawns

    Mutual exclusion validation (check before any work):

    • --ab-test + --apply together: hard error: "--ab-test and --apply are mutually exclusive. Pass one or neither."
    • --fast + --full together: hard error: "Pass --fast or --full, not both."
    • --ab-test without pace flag: default --fast silently (no error)

    Unsupported flag check — after all supported flags extracted (--fast, --full, --ab-test, --apply, --skip-gate, --local, --keep), scan $ARGUMENTS for remaining --<token> tokens. Found: invoke AskUserQuestion with question text ! Unknown flag(s): `--<token>`. Supported: `--fast`, `--full`, `--ab-test`, `--apply`, `--skip-gate`, `--local`, `--keep`. — (a) Abort (stop, re-invoke with correct flags) · (b) Continue ignoring (skip unknown flags, proceed). On Abort: stop.

    Legacy positional tokens (ab, apply, fast, full) — hard error: print migration hint, stop. Example: "ab removed — use --ab-test flag: /foundry:calibrate curator --ab-test."

    Scope tokens (positional, space-separated — defaults to all):

    • all — all agents + relevant skills + routing + communication + all rules
    • agents — all agents only (full agent list in modes/agents.md)
    • skills — calibratable skills only (/foundry:audit and others per modes/skills.md; /oss:review (requires oss plugin) excluded — requires live GitHub PR)
    • routing — routing accuracy test: measures how accurately general-purpose orchestrator selects correct subagent_type for synthetic task prompts (not per-agent quality benchmark; included in all)
    • communication — handover + team protocol compliance: runs foundry:curator against synthetic agent responses and team transcripts with injected protocol violations (missing JSON envelope, missing summary, AgentSpeak v2 breaches); included in all
    • rules — rule adherence test: for each global rule file (no paths:) and each path-scoped rule when matching file is in context, generates synthetic tasks that should trigger rule's key directives, measures whether general-purpose agent with rule loaded correctly applies them; reports rules that are ignored, misapplied, or redundant; included in all
    • plugins — all agents + calibratable skills from all plugins/*/ directories (union of all plugin-namespaced agents and calibratable skills)
    • <plugin-name> — tier 2: plugin name or directory name (e.g. oss, foundry, research, develop, codemap-py); resolve plugins/<name>/ first, then plugins/cc_<name>/, then a plugin root whose manifest name matches (e.g. bridge → plugins/bridge_cc-codex/); calibrates that root's manifest-declared agents + calibratable skills
    • <agent-name> — tier 3: single agent (e.g., foundry:sw-engineer); also accepts bare name (e.g. sw-engineer) and resolves via plugins/*/agents/<name>.md
    • /foundry:audit — single skill (pass any calibratable skill name; /oss:review (requires oss plugin) accepted but excluded per modes/skills.md)
    • Multiple scope tokens — space-separated; calibrates union of resolved targets: oss research, agents skills, curator shepherd; each token resolved through same tier hierarchy as /foundry:audit scope tokens (reserved keywords first, then plugin-dir lookup, then agent/skill file search)

Read the full file on GitHub · 491 lines

Files

What ships with it

9 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 7d ago Changed cf71cb682f21
  2. 18d ago Changed · +58 lines scan B → A 192b69353868
  3. 28d ago Changed · +2 lines 8e40c0cd399c
  4. 1mo ago Changed · +1 lines 95fb320ad751
  5. 1mo ago Changed · -77 lines 5e252477b8dc
  6. 1mo ago Changed f37bfa73825f
  7. 1mo ago Changed 4d1e85bc273b
  8. 1mo ago Changed · +1 lines 3902f8742287
  9. 1mo ago Changed · +24 lines 17b16f006ccc
  10. 2mo ago First seen · 482 lines · 47 tokens per session scan B 2d2c8ec88083

Subscribe to this mod's changes

calibrate is a skill published in the GitHub repository Borda/AI-Rig (31 stars, last pushed yesterday), licensed Apache-2.0. It adds 47 tokens to every session and 14,393 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-30.

Related

calibrate compared with skills from other repositories

calibrate next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
calibrateBorda/AI-RigSkill31yesterdayApache-2.0A47Claude Code
i18n-parityhoangsonww/Claude-Code-Agent-MonitorSkill1.2kyesterdayMITA95Claude Code, Codex
file-headershoangsonww/Claude-Code-Agent-MonitorSkill1.2kyesterdayMITA101Claude Code
productivity-scorehoangsonww/Claude-Code-Agent-MonitorSkill1.2kyesterdayMITA67Claude Code, Codex
dashboard-statushoangsonww/Claude-Code-Agent-MonitorSkill1.2kyesterdayMITA69Claude Code, Codex
dag-maphoangsonww/Claude-Code-Agent-MonitorSkill1.2kyesterdayMITA65Claude Code, Codex
regression-watchhoangsonww/Claude-Code-Agent-MonitorSkill1.2kyesterdayMITA82Claude Code, Codex