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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for optimize-databricks-costs

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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.5 $0.00034 $0.00547
Sonnet 5.5 $0.00017 $0.00274
Haiku 4.5 $0.00008 $0.00137

Measured 2mo ago against content hash b73021b2e4bb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-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 2mo 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. 2mo 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 2mo ago), licensed MIT. It adds 84 tokens to every session and 1,368 once invoked, about $0.0003 per session on Opus 5.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

optimize-databricks-costs compared with skills from other repositories

optimize-databricks-costs next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
optimize-databricks-costskylehuirevvision/databricks-cost-optimizerSkill52mo agoMITA84Codex
k8s-cost-visibilityinitializ/forgeSkill235yesterdayApache-2.0A58Claude Code, Codex
aws-cost-opsautomateyournetwork/netclawSkill715yesterdayApache-2.0A45Claude Code, Codex
costguardmbanderas/costguardSkill21mo agoMITA40Claude Code
data-cost-optimizercuriositech/windags-skillsSkill186d agononeA75Claude Code
pilot-cloud-cost-optimizer-setupTeoSlayer/pilot-skillsSkill91mo agoAGPL-3.0A111Claude Code
clawrouterBlockRunAI/ClawRouterSkill6.7kyesterdayMITA171Claude Code, Codex