← スキル一覧に戻る

marimo
by hydrosolutions
Water systems simulation and optimization toolbox
⭐ 0🍴 0📅 2026年1月19日
SKILL.md
name: marimo description: Create reactive marimo notebooks for data analysis and visualization. Use when the user asks to create a marimo notebook, work with reactive notebooks, or build interactive data visualizations. User-invocable with /marimo command. user_invocable: /marimo
Marimo Notebooks
Marimo is a reactive notebook framework. Key differences from Jupyter:
- Reactive: Cells auto-execute when dependencies change
- No redeclaration: Variables cannot be redeclared across cells
- DAG structure: Notebook forms a directed acyclic graph
- Auto-display: Last expression in a cell is displayed automatically
Cell Structure
@app.cell
def _():
# your code here
return
Marimo handles function parameters and return statements based on variable dependencies.
Code Requirements
- All code must be complete and runnable
- Import all modules in the first cell, always including
import marimo as mo - Never redeclare variables across cells
- Ensure no cycles in the dependency graph
- Never use
globaldefinitions - No comments in markdown or SQL cells
Reactivity Rules
- UI element values accessed via
.value(e.g.,slider.value) - UI values cannot be accessed in the same cell where defined
- Underscore-prefixed variables (e.g.,
_my_var) are cell-local
Quick Reference
| Task | Pattern |
|---|---|
| Markdown | mo.md("# Title") |
| Matplotlib | Use plt.gca() as last expression |
| Plotly/Altair | Return figure/chart object directly |
| SQL (DuckDB) | df = mo.sql(f"SELECT * FROM table") |
| Layout | mo.hstack([a, b]), mo.vstack([a, b]), mo.tabs({...}) |
| Stop execution | mo.stop(condition, output) |
Troubleshooting
| Issue | Solution |
|---|---|
| Circular dependencies | Reorganize code to remove cycles |
| UI value access error | Move value access to separate cell from definition |
| Viz not showing | Ensure viz object is last expression |
Run marimo check --fix to catch and fix common issues.
Creating a Notebook
Use scripts/create_notebook.py to generate a starter notebook:
uv run scripts/create_notebook.py my_analysis -o notebooks/
Resources
- UI Elements: See references/ui-elements.md for complete element signatures and patterns
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓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
レビュー
💬
レビュー機能は近日公開予定です