github-actions-duplicate-run-audit
Detect duplicate GitHub Actions run bursts by workflow/branch/commit and quantify wasted rerun minutes.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/daniellummis/github-actions-duplicate-run-auditWhat This Skill Does
The github-actions-duplicate-run-audit skill is a diagnostic tool designed for DevOps engineers and CI/CD maintainers to reclaim wasted infrastructure costs. It scans GitHub Actions run data to identify "bursts" of redundant workflow executions. Often caused by aggressive trigger configurations, rapid force-pushes, or manual workflow dispatch retries, these duplicate runs burn through valuable CI minutes without providing additional utility. This skill parses JSON exports from the GitHub CLI (gh), clusters them based on repository, branch, commit SHA, and event triggers, and calculates the total wasted runtime. It supports configurable severity thresholds, allowing teams to set their own definitions for "warn" versus "critical" incidents, effectively turning CI hygiene into a measurable metric.
Installation
To install this skill into your OpenClaw environment, use the following command:
clawhub install openclaw/skills/skills/daniellummis/github-actions-duplicate-run-audit
Ensure that you have gh (GitHub CLI) installed on your machine and configured with the appropriate read-access tokens to fetch your workflow run metadata. Once installed, you will need to point the tool at your exported run artifacts directory to begin the audit.
Use Cases
- Cost Optimization: Analyze which workflows contribute to the highest volume of "wasted" minutes to justify decommissioning redundant triggers or implementing concurrency limits.
- CI Hygiene Monitoring: Integrate into a CI pipeline gate (using
FAIL_ON_CRITICAL=1) to prevent code from merging if it triggers significant redundant CI load. - Debugging Trigger Loops: Identify if specific event combinations (e.g.,
push+pull_request) are causing double-execution storms during active development sprints.
Example Prompts
- "Audit all CI runs in the artifacts/github-actions folder and show me a text summary of the most redundant workflows."
- "Find any duplicate GitHub Action runs from the last week that wasted more than 60 minutes and report them in JSON format."
- "Run a duplicate audit on my local fixtures, flagging any group with more than 3 repeats as a critical issue."
Tips & Limitations
- Data Dependency: This skill requires pre-fetched data. Ensure your collection script captures at least the
databaseId,headSha, andstartedAtfields to enable accurate grouping. - Window Sensitivity: The
DUPLICATE_WINDOW_MINUTESsetting is critical. If your builds take longer than 30 minutes, consider increasing this window to avoid false positives where long-running builds are misidentified as duplicates. - Scope: The skill performs best when filtering by specific repositories; running it across a massive enterprise-wide data dump may require adjusting the
TOP_Nlimit to avoid overwhelming output.
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-duplicate-run-audit": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read
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.