metabase-prod-query SKILL.md skillA

metabase-prod-query from haacked/dotfiles is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add haacked/dotfiles/metabase-prod-query@git:20261019.4efa10e

Pins git:20261019.4efa10e in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
haacked/dotfiles
Path
ai/skills/metabase-prod-query/SKILL.md
Versions recorded
5
Latest version
git:20261019.4efa10e, committed Oct 19, 2026
First version recorded
Jun 12, 2026
Size
6,632 bytes
Repository stars
135
License
none declared

Query PostHog production Metabase. Use when the user wants prod data such as counts, distributions, customer-report debugging, or region comparisons. Not for local dev investigations; use the `posthog-db` MCP for those.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Metabase Prod Query

Run SQL against PostHog production Metabase via `hogli metabase:*`. Production Metabase sits behind ALB Cognito OAuth, so this is the only path that works (API keys won't pass the ALB).

The four underlying commands:

| Command | Purpose |
| --- | --- |
| `hogli metabase:login --region us\|eu` | Opens browser, captures SSO cookies, caches at `~/.config/posthog/metabase/cookie-{region}` (mode 0600) |
| `hogli metabase:databases --region us\|eu` | Lists database IDs (these change when Metabase metadata is rebuilt — refresh per session) |
| `hogli metabase:query --region us\|eu --database-id N --file F.sql` | Runs SQL against `/api/dataset`; cookie stays internal |
| `hogli metabase:cookie --region us\|eu [--check]` | Prints cached cookie header (humans only — NEVER use this; `query` reads the cookie internally) |

## Non-negotiables

- **This hits prod.** Run a bounded read-only query without asking, and show its SQL with the results. Ask first when a query matches a trigger in step 5.
- **Never run `metabase:cookie`.** That command prints credentials to the terminal/logs. The `query` command reads the cookie internally.
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add haacked/dotfiles/metabase-prod-query@sha256:7d809dbc1c9896cd

The line at the top of this page pins the label git:20261019.4efa10e, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_muuhrrrfph2725yx.svg)](https://markdownregistry.com/a/art_muuhrrrfph2725yx)

1 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 5 versions of this file, between Jun 12, 2026 and Oct 19, 2026, about one every 32 days.

versioncommittedcommitsizeaudit
git:20261019.4efa10e latest2026-10-19 4efa10e 6,632 BA view · diff
git:20260827.66fa08c2026-08-27 66fa08c 6,065 BA view · diff
git:20260821.de0b8f12026-08-21 de0b8f1 6,249 BA view · diff
git:20260724.363c3832026-07-24 363c383 6,212 BA view · diff
git:20260612.c16ff802026-06-12 c16ff80 6,286 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (6632 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

haacked/dotfiles · 135 stars · license none declared · pushed 2026-11-01 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_muuhrrrfph2725yx
GET https://markdownregistry.com/api/v1/resolve?ref=haacked/dotfiles/metabase-prod-query
GET https://markdownregistry.com/api/v1/blob/7d809dbc1c9896cd4f5085d074530eed7389097d39e21b9e0513d39623a02c9a

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from haacked/dotfiles

AGENTS.md AGENTS.md file
haacked/dotfiles · AGENTS.md
git:20261028.5e8b109 · audit A · 135 stars
CLAUDE.md CLAUDE.md file
haacked/dotfiles · CLAUDE.md
git:20260821.de0b8f1 · audit B · 135 stars
AGENTS.md@ai AGENTS.md file
haacked/dotfiles · ai/AGENTS.md
git:20261024.d48eea8 · audit A · 135 stars
CLAUDE.md@ai CLAUDE.md file
haacked/dotfiles · ai/CLAUDE.md
git:20260821.de0b8f1 · audit B · 135 stars
simplify SKILL.md skill
haacked/dotfiles · ai/codex/skills/simplify/SKILL.md · Simplify recently changed code for clarity, consistency, and maintainability while preserving behavior. Use after…
git:20260827.f7bfa75 · audit A · 135 stars
address-pr-reviews SKILL.md skill
haacked/dotfiles · ai/skills/address-pr-reviews/SKILL.md · Evaluate unresolved PR review comments from any reviewer — bots and humans — fix legitimate issues, and reply to…
git:20261024.d48eea8 · audit A · 135 stars
comment-cleanup SKILL.md skill
haacked/dotfiles · ai/skills/address-pr-reviews/references/comment-cleanup/SKILL.md · Delete and tighten code comments in source files after they are written. Drops narration, restatement, and change-log…
git:20260929.362fe34 · audit A · 135 stars
plain-writing SKILL.md skill
haacked/dotfiles · ai/skills/address-pr-reviews/references/plain-writing/SKILL.md · Write, rewrite, or review prose for other people in clear, direct English. Use for PR descriptions, review comments…
git:20261027.29130d3 · audit A · 135 stars
analyze-permissions SKILL.md skill
haacked/dotfiles · ai/skills/analyze-permissions/SKILL.md · Analyze accumulated permissions and suggest smart wildcard patterns. Only invoke when the user explicitly runs…
git:20260822.9da3dc3 · audit A · 135 stars
babysit-prs SKILL.md skill
haacked/dotfiles · ai/skills/babysit-prs/SKILL.md · One sweep over all of my open PRs — check CI and merge-queue state, handle new review comments, fix and push — tracking…
git:20261009.a2b4058 · audit A · 135 stars
ci-monitor SKILL.md skill
haacked/dotfiles · ai/skills/ci-monitor/SKILL.md · Monitor CI checks after pushing, detect flaky vs legit failures, and auto-fix. Follows a PR into a Trunk merge queue…
git:20261009.a2b4058 · audit A · 135 stars
comment-cleanup SKILL.md skill
haacked/dotfiles · ai/skills/comment-cleanup/SKILL.md · Delete and tighten code comments in source files after they are written. Drops narration, restatement, and change-log…
git:20260929.362fe34 · audit A · 135 stars

Every file in haacked/dotfiles

Browse by kind, by grade A, or by owner.