# Document

> Document is an open-source agent skill for files and documents. Author, edit and copy Metabase documents with embedded cards via the mb CLI. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/metabase/metabase-cli/tree/main/packages/cli/skill-data/document
- **Repository:** https://github.com/metabase/metabase-cli
- **GitHub stars:** 20
- **License:** AGPL-3.0
- **Skill name:** document
- **Collection:** https://github.com/metabase/metabase-cli
- **Categories:** [files and documents](https://ai-powered.com/categories/files-and-documents), [analytics and data](https://ai-powered.com/categories/analytics-and-data)
- **Listing updated:** 2026-12-03

## About

This skill teaches an agent to build and maintain Metabase documents, the rich-text pages that mix prose with saved questions and links to other Metabase entities. It explains the TipTap/ProseMirror JSON body format and the inventory of standard and Metabase-specific nodes, including card embeds, smart links, flex containers and resizable wrappers.

The skill covers the mb command verbs for listing, fetching, creating, updating, copying and archiving documents. It sets out the rule that every id-bearing node needs a UUID, which the agent mints with mb uuid, and it gives a read-edit-write loop so existing bodies are changed safely without losing node ids. It also shows how to create new cards inline with a document using negative ids and a cards map.

It expects the mb CLI to be installed and configured with a profile, and it points to other skills for querying, visualization and shared core conventions.

## When your agent uses it

> Author and edit Metabase documents via `mb` — the TipTap (ProseMirror) JSON body shape, the node-type inventory (paragraphs, headings, lists, plus the Metabase-custom `cardEmbed` / `smartLink` / `flexContainer` / `resizeNode`), the per-node-type `_id` requirement, embedding existing or brand-new cards, and the list/get/create/update/copy/archive verbs. Load when the user touches documents — "create a document", "add a card to a document", "edit a document", "copy a document", "list documents", or anything `mb document …`.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/metabase/metabase-cli/tree/HEAD/packages/cli/skill-data/document)
- [Asks for: Read, Write, Edit, Bash, AskUserQuestion](https://github.com/metabase/metabase-cli/blob/HEAD/packages/cli/skill-data/document/SKILL.md)
- [License: AGPL-3.0](https://github.com/metabase/metabase-cli/tree/HEAD/packages/cli/skill-data/document)

## Features

- **Document body format:** Explains the TipTap JSON tree and the standard text nodes, marks and lists a document can contain.
- **Metabase custom nodes:** Covers card embeds, resizable wrappers, flex containers, supporting text and smart links.
- **Node id handling:** Describes which node types need UUID _id attributes and how to mint them with mb uuid.
- **Card embedding:** Shows how to reference existing saved questions inside a document body.
- **Inline card creation:** Describes creating new cards atomically alongside a document using negative ids.
- **Document lifecycle commands:** Covers list, get, create, update, copy and archive verbs, including unarchiving.

## Good for

- Create a weekly report document with headings and an embedded saved question
- Add an existing card to a document under a section heading
- Edit the text of a document without losing its embedded cards
- Copy a document into another collection with its saved cards
- Build a new document and its questions in one step
- Archive or unarchive an old document

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/document` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/metabase/metabase-cli.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/document &&
cp -R "$tmp/packages/cli/skill-data/document" ~/.claude/skills/document &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/document` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/document` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/metabase/metabase-cli.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/document &&
cp -R "$tmp/packages/cli/skill-data/document" ~/.agents/skills/document &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/document` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/document` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/metabase/metabase-cli.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/document &&
cp -R "$tmp/packages/cli/skill-data/document" ~/.cursor/skills/document &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/document` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/metabase/metabase-cli.git --path packages/cli/skill-data/document
```

Or copy the folder to `~/.gemini/skills/document` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/document`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/metabase/metabase-cli.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/document &&
cp -R "$tmp/packages/cli/skill-data/document" ~/.copilot/skills/document &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/document` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/metabase/metabase-cli.git
```

Then copy `metabase-cli/packages/cli/skill-data/document` into your agent's skills folder as `document`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to run?

It uses the mb CLI with a configured profile, and the body is authored as TipTap JSON, with mb uuid used to create node ids.

### Does updating a document replace its whole body?

Yes. Document update replaces the entire body, so the skill recommends reading the current body, editing it and writing the whole thing back.

### Which nodes need an _id?

Paragraphs, headings, code blocks, ordered and bullet lists, blockquotes, card embeds and supporting text need a non-empty UUID _id.

### Can a document create new cards?

Yes, new cards can be defined in a cards map and referenced by negative ids, and the server creates them along with the document.

### How do I install Document in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/document to use it in all your projects, or to .claude/skills/document in one project.

### Does Document run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Document?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Document?

The closest alternatives to Document are Core, Metabase CLI, Metadata, Mbql and Dashboard.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Core](https://ai-powered.com/skills/core-metabase): Core is an open-source agent skill for analytics and data.
- [Metabase CLI](https://ai-powered.com/skills/metabase-cli): Metabase CLI is an open-source agent skill for analytics and data.
- [Metadata](https://ai-powered.com/skills/metadata): Metadata is an open-source agent skill for analytics and data.
- [Mbql](https://ai-powered.com/skills/mbql): Mbql is an open-source agent skill for analytics and data.
- [Dashboard](https://ai-powered.com/skills/dashboard): Dashboard is an open-source agent skill for analytics and data.
- [Data workflow](https://ai-powered.com/skills/data-workflow): Data workflow is an open-source agent skill for analytics and data.
- [Visualization](https://ai-powered.com/skills/visualization-metabase): Visualization is an open-source agent skill for analytics and data.
- [Transform](https://ai-powered.com/skills/transform-metabase): Transform is an open-source agent skill for analytics and data.

---
Source: https://ai-powered.com/skills/document-metabase
