Skillquality 0.46

analyze-costs

Analyze cloud costs, find optimization opportunities, and track anomalies using Harness CCM via MCP. Use when user says "cloud costs", "analyze costs", "cost optimization", "reduce spending", "cost report", or asks about cloud bills.

Price
free
Protocol
skill
Verified
no

What it does

Analyze Costs

Analyze cloud costs and identify savings using Harness Cloud Cost Management (CCM) via MCP.

Instructions

Step 1: Get Cost Overview

Call MCP tool: harness_get
Parameters:
  resource_type: "cost_account_overview"

Returns total spend, provider breakdown, and trend vs previous period.

Step 2: Get Cost Breakdown

Call MCP tool: harness_get
Parameters:
  resource_type: "cost_breakdown"

Multi-dimensional breakdown by service, environment, team, region.

Step 3: Explore Perspectives

Call MCP tool: harness_list
Parameters:
  resource_type: "cost_perspective"

Then get detailed data for a specific perspective:

Call MCP tool: harness_get
Parameters:
  resource_type: "cost_perspective"
  resource_id: "<perspective_id>"

Step 4: Get Cost Trends

Call MCP tool: harness_get
Parameters:
  resource_type: "cost_timeseries"

Step 5: Get Optimization Recommendations

Call MCP tool: harness_list
Parameters:
  resource_type: "cost_recommendation"

For detailed recommendation info:

Call MCP tool: harness_get
Parameters:
  resource_type: "cost_recommendation_detail"
  resource_id: "<recommendation_id>"

Summary statistics:

Call MCP tool: harness_get
Parameters:
  resource_type: "cost_recommendation_stats"

Step 6: Check for Anomalies

Call MCP tool: harness_list
Parameters:
  resource_type: "cost_anomaly"

To dismiss a known anomaly:

Call MCP tool: harness_execute
Parameters:
  resource_type: "cost_anomaly"
  action: "report_feedback"
  resource_id: "<anomaly_id>"
  body: { feedback: "FALSE_ANOMALY" }  # or TRUE_ANOMALY / NOT_RESPONDED

Step 7: Commitment Analysis

Call MCP tool: harness_get
Parameters:
  resource_type: "cost_commitment"

Report Format

## Cloud Cost Analysis

**Period:** Last 30 Days

### Summary
| Provider | Spend | vs Previous |
|----------|-------|-------------|
| AWS      | $X    | +X%         |
| GCP      | $X    | +X%         |
| Azure    | $X    | -X%         |

### Top Recommendations
1. **Rightsize <resource>** - Save $X/month (95% confidence)
2. **Convert to Reserved** - Save $X/month
3. **Delete unused resources** - Save $X/month

### Anomalies
- <date>: <service> spiked $X above expected

### Actions
- [ ] Rightsize instance X
- [ ] Purchase reserved capacity
- [ ] Clean up unused volumes

Cost Resource Types Reference

Resource TypeOperationsDescription
cost_account_overviewgetAccount-level total spend summary
cost_summarygetPerspective-scoped cost summary
cost_timeseriesgetCost trends over time
cost_breakdowngetMulti-dimensional breakdown
cost_perspectivelist, getCustom cost views
cost_recommendationlistOptimization suggestions
cost_recommendation_detailgetDetailed recommendation
cost_recommendation_statsgetSummary statistics
cost_anomalylist, get, execute(report_feedback)Cost spikes
cost_anomaly_summarygetAnomaly aggregate summary
cost_categorylist, getCost allocation
cost_commitmentgetCommitment coverage/utilisation/savings
cost_filter_valuegetAvailable filter values

Examples

  • "How much are we spending on cloud?" - Get cost_account_overview
  • "Find $5,000 in monthly savings" - List cost_recommendations, prioritize by savings
  • "Why did our bill spike last week?" - List cost_anomaly
  • "Break down costs by team" - Get cost_breakdown or cost_perspective
  • "Are we using our reserved instances?" - Get cost_commitment

Performance Notes

  • Gather data from all relevant perspectives before drawing cost conclusions. Partial data leads to incorrect recommendations.
  • Cross-reference recommendations with anomaly data to distinguish trends from spikes.
  • Quality of cost analysis is more important than speed. Verify savings estimates before presenting.

Troubleshooting

No Cost Data

  • Check cloud connectors are configured and syncing
  • Initial sync takes 24-48 hours
  • Verify billing access permissions (Cost Explorer, Billing API)

No Recommendations

  • Resources need sufficient usage history for analysis
  • Small savings may be filtered out
  • Check minimum running time requirements

Capabilities

skillsource-harnessskill-analyze-coststopic-agent-skillstopic-agents

Install

Installnpx skills add harness/harness-skills
Transportskills-sh
Protocolskill

Quality

0.46/ 1.00

deterministic score 0.46 from registry signals: · indexed on github topic:agent-skills · 15 github stars · SKILL.md body (4,340 chars)

Provenance

Indexed fromgithub
Enriched2026-05-18 19:06:28Z · deterministic:skill-github:v1 · v1
First seen2026-05-09
Last seen2026-05-18

Agent access