Rules for remote sync worktrees in the app DB. Covers which tables get `worktree_id`, its foreign and unique keys, the `:hook/worktree-id` model trait, upserts, and the coverage test. Use when adding or changing an app DB table, column, foreign key, unique…
Add, test, run and roll back application-database (Liquibase) migrations. Use when adding a changeset, changing a table or column in the Metabase app DB, writing a custom (Clojure) migration, or rolling migrations back in development.
Where a rule about a Toucan 2 model lives and how to write it. Hooks hold defaults, derived columns and what the row and its stored version answer, and never call the app DB; boundary schemas (API request, SerDes and revisions spec `:schema`) check single…
Where Metabase backend code goes and how it reaches the app DB. Covers module layout, the `<module>.db` rule, values in app-DB queries, module config, and pre-handoff checks. Use when adding or moving backend namespaces, writing app-DB queries, or touching…
Review Cypress E2E spec files for Metabase conventions, common gotchas, and flakiness/performance issues. Use when reviewing pull requests or diffs containing Cypress spec files in e2e/test/scenarios/.
Update or build a Metabase design-system component (frontend/src/metabase/ui — Chip, Badge, Alert, Switch, etc.) to match a Figma spec described in a Linear issue. Use when a ticket asks to restyle an existing `metabase/ui` component or implement a new one…
Dashboard parameters via dashboard_write — add_parameter types and value sources, the wire_parameter target grammar (target_field vs target_tag vs raw target), autowire, linked filters, inline parameters, tab visibility. Read before your first add_parameter,…
Review Clojure and ClojureScript code changes for compliance with Metabase coding standards, style violations, and code quality issues. Use when reviewing pull requests or diffs containing Clojure/ClojureScript code.