finops-compare
Compare FinOps metrics across multiple repositories in an organization. Use when benchmarking repos against each other, identifying worst-performing repos, or doing org-wide CI cost analysis.
How do I install this agent skill?
npx skills add https://github.com/laurigates/claude-plugins --skill finops-compareIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill compares GitHub Actions metrics across an organization's repositories. It is functional and uses official GitHub tools, but it is susceptible to indirect prompt injection because it processes repository names and metadata that could be controlled by an attacker to influence the AI agent.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- Runlayerpass
1/2 files flagged
What does this agent skill do?
/finops:compare
Compare GitHub Actions FinOps metrics across multiple repositories - cache usage, workflow frequency, failure rates, and efficiency.
When to Use
| Scenario | Use this skill | Alternative |
|---|---|---|
| Compare CI metrics across org repos | /finops:compare | - |
| Identify worst-performing repos in org | /finops:compare | - |
| Org-wide cache or failure audit | /finops:compare | - |
| Deep-dive into a single repo's caches | /finops:caches | Use caches for single-repo detail |
| Deep-dive into a single repo's workflows | /finops:workflows | Use workflows for per-repo analysis |
| Quick summary of current repo only | /finops:overview | Use overview for single-repo snapshot |
Parameters
| Parameter | Description | Default |
|---|---|---|
org | GitHub organization name (required) | - |
repos... | Space-separated list of repo names | All org repos |
--limit N | Limit auto-discovery to N repos | 30 |
Usage Examples
# Compare specific repos
/finops:compare myorg repo1 repo2 repo3
# Compare all repos in org (up to 30)
/finops:compare myorg
# Compare more repos
/finops:compare myorg --limit 50
Execution
bash "${SKILL_DIR}/scripts/compare-repos.sh" $ARGS
Output Format
=== FinOps Comparison: myorg ===
Discovering repos (limit: 30)...
Found 25 repos
=== Cache Usage ===
Repository Caches Size (MB)
---------- ------ ---------
frontend-app 45 2340
backend-api 32 1850
shared-libs 18 420
...
=== Workflow Activity (last 30 days) ===
Repository Runs Success Failed Skip Rate
---------- ---- ------- ------ ---------
frontend-app 156 140 10 3%
backend-api 89 85 2 2%
...
=== Failure Rates (top 15) ===
Repository Total Failed Rate
---------- ----- ------ ----
legacy-service 45 12 26%
experimental-repo 20 5 25%
...
=== Active Workflows ===
Repository Workflows
---------- ---------
frontend-app 8
backend-api 5
...
=== Summary ===
Total cache usage: 8450MB across 25 repos
Repos exceeding 1GB cache:
frontend-app: 2340MB
backend-api: 1850MB
Repos with >20% failure rate:
legacy-service: 26%
experimental-repo: 25%
Agentic Optimizations
| Context | Command |
|---|---|
| List org repos (JSON) | gh api "/orgs/{org}/repos?per_page=100&sort=pushed" --jq '.[].full_name' |
| Cache count per repo | gh api "/repos/{owner}/{repo}/actions/caches" --jq '.total_count' |
| Workflow runs (JSON) | gh api "/repos/{owner}/{repo}/actions/runs?per_page=100" --jq '.workflow_runs' |
| Compact multi-repo compare | bash "${SKILL_DIR}/scripts/compare-repos.sh" $ARGS |
Post-actions
Based on comparison results:
- High cache repos: Run
/finops:caches <repo>for detailed analysis - High failure repos: Run
/finops:workflows <repo>to investigate - High activity repos: Run
/finops:waste <repo>to find optimizations - Create report: Consider creating a GitHub issue with findings
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/laurigates/claude-plugins/finops-compare">View finops-compare on skillZs</a>