Calibrate

From grainulation/grainulator · View interactive version

Calibrate is an AI agent skill from the GitHub repository grainulation/grainulator. Score past predictions against actual outcomes. Closes the feedback loop.

How to use this skill

Skill file

/calibrate -- Score predictions vs outcomes

The user wants to check what actually happened after a sprint's recommendations were implemented.

Arguments

$ARGUMENTS

Expected format: /calibrate --outcome "what happened" or /calibrate <claim_id> "actual result"

Instructions

  1. Parse the outcome: The user provides outcome data as free text or claim-specific results.
  1. Match outcomes to predictions: Use grainulator.search to find the original estimate, recommendation, or risk claims that predicted something. For explicit IDs use id and full: true with the sprint dir, not a text query. Read complete prediction and source context. Compare prediction to actual outcome.
  1. Create calibration claims as cal### claims with the evidence tier supported by the source: use stated for stakeholder reports, tested for checks actually run, and production only for observed production measurements. Do not promote an assertion merely because it describes an outcome:
  1. Persist and compute the scorecard:
  1. Run grainulator.compile.
  1. Print scorecard:

```

Calibration results:

Predictions scored: <N>

Accurate: <N> (<percent>)

Partially accurate: <N>

Wrong: <N>

Accuracy by evidence tier:

stated: <percent>

web: <percent>

documented: <percent>

tested: <percent>

Auto

Manual

```

Host access

Use available grainulator MCP tools, passing the active sprint dir explicitly for evidence operations. If a tool is unavailable, use the local grainulator CLI (or node <checkout>/bin/grainulator.js). Read sibling skill files directly when slash commands are unavailable. Resolve template paths relative to this skill’s checkout when CLAUDE_PLUGIN_ROOT is unset. Optional external connectors are not required for local work; use local code, supplied documents, or available web tools. Do not write managed ledger files directly to bypass a missing MCP connection.

Next-step output

For standalone fetch, setup, or read-only orchestration without an evidence sprint, derive next steps from that task. Do not initialize or compile an unrelated ledger just to produce this footer.

When working in an evidence sprint, use the current compiler's next_actions to present exactly two bullet lists labeled Auto and Manual. Auto is work the agent can continue under existing authorization. Manual is only work requiring the user's decision, access, or action. Classify using the current request and constraints; compiler suggestions never grant permission. Continue authorized Auto work without asking again.

Keep 2–3 useful actions total when available, use short concrete labels and commands where useful, and show None. for an empty group. Do not invent work to fill a quota. Never omit next steps merely because compilation is ready or the answer should be brief. Refresh stale compilation first and exclude work the user removed from scope. When the user asks only for next steps, output only these two lists: no findings recap, counts, reasons, or offer to continue.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.