github-actions-cancel-waste-audit
Audit cancelled and timed-out GitHub Actions runs from JSON exports to surface wasted CI minutes and noisy workflows.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/daniellummis/github-actions-cancel-waste-auditGitHub Actions Cancel Waste Audit
Use this skill to quantify wasted GitHub Actions runtime from cancelled or timed-out runs so flaky workflow churn gets fixed before it burns CI budget.
What this skill does
- Reads one or more GitHub Actions run JSON exports (
gh apioutput) - Estimates wasted runtime minutes per run (
run_started_at/created_at->updated_at) - Groups waste by repository + workflow + conclusion for fast triage
- Flags warn/critical waste levels using configurable minute thresholds
- Supports text and JSON output for terminal checks or dashboards
Inputs
Optional:
RUN_GLOB(default:artifacts/github-actions-runs/*.json)TOP_N(default:20)OUTPUT_FORMAT(textorjson, default:text)WARN_WASTED_MINUTES(default:15)CRITICAL_WASTED_MINUTES(default:45)FAIL_ON_CRITICAL(0or1, default:0)REPO_MATCH(regex, optional)REPO_EXCLUDE(regex, optional)WORKFLOW_MATCH(regex, optional)WORKFLOW_EXCLUDE(regex, optional)BRANCH_MATCH(regex, optional)BRANCH_EXCLUDE(regex, optional)ACTOR_MATCH(regex, optional)ACTOR_EXCLUDE(regex, optional)CONCLUSION_MATCH(regex, optional, default behavior already includes only cancelled/timed_out)CONCLUSION_EXCLUDE(regex, optional)
Collect run JSON
Single repository:
gh api repos/<owner>/<repo>/actions/runs --paginate \
> artifacts/github-actions-runs/<owner>-<repo>.json
Run
Text report:
RUN_GLOB='artifacts/github-actions-runs/*.json' \
WARN_WASTED_MINUTES=20 \
CRITICAL_WASTED_MINUTES=60 \
bash skills/github-actions-cancel-waste-audit/scripts/cancel-waste-audit.sh
JSON output for automation:
RUN_GLOB='artifacts/github-actions-runs/*.json' \
OUTPUT_FORMAT=json \
FAIL_ON_CRITICAL=1 \
bash skills/github-actions-cancel-waste-audit/scripts/cancel-waste-audit.sh
Filter to one repo/workflow family:
RUN_GLOB='artifacts/github-actions-runs/*.json' \
REPO_MATCH='^flowcreatebot/' \
WORKFLOW_MATCH='(test|build)' \
BRANCH_MATCH='^(main|release)' \
bash skills/github-actions-cancel-waste-audit/scripts/cancel-waste-audit.sh
Run with bundled fixtures:
RUN_GLOB='skills/github-actions-cancel-waste-audit/fixtures/*.json' \
bash skills/github-actions-cancel-waste-audit/scripts/cancel-waste-audit.sh
Output contract
- Exit
0in reporting mode (default) - Exit
1ifFAIL_ON_CRITICAL=1and at least one run has waste at/aboveCRITICAL_WASTED_MINUTES - In
textmode: prints summary and top waste hotspots - In
jsonmode: prints summary, grouped stats, and critical run instances
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-daniellummis-github-actions-cancel-waste-audit": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
github-actions-recovery-latency-audit
Measure GitHub Actions failure recovery latency and unresolved incident age by workflow group.
github-actions-cache-hardening-audit
Audit GitHub Actions workflow cache usage for poisoning, keying, and secret-path risks.
render-env-guard
Preflight-check Render service environment variables before deploys; catches missing keys and placeholder/template values that commonly break production rollouts.
github-actions-trigger-health-audit
Audit GitHub Actions run health by trigger event and workflow so flaky or noisy automation sources are easy to prioritize.
github-actions-run-gap-audit
Detect GitHub Actions workflow groups that stopped running on their normal cadence using median run intervals and current inactivity gap.