dbr-logs

dbr-logs is a skill for Claude Code from zencity/databricks-logs-reader. It costs 101 tokens per session (2,043 once invoked), scanned A, original, MIT.

A tool for fetching, searching, and analyzing Databricks job logs, including logs from Spark jobs. Job logs are records that show what happened while a data-processing job ran.

In plain words
What is it for?
It is for checking Databricks job, driver, and executor logs, investigating failed runs, and understanding errors.
Why use it?
It helps diagnose failed jobs and errors such as running out of memory by finding and explaining the relevant log output.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the dbr-logs plugin — 1 skill shipped together

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/zencity/databricks-logs-reader/dbr-logs
Any agent
npx skills add zencity/databricks-logs-reader --skill dbr-logs
Clone the repo
git clone --depth 1 https://github.com/zencity/databricks-logs-reader

Made for: Claude Code.

Or install dbr-logs, the plugin that ships this one along with the rest of its 1 skill.

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 dbr-logs

README.md
[![agentmods](https://agentmods.dev/badge/skills/zencity/databricks-logs-reader/dbr-logs.svg)](https://agentmods.dev/skills/zencity/databricks-logs-reader/dbr-logs)
Your own site
<a href="https://agentmods.dev/skills/zencity/databricks-logs-reader/dbr-logs"><img src="https://agentmods.dev/badge/skills/zencity/databricks-logs-reader/dbr-logs.svg" alt="Measured on agentmods" height="20"></a>
Per session 101 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,043 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.00101 $0.02043
Opus 5 $0.00051 $0.01022
Sonnet 5 $0.00020 $0.00409
Haiku 4.5 $0.00010 $0.00204

Measured 5d ago against content hash 0c225fd9cf53, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

dbr-logs 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 5d 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/dbr-logs/SKILL.md · 154 lines

How it starts

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

dbr-logs: Fetch and Analyze Databricks Job Logs

Follow these steps to fetch, analyze, and explain Databricks job logs.

Step 0: Ensure CLI is available

Check if the dbr-logs CLI is accessible. Try each tier in order:

which dbr-logs
  1. Found -> use dbr-logs directly
  2. Not found -> check for uvx:
    which uvx
    
    • If uvx available -> use uvx --from dbr-logs dbr-logs <args> for all commands below
    • If uvx not available -> ask the user:

      dbr-logs CLI not found. Install options:

      • uv tool install dbr-logs
      • pip install dbr-logs

      Want me to install it?

    • If user declines -> fall back to raw databricks fs ls / databricks fs cat commands. Warn: "Using raw Databricks CLI (no log merging or filtering). Install dbr-logs for a better experience." Load references/log-structure.md for directory layout guidance.

For the rest of these instructions, DBR_LOGS refers to whichever invocation method was resolved above (dbr-logs, uvx --from dbr-logs dbr-logs, etc.).

Step 1: Resolve the target job

  • If the user provides a job name -> use it directly
  • If the user provides a Databricks URL -> pass the full URL as the positional argument (the CLI parses job/run from it)
  • If the user describes a failure without naming a job -> ask which job to investigate
  • If the user specifies a source (e.g. "check executor logs", "look at the driver") -> use --source accordingly
  • Default environment is prod. Only add --env <env> if the user specifies a different environment.

Step 2: Fetch logs via CLI

Run DBR_LOGS with appropriate flags. Always use --format jsonl when you (Claude) are consuming the output — structured data is easier to analyze. Use --format text only when the user wants raw output displayed directly.

Priority: match the user's intent. If the user asks to search for a specific string or pattern, pipe the output to grep rather than adding --level filtering — the match may appear at any log level (INFO, DEBUG, etc.). Only default to --level ERROR,WARN when the user asks about failures/errors without specifying what to search for. Similarly, if the user specifies a source (e.g. "executor logs"), honor that with --source rather than fetching all sources.

Read the full file on GitHub · 154 lines

Files

What ships with it

1 file 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. 5d ago First seen · 154 lines · 101 tokens per session scan A 0c225fd9cf53

Subscribe to this mod's changes

dbr-logs is a skill published in the GitHub repository zencity/databricks-logs-reader (2 stars, last pushed 2mo ago), licensed MIT. It adds 101 tokens to every session and 2,043 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-31.

Related

Other skills, from other repositories

check-tools

Validates development tool installations across Python, Node.js, Java, Go, Rust, C/C++, Git, and system utilities. Use when verifying environments or troubleshooting dependencies.

oaustegard/claude-skills · 37 tokens

searching-codebases

Binding-resolved Python symbol queries via pyright — every true caller (--refs), the real definition (--def), or an inferred signature (--hover) of a .py symbol, excluding the same-named false positives text search cannot tell apart. Use when a task needs ALL callers or users of a named Python symbol and grep would…

oaustegard/claude-skills · 133 tokens

python-lsp

Semantic Python code queries via a stdio LSP client driving pyright-langserver. Provides binding-resolved go-to-definition, find-references, hover types, type diagnostics, file symbol outlines, and project-wide symbol search — name resolution and type inference that tree-sitter and ripgrep cannot do. Use when you need…

oaustegard/claude-skills · 155 tokens

reasoning-semiformally

Apply semi-formal certificate reasoning to code analysis — patch verification, fault localization, patch equivalence. Use when reviewing patches, hunting bugs across scopes, comparing fixes, or when code reasoning requires tracing execution across files/modules. Triggers on code review, bug localization, patch…

oaustegard/claude-skills · 72 tokens

swc-plugin-compatibility

Diagnose and fix Lingui SWC plugin compatibility errors with Next.js, Vite, Rspack, or other SWC runtimes. Use when seeing errors like "failed to invoke plugin", "failed to run Wasm plugin transform", "out of bounds memory access", or "LayoutError" during builds with @lingui/swc-plugin — or when macros are silently…

lingui/skills · 97 tokens

incident-postmortem

Write a blameless post-incident review (post-mortem / RCA) that documents what happened, the timeline, root cause analysis, impact assessment, and concrete action items to prevent recurrence. Follows Google SRE blameless post-mortem culture.

fattain-naime/engineering-docs · 59 tokens