What this thread does
The idea
Instead of pointing an agent at your production Metabase, you give it a development Metabase and let it build questions and dashboards there. Metabase's docs ("agent-driven development", checked 17 Oct 2026) describe how the result reaches production through git, so a human reviews it as a pull request.
Requirements and tools (from the docs)
- Pro or Enterprise plan, self-hosted or Metabase Cloud.
- A development instance connected to the same warehouses as production. The docs suggest
MB_LOAD_SAMPLE_CONTENT=falseandMB_INSTALL_ANALYTICS_DATABASE=falsefor it. - The agent must be able to log in as an admin (an admin API key for scripted runs).
- A git repository for the YAML files (Metabase Representation Format).
- The Metabase CLI:
npm install -g @metabase/cli, thenmb auth login --url <your-metabase-url>. - The skill:
npx skills add metabase/agent-skills --skill metabase-cli -a claude-code(themetabase/agent-skillsrepo is MIT-licensed; its README says the skill is a thin discovery stub and the workflow content is served bymb skills get; the docs invoke it as/metabase-cli).
The workflow
1. Configure Remote Sync read-write in the dev instance and read-only in production, both pointing at the same repo. 2. Create a branch from the dev Metabase UI. 3. Prompt the agent with the skill, for example: "Create a new dashboard called 'Support overview' and add questions showing total ticket volume, open tickets and average satisfaction rating" (the docs' own example). A broader prompt such as "look at the tickets, customers and interactions tables and build a dashboard of our support workload" is also given. 4. Check and iterate in the UI or with the agent. 5. Push the changes to the branch and open a pull request. 6. Merge. Production pulls the change automatically if auto-sync is on.
Warnings in the docs
- Do the building in a dev instance because LLM output can be unpredictable.
- Work you have not pushed can be lost the next time you pull changes into that Metabase.
- To undo, either revert a commit and pull it (which overwrites later changes) or edit or archive the content in Metabase and push the result.
Related pieces from the same repo
The metabase/agent-skills README lists more skills, among them a checklist for getting data ready for Metabot and the MCP server and a "data engineering router" that builds layered tables, models and metrics and reconciles results against a reference. Its README tells you to review and validate every change a skill makes.
Caveats
The workflow is the vendor's own and is tied to paid plans. I found no independent write-up of it. The CLI and skill are new, so check versions. For read-only questions without a dev instance, the MCP route in the companion thread is lighter.
Sources
- Metabase docs on agent-driven development (<https://www.metabase.com/docs/latest/ai/agent-driven-development>), read directly. Checked: Pro or Enterprise plan, a development instance on the same warehouses, the two environment variables, admin login or an admin API key, a dedicated git repo, npm install -g @metabase/cli with mb auth login, the skills add command, Remote Sync read-write in dev and read-only in production, both example prompts, the warnings, and the two undo routes.
- metabase/agent-skills repository, read through the GitHub API. Checked: MIT, the review-and-validate warning, the thin stub wording, and the governance and readiness checklist skills.
- Not checked here, the branch, pull request and auto-sync steps (steps 2, 5 and 6), and the data engineering router details.
Started from a post by @Metabase, packaged by the editor. Original post