/coding-productivity:calibrate --candidate MODEL [--sample N]from coding-productivity
Compares a candidate scoring model against the current one by rescoring a deterministic sample of already-scored commits, reporting ratios and correlations per quarter, and determining whether the models are comparable or a rebase is required.
Ships in coding-productivity. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The scoring model is a measuring instrument. A newer model can change the scale of the scores (for example, Haiku 5.5 scored 0.74x Haiku 4.5 on weighted score in one real dataset, and the ratio differed by period), so a series that mixes two models inflates or deflates trends, and no single conversion factor fixes it.
This skill measures that risk. It draws a deterministic sample of already-scored commits, stratified across months, and scores each commit again with the current model (SCORING_MODEL) and with the candidate. The current model's agreement with its own stored scores is the noise floor. It writes nothing to the score tables; results go to a JSON file.
Important: Use AskUserQuestion for every interactive prompt. Never assume answers or skip steps.
The project root is the directory containing .coding-productivity.env. All paths below are relative to this root. If a .coding-productivity/.venv is missing, run python3 scripts/setup_env.py first.
Read .coding-productivity.env. Require SCORING_ENABLED=true, ANTHROPIC_API_KEY and SCORING_MODEL. If any is missing, tell the user to run /coding-productivity:setup and stop.
Check that scores exist:
python3.14 -c "
import sys; sys.path.insert(0, 'scripts')
from lib.config import Config
from lib.storage import get_storage
from lib.scoring_meta import get_active
cfg = Config()
st = get_storage(cfg)
a = get_active(st)
print(f'SERIES=v{a.version} MODEL={a.scorer_model} SCORED={st.count(a.commit_table)}')
st.close()
"
If SCORED is 0, tell the user to run /coding-productivity:score first and stop.
If the user did not pass --candidate, ask which model to evaluate. Suggest the newest Haiku if the score skill printed a "newer Haiku" warning.
Default --sample is 300 commits. Explain the cost: the skill makes about 2 calls per sampled commit (current model and candidate), plus one more per commit with --fresh-retest. Each period needs at least 10 commits to be judged, so use a larger sample for long histories.
Scores written by earlier plugin versions have no recorded model. The noise floor compares the current model's rescoring with the stored scores, which is only valid if the current model produced them.
SCORING_MODEL, pass --legacy-model <that model>.--fresh-retest: the current model scores the sample twice and the stored scores are not used.(The script stops with an explanatory error if this is needed and missing.)
Ask via AskUserQuestion:
This will send about {2 x N} scoring requests to the Anthropic API (diffs are truncated to ~10 KB per file) at standard prices. Proceed?
- Yes, run calibration
- No, cancel
Then run:
cd <project_root> && python3.14 scripts/calibrate.py --config .coding-productivity.env --candidate <model> --sample <N> [--legacy-model <model>] [--fresh-retest]
Display the report. It contains, overall and per quarter:
The verdict is one of:
SCORING_MODEL and keep scoring: that splices two scales into one series. Run /coding-productivity:rebase.Report the JSON path (printed by the script) and the VERDICT= line. Never describe a ratio as a conversion factor to apply to old data.
Ask via AskUserQuestion:
What next?
- Rebase the whole history onto the candidate (
/coding-productivity:rebase)- Keep the current model for now
- Calibrate another candidate
If option 1: tell the user to set SCORING_MODEL to the candidate in .coding-productivity.env when the rebase skill asks, then run /coding-productivity:rebase.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub facens/coding-productivity --plugin coding-productivity12 skills in this plugin
/analyzecoding-productivity:analyzeRun interactive productivity analysis on extracted data. Use after extraction to view monthly trends, before/after comparisons, per-author metrics, merge velocity, and category breakdowns./connectcoding-productivity:connectConnect to an existing BigQuery dataset for read-only analysis. Use when you have access to a pre-populated dataset and want to explore results without running extraction./dedupecoding-productivity:dedupeOther plugins' skills for the same job