GitHub Actions Artifact Budget Audit
/install github-actions-artifact-budget-audit
GitHub Actions Artifact Budget Audit
Use this skill to detect oversized or stale GitHub Actions artifacts across repositories.
What this skill does
- Reads one or more GitHub artifact JSON exports (
gh apioutput) - Calculates artifact size in MB and totals by repository + artifact name
- Flags warn/critical artifacts by configurable size thresholds
- Highlights soon-to-expire artifact volume to prioritize cleanup
- Supports text and JSON output for terminal or dashboards
Inputs
Optional:
ARTIFACT_GLOB(default:artifacts/github-actions-artifacts/*.json)TOP_N(default:20)OUTPUT_FORMAT(textorjson, default:text)WARN_MB(default:250)CRITICAL_MB(default:750)SOON_EXPIRES_DAYS(default:7)FAIL_ON_CRITICAL(0or1, default:0)REPO_MATCH(regex, optional)REPO_EXCLUDE(regex, optional)ARTIFACT_MATCH(regex, optional)ARTIFACT_EXCLUDE(regex, optional)
Collect artifact JSON
Single repository:
gh api repos/\x3Cowner>/\x3Crepo>/actions/artifacts --paginate \
> artifacts/github-actions-artifacts/\x3Cowner>-\x3Crepo>.json
Combined multi-repo payloads are also supported as long as each file includes an artifacts array.
Run
Text report:
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
JSON output for automation:
ARTIFACT_GLOB='artifacts/github-actions-artifacts/*.json' \
OUTPUT_FORMAT=json \
FAIL_ON_CRITICAL=1 \
bash skills/github-actions-artifact-budget-audit/scripts/artifact-budget-audit.sh
Filter to one repo and artifact family:
ARTIFACT_GLOB='artifacts/github-actions-artifacts/*.json' \
REPO_MATCH='^flowcreatebot/' \
ARTIFACT_MATCH='(test-results|coverage)' \
bash skills/github-actions-artifact-budget-audit/scripts/artifact-budget-audit.sh
Run with bundled fixtures:
ARTIFACT_GLOB='skills/github-actions-artifact-budget-audit/fixtures/*.json' \
bash skills/github-actions-artifact-budget-audit/scripts/artifact-budget-audit.sh
Output contract
- Exit
0in reporting mode (default) - Exit
1ifFAIL_ON_CRITICAL=1and at least one artifact is at/aboveCRITICAL_MB - In
textmode: prints summary and top oversized artifact groups - In
jsonmode: prints summary, grouped artifact stats, and critical artifact instances
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install github-actions-artifact-budget-audit - After installation, invoke the skill by name or use
/github-actions-artifact-budget-audit - Provide required inputs per the skill's parameter spec and get structured output
What is GitHub Actions Artifact Budget Audit?
Audit GitHub Actions artifact storage usage from JSON exports so bloated artifacts are flagged before they inflate CI cost. It is an AI Agent Skill for Claude Code / OpenClaw, with 259 downloads so far.
How do I install GitHub Actions Artifact Budget Audit?
Run "/install github-actions-artifact-budget-audit" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is GitHub Actions Artifact Budget Audit free?
Yes, GitHub Actions Artifact Budget Audit is completely free (open-source). You can download, install and use it at no cost.
Which platforms does GitHub Actions Artifact Budget Audit support?
GitHub Actions Artifact Budget Audit is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created GitHub Actions Artifact Budget Audit?
It is built and maintained by Daniel Lummis (@daniellummis); the current version is v1.0.0.