GitHub Actions SHA Rerun Debt Audit for Openclaw

Audit GitHub Actions rerun debt to identify and eliminate commit-level CI inefficiencies.

daniellummis
v1.0.0
Mar 8, 2026
0
787
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install github-actions-sha-rerun-debt-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-sha-rerun-debt-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 SHA Rerun Debt Audit?

The GitHub Actions SHA Rerun Debt Audit is a specialized tool designed to identify problematic commits that trigger excessive CI resource consumption. By analyzing workflow run history, this addition to Openclaw Skills helps developers pinpoint flaky or high-cost code changes that repeatedly fail or require multiple reruns across different workflows.

This skill provides critical visibility into CI debt, allowing teams to optimize their automation pipelines and reduce wasted minutes. It integrates seamlessly into existing monitoring workflows, making it an essential part of the Openclaw Skills ecosystem for high-performance development teams looking to streamline their infrastructure costs.

GitHub Actions SHA Rerun Debt Audit Use Cases

  • Detecting flaky commits that cause intermittent failures across multiple GitHub Actions workflows.
  • Auditing CI resource usage to identify commits responsible for the highest rerun debt.
  • Implementing CI gates that fail when a specific commit SHA exceeds predefined risk thresholds.
  • Analyzing workflow spread to see which code changes impact the largest variety of automation tasks.

How GitHub Actions SHA Rerun Debt Audit Works

  1. Collect GitHub Actions run data in JSON format using the GitHub CLI (gh).
  2. Aggregate and correlate run attempts and outcomes based on the unique commit SHA.
  3. Calculate risk scores based on rerun rates, failed run counts, and total wasted minutes.
  4. Categorize results into severity levels (ok, warn, critical) based on configurable thresholds.
  5. Generate a detailed report or JSON output to inform developers or trigger CI gate actions within the Openclaw Skills framework.

GitHub Actions SHA Rerun Debt Audit Setup

To get started with this audit tool, first export your workflow run data using the following command:

gh run view <run-id> --attempt <attempt> \
  --json databaseId,runAttempt,workflowName,event,headBranch,headSha,conclusion,createdAt,updatedAt,runStartedAt,url,repository \
  > artifacts/github-actions/run-<run-id>-attempt-<attempt>.json

Then, execute the audit script using Openclaw Skills:

RUN_GLOB='artifacts/github-actions/*.json' \
bash skills/github-actions-sha-rerun-debt-audit/scripts/sha-rerun-debt-audit.sh

GitHub Actions SHA Rerun Debt Audit Data Schema & Taxonomy

The skill processes JSON files exported from the GitHub CLI. It organizes data using the following parameters:

Input Parameter Description
RUN_GLOB File pattern for GitHub Actions JSON exports.
TOP_N Number of high-risk SHAs to include in the report.
MIN_RUNS Minimum runs per SHA to trigger an audit.
WARN_WASTED_MINUTES Threshold for warning on accumulated CI time.
CRITICAL_RERUN_RATE Percentage threshold for high-severity debt (0..1).

GitHub Actions SHA Rerun Debt Audit Advanced Features

  • Customizable failure conclusions to include specific states like timed_out or startup_failure.
  • Advanced regex filtering for workflows, branches, repositories, and specific commit SHAs to narrow the audit scope.
  • CI Gate Integration: Use the FAIL_ON_CRITICAL flag to automatically block builds that exceed debt limits.
  • Detailed JSON output for integration with other Openclaw Skills or external monitoring dashboards.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Requires
Bins bashpython3
Github Stars: 0
forks: 0

Featured*