GitHub Actions Duplicate Run Audit for Openclaw

A specialized utility for identifying redundant GitHub Actions executions and quantifying wasted CI/CD resources.

daniellummis
v1.0.0
Mar 7, 2026
0
777
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install github-actions-duplicate-run-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-duplicate-run-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 Duplicate Run Audit?

This skill provides an automated methodology for monitoring and auditing GitHub Actions hygiene. By analyzing exported run data, it identifies bursts of duplicate executions typically caused by trigger overlaps, force-push storms, or retried dispatches. It is a vital addition to the library of Openclaw Skills for teams looking to optimize their CI/CD budgets and reduce environmental impact by eliminating redundant compute cycles.\n\nThe utility processes JSON exports from the GitHub CLI and groups them by repository, workflow, and commit SHA to provide a granular view of resource consumption. It serves as a diagnostic tool for DevOps engineers to pinpoint inefficiency in automation pipelines and implement better CI practices.

GitHub Actions Duplicate Run Audit Use Cases

  • Identifying CI minute waste resulting from rapid git push cycles or frequent force-pushes.\n- Auditing workflow trigger overlaps that cause redundant concurrent runs for the same commit.\n- Enforcing CI hygiene gates by failing builds when excessive duplicate bursts are detected.\n- Benchmarking repository health and workflow efficiency across multiple branches and events.

How GitHub Actions Duplicate Run Audit Works

  1. Data collection: The skill ingest GitHub Actions run data in JSON format, typically gathered via the GitHub CLI.\n2. Grouping logic: It groups runs based on unique combinations of repository, workflow name, branch, event type, and head SHA.\n3. Burst clustering: It identifies clusters of runs occurring within a configurable time window (e.g., 30 minutes) to find duplicates.\n4. Scoring: The skill calculates total wasted minutes and assigns a severity score (ok, warn, or critical) based on predefined thresholds.\n5. Reporting: It generates an actionable report in text or JSON format, allowing for either human review or automated intervention.

GitHub Actions Duplicate Run Audit Setup

To begin using this skill from the Openclaw Skills collection, ensure you have bash and python3 installed.\n\nbash\n# Step 1: Collect run data using the GitHub CLI\ngh run view <run-id> --json databaseId,workflowName,event,conclusion,headBranch,headSha,createdAt,updatedAt,startedAt,url,repository > artifacts/github-actions/run-<run-id>.json\n\n# Step 2: Run the audit script\nRUN_GLOB='artifacts/github-actions/*.json' \\nDUPLICATE_WINDOW_MINUTES=20 \\nbash skills/github-actions-duplicate-run-audit/scripts/duplicate-run-audit.sh\n

GitHub Actions Duplicate Run Audit Data Schema & Taxonomy

The skill utilizes a flexible configuration schema via environment variables to manage audit parameters:\n\n| Variable | Default | Description |\n| :--- | :--- | :--- |\n| RUN_GLOB | artifacts/github-actions/*.json | File path pattern for input data. |\n| DUPLICATE_WINDOW_MINUTES | 30 | The timeframe used to cluster redundant runs. |\n| OUTPUT_FORMAT | text | The format of the audit report (text or json). |\n| FAIL_ON_CRITICAL | 0 | Boolean flag to exit with an error code if critical waste is found. |

GitHub Actions Duplicate Run Audit Advanced Features

  • Advanced Regex Filtering: Narrow down audits using WORKFLOW_MATCH, BRANCH_EXCLUDE, or REPO_MATCH to focus on specific project areas.\n- CI Gating: Integration with pipeline runners via FAIL_ON_CRITICAL=1 to prevent merging code that triggers inefficient CI patterns.\n- Customizable Severity Thresholds: Define your own 'warn' and 'critical' levels for both run counts and wasted minutes.\n- Multi-Agent Compatibility: Part of the broader Openclaw Skills ecosystem, designed to work alongside other automation agents for comprehensive repo management.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Requires
Bins bashpython3
Github Stars: 0
forks: 0

Featured*