GitHub Actions Artifact Budget Audit for Openclaw

Audit GitHub Actions artifact storage from JSON exports to identify and flag oversized artifacts before they inflate CI costs.

daniellummis
v1.0.0
Mar 6, 2026
0
761
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install github-actions-artifact-budget-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-artifact-budget-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 Artifact Budget Audit?

The GitHub Actions Artifact Budget Audit is a specialized tool designed to help development teams manage cloud storage overhead effectively. By processing JSON metadata exported from the GitHub API, this skill provides a detailed breakdown of artifact sizes across repositories, helping you stay within budget and maintain a lean CI/CD environment. As a key part of the Openclaw Skills ecosystem, it allows developers to proactively identify storage-heavy workflows and enforce data retention policies through configurable thresholds.

This skill is particularly useful for organizations managing large-scale automation where artifact sprawl can lead to unexpected billing increases. It bridges the gap between raw GitHub API data and actionable insights, offering both human-readable reports and machine-parseable JSON for automated cost monitoring.

GitHub Actions Artifact Budget Audit Use Cases

  • Identifying high-cost repositories that generate excessive artifact data during CI/CD runs.
  • Auditing artifact expiration timelines to prioritize cleanup of soon-to-expire storage.
  • Enforcing storage budgets by failing CI pipelines when artifact sizes exceed critical limits.
  • Generating structured reports for integration into DevOps dashboards or financial auditing tools.

How GitHub Actions Artifact Budget Audit Works

  1. Data Collection: Use the GitHub CLI to export artifact metadata as JSON files from your repositories.
  2. Configuration: Define your budget thresholds for warning and critical levels (in MB) and specify glob patterns for the target files.
  3. Analysis: The skill parses the JSON payloads, aggregating artifact sizes by repository and name while applying regex filters for fine-grained analysis.
  4. Auditing: It evaluates each artifact against your defined budget, flagging those that exceed thresholds or are nearing expiration.
  5. Reporting: The tool outputs a summary to the terminal or generates a JSON object for further automation and alerting.

GitHub Actions Artifact Budget Audit Setup

To get started with this skill, ensure you have the GitHub CLI (gh), bash, and python3 installed. First, collect your artifact data:

gh api repos/<owner>/<repo>/actions/artifacts --paginate > artifacts/github-actions-artifacts/<owner>-<repo>.json

Then, run the audit using the following command structure:

ARTIFACT_GLOB='artifacts/github-actions-artifacts/*.json' \
WARN_MB=300 \
CRITICAL_MB=900 \
bash skills/github-actions-artifact-budget-audit/scripts/artifact-budget-audit.sh

GitHub Actions Artifact Budget Audit Data Schema & Taxonomy

The skill processes JSON files containing an artifacts array. It evaluates data based on the following metadata parameters:

Parameter Description Default Value
ARTIFACT_GLOB Path pattern to locate input JSON files artifacts/github-actions-artifacts/*.json
WARN_MB Threshold for warning flags 250
CRITICAL_MB Threshold for critical flags and failure modes 750
SOON_EXPIRES_DAYS Window for highlighting expiring artifacts 7
OUTPUT_FORMAT Choosing between text or json output text

GitHub Actions Artifact Budget Audit Advanced Features

  • Multi-Repository Support: Aggregate and analyze artifact data across an entire organization by processing multiple JSON files in a single run.
  • CI Failure Gates: Use the FAIL_ON_CRITICAL=1 flag to integrate the audit directly into your pipelines, ensuring bloated builds never go unnoticed.
  • Advanced Filtering: Utilize REPO_MATCH and ARTIFACT_MATCH regex parameters to focus audits on specific projects or artifact types like test results or coverage reports.
  • Flexible Integration: Output results in JSON format to feed into Openclaw Skills automations or external monitoring systems.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Requires
Bins bashpython3
Github Stars: 0
forks: 0

Featured*