Official agent skill

Dbt Databricks PR Ready

by databricks in databricks/dbt-databricks

A skill your agent uses for an open dbt-databricks pull request, including your own PR or a fork PR, to assess merge readiness and optionally repair selected gaps on the PR head branch.

OfficialApache-2.0Auto-check passedData & Analytics

Install Dbt Databricks PR Ready

skills CLI
$ npx skills add databricks/dbt-databricks --skill dbt-databricks-pr-ready -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install databricks/dbt-databricks dbt-databricks-pr-ready --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/databricks/dbt-databricks.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/dbt-databricks-pr-ready .claude/skills/dbt-databricks-pr-ready && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
dbt-databricks-pr-ready
GitHub stars
379
Token cost
~2.8k tokens
SKILL.md length
1,561 words
Files
3 (incl. references)
Skills in repo
1
Repo updated
First seen
Licence
Apache-2.0

At a glance

A skill your agent uses for an open dbt-databricks pull request, including your own PR or a fork PR, to assess merge readiness and optionally repair selected gaps on the PR head branch.

  • Works in 5 steps: Resolve the PR, write scope, and worktree → Assessment → Selection → …
  • An open dbt-databricks pull request
  • SKILL.md covers Hard rules, Phase 1 — Resolve the PR,…, Phase 2 — Assessment and Phase 3 — Selection, plus 2 more sections
  • Calls git and gh; reaches github.com

What it does

Dbt Databricks PR Ready is an agent skill from databricks/dbt-databricks, published by the product's own GitHub organization. Use for an open dbt-databricks pull request, including your own PR or a fork PR, to assess merge readiness and optionally repair selected gaps on the PR head branch. Accepts a PR link or number and optional --auto.

Its SKILL.md is about 2.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `eval-spec.md` and `references/rubric.md`).

It sits in Data & Analytics, covering Data pipelines and ETL. It works with Databricks, dbt, Git and SQL. The repository describes itself as: A dbt adapter for Databricks. The licence is Apache-2.0.

When your agent uses it

  • An open dbt-databricks pull request
  • Including your own PR
  • Assess merge readiness and optionally repair selected gaps on the PR head branch

Example prompts

  • “/dbt-databricks-pr-ready”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Resolve the PR, write scope, and worktree
  2. Assessment
  3. Selection
  4. Repair selected gaps
  5. Final verification and push

What it can do on your machine

Read from SKILL.md and the folder at commit 39f6a59. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git
    • gh

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Dbt Databricks PR Ready loads about 2.8k tokens when it runs, and up to ~3.8k if it reads all its reference files. Until then it costs about 60 tokens; SKILL.md has 1,561 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~60
When it runs · the whole SKILL.md, loaded when a task matches
~2.8k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from databricks/dbt-databricks at commit 39f6a59, republished under its Apache-2.0 licence (© databricks). 1,561 words, ~2,826 tokens.

Download SKILL.mdSave it as .claude/skills/dbt-databricks-pr-ready/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
dbt-databricks-pr-ready
description
Use for an open dbt-databricks pull request, including your own PR or a fork PR, to assess merge readiness and optionally repair selected gaps on the PR head branch. Accepts a PR link or number and optional --auto.

dbt-databricks PR-readiness driver

Input is a URL or bare number for databricks/dbt-databricks, plus optional --auto. If no PR is supplied, run gh pr view without --repo from the current branch and use the result only when it resolves exactly one PR in databricks/dbt-databricks; otherwise ask for the URL or number. For an explicit URL or number, use gh pr view <input> --repo databricks/dbt-databricks. --auto selects recommended gaps only. It never authorizes a commit or push.

The deliverable is an assessment report and, only when the caller can write the PR head branch and approves each gate, verified commits on that branch.

Hard rules

  • Never merge, comment on, label, retarget, or create a PR.
  • Never rewrite history, rebase silently, or discard local work.
  • Never commit or push without explicit user approval after showing the changes and verification evidence. --auto does not bypass either approval.
  • Run and read every selected test and lint command. Commit only verified work.
  • Stop if the PR head moves after the run starts. Never overwrite a contributor's newer head.
  • Never make tracked repairs in the repository's shared primary checkout. Do writable work in a git worktree that is not that checkout. Use the worktree the active harness already supplied, or create one; its location does not matter. Keep the run report under the primary checkout's ignored .agents/pr-ready/ directory.
  • Do not put run reports, generated evaluation output, personal paths, accounts, or local tooling details into committed files. The co-located eval-spec.md is a checked-in behavioral contract, not run output.

Phase 1 — Resolve the PR, write scope, and worktree

  1. Set ACTIVE_ROOT to git rev-parse --show-toplevel, COMMON_GIT_DIR to git -C "$ACTIVE_ROOT" rev-parse --git-common-dir resolved against ACTIVE_ROOT when the result is relative, PRIMARY_ROOT to the parent of COMMON_GIT_DIR, and REPO to databricks/dbt-databricks. Require a non-bare repository whose common Git directory is PRIMARY_ROOT/.git, and require at least one configured remote whose normalized GitHub slug is exactly REPO; otherwise stop before any mutation.

    Set REPORT to $PRIMARY_ROOT/.agents/pr-ready/pr-<N>/report.md. Do not use PRIMARY_ROOT as the repair worktree.

  2. Confirm gh auth status, capture ME with gh api user -q .login, and fetch PR metadata including its state, draft status, author, base branch, head branch, head SHA, head repository, head repository owner, isCrossRepository, maintainerCanModify, mergeable, statusCheckRollup, closingIssuesReferences, and files. Re-query an initially UNKNOWN mergeability result before treating it as a verdict. Stop for a closed or merged PR, a missing head repository, or a missing head ref. Draft PRs are valid inputs.

  3. Record SOURCE_SHA=headRefOid. Derive HEAD_SLUG from headRepositoryOwner.login and headRepository.name; do not use headRepository.nameWithOwner. Prefer an existing Git remote whose URL normalizes to that exact slug. Otherwise use https://github.com/<HEAD_SLUG>.git directly without adding a persistent remote or guessing from the branch name.

  4. Classify branch write access before proposing repairs:

    PR headWrite mode
    Head repository owner is MEowner — the contributor may update their own fork branch.
    PR is in REPO and the caller has ADMIN, MAINTAIN, or WRITE viewer permissionrepository — update the in-repository head branch.
    Fork PR, maintainerCanModify is true, and the caller has upstream ADMIN, MAINTAIN, or WRITE permissionmaintainer — update that contributor's fork head branch.
    Any other caseread-only — assess only; do not edit, commit, or push.

    Obtain upstream viewer permission with gh repo view "$REPO" --json viewerPermission. The PR author is never a hard stop. maintainerCanModify controls only the third row; it is not required for an in-repository PR or for the contributor's own fork.

  5. For owner, repository, or maintainer mode, fetch the exact source ref into refs/pr-ready/<N>/head and verify it equals SOURCE_SHA. Do not use gh pr checkout: it does not provide a stable, unambiguous push target for this workflow.

    • If ACTIVE_ROOT differs from PRIMARY_ROOT, set WT to ACTIVE_ROOT. Require it to use COMMON_GIT_DIR and to have an empty git status --porcelain (do not pass --ignored). If HEAD equals the fetched source ref, keep it. If HEAD differs and the current commit is detached and not reachable from any local branch or remote-tracking ref, do not check out into that worktree; create a different detached worktree at the fetched ref using the host's usual worktree location and set WT to that path. Otherwise check out the exact fetched ref detached.
    • If ACTIVE_ROOT equals PRIMARY_ROOT, create a detached worktree at the fetched ref using the host's usual worktree location and set WT to that path. When creating a worktree, if the chosen path already exists and diverges, pick another path or stop; never discard its work.
    • Do not create symlinks or shared configuration inside the worktree.
    • In read-only mode, do not create, check out, edit, or configure WT. Gather assessment evidence from PR metadata, the PR diff, public check output, and other non-mutating reads instead. After WT is final in a writable mode, require git -C "$WT" rev-parse --show-toplevel to equal WT and to differ from PRIMARY_ROOT, then verify HEAD equals SOURCE_SHA before edits. Run every later edit, test, and git command with WT as the working directory. If the host can retarget the visible workspace root, do that immediately; if it cannot, keep using explicit paths under WT and do not edit PRIMARY_ROOT.
  6. In a writable mode only, install pre-commit hooks in WT when core.hooksPath is unset. When it is set, record that hooks are configured externally. Never install or run pre-commit hooks in read-only mode; hooks may mutate files. The explicit all-files pre-commit run in Phase 5 remains mandatory for writable runs.

  7. Create the report skeleton at REPORT, noting PR URL, SOURCE_SHA, write mode, resolved head slug, and worktree path.

Show full SKILL.md (652 more words)Show less

Phase 2 — Assessment

Read references/rubric.md and evaluate every item against the PR metadata and diff. The report must contain one met, gap, or n-a row per item; each gap needs evidence, a one-line fix, rough effort, and its recommended or optional status. If there are no gaps, mark the PR merge-ready as-is and stop.

Phase 3 — Selection

  • Interactive mode: present each gap as a selectable option, recommended items first, and record the user's selection.
  • --auto: select every recommended gap and record optional gaps as skipped-by-policy.

Selection authorizes edits and verification only. It does not authorize a commit or push. In read-only mode, report the selected fixes but do not start an edit; explain that the PR head is not writable by the current caller, finalize the assessment and selection report, and stop immediately. Do not enter Phase 4 or Phase 5, edit a worktree, or invoke a mutating hook.

Phase 4 — Repair selected gaps

Work selected items in this order: code and test changes, lint, then changelog. For every item, follow the rubric's fix recipe and read the resulting test output. Review the run's additions for unnecessary complexity, show the exact diff and test evidence, and obtain explicit commit approval. After approval and immediately before the commit, re-check that the PR head still equals SOURCE_SHA. Commit only that verified item and never add attribution footers.

After three unsuccessful repair attempts or an unavailable required service, mark the item blocked. If the run created a partial diff, preserve it with untracked files in a clearly named stash, for example:

bash
git stash push --include-untracked \
  -m "pr-ready #<N>: blocked <rubric-item> partial repair"

Record the stash reference and name in the report, then require git status --porcelain to be empty. If the stash cannot be created or the worktree cannot be made clean without discarding work, stop the entire run. Only after successful preservation and cleanup may independent selected items continue. Apply the same preservation rule before any hard stop that leaves run-created changes, including a moved-head stop; never apply a blocked-item stash during final verification.

Phase 5 — Final verification and push

  1. Require git status --porcelain to be empty, record VERIFIED_SHA=$(git rev-parse HEAD), and confirm the index and worktree have no diff from HEAD. From WT, run hatch run pre-commit run --all-files; it must pass without changing the worktree. If it creates a diff, final verification fails; handle that diff as a separately approved repair or preserve it and stop.

  2. Re-run every test touched by the selected repairs and read the output. Require HEAD still to equal VERIFIED_SHA and the worktree still to be clean afterward. This verification covers committed HEAD only; results from a leftover partial diff do not count.

  3. Finalize REPORT with the assessment table, selection method, write mode, per-item outcome and evidence, blocked items, and pre-existing noise.

  4. If no local commits were created, stop after the report.

  5. Before pushing, show the exact destination and ask for explicit approval. After approval and immediately before the push:

    • Re-query CURRENT_ME=$(gh api user -q .login) and require it to equal the captured ME.
    • Re-fetch the PR's head SHA, head ref, head repository and owner, isCrossRepository, and maintainerCanModify, plus the upstream viewerPermission.
    • Recompute the Phase 1 write mode from those fresh values. Require the applicable ownership, repository permission, or opted-in maintainer condition still to hold, the result still to equal the captured writable mode, and the resolved head repository and branch still to match the approved destination.
    • Require the fresh remote head SHA to equal SOURCE_SHA, local HEAD to equal VERIFIED_SHA, and the worktree to remain clean.

    If any check fails, do not push. Otherwise push only to the resolved head repository and branch with the exact-SHA lease:

    bash
    git push --force-with-lease="refs/heads/<headRefName>:<SOURCE_SHA>" \
      <resolved-head-remote-or-url> HEAD:refs/heads/<headRefName>

    If the lease or permission check fails, do not retry with a broader force option; leave commits local and report the failure. After a successful push, verify that the PR head equals local HEAD and record that SHA in REPORT.

© databricks, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (references) in .agents/skills/dbt-databricks-pr-ready of databricks/dbt-databricks.

  • SKILL.md
  • eval-spec.md
  • references/rubric.md

Open the folder on GitHubat commit 39f6a59

Compare with similar skills

Dbt Databricks PR Ready next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Dbt Databricks PR Ready compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Dbt Databricks PR Ready this skilldatabricks/dbt-databricks379—~2.8kAutomated safety check: PassApache-2.0
Databricks JobsKilo-Org/kilo-marketplace1891 repos~3.1kAutomated safety check: PassCustom licence
Migrating Dbt Project Across PlatformsKilo-Org/kilo-marketplace189—~3.9kAutomated safety check: PassApache-2.0
Senior Data Engineerbenchflow-ai/skillsbench1.8k—~5.9kAutomated safety check: PassMIT
dbt Model BuilderAltimateAI/data-engineering-skills127—~890Automated safety check: PassMIT
dbt Error DebuggingAltimateAI/data-engineering-skills127—~1.1kAutomated safety check: PassMIT

Similar skills

  • Databricks Jobs

    Kilo-Org/kilo-marketplace

    Develop and deploy Lakeflow Jobs on Databricks via DABs, Python SDK, or the CLI.

    189 GitHub starsUsed in 1 repo~3.1k tokens
    Data & AnalyticsAuto-check passed
  • A skill your agent uses when migrating a dbt project from one data platform or data warehouse to another (e.g., Snowflake to Databricks, Databricks to Snowflake) using dbt Fusion's real-time…

    189 GitHub stars~3.9k tokensUpdated 9 days ago
    Data & AnalyticsAuto-check passed
  • Senior Data Engineer

    benchflow-ai/skillsbench

    World-class data engineering skill for building scalable data pipelines, ETL/ELT systems, real-time streaming, and data infrastructure.

    1.8k GitHub stars~5.9k tokensUpdated 2 mo ago
    Data & AnalyticsAuto-check passed
  • dbt Model Builder

    AltimateAI/data-engineering-skills

    Creates or modifies dbt models in line with a project's own conventions, then runs dbt build and dbt show to check the output instead of stopping at compile.

    127 GitHub stars~890 tokensUpdated 6 days ago
    Data & AnalyticsAuto-check passed
  • dbt Error Debugging

    AltimateAI/data-engineering-skills

    Walks through fixing dbt compilation, database and test errors: read the full error, check upstream models, apply a fix, then verify with dbt build and a data preview.

    127 GitHub stars~1.1k tokensUpdated 6 days ago
    Data & AnalyticsAuto-check passed
  • Analytics Engineer

    borghei/Claude-Skills

    Analytics engineering across data modeling, dbt, transformation, and semantic layers.

    874 GitHub stars~3.4k tokensUpdated yesterday
    Data & AnalyticsAuto-check passed

Questions about Dbt Databricks PR Ready

What does Dbt Databricks PR Ready do?

A skill your agent uses for an open dbt-databricks pull request, including your own PR or a fork PR, to assess merge readiness and optionally repair selected gaps on the PR head branch. Dbt Databricks PR Ready is an agent skill from databricks/dbt-databricks, published by the product's own GitHub organization. Use for an open dbt-databricks pull request, including your own PR or a fork PR, to assess merge readiness and optionally repair selected gaps on the PR head branch.

When should I use Dbt Databricks PR Ready?

Dbt Databricks PR Ready fits situations like: an open dbt-databricks pull request; including your own PR; assess merge readiness and optionally repair selected gaps on the PR head branch.

How do I install Dbt Databricks PR Ready in Claude Code?

Run `npx skills add databricks/dbt-databricks --skill dbt-databricks-pr-ready -a claude-code`. Or copy the skill folder (.agents/skills/dbt-databricks-pr-ready in databricks/dbt-databricks) into .claude/skills/dbt-databricks-pr-ready in your project. Claude Code loads it when a task matches its description.

How do I install Dbt Databricks PR Ready in Codex?

Run `npx skills add databricks/dbt-databricks --skill dbt-databricks-pr-ready -a codex`. Or copy the skill folder (.agents/skills/dbt-databricks-pr-ready in databricks/dbt-databricks) into .agents/skills/dbt-databricks-pr-ready in your project. Codex loads it when a task matches its description.

Can I use Dbt Databricks PR Ready in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add databricks/dbt-databricks --skill dbt-databricks-pr-ready -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/dbt-databricks-pr-ready, .gemini/skills/dbt-databricks-pr-ready, .github/skills/dbt-databricks-pr-ready and .opencode/skills/dbt-databricks-pr-ready in your project.

What does Dbt Databricks PR Ready need to run?

Going by SKILL.md and its folder, Dbt Databricks PR Ready needs the command-line tools its instructions call (git and gh).

Does Dbt Databricks PR Ready access the network?

SKILL.md names 1 domain. In commands or code: github.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Dbt Databricks PR Ready safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Dbt Databricks PR Ready use?

Dbt Databricks PR Ready is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Dbt Databricks PR Ready use?

About 2.8k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 962 tokens, read only when the agent opens those files.

What are the alternatives to Dbt Databricks PR Ready?

Skills that share tags, products or a category with Dbt Databricks PR Ready: Databricks Jobs (Kilo-Org/kilo-marketplace, 189 stars), Migrating Dbt Project Across Platforms (Kilo-Org/kilo-marketplace, 189 stars), Senior Data Engineer (benchflow-ai/skillsbench, 1.8k stars) and dbt Model Builder (AltimateAI/data-engineering-skills, 127 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Dbt Databricks PR Ready?

databricks (a GitHub organization, an official publisher) maintains it in databricks/dbt-databricks, which has 379 GitHub stars. The repository was last updated on October 7, 2026.

Source: databricks/dbt-databricks on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.