/coding-productivity:validate [reference file path, or "generate" to create a snapshot]from coding-productivity
Compares plugin analysis results against a reference dataset to verify correctness. Use to validate a new instance against known-good results or generate a reference snapshot.
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.
This skill compares analysis output from the plugin against a reference dataset to verify that results are correct. It can also generate a reference snapshot from current data. Useful after initial setup, after changing storage backends, or after re-extracting data.
Important: Use AskUserQuestion for every interactive prompt. Never assume answers or skip steps.
No org-specific references. Reference files are generated from each instance's own data. Do not bundle or distribute pre-built reference datasets tied to a specific organization.
Ask the user:
How would you like to validate?
- Generate a reference snapshot from current data (snapshot current results as the baseline)
- Compare against an existing reference file (verify current results match a known-good baseline)
If the user chose to generate a reference file:
Locate the .coding-productivity.env config file in the project root.
Ask the user for the date range:
What date range should the reference cover?
- Since (YYYY-MM-DD):
- Until (YYYY-MM-DD):
Determine the output path. Use today's date:
.coding-productivity/reference-YYYY-MM-DD.json
Run the generation via Bash:
python3.14 scripts/validate.py \
--config .coding-productivity.env \
--generate-reference .coding-productivity/reference-{today}.json \
--since {since} --until {until}
Display the result:
Reference file saved to
.coding-productivity/reference-{today}.jsonContains:
- {N} monthly trend rows
- {N} author productivity rows
- {N} category distribution rows
Use this file with option 2 to validate future runs.
If the user chose to compare against an existing reference:
Ask for the reference file path:
Path to the reference file (JSON or CSV):
Hint: generated references are saved under
.coding-productivity/reference-*.json
Read the reference file to extract the period (if present). Ask the user to confirm or override:
The reference file covers {since} to {until}. Use the same date range?
- Yes, use the same range
- No, let me specify different dates
Run the validation script via Bash:
python3.14 scripts/validate.py \
--config .coding-productivity.env \
--reference {reference_path} \
--since {since} --until {until} \
--tolerance 0.01
Display the full output table to the user.
After displaying the results table, explain the status codes:
Display the summary line (e.g., "Validation: 12 PASS, 3 OK, 0 FAIL").
If there are any FAIL results, walk the user through possible causes:
--since or --until changes commit counts.--tolerance (e.g., 0.05) to account for this.ROUND() at boundary values. Scores at exactly N.5 may round differently.REPOS, EXCLUDED_DEVELOPERS, IDENTITY_MERGES, IDENTITY_AUTO_MERGE or IDENTITY_NO_MERGE changed, the filtered dataset or the developer count is different. Ensure the same config was active for both the reference and the validation. References produced before 0.15.0 counted emails in unique_authors; it now counts people. Regenerate the reference, or set IDENTITY_AUTO_MERGE=false to compare.Ask the user:
Would you like to:
- Re-run with a higher tolerance (e.g., 0.05)
- Generate a new reference file from current data
- Done
If all results are PASS or OK (exit code 0), display:
All metrics validated successfully. The plugin output matches the reference dataset.
No further action needed.
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./calibratecoding-productivity:calibrateCompare a candidate scoring model with the current one before switching. Rescores a deterministic sample of already-scored commits with both, reports ratios and correlations per quarter, and says COMPARABLE or REBASE REQUIRED. Use when a newer Claude model is available or before changing SCORING_MODEL. Writes nothing to the score tables./Other plugins' skills for the same job