Skip to content
Back to skills

Skill

ASecurity

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.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 6, 2026
ai-agentspythonbashgitapi

Works with

  • api

Security analysis

A100/100

Scanned December 6, 2026

npx -y skills add Joaquincuevas/clarent --skill skill --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Skill?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Skill
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/joaquincuevas-skill-a93b5840/badge)](https://www.skillsdirectory.com/skills/joaquincuevas-skill-a93b5840)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.