Decide whether a change in CI duration, failure rate or another delivery metric is a real shift or noise, with XmR/p control charts and Western Electric rules. Names the runs and candidate commits where it changed.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Skill?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/joaquincuevas-skill-a93b5840)
---
name: spc
description: Decide whether a change in CI duration, failure rate or another delivery metric is a real shift or noise, with XmR/p control charts and Western Electric rules. Names the runs and candidate commits where it changed.
disable-model-invocation: true
argument-hint: [workflow file | series.csv]
---
# SPC — is this a real change or noise?
You are checking a metric over time. A bundled script computes the chart and the signals; your job is to give it
a clean series, pick a baseline you can defend, and report what it says **without adding causes it did not find**.
Target: $ARGUMENTS
## Tooling
Stdlib-only Python. Use whichever of `python3` / `python` exists:
```bash
python3 "${CLAUDE_SKILL_DIR}/scripts/run.py" chart --from-gh-runs <workflow.yml> [--branch main] [--metric duration|failure-rate]
python3 "${CLAUDE_SKILL_DIR}/scripts/run.py" chart <series.csv|json> [--metric <column>]
python3 "${CLAUDE_SKILL_DIR}/scripts/run.py" falsealarm --length <n> # how often pure noise alarms with these settings
```
Useful options: `--baseline N` (points used for the limits), `--window K` (average every K points), `--rules
beyond-3sigma,run` (fewer false alarms), `--run-length 9`, `--svg chart.svg`, `--format json`, `--lang es`.
## Procedure
1. **Get the series.** With `gh` available, use `--from-gh-runs`; it reads completed runs, charts the duration of
successful runs in minutes, or the daily failure rate. Otherwise build a CSV with `timestamp,value[,sha]` or
`timestamp,failed,total`.
2. **Choose the baseline.** By default the first 20 points set the limits. Ask the user which period they consider
normal, or pick a stretch with no known change, and pass `--baseline`.
3. **Run `chart`.** Read the **warnings first**. CI durations are usually skewed and autocorrelated: if the report
says so, re-run with `--window 5` and say that you did.
4. **Report.** For each signal: which side, from which run, the rule that fired (by its definition), the size of the
shift and the candidate commit range. Then run `git log <range>` (or `gh api repos/O/R/compare/<range>`) and list
the commits **as candidates**, not as the cause.
5. **State the false-alarm cost.** With all four rules, pure noise alarms often (see `falsealarm`). If a signal rests
only on the 1- or 2-sigma rules, say it is weak.
## Rules
- A signal says the process changed, not why. Never name a commit as the cause without evidence.
- Do not move the baseline to make a signal appear or disappear. If you change it, say from what to what and why.
- Duration of successful runs includes queue and runner time; say so when it matters.