No slash command · from finops-plugin
Generates a one-pass GitHub Actions cost report for an org or repo: billing, per-workflow run volume/duration, and waste counts. Use when investigating CI/CD costs.
Ships in finops-plugin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Report GitHub Actions spend for an organization or repository in one pass: billing, per-workflow run volume and duration, and waste counts. It reads and reports; to change a repo's workflow config, use /finops:waste.
| Use this skill when... | Use X instead when... |
|---|---|
| Analyzing CI/CD costs and billing | Debugging a specific failed workflow -- use gh-workflow-monitoring |
| Identifying wasted workflow runs | Setting up new workflows -- use github-actions-workflows |
| Investigating workflow trigger patterns | Managing cache keys -- use github-actions-cache-optimization |
| Comparing efficiency across repos | Monitoring a single run -- use gh-workflow-monitoring |
| Sweeping an org or repo for waste | Fixing one repo's waste (concurrency, path filters, bot guards) -- use /finops:waste |
| Reporting cost and waste counts in one pass | Reading the billing-usage API by hand (bare repo-name filter, net vs gross, monthly trend) -- use github-actions-plugin:actions-billing-usage |
git remote -vfind . -path '*/.github/workflows/*' -maxdepth 3 -name '*.yml' -o -name '*.yaml'gh workflow list --json id,name,stateExecute this GitHub Actions FinOps analysis:
Read the values in Context. Parse $OWNER and $REPO from the current repo URL (e.g., https://github.com/OWNER/REPO.git). Run gh api repos/$OWNER/$REPO --jq '.owner.type' to determine if the owner is an "Organization" or "User". If Organization, set $GITHUB_ORG to the repo owner for org-level billing queries.
If no repo context is available, ask the user for the target organization or repository.
Run the deterministic data-gathering script. It fetches org-level Actions billing, groups workflow runs and aggregates per-workflow durations, counts the waste indicators (skipped / bot-triggered / high-frequency), compares them against the red-flag thresholds, and emits a static fix suggestion per flagged pattern:
bash "${CLAUDE_SKILL_DIR}/scripts/github-actions-finops.sh" --home-dir "$HOME"
Pass --repo $OWNER/$REPO (and --org $GITHUB_ORG) when the script can't infer
the target from the current checkout. Parse STATUS= and ISSUES: from the
output — STATUS=WARN plus the SEVERITY=WARN TYPE=... rows are the flagged
waste patterns with their suggested fixes. BILLING_AVAILABLE=false means the
usage endpoint returned nothing — either the admin:org scope is missing or the
org has no Actions usage in the returned window (not an error either way).
Read each workflow file from .github/workflows/ and check for:
concurrency: groupspaths: filters on push/PR triggersif: github.event.sender.type != 'Bot')Synthesize a summary from the script output (Step 2) and the workflow-file findings (Step 3):
BILLING_AVAILABLE=true): BILLING_MINUTES, plus BILLING_NET_USD (what is actually billed) and BILLING_GROSS_USD (exposure before the public-repo discount). Quote net as the spend — a public repo can show a large gross and cost nothingWORKFLOW_RUNS= / WORKFLOW_DURATION_SECONDS= linesSEVERITY=WARN TYPE=... rows (skipped ratio, bot triggers, high-frequency) plus the workflow-file gaps from Step 3 (missing concurrency / path filters / bot guards)| Endpoint | Purpose | Admin Required |
|---|---|---|
/orgs/{org}/settings/billing/usage | Actions minutes, packages, storage — all products, as per-repo line items | Yes |
/orgs/{org}/actions/cache/usage | Org cache stats | No |
/repos/{owner}/{repo}/actions/runs | Workflow runs | No |
/repos/{owner}/{repo}/actions/workflows | Workflow definitions | No |
| Context | Command |
|---|---|
| Org billing | gh api "/orgs/$ORG/settings/billing/usage" --jq '[.usageItems[] | select(.product == "actions")] | {minutes: ([.[].quantity] | add), net: ([.[].netAmount] | add)}' |
| List repos | gh repo list $ORG --json nameWithOwner --limit 100 |
| Workflow runs | gh api "/repos/$O/$R/actions/runs?per_page=100" --jq '.workflow_runs' --jq 'length' |
| Skipped count | `gh api "..." --jq '[.workflow_runs[] |
| Bot triggers | `gh api "..." --jq '[.workflow_runs[] |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
7 skills in this plugin
/finops-cachesGitHub Actions cache analysis — size, prefix/branch breakdown, stale detection. Use when investigating cache bloat, stale caches, or auditing cache key strategies./finops-compareFinOps metrics comparison across repos in an org. Use when benchmarking repos, identifying worst-performing ones, or doing org-wide CI cost analysis./finops-overviewFinOps snapshot — org billing, workflow stats, cache usage. Use when you want a high-level view of CI spending or workflow health before diving deeper.npx claudepluginhub laurigates/claude-plugins --plugin finops-pluginOther plugins' skills for the same job