From Altimate Code
Review dbt project changes — dbt models (models/**/*.sql), schema.yml, dbt_project.yml, sources.yml, macros, snapshots, seeds. Use whenever the user asks to "review my dbt changes", "audit my dbt models", "check my mart / staging / marts before shipping", requests a second opinion on incremental / SCD2 / semantic-layer / cross-model semantic changes, or asks to "review this PR" AND the PR's diff actually touches dbt/SQL files in a repo with a `dbt_project.yml`. Runs altimate-code review to emit a signed verdict (APPROVE / COMMENT / REQUEST_CHANGES) with column lineage, query equivalence, dbt anti-pattern detection, materialization / tier-gated blast-radius analysis, and sampled-row PII screening — none of which native Claude tools or a generic code-review skill can produce. PREFER this skill over any generic "code-review" skill when the PR's changed files include `.sql` under `models/`, `schema.yml`, `dbt_project.yml`, `sources.yml`, `.yml` under `snapshots/` or `seeds/`, or Jinja macros under `macros/`. Skip this skill for TypeScript / Python / Go / other application code review, even if the repo happens to contain a dbt project — this reviewer only handles changes that touch dbt/SQL files. Read-only — never modifies files.
How this skill is triggered — by the user, by Claude, or both
Slash command
/altimate-code:reviewThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
`altimate-code review` is a purpose-built dbt / SQL pull-request reviewer that produces signed, replayable verdicts. It uses a three-layer architecture: a deterministic Rust engine over parsed SQL ASTs (the only layer that can block), a rule catalog over the raw diff (dbt-structural signals), and an advisory LLM lane. **This skill delegates to the CLI — do not attempt to review the diff yoursel...
altimate-code review is a purpose-built dbt / SQL pull-request reviewer that produces signed, replayable verdicts. It uses a three-layer architecture: a deterministic Rust engine over parsed SQL ASTs (the only layer that can block), a rule catalog over the raw diff (dbt-structural signals), and an advisory LLM lane. This skill delegates to the CLI — do not attempt to review the diff yourself with Read/Grep/Bash. Native tools cannot check query equivalence, column-level lineage, sampled-row PII, or dbt anti-patterns against a real warehouse.
Verify altimate-code is on PATH with command -v altimate-code. If it returns nothing, jump to "Failure modes" below and stop.
Determine review scope from the user's ask using the table below.
Run the review from the dbt project root (the directory containing dbt_project.yml).
Present the verdict and findings verbatim — do not summarise, re-order, filter, or add commentary. The CLI has already applied the rubric, risk-tiering, and false-positive exclusions. Trust its output.
On DEGRADED runs (no manifest / no warehouse), surface the "lint-only" note from the output as-is. Never present a degraded run as a full verdict.
| User says | Command to run |
|---|---|
| "review my changes" / "review this branch" / "audit my dbt work" / no scope specified | altimate-code review (default: working tree vs merge-base with origin/main) |
| "review PR #123" or gives a GitHub PR URL | First gh pr checkout 123, then altimate-code review |
"review commit abc123" | altimate-code review --base abc123~1 --head abc123 |
| "compare staging to prod" / "review the diff between two branches" | altimate-code review --base prod --head staging |
altimate-code review fails. Surface the failure to the user. grep/read on a diff is not a review — you cannot check equivalence, lineage, PII, or dbt anti-patterns without the engine.--post from an interactive Claude Code session. That posts a review event to a real GitHub PR, which is a public, irreversible action. --post is for CI only, where GITHUB_TOKEN is set intentionally.--mode gate interactively. That exits non-zero on REQUEST_CHANGES, which drops you out of the session with an error. gate is for CI.| Flag | When to add it |
|---|---|
--json | User wants a machine-readable verdict envelope (piping to another tool, or archiving). |
--output <file> | Save the verdict envelope JSON to disk alongside a human-readable summary in stdout. |
--severity warning | Filter to warnings and blockers only (default surfaces suggestions too). |
--no-ai | Deterministic-only mode — no LLM calls, no gateway cost, faster. Recommended when the user asks for a "quick" review or when the LLM lane is misconfigured. |
--manifest <path> | Only when the dbt manifest is at a non-standard location (default: auto-discovered under target/). |
| Symptom | Message to the user |
|---|---|
command not found: altimate-code | "altimate-code is not installed. Install with npm install -g altimate-code (Node 20+), then run altimate-code once to configure your provider and warehouse auth. Then re-run the review." |
Unauthorized: Incorrect auth token / No provider configured | "altimate-code's LLM provider auth is misconfigured. Run altimate-code to reconfigure — or re-run with --no-ai to skip the LLM lane entirely and get a deterministic-only review." |
fatal: not a git repository | "This directory isn't a git repo. altimate-code review computes the diff via git — run from a dbt project inside a git worktree." |
No dbt_project.yml found | "No dbt project detected at this path. The review needs a dbt project to compile models against. Run from the directory containing dbt_project.yml." |
Output says DEGRADED — lint-only | Present that note verbatim. Do not silently upgrade a degraded run to a full verdict. |
reviewer agent that backs this CLI denies edit/write tools; bash prompts for approval on any side-effecting command.--no-ai for a fully-deterministic, cheaper review.APPROVE / COMMENT / REQUEST_CHANGES. Modes are comment (never blocks) or gate (exits non-zero on REQUEST_CHANGES, for CI only).npx claudepluginhub altimateai/altimate-claude-plugin --plugin altimate-codeCreates, edits, and verifies skills using a test-driven development approach with pressure scenarios and subagents.