AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Caliper

skill-zhengbowenai-cmd-caliper-caliper · by zhengbowenai-cmd

|

— No reviews yet
0 installs
15 views
0.0% view→install

Install

$ agentstack add skill-zhengbowenai-cmd-caliper-caliper

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • ✓ Prompt-injection patterns
  • ✓ Secret / credential exfiltration
  • ✓ Dangerous shell & filesystem operations
  • ✓ Untrusted network calls
  • ✓ Known-malicious package signatures

What it can access

  • ✓ Network access No
  • ✓ Filesystem access No
  • ✓ Shell / process execution No
  • ✓ Environment & secrets No
  • ✓ Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-zhengbowenai-cmd-caliper-caliper)

Reliability & compatibility

✓ Security review passed
0 installs to date
— no reviews yet
● 3mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Caliper? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Caliper — Statistical A/B testing for AI prompts and skills

Use this skill when the user wants to objectively know whether a new prompt is better than the old one — instead of eyeballing a few outputs and guessing.

When to invoke this skill

Trigger phrases that should activate Caliper:

  • "Is this prompt actually better than the old one?"
  • "A/B test these two SKILL.md files"
  • "Did my prompt edit really improve things?"
  • "Which paragraph of this prompt is dragging it down?"
  • "Lint this prompt for contradictions"
  • "Compare seed.md and challenger.md"
  • 中文:「新版 prompt 真的比旧版好吗」「测一下这次改动有没有用」「找出 prompt 里互相打架的规则」「这一段在拉分还是扣分」

Prerequisites

Caliper is a Python CLI. Verify or install:

caliper --help          # already installed?
# If not:
uv tool install caliper           # recommended (https://docs.astral.sh/uv/)
# or: pip install caliper

It needs an OpenAI-compatible LLM endpoint. Any of:

# DashScope (Qwen) — cheap, good for Chinese
export DASHSCOPE_API_KEY=sk-...
export DASHSCOPE_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1

# DeepSeek — cheapest
export DEEPSEEK_API_KEY=sk-...

# OpenAI / OpenRouter — also supported

The four commands

1. caliper lint — static check, no LLM cost

Catches rule conflicts (e.g. "always include checklist" + "skip ceremony for trivial tasks" — both rules at once make the AI behave erratically), missing frontmatter, description overrun, invalid YAML.

caliper lint ~/.claude/skills/my-skill/SKILL.md

Exit code 0 = clean, 2 = HIGH-severity findings (blocking).

Use when: the user shares a prompt and wants you to check it before they ship; or a prompt is misbehaving on simple tasks.

2. caliper compare --eval — head-to-head A/B

Runs both versions on the same test cases, gives you a paired confidence interval and Hedges' g.

caliper compare seed.md challenger.md \
    --eval cases.jsonl \
    --run-dir runs/cmp-1

The verdict tells you:

  • CI excludes 0 → real improvement (or real regression)
  • CI crosses 0 → no statistical signal; the difference is noise

Use when: the user asks "is the new prompt better?" or "did this change really help?"

3. caliper iterate --eval --rounds N — auto loop

Full propose → lint → eval → decide loop. The AI proposes improvements, the linter checks for conflicts, statistics decide whether to accept. Hard --max-cost-cny cap so it cannot overrun budget.

caliper iterate seed.md \
    --eval cases.jsonl \
    --rounds 3 \
    --run-dir runs/iter-1 \
    --max-cost-cny 50

Use when: the user wants Caliper to automatically improve a prompt with statistical guarantees.

4. caliper analyze --eval — per-section attribution

Counterfactual ablation + TMC-Shapley. Tells you which paragraph contributes how much to the final score.

caliper analyze prompt.md --eval cases.jsonl

Use when: a prompt is long (>500 lines) and the user wants to know which sections to delete or rewrite.

Eval JSONL format

Each line is one test case:

{"id": "case-01", "input": "user prompt here", "principle": "what's being tested", "rubric": "0-10 grading rubric for the LLM judge"}

Aim for n ≥ 20 for meaningful statistical power. Below n=10, the confidence sequence will almost always be too wide to declare a winner (this is correct conservative behavior — small samples really can't tell signal from noise).

Reading a verdict

A typical run-dir layout:

runs/my-run/
  champion.md              ← current best version
  rounds/
    round_000/
      candidate.md         ← LLM rewrite
      lint.json            ← linter findings
      skill_runs.jsonl     ← one row per eval case (with judge votes)
      verdict.json         ← BCa CI, Hedges g, CS interval, decision
  final.json               ← summary + budget + LLM usage

Open any verdict.json to see exactly why a candidate was accepted or rejected.

Common patterns to suggest to the user

  • "My prompt feels better but I'm not sure" → run caliper compare against their previous version
  • "AI keeps doing X even though I told it not to" → run caliper lint to find a rule conflict
  • "My prompt is too long, what can I cut?" → run caliper analyze and drop sections with Shapley ≤ 0
  • "How do I improve this without burning my API budget?" → run caliper iterate ... --max-cost-cny 30

What Caliper is NOT

  • Not a prompt rewriter — it measures, you decide.
  • Not LLM middleware — it doesn't proxy your traffic.
  • Not a managed service — runs locally, no data leaves your machine

except what you send to your own LLM provider.

  • Not free of LLM cost — your provider still charges for inference;

Caliper just caps how much you can spend per run.

More

  • Repo: https://github.com/zhengbowenai-cmd/caliper
  • Quickstart: https://github.com/zhengbowenai-cmd/caliper/blob/master/docs/quickstart.md
  • Architecture: https://github.com/zhengbowenai-cmd/caliper/blob/master/docs/architecture.md
  • License: MIT — fully free, forever.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.