optimize-databricks-costs

optimize-databricks-costs is a skill for Codex from kylehuirevvision/databricks-cost-optimizer. It costs 84 tokens per session (1,368 once invoked), scanned A, original, MIT.

A read-only audit and planning workflow for Databricks costs. Databricks is a data platform whose usage can be billed through units such as DBUs, or Databricks Units.

In plain words
What is it for?
Reviewing workspaces, warehouses, apps, jobs, pipelines, and service principals; attributing effective list cost; and proposing savings before any approved changes.
Why use it?
It helps explain cost spikes and identify expensive workloads while accounting for incomplete recent billing data and the impact on users and services.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: installed under .agents/ (shared by several agents).

Good fit Reviewing workspaces, warehouses, apps, jobs, pipelines, and service principals; attributing effective list cost; and proposing savings before any approved changes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kylehuirevvision/databricks-cost-optimizer/optimize-databricks-costs
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add kylehuirevvision/databricks-cost-optimizer --skill optimize-databricks-costs
Clone the repo
git clone --depth 1 https://github.com/kylehuirevvision/databricks-cost-optimizer

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for optimize-databricks-costs

README.md
[![agentmods](https://agentmods.dev/badge/skills/kylehuirevvision/databricks-cost-optimizer/optimize-databricks-costs.svg)](https://agentmods.dev/skills/kylehuirevvision/databricks-cost-optimizer/optimize-databricks-costs)
Your own site
<a href="https://agentmods.dev/skills/kylehuirevvision/databricks-cost-optimizer/optimize-databricks-costs"><img src="https://agentmods.dev/badge/skills/kylehuirevvision/databricks-cost-optimizer/optimize-databricks-costs.svg" alt="Measured on agentmods" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,368 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00084 $0.01368
Opus 5 $0.00042 $0.00684
Sonnet 5 $0.00017 $0.00274
Haiku 4.5 $0.00008 $0.00137

Measured 7d ago against content hash b73021b2e4bb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

optimize-databricks-costs scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/audit.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/optimize-databricks-costs/SKILL.md · 111 lines

How it starts

The opening of the file, as written. The whole thing — 111 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Optimize Databricks Costs

Run a read-only cost audit first, convert evidence into an impact-aware proposal, and mutate Databricks only after the user approves the exact affected workloads and impacts.

Operating rules

  1. Default to read-only commands and SQL.
  2. Do not edit, stop, delete, pause, resize, retag, revoke, or create anything during an audit or proposal.
  3. Treat generated reports as private. Never commit hosts, IDs, emails, query text, secrets, or customer object names.
  4. Price usage with system.billing.list_prices.pricing.effective_list.default. Call it effective list cost, not invoice cost.
  5. Include retractions and restatements when summing billing usage; they correct earlier records.
  6. Exclude the current day and an ingestion-lag window from baseline comparisons. Inspect partial recent days separately.
  7. Attribute cost to resources and identity_metadata, then prove the underlying workload before describing a user or service principal.
  8. Prefer reversible changes. Record the before state and rollback command before every approved mutation.

Phase 1: collect evidence

Confirm the Databricks CLI profile and current identity. List accessible warehouses, Apps, Jobs, pipelines, and clusters without changing them.

Resolve the bundled collector relative to this SKILL.md, then run it from any working directory:

python3 <skill-dir>/scripts/audit.py \
  --warehouse-id <warehouse-used-to-run-system-table-queries> \
  --recent-days 14 \
  --output-dir <private-report-directory>

Use --profile <name> for a non-default Databricks CLI profile. Use --dry-run to inspect the SQL without connecting.

If the script cannot access a system table, retain the successful evidence, report the permission gap, and continue with the accessible inventory. Do not broaden permissions during the audit.

Read audit-methodology.md when interpreting the output. Read system-tables.md when adapting a query to the available Databricks schema.

Read the full file on GitHub · 111 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 111 lines · 84 tokens per session scan A b73021b2e4bb

Subscribe to this mod's changes

optimize-databricks-costs is a skill published in the GitHub repository kylehuirevvision/databricks-cost-optimizer (5 stars, last pushed 28d ago), licensed MIT. It adds 84 tokens to every session and 1,368 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

k8s-cost-visibility

Estimate Kubernetes infrastructure costs by querying cluster node, pod, PVC/PV, and LoadBalancer data, applying cloud pricing models, and producing cost attribution reports with storage and LoadBalancer cost tracking, grouped by namespace, workload, node, label, or annotation.

initializ/forge · 58 tokens

aws-cost-ops

AWS Cost Explorer — spending analysis, service breakdowns, forecasts, cost anomalies. Use when analyzing AWS spending, investigating cost spikes, reviewing network cost drivers like NAT Gateway, or forecasting next month's bill.

automateyournetwork/netclaw · 45 tokens

costguard

Find and quantify CI/cron and cloud-spend waste. Audit repos, run read-only provider billing checks, preview or apply CI auto-fixes, and render a monthly cost digest.

mbanderas/costguard · 40 tokens

pilot-cloud-cost-optimizer-setup

Deploy a cloud cost optimization pipeline with 4 agents. Use this skill when: 1. User wants to set up a FinOps or cloud cost optimization pipeline 2. User is configuring a scanner, analyzer, optimizer, or reporter agent for cloud costs 3. User asks about automated cloud spend analysis and optimization workflows Do NOT…

TeoSlayer/pilot-skills · 111 tokens

skypilot-multi-cloud-orchestration

Multi-cloud orchestration for ML workloads with automatic cost optimization. Use when you need to run training or batch jobs across multiple clouds, leverage spot instances with auto-recovery, or optimize GPU costs across providers.

davila7/claude-code-templates · 51 tokens

clawrouter

Hosted-gateway LLM router — save 84% on inference costs. A local proxy that forwards each request to the blockrun.ai gateway, which routes to the cheapest capable model across 76 models from OpenAI, Anthropic, Google, DeepSeek, xAI, Z.AI, and more. 7 free open-weight models included. Also exposes realtime market data…

BlockRunAI/ClawRouter · 222 tokens