/fabrik:marimofrom fabrik
Guides creating, editing, running, and deploying marimo reactive Python notebooks that store as pure .py files.
Ships in fabrik. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
marimo is an open-source reactive Python notebook that reinvents notebooks as reproducible, interactive, and shareable Python programs. Unlike traditional Jupyter notebooks, marimo notebooks:
.py files (Git-friendly, no JSON)uv add marimo # In a uv project (or: pip install marimo)
uv add "marimo[recommended]" # With extras (SQL cells, AI, plotting helpers)
uv add "marimo[sql]" # With SQL support
uvx marimo edit --sandbox notebook.py # Standalone notebook, no project needed
marimo tutorial intro # Start tutorial
# Edit
marimo edit # Home page: browse and create notebooks
marimo edit notebook.py # Edit existing (or create)
marimo edit --watch notebook.py # Reload when the file changes on disk
marimo edit --sandbox notebook.py # Isolated env from PEP 723 inline deps (uv or pixi)
# Run as app
marimo run notebook.py # Read-only app
marimo run notebook.py --watch # Auto-reload on changes
# Run as script
python notebook.py
# Create
marimo new # Empty notebook
marimo new "analyze sales data" # Generate from a prompt with AI
# Lint and format
marimo check notebook.py # Report issues (multiple definitions, cycles, ...)
marimo check --fix notebook.py # Fix what is fixable, in place
# Convert to marimo (.ipynb, .md with python fences, py:percent scripts)
marimo convert notebook.ipynb -o notebook.py
# Export
marimo export html notebook.py -o output.html
marimo export html-wasm notebook.py -o out/ --mode run # Browser-executable (Pyodide)
marimo export ipynb notebook.py -o notebook.ipynb
marimo export md notebook.py -o notebook.md
marimo export script notebook.py -o script.py # Flat Python script
marimo export pdf notebook.py -o notebook.pdf
Running a cell automatically runs all cells that depend on it. Execution order is determined by variable dependencies (DAG), not cell position.
_tmp) are local to their celllist.append() aren't tracked; reassign insteadimport *Notebooks are pure Python files with marimo decorators. Each cell is a function whose parameters are the variables it reads and whose return tuple is the variables it defines. Start the file with a PEP 723 script block listing its dependencies (marimo edit --sandbox writes one automatically) so uv run notebook.py and --sandbox resolve them:
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "marimo",
# "polars>=1.0",
# ]
# ///
import marimo
__generated_with = "0.25.2"
app = marimo.App(width="medium")
with app.setup:
# Setup cell: runs first; its names are usable by top-level functions
import marimo as mo
import polars as pl
@app.function
def clean(df: pl.DataFrame) -> pl.DataFrame:
# Top-level function: importable with `from notebook import clean`
return df.drop_nulls()
@app.cell(hide_code=True)
def _():
mo.md(r"""
# My Notebook
""")
return
@app.cell
def _():
df = clean(pl.read_csv("data.csv"))
return (df,)
@app.cell
def _(df):
df.describe()
return
if __name__ == "__main__":
app.run()
A setup cell and @app.function are optional; a plain notebook imports marimo as mo in a regular @app.cell and returns (mo,). A cell that defines nothing ends with a bare return. The last expression in a cell is its output.
@app.function only works when the cell defines exactly one function that refers only to setup-cell names or other top-level definitions; @app.class_definition is the equivalent for classes. See references/app.md and references/cell.md.
.py file directly is fine: keep the format above, keep cell parameters and return tuples in sync with the variables each cell reads and defines, and run marimo check (or uvx marimo check) afterwards to catch multiple definitions, cycles, and formatting issues.marimo edit --watch notebook.py so the editor picks up your changes.marimo pair connects an agent to a running notebook session to create, edit, and run cells live and read their outputs. Run marimo pair --help for the workflow. In that mode, edit through the pair API only, not the file.Detailed documentation for each API is available in the references/ directory. Consult these files for comprehensive examples and parameters.
| API | Reference File | Description |
|---|---|---|
| Markdown | references/markdown.md | mo.md() for rich text, LaTeX, icons |
| HTML | references/html.md | mo.Html, mo.as_html(), styling |
| Outputs | references/outputs.md | mo.output.append(), console redirection |
| API | Reference File | Description |
|---|---|---|
| Inputs | references/inputs.md | Sliders, text, dropdowns, tables, forms, etc. |
| Layouts | references/layouts.md | mo.hstack, mo.vstack, tabs, accordion, etc. |
| Media | references/media.md | Images, audio, video, PDF, downloads |
| Plotting | references/plotting.md | Altair, Plotly, matplotlib integration |
| Diagrams | references/diagrams.md | Mermaid diagrams |
| Status | references/status.md | Progress bars, spinners |
| API | Reference File | Description |
|---|---|---|
| SQL | references/sql.md | mo.sql() for database and DataFrame queries |
| API | Reference File | Description |
|---|---|---|
| Control Flow | references/control-flow.md | mo.stop(), conditional execution |
| State | references/state.md | mo.state() for UI synchronization |
| Caching | references/caching.md | @mo.cache, @mo.persistent_cache |
| Query Params | references/query-params.md | mo.query_params() for URL state |
| CLI Args | references/cli-args.md | mo.cli_args() for script arguments |
| Watch | references/watch.md | mo.watch.file() for reactive file monitoring |
| App | references/app.md | Embedding notebooks, mo.app_meta() |
| Cell | references/cell.md | Cross-notebook execution, testing |
import marimo as mo
slider = mo.ui.slider(0, 100, value=50, label="Threshold")
slider
# In another cell
mo.md(f"Selected value: **{slider.value}**")
table = mo.ui.table(df, selection="multi")
table
# In another cell
selected = table.value # Selected rows as DataFrame
result = mo.sql(f"SELECT * FROM df WHERE value > {threshold.value}")
mo.stop(form.value is None, mo.md("Submit the form to continue"))
# Rest of cell runs only after form submission
marimo run notebook.py # Local app
marimo export html-wasm notebook.py -o out/ # Static WASM app
Layout options: Vertical (default), Grid (drag-drop in editor), Slides. For a multi-column editor layout use marimo.App(width="columns") with @app.cell(column=N); see references/app.md.
_-prefixed names or functions for intermediates. Prefix one or two true temporaries per cell, not every variable; a clear new name is better than an underscoreif x: to wait for x; the cell doesn't run until x is defined, and an indented expression is never rendered as outputmo.app_meta().mode == "script" only to swap the data source or skip the button wait (see references/cli-args.md)@mo.cache / mo.persistent_cache for expensive computationsmo.ui.run_button() with mo.stop() to prevent expensive ops until readymo.state() and on_change handlers; rely on reactive execution of UI elementsreferences/app.md (opens in a new tab)references/caching.md (opens in a new tab)references/cell.md (opens in a new tab)references/cli-args.md (opens in a new tab)references/control-flow.md (opens in a new tab)references/diagrams.md (opens in a new tab)references/html.md (opens in a new tab)references/inputs.md (opens in a new tab)references/layouts.md (opens in a new tab)references/markdown.md (opens in a new tab)references/media.md (opens in a new tab)references/outputs.md (opens in a new tab)references/plotting.md (opens in a new tab)references/query-params.md (opens in a new tab)references/sql.md (opens in a new tab)references/state.md (opens in a new tab)references/status.md (opens in a new tab)references/watch.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub maragudk/fabrik --plugin fabrik28 skills in this plugin
/ableton-liveGuide for making music in Ableton Live 12 on macOS. Use this skill whenever the user asks how to do something in Ableton Live or "in Live", wants help with a Live Set, project, or session, asks which stock Live device or instrument to use for a sound (Operator, Wavetable, Drift, Meld, Simpler, Sampler, Roar, Echo, Hybrid Reverb, Auto Filter, Drum Rack, Racks, Macros...), needs warping, Session vs Arrangement, clip launching, Follow Actions, MIDI editing, MIDI Tools, scale awareness, grooves, automation, clip envelopes, routing, sidechain, resampling, comping, stem separation, bouncing, freezing, exporting, Push 1/2, Link, MIDI sync, CPU or latency troubleshooting, or keyboard shortcuts. Trigger even when the user doesn't say "Ableton" -- words like "Live Set", ".als", "clip slot", "scene", "Drum Rack", "Simpler", "warp marker", "Session View", "Arrangement View", "Max for Live", or "Push" are enough. Also use it when the user is producing electronic music and asks for a workflow or sound-design recipe that will be executed in Live./accomplishmentsExtract accomplishments from new implementation diary entries into docs/accomplishments.md, written as one-line reflections that blend self-appraisal with Markus's appreciation. Use only when the user invokes /accomplishments or explicitly asks to extract, update, or refresh accomplishments from the diary. Do not run proactively./address-code-reviewAddress code review feedback by walking through comments one at a time with the user. Use when the user has received code review comments — on a GitHub PR, in a document in the repo, or directly in conversation — and wants to work through them methodically. Also trigger when the user mentions "address review", "review comments", "PR feedback", or wants to respond to code review feedback./atprotoGuide for building on the AT Protocol (the "atmosphere") -- authoring Lexicons, building app views, consuming the firehose, working with identity (DIDs, handles), repositories, records, XRPC endpoints, and OAuth. Use this skill whenever the user is building anything on atproto/Bluesky/the atmosphere -- writing Lexicon JSON, calling com.atproto.* or app.bsky.* endpoints, parsing AT URIs (`at://...`), DIDs (`did:plc:...`, `did:web:...`), handles, TIDs, the indigo Go SDK (`github.com/bluesky-social/indigo`), the firehose / `subscribeRepos`, MSTs, CAR files, DAG-CBOR/DRISL, app views, feed generators, labelers, or PDS interactions. Triggers even if the user doesn't say "atproto" -- words like "lexicon", "PDS", "app view", "firehose", "did:plc", or `at://` URIs are enough./blueskyGuide for posting content to the Bluesky social network using the bsky terminal app. This skill should be used proactively when working in public repositories and there is interesting, shareable content (new features, insights, achievements, or announcements worth sharing with the community). Use it when asked to post to Bluesky, or when content seems worth sharing publicly./bombadilTest web UIs with Bombadil, Antithesis's property-based testing tool that explores a running web app in a real browser and checks correctness properties. Use this skill whenever the task is testing a web UI in a browser -- before writing, adding, or setting up any browser, end-to-end (e2e), UI, or acceptance tests (including adding them to CI such as GitHub Actions), and before reaching for Playwright, Cypress, or Selenium. Also use it to fuzz or click around a frontend to check a change didn't break it, to hunt flaky or hard-to-reproduce UI bugs like double submits, to check that a page or form keeps an invariant, and to read a Bombadil trace or violation. Triggers even when the user doesn't say "Bombadil" -- "browser tests", "e2e tests", "test the UI", or "does the frontend still work" are enough. Not for driving a browser without testing (screenshots, scraping, filling in a form), handler or unit tests, or load testing.Other plugins' skills for the same job