This skill should be used when the user asks to "use marimo", "create a marimo notebook", "debug a marimo notebook", "inspect cells", "understand reactive execution", "fix marimo errors", "convert from jupyter to marimo", or works with marimo reactive Python notebooks.
/plugin marketplace add edwinhu/workflows/plugin install workflows@edwinhu-pluginsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
examples/basic_notebook.pyexamples/data_analysis.pyexamples/interactive_widgets.pyreferences/debugging.mdreferences/reactivity.mdreferences/sql.mdreferences/widgets.mdscripts/check_notebook.shscripts/get_cell_map.pyMarimo is a reactive Python notebook where cells form a DAG and auto-execute on dependency changes. Notebooks are stored as pure .py files.
.py files, version control friendly@app.cell decorator patternimport marimo
app = marimo.App()
@app.cell
def _(pl): # Dependencies as parameters
df = pl.read_csv("data.csv")
return df, # Trailing comma required for single return
@app.cell
def _(df, pl):
summary = df.describe()
filtered = df.filter(pl.col("value") > 0)
return summary, filtered # Multiple returns
@app.cell functions only$ in backticks - mo.md("Cost: $50") not mo.md("Cost: $50")| Command | Purpose |
|---|---|
marimo edit notebook.py | Open in browser editor |
marimo run notebook.py | Run as app |
marimo check notebook.py | Check for errors (no execution) |
marimo convert notebook.ipynb | Convert from Jupyter |
# Export to ipynb (code only, no outputs)
marimo export ipynb notebook.py -o __marimo__/notebook.ipynb
# Export to ipynb WITH outputs (runs notebook first)
marimo export ipynb notebook.py -o __marimo__/notebook.ipynb --include-outputs
# Export to HTML (runs notebook by default)
marimo export html notebook.py -o __marimo__/notebook.html
# Export to HTML with auto-refresh on changes (great for live preview)
marimo export html notebook.py -o __marimo__/notebook.html --watch
Key difference: HTML export runs the notebook by default. ipynb export does NOT - use --include-outputs to run and capture outputs.
Tip: Use __marimo__/ folder for all exports (ipynb, html). The editor can auto-save there.
mo.ui for interactive widgetsmo.sql(df, "SELECT * FROM df")mo.md("# Heading")1. Pre-execution validation:
scripts/check_notebook.sh notebook.py
Runs syntax check + marimo check + cell structure overview in one command.
2. Runtime errors: Export with outputs, then use notebook-debug skill:
marimo export ipynb notebook.py -o __marimo__/notebook.ipynb --include-outputs
| Issue | Fix |
|---|---|
| Variable redefinition | Rename one variable or merge cells |
| Circular dependency | Break cycle by merging or restructuring |
| Missing return | Add return var, with trailing comma |
| Import not available | Ensure import cell returns the module |
references/reactivity.md - DAG execution, variable rules, dependency detectionreferences/debugging.md - Error patterns, runtime debugging, environment issuesreferences/widgets.md - Interactive UI components and mo.ui patternsreferences/sql.md - SQL cells and database integrationexamples/basic_notebook.py - Minimal marimo notebook structureexamples/data_analysis.py - Data loading, filtering, visualization patternexamples/interactive_widgets.py - Using mo.ui for interactivityscripts/check_notebook.sh - Primary validation: syntax + marimo check + cell structurescripts/get_cell_map.py - Extract cell metadata (called by check_notebook.sh)notebook-debug - Debugging executed ipynb files (tracebacks, Read vs jq inspection)This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.