metabase-flightsql-driver: Command for Claude Code

.claude/commands/upgrade-metabase.md

upgrade-metabase is a command for Claude Code from J0hnG4lt/metabase-flightsql-driver. It costs 22 tokens per session (372 once invoked), scanned A, original, Apache-2.0.

A command for upgrading the pinned Metabase version, including the Docker image and continuous-integration test matrix. Metabase is an open-source business-analytics application.

In plain words
What is it for?
Use it to inspect the driver changelog, update project version references, rebuild the driver, and run end-to-end tests.
Why use it?
It turns a version change into a checked upgrade, including review of driver compatibility before the new version is used.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: positional $N argument.

This is J0hnG4lt/metabase-flightsql-driver's own configuration. It tells Claude Code how to work on metabase-flightsql-driver itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything metabase-flightsql-driver configures →

Reuse

Borrowing it

Nothing to install: this file belongs to J0hnG4lt/metabase-flightsql-driver. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/J0hnG4lt/metabase-flightsql-driver/main/.claude/commands/upgrade-metabase.md
Clone the repo
git clone --depth 1 https://github.com/J0hnG4lt/metabase-flightsql-driver

Made for: Claude Code.

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 upgrade-metabase

README.md
[![agentmods](https://agentmods.dev/badge/commands/j0hng4lt/metabase-flightsql-driver/upgrade-metabase/github.svg)](https://agentmods.dev/commands/j0hng4lt/metabase-flightsql-driver/upgrade-metabase)
Your own site
<a href="https://agentmods.dev/commands/j0hng4lt/metabase-flightsql-driver/upgrade-metabase"><img src="https://agentmods.dev/badge/commands/j0hng4lt/metabase-flightsql-driver/upgrade-metabase/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 upgrade-metabase

Your own site · 80×15
<a href="https://agentmods.dev/commands/j0hng4lt/metabase-flightsql-driver/upgrade-metabase"><img src="https://agentmods.dev/badge/commands/j0hng4lt/metabase-flightsql-driver/upgrade-metabase.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 372 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.00022 $0.00372
Opus 5 $0.00011 $0.00186
Sonnet 5 $0.00004 $0.00074
Haiku 4.5 $0.00002 $0.00037

Measured 11d ago against content hash d5d900247dea, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

upgrade-metabase 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 11d 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.

.claude/commands/upgrade-metabase.md · 34 lines

What it actually says

Upgrade Metabase Pin to $1

1. Read the driver changelog FIRST

Fetch the driver changelog at the target ref and review every section between the current pin and $1:

gh api -H "Accept: application/vnd.github.raw" \
  "repos/metabase/metabase/contents/docs/developers-guide/driver-changelog.md?ref=$1" | head -200

Checklist per section:

  • Removed multimethods we implement? (a defmethod on a removed defmulti fails the namespace load)
  • Removed/renamed feature keywords we declare? (unknown keywords throw)
  • Signature changes to: describe-fields-sql, do-with-connection-with-options, connection-details->spec conventions, secrets API?
  • New required methods for features we claim (:describe-fields, etc.)?
  • MBQL5 (:sql-mbql5) migration notes — our sql.qp/->honeysql overrides use the legacy clause shape.

2. Apply the bump

  • docker-compose.yaml: metabase/metabase:<current> → closest release image for $1.
  • .github/workflows/build.yaml: update/extend the metabase-ref matrix entry for that line.
  • README.md: update the Compatibility table.

3. Verify

Run /rebuild-driver, then /e2e-test. Both must pass before committing. Commit as chore: upgrade Metabase to $1.

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. 11d ago First seen · 34 lines · 22 tokens per session scan A d5d900247dea

Subscribe to this mod's changes

upgrade-metabase is a command published in the GitHub repository J0hnG4lt/metabase-flightsql-driver (11 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 22 tokens to every session and 372 once invoked, about $0.0001 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.