← Back to list

marimo-compact
by CodingKaiser
list of claude skills for omics and programming
⭐ 0🍴 1📅 Jan 19, 2026
SKILL.md
name: marimo-compact description: Compact marimo notebook patterns. Reactive cells, UI elements, data visualization.
Marimo Essentials
Cell Structure
@app.cell
def _():
import marimo as mo
return
@app.cell
def _():
slider = mo.ui.slider(0, 100, value=50, label="Value")
slider # Display it
return
@app.cell
def _():
result = slider.value * 2 # Reactive: re-runs when slider changes
mo.md(f"Result: {result}")
return
Reactivity Rules
- Variables auto-propagate: changing
xre-runs cells usingx - No redeclaration: each variable defined once across all cells
- UI
.valuein separate cell from definition _var= cell-local variable- Last expression displays automatically
Common UI Elements
mo.ui.slider(start, stop, value=None, label=None)
mo.ui.dropdown(options, value=None, label=None)
mo.ui.text(value="", label=None)
mo.ui.checkbox(label="", value=False)
mo.ui.button(value=None, kind="primary")
mo.ui.table(data, sortable=True, filterable=True)
mo.ui.dataframe(df) # Editable
mo.ui.data_explorer(df) # Interactive explorer
mo.ui.form(element, label="") # Wrap in form
Layouts
mo.md("# Title") # Markdown
mo.hstack([a, b, c]) # Horizontal
mo.vstack([top, mid, bot]) # Vertical
mo.tabs({"Tab 1": content1, "Tab 2": content2})
mo.accordion({"Section": content})
Data & SQL
# DataFrames display automatically
import polars as pl
df = pl.read_csv("data.csv")
df # Shows as table
# SQL with DuckDB
result = mo.sql(f"SELECT * FROM df WHERE x > 100")
Visualization
- matplotlib:
plt.gca()as last expression (notplt.show()) - plotly: return figure object directly
- altair: return chart object; accepts polars DataFrames
Control Flow
mo.stop(condition, mo.md("Stopped")) # Stop cell execution
mo.output.replace(content) # Replace output
Pitfalls to Avoid
- Circular dependencies between cells
- Accessing
.valuein same cell as UI definition - Using
globalkeyword - Not returning visualization object as last expression
CLI
marimo edit notebook.py # Edit
marimo run notebook.py # Run as app
marimo check --fix # Fix formatting issues
Score
Total Score
50/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon