Agent skill · data analytics · jeremylongshore

oraclecloud-cost-tuning

Track OCI spend with the Usage API and set up budget alerts.

Why this skill is useful

Adds executable scripts for querying OCI usage and creating budgets that aren't in public docs.

What it needs

Requires python installed locally. Requires oraclecloud account access. About 4k tokens when loaded. Last updated 2026-08-07. 2,604 stars on the source repository.

What this skill does

Oracle Cloud Cost Tuning Overview Track OCI spending programmatically using the Usage API and set up budget alerts before Universal Credits run out unexpectedly. OCI pricing varies by shape, region, and commitment level, and the Cost Analysis tool in the Console is buried and confusing. This skill uses the Usage API to query spend by compartment, service, and shape, creates budgets with alert rules, and covers optimization strategies including Always Free tier resources, preemptible instances, and reserved capacity. Purpose: Get visibility into OCI spending through code, set proactive budget alerts, and identify cost optimization opportunities. Prerequisites OCI tenancy with an API signing key in ~/.oci/config Python 3.8+ with pip install oci Tenancy OCID (root compartment) for tenancy-wide cost queries IAM policy granting read usage-reports in the tenancy Notification topic OCID for budget alert delivery (see oraclecloud-observability) Instructions Step 1: Query Usage with the Usage API The Usage API returns cost and usage data broken down by configurable dimensions: Step 2: Break Down Cost by Compartment and Shape Identify which compartments and shapes are driving your bill: Step 3: Create a Budget with Alert Rules Budgets warn you before spend exceeds a threshold. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills jeremylongshore/oraclecloud-cost-tuning

View the source on GitHub

Browse the @skills marketplace