GitHub Actions Branch Drift Audit for Openclaw

A specialized audit tool to identify branch-level CI reliability regressions and performance drift compared to mainline releases.

daniellummis
v1.0.0
Mar 7, 2026
0
853
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install github-actions-branch-drift-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-branch-drift-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 Branch Drift Audit?

GitHub Actions Branch Drift Audit is a diagnostic tool designed to maintain CI health by comparing non-baseline branches against a stable reference point, such as main or master. It helps developers identify silent regressions in pipeline reliability or performance that might otherwise go unnoticed until a merge.

By integrating these Openclaw Skills into your workflow, you can prevent flaky tests and runtime bloat from polluting your production release flow. The skill evaluates failure-rate drift and average runtime ratios, providing clear visibility into which branches are diverging from the established performance baseline.

GitHub Actions Branch Drift Audit Use Cases

  • Identifying flaky tests introduced in feature branches before merging.
  • Auditing CI runtime regressions to prevent pipeline bottlenecks.
  • Implementing CI fail gates to block deployments when branch reliability drops below a threshold.
  • Generating audit reports for team-wide visibility into branch-level performance.

How GitHub Actions Branch Drift Audit Works

  1. Collect GitHub Actions run data as JSON exports using the GitHub CLI.
  2. Group the exported runs by repository, workflow, and branch name.
  3. Identify a baseline branch (defaulting to main or master) for each repository and workflow pair.
  4. Calculate failure rates and average runtimes for both the baseline and feature branches.
  5. Compare deltas to flag warning or critical drift levels based on configured thresholds.
  6. Generate a text or JSON report and optionally exit with an error code for automated CI gates.

GitHub Actions Branch Drift Audit Setup

First, ensure you have bash and python3 installed. To utilize these Openclaw Skills, collect run data and execute the audit script:

# Export run data
gh run view <run-id> --json databaseId,workflowName,event,conclusion,headBranch,headSha,createdAt,updatedAt,startedAt,url,repository > artifacts/github-actions/run-<run-id>.json

# Execute the audit
RUN_GLOB='artifacts/github-actions/*.json' \
BASELINE_BRANCH_MATCH='^(main|master)$' \
bash skills/github-actions-branch-drift-audit/scripts/branch-drift-audit.sh

GitHub Actions Branch Drift Audit Data Schema & Taxonomy

The skill processes JSON files exported from the GitHub CLI. It generates a summary of drift metrics organized as follows:

Field Description
failure-rate drift Difference in failure percentage points between branch and baseline.
runtime drift Ratio of average runtime compared to the baseline branch.
severity Classified as warning or critical based on user-defined thresholds.

GitHub Actions Branch Drift Audit Advanced Features

  • Custom baseline matching using regex to support specific release branch patterns.
  • Configurable failure and runtime drift thresholds for specific development environments.
  • Native JSON output support for ingestion by custom triage dashboards or reporting tools.
  • Automated CI fail-gate integration using the FAIL_ON_CRITICAL flag to enforce branch quality standards.
  • Flexible filtering via REPO_MATCH, WORKFLOW_MATCH, and various exclusion patterns.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Requires
Bins bashpython3
Github Stars: 0
forks: 0

Featured*