agentleFS
grainulationgrainulation/grainulator/skills/calibrate/SKILL.md

calibrate

Skill86 starsChanged 9 days agoMITView on GitHub

Score past predictions against actual outcomes. Closes the feedback loop.

6 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Match outcomes to predictions: Use grainulator.search to find the original estimate, recommendation, or risk claims that predicted …

    line 30
  2. Distinctive:

    If prediction was accurate: factual claim noting the match

    line 34
  3. Distinctive:

    If prediction was wrong: factual claim noting the delta (predicted X, actual Y)

    line 35
  4. Distinctive:

    If prediction was partially right: estimate claim with the refined numbers

    line 36
  5. Distinctive:

    Use an active estimate, risk, or recommendation as the prediction.

    line 39
  6. Very specific:

    Run grainulator analytics calibrate <dir> --json.

    line 40

“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/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.
  2. 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.
  3. 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:
    • Pass calibration: {prediction_id: "<original-id>", verdict: "correct|wrong|partial|unknown", outcome: "<observed result>", delta: <optional signed number>} to add_claim. CLI fallback: grainulator add ... --calibration '<JSON object>' --dir <dir>.
    • If prediction was accurate: factual claim noting the match
    • If prediction was wrong: factual claim noting the delta (predicted X, actual Y)
    • If prediction was partially right: estimate claim with the refined numbers
  4. Persist and compute the scorecard:
    • Use an active estimate, risk, or recommendation as the prediction. Each outcome links to exactly one prediction; do not use tag overlap as a substitute. Record another claim only for a distinct observation. Unknown outcomes remain unknown.
    • Run grainulator analytics calibrate <dir> --json. Correct/wrong outcomes form the binary accuracy denominator; partial and unknown outcomes are separate counts, excluded from binary confidence/Brier scoring.
    • Evidence/type breakdowns below are descriptive analysis of the complete linked records; label them separately from machine-returned fields.
    • Group by evidence tier: what % of stated vs web vs documented vs tested claims were accurate?
    • Group by claim type: are estimates less accurate than factual claims?
    • Report this as a descriptive score for the observed sample; do not infer predictive validity without sufficient independent outcomes
  5. Run grainulator.compile.
  6. 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
    
    - <authorized next action>
    
    Manual
    
    - <action requiring the user, or None.>

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.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.