Skip to content

Commit 97ac061

Browse files
committed
skill
1 parent 3175ab6 commit 97ac061

6 files changed

Lines changed: 981 additions & 0 deletions

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ npx skills add metabase/agent-skills --skill metabase-modular-embedding-version-
2020

2121
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.
2222

23+
### CLI
24+
25+
[metabase-cli](./skills/metabase-cli/SKILL.md)
26+
27+
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.
28+
2329
### Database metadata
2430

2531
[metabase-database-metadata](./skills/metabase-database-metadata/SKILL.md)

skills/metabase-cli/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# metabase-cli (skill)
2+
3+
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.
4+
5+
## Files
6+
7+
- `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).
8+
- `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 …`.
9+
- `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.
10+
- `references/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.
11+
12+
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.
13+
14+
## How the agent should think about this
15+
16+
1. Default first move: `metabase auth status --json`. If no profile, ask the human to log in — never run `auth login` for them.
17+
2. Default reference for "how does this command work?": `metabase __manifest | jq '.commands[] | select(.command == "<name>")'`. Faster and more complete than scraping `--help`.
18+
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.

0 commit comments

Comments
 (0)