drawio-databricks

drawio-databricks is a skill for Claude Code, Codex from sparklabx/drawio-ai-kit. It costs 104 tokens per session (1,550 once invoked), scanned A, original, MIT.

A tool for creating Databricks lakehouse architecture diagrams in draw.io with Databricks icons. A lakehouse combines data-lake storage with data-warehouse-style processing and governance.

In plain words
What is it for?
Use it to diagram Bronze, Silver, and Gold data layers, Delta Lake, Unity Catalog, workspaces, and Databricks control-plane or data-plane setups.
Why use it?
It helps show data layers, platform boundaries, deployments, and relationships using validated icons and layouts.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/sparklabx/drawio-ai-kit/drawio-databricks
Any agent
npx skills add sparklabx/drawio-ai-kit --skill drawio-databricks
Clone the repo
git clone --depth 1 https://github.com/sparklabx/drawio-ai-kit

Made for: Claude Code, 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 drawio-databricks

README.md
[![agentmods](https://agentmods.dev/badge/skills/sparklabx/drawio-ai-kit/drawio-databricks.svg)](https://agentmods.dev/skills/sparklabx/drawio-ai-kit/drawio-databricks)
Your own site
<a href="https://agentmods.dev/skills/sparklabx/drawio-ai-kit/drawio-databricks"><img src="https://agentmods.dev/badge/skills/sparklabx/drawio-ai-kit/drawio-databricks.svg" alt="Measured on agentmods" height="20"></a>
Per session 104 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,550 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00104 $0.01550
Opus 5 $0.00052 $0.00775
Sonnet 5 $0.00021 $0.00310
Haiku 4.5 $0.00010 $0.00155

Measured 6d ago against content hash 8df6a20c8992, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

drawio-databricks 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 6d ago.

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.

skills/drawio-databricks/SKILL.md · 132 lines

How it starts

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

Draw.io Databricks

Produce correct Databricks lakehouse architecture diagrams in draw.io. This skill is a thin frontend; the deterministic engine, validator, and rules live in the drawio-ai-kit package, reached via the drawio-ai CLI.

0. Preflight — the CLI must be installed

command -v drawio-ai >/dev/null 2>&1 || echo "Install the Kit first:  npm i -g github:sparklabx/drawio-ai-kit"

If drawio-ai is not on PATH, stop and tell the user to run npm i -g github:sparklabx/drawio-ai-kit. Never run npm i -g yourself — nothing mutates the user's global environment without their say-so.

1. Delegate the build (preferred when your harness supports it)

If your harness can spawn autonomous subagents that run shell commands AND read images (e.g. Claude Code's Task tool, a general-purpose agent), run the whole build loop in a subagent — the rules, icon searches, and every render/fix iteration then cost this conversation nothing. If it can't (or the subagent can't read images), skip to Inline path below — same loop, same rules.

Before spawning, resolve what the subagent cannot ask about: diagram scope, output directory (absolute path under the user's project), filename. Run the preflight above yourself. For a multi-diagram request, spawn one subagent per diagram in parallel with distinct filenames.

Model routing — if your harness lets you choose the subagent's model, route by task weight: a fast/cheap tier (Claude Haiku-class — must support vision) when the request matches a template from the rules' Templates table (reproduction is mechanical; the validator's advice strings teach every fix), your default strong model for free-hand or novel architectures. If a cheap subagent returns VALIDATE not ok or ITERATIONS > 3, respawn ONCE on the strong model before taking over inline. Multi-diagram requests: route each diagram independently.

Subagent prompt (fill every <...>):

Build a Databricks lakehouse architecture .drawio diagram with the drawio-ai CLI.
Request: <user's request + clarifications, verbatim>
Output: <ABS_PROJECT_DIR>/<NAME>.drawio — never write inside the Kit, never into cwd.
Follow exactly:
1. Set ROOT="$(drawio-ai root)". Read $ROOT/docs/api-cheatsheet.md — the full layout-engine
   API in one file; never read library source.
2. Run `drawio-ai workflow` and `drawio-ai principles --mode databricks` — the source of
   truth. (Fallback if a command is blocked: read $ROOT/rules/*.md directly.)
3. Look up every icon with ONE batched `drawio-ai search "a, b, c"`; never recolor icons.
4. Scaffold, don't write: `drawio-ai scaffold --list`, pick the closest template, then
   `drawio-ai scaffold <name>.mjs -o <dir>/build.mjs` — the script arrives runnable and
   self-checking. Edit only the deltas; Write a new script only if no template is close
   AND you'd change more than half of it.
5. Each `node build.mjs` run prints validate JSON AND the render's machine-readable
   `issues` list. Fix from THAT checklist — all issues in one Edit round — then re-run.
   Loop until issues is empty.
6. Only when issues is empty: Read the PNG once as final visual confirmation. Target <= 2
   PNG reads total. Then render once WITHOUT --check for the final deliverable PNG.
Do NOT invoke any drawio skill — this prompt already contains the full procedure.
Do not ask questions — make the standard choice and record it under ASSUMPTIONS.
Return EXACTLY this block, nothing else:
DRAWIO: <absolute path to .drawio>
PNG: <absolute path to .png>
VALIDATE: <verbatim final validate JSON>
ICONS: <comma-separated icon names used>
ITERATIONS: <number of render/fix cycles>
SUMMARY: <one sentence describing the diagram>
ASSUMPTIONS: <choices made without asking, or "none">

Read the full file on GitHub · 132 lines

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. 6d ago First seen · 132 lines · 104 tokens per session scan A 8df6a20c8992

Subscribe to this mod's changes

drawio-databricks is a skill published in the GitHub repository sparklabx/drawio-ai-kit (638 stars, last pushed 25d ago), licensed MIT. It adds 104 tokens to every session and 1,550 once invoked, about $0.0005 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-30.

Related

Other skills, from other repositories

google-ai-ninja

Master orchestrator for 25+ Google AI/ML agent skills from official Google repositories. Use when working with Gemini API, Agent Platform, Genkit, RAG, model deployment, fine-tuning, inference, or building AI agents on Google Cloud. Routes to the optimal specialized skill based on context. Triggers: Gemini, Agent…

fabricioctelles/jump-skills · 115 tokens

FOCUS Data Engineer

End-to-end ingest, transform, and conformance specialist for FOCUS-shaped cost datasets. Handles AWS CUR 2.0, Azure Cost Management exports, GCP billing export, OCI cost & usage, and SaaS billing. Operates the FOCUS Validator and Requirements Analyzer; orchestrates parallel-run migrations.

Cletrics/finops-agents · 67 tokens

Workload Cost Optimizer

Compute-pattern specialist for ML training/inference, serverless (Lambda/Cloud Functions/Azure Functions), and spot/preemptible/low-priority strategies. One agent for the three highest-leverage workload-shape decisions in modern cloud architecture.

Cletrics/finops-agents · 54 tokens

CUR & FOCUS Data Engineer

Builds reliable ingest and transformation pipelines for AWS CUR 2.0, Azure Cost Management exports, GCP billing export, and the FOCUS specification. Turns raw vendor exports into a trusted cost warehouse.

Cletrics/finops-agents · 48 tokens

ML Workload Cost Optimizer

Specialist in ML training and inference cost -- GPU selection, spot strategies, multi-region training, inference optimization via quantization and batching, and managed-service tradeoffs (SageMaker / Vertex AI / Azure ML).

Cletrics/finops-agents · 50 tokens

databricks-platform-provisioning

Provision and test Databricks workspaces. Use when the user asks to create a workspace, set up a new environment, provision infrastructure, bootstrap Databricks, test a workspace, verify a deployment, or run validation checks against a Databricks workspace. Covers Azure, AWS, and GCP.

databricks-solutions/ai-platform-kit · 69 tokens