GitHub Actions Rerun Waste Audit for Openclaw

A technical auditing tool to quantify wasted GitHub Actions minutes by analyzing workflow reruns and flakiness data.

daniellummis
v1.0.0
Mar 6, 2026
0
765
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install github-actions-rerun-waste-audit

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install github-actions-rerun-waste-audit using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is GitHub Actions Rerun Waste Audit?

The GitHub Actions Rerun Waste Audit is a specialized analytical tool designed to help engineering teams reclaim lost CI productivity. By processing GitHub Actions run data, this skill identifies exactly how many minutes are lost to retries and flaky tests. It provides data-driven insights that allow teams to prioritize workflow fixes based on their actual cost in runner time.

As part of the Openclaw Skills collection, this utility bridges the gap between raw CI logs and actionable infrastructure management. It transforms complex JSON run data into clear, ranked reports of your most wasteful workflows, making it an essential asset for any organization focused on DevOps efficiency and cost reduction.

GitHub Actions Rerun Waste Audit Use Cases

  • Identifying flaky CI jobs that consume excessive runner minutes and increase cloud costs.
  • Performing regular CI quality reviews to justify engineering time for workflow stabilization.
  • Monitoring CI waste across high-volume repositories to ensure pipeline health.
  • Setting up automated gates that fail when specific waste thresholds are exceeded.

How GitHub Actions Rerun Waste Audit Works

  1. The skill ingests one or more JSON exports generated by the GitHub CLI run view command.
  2. It groups these attempts by repository, workflow, branch, commit, and job name to create a lifecycle map of each execution.
  3. It calculates estimated waste by summing the duration of all attempts except the final execution in each group.
  4. Workflows are then flagged as 'Warning' or 'Critical' based on user-defined minute thresholds.
  5. Finally, it emits a prioritized report in either text or JSON format for triage or automated processing.

GitHub Actions Rerun Waste Audit Setup

First, ensure you have the GitHub CLI installed and authenticated. Export your run data to the expected directory:

gh run view <run-id> --json databaseId,workflowName,headBranch,headSha,runAttempt,url,repository,jobs > artifacts/github-actions/run-<run-id>.json

Then, execute the audit script using your preferred configuration via Openclaw Skills scripts:

RUN_GLOB='artifacts/github-actions/*.json' \
WARN_MINUTES=10 \
CRITICAL_MINUTES=30 \
bash skills/github-actions-rerun-waste-audit/scripts/rerun-waste-audit.sh

GitHub Actions Rerun Waste Audit Data Schema & Taxonomy

The skill processes JSON files containing GitHub Actions metadata. The expected schema includes:

Field Description
workflowName The name of the workflow being audited.
runAttempt The specific attempt number for the run group.
jobs An array of job objects containing execution durations.
headSha Used to group reruns of the same commit code.
repository The source repository for the workflow run.

GitHub Actions Rerun Waste Audit Advanced Features

  • Advanced regex filtering for WORKFLOW_MATCH and REPO_EXCLUDE to focus audits on specific teams or services.
  • Fail-gate logic using FAIL_ON_CRITICAL to prevent merging code that triggers unstable, high-waste CI patterns.
  • Support for custom glob patterns to analyze months of historical CI data in a single pass.
  • Dual output modes providing human-readable summaries or machine-parseable JSON for custom dashboards.
  • Seamless integration with other Openclaw Skills to automate the end-to-end CI optimization lifecycle.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Requires
Bins bashpython3
Github Stars: 0
forks: 0

Featured*