Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ npx skills add metabase/agent-skills --skill metabase-modular-embedding-version-

Always review and validate the changes made by a skill. Depending on your application's complexity, a skill may not work properly in all cases. Check that your application builds, tests pass, and the embedding works as expected before committing.

### CLI

[metabase-cli](./skills/metabase-cli/SKILL.md)

Drives a Metabase instance from the terminal via the official `metabase` CLI: authenticate with profiles, list/get/create/update/delete cards, dashboards, transforms, databases, settings, run queries, search content, sync content to and from a remote git repo, manage Enterprise workspaces, translate entity ids. Bundles workspace lifecycle and transform authoring as on-demand reference files.

### Database metadata

[metabase-database-metadata](./skills/metabase-database-metadata/SKILL.md)
Expand Down
18 changes: 18 additions & 0 deletions skills/metabase-cli/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# metabase-cli (skill)

Drives a Metabase instance from the terminal via the official `metabase` CLI: auth/profiles, list/get/create/update/run on every resource, content search, remote-sync, Enterprise workspaces, API keys, entity-id translation.

## Files

- `SKILL.md` — always loaded. Covers auth (the human logs in, the agent uses the profile), the four flag conventions, output flags, body-input precedence, a per-group "Resources at a glance" reference, and a pointer at `metabase __manifest` (the hidden machine-readable inventory of every command).
- `references/workspace.md` — full workspace lifecycle (Enterprise): create, provision, start/stop/restart/remove, child credentials → child profile, diagnose tree. Read when the user touches `metabase workspace …`.
- `references/transform.md` — transform create-and-run flow with a working native-SQL JSON body template, run-with-wait pattern, inspection verbs. Read when authoring or running a transform.
- `references/remote-sync.md` — remote-sync workflow (import/export/branches/stash/dirty checks), with safety rules around the lossy `--force` flags. Read when the user is moving content between Metabase and a git repo.

The reference files are loaded on demand by the agent — `SKILL.md` tells it when. The split exists so a one-shot CLI task ("list cards in prod") doesn't pay the token cost for workspace or transform or sync detail it'll never use.

## How the agent should think about this

1. Default first move: `metabase auth status --json`. If no profile, ask the human to log in — never run `auth login` for them.
2. Default reference for "how does this command work?": `metabase __manifest | jq '.commands[] | select(.command == "<name>")'`. Faster and more complete than scraping `--help`.
3. When the task touches workspaces / transforms / sync, load the matching reference file before constructing commands. The references go beyond the at-a-glance examples.
Loading