pipeline
Classical end-to-end empirical analysis workflow in the traditional Python econometric stack — pandas + numpy + scipy + statsmodels + linearmodels + pyfixest +…
Reactive Python notebook system. Cell reactivity, UI elements (sliders, dropdowns, tables), SQL cells, plotting, app deployment. Use when assembling Stage 9 notebooks, building data apps, or converting Jupyter to marimo .py format.
$ npx -y skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill marimo --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/marimoContext preview
The summary Claude sees to decide when to auto-load this skill.
Reactive Python notebook system. Cell reactivity, UI elements (sliders, dropdowns, tables), SQL cells, plotting, app deployment. Use when assembling Stage 9 notebooks, building data apps, or converting Jupyter to marimo .py format.
name: marimo description: >- Reactive Python notebook system. Cell reactivity, UI elements (sliders, dropdowns, tables), SQL cells, plotting, app deployment. Use when assembling Stage 9 notebooks, building data apps, or converting Jupyter to marimo .py format. metadata: audience: research-coders domain: python-library library-version: "0.19.x" skill-last-updated: "2026-03-28"
marimo reactive Python notebook system for reproducible and interactive data work. Covers cell reactivity model, UI elements (sliders, dropdowns, tables, forms), SQL cells, DataFrame display, plotting integration, validation patterns for data pipelines, and deployment as apps, scripts, or WASM. Use when assembling Stage 9 research notebooks, developing reactive marimo notebooks, building interactive data apps, or converting Jupyter notebooks to marimo's Git-friendly .py format.
Comprehensive skill for building reactive Python notebooks with marimo. Use decision trees below to find the right guidance, then load detailed references.
marimo is an open-source **reactive Python notebook** that automatically keeps code and outputs consistent:
Each topic in `./references/` contains focused documentation:
| File | Purpose | When to Read | |------|---------|--------------| | `quickstart.md` | Installation, CLI, first notebook | Starting a new project | | `reactivity.md` | Cell execution model, dataflow | Understanding marimo's reactive model | | `validation-patterns.md` | Transform-validate patterns, checkpoints | **REQUIRED for data analysis workflows** | | `ui-elements.md` | Interactive elements (mo.ui.*) | Adding interactivity | | `sql-data.md` | SQL cells, dataframes, plotting | Working with data | | `outputs-layouts.md` | Markdown, layouts, formatting | Styling outputs | | `apps-deployment.md` | Apps, scripts, export, deploy | Sharing/deploying notebooks | | `gotchas.md` | Common errors, best practices | Debugging issues |
1. **New to marimo?** Start with `quickstart.md` then `reactivity.md` 2. **Data analysis workflows?** Read `validation-patterns.md` (REQUIRED for rigorous analysis) 3. **Building features?** Read the relevant topic file 4. **Having issues?** Check `gotchas.md` first
Load these skills together with marimo for comprehensive workflow support:
**Always Load Together:**
**Load for Specific Features:**
**Prerequisite Knowledge:** If new to marimo, first understand: 1. Python basics 2. DataFrame operations (polars or pandas) 3. Basic plotting concepts
---
**For data research workflows**, the Stage 9 marimo notebook has ONE job: **LITERALLY COPY script file contents into cells.**
Stage 9 is handled by the **notebook-assembler agent** (see `.claude/agents/notebook-assembler.md`), which: 1. READS script files from `scripts/stage{5,6,7,8}_*/` 2. COPIES script code VERBATIM into code cells 3. COPIES execution logs VERBATIM into accordion cells 4. ADDS ONLY simple `pl.read_parquet() + mo.ui.table()` cells
The following are **NEVER ALLOWED** in Stage 9 notebooks:
| Prohibited Element | Why | |-------------------|-----| | `mo.ui.dropdown()` | No dropdowns — not a dashboard | | `mo.ui.slider()` | No sliders — not a dashboard | | `mo.ui.multiselect()` | No multiselects — not a dashboard | | `mo.ui.text()` for search | No search boxes — not a dashboard | | `.group_by()` (new) | No new aggregations — copy script code only | | `.agg()` (new) | No new aggregations — copy script code only | | `.pivot()` (new) | No pivot tables — copy script code only | | `.filter()` in data cells | No filtering — just load and display | | `.with_columns()` in data cells | No transforms — just load and display | | "Interactive Filters" section | Not a dashboard | | "Data Explorer" section | Not a dashboard | | "Institution Lookup" feature | Not a dashboard |
Data inspection cells may contain ONLY these two lines:
df = pl.read_parquet("path/to/file.parquet")
mo.ui.table(df.head(100))No `.filter()`. No `.with_columns()`. No `.select()`. No aggregations. Just load and display.
# ❌ WRONG — This is new analysis code
tier_summary = risk_data.group_by("tier").agg(pl.len())
# ❌ WRONG — This is a dashboard widget
sector_dropdown = mo.ui.dropdown(options=["Public", "Private"])
# ❌ WRONG — This is a transformation when loading
df = pl.read_parquet("data.parquet").with_columns(pl.col("x") * 2)
# ❌ WRONG — This is filtering
filtered = df.filter(pl.col("state") == "VA")# ✅ CORRECT — Verbatim script code in code cell
# SOURCE: scripts/stage5_fetch/01_fetch.py
import polars as pl
def _():
# ... exac📌 文档结构(2026-07-22 起): 本文件是中文默认入口 —— banner + badges + 信任面 + 9 阶段流水线速览 + 76 行合集总表。 每个合集的完整描述、按用途分组、精确数字、验证方法在 docs/CONTENT_ZH.md(扩展正文,总表行内的 → 直接跳转到对应锚点)。 English version: README-en.md · 中文扩展正文:docs/CONTENT_ZH.md · README-zh-CN.md 已弃用(重定向占位) 🌐 语言: English |
Classical end-to-end empirical analysis workflow in the traditional Python econometric stack — pandas + numpy + scipy + statsmodels + linearmodels + pyfixest +…
Use when the user asks to run a full empirical / causal analysis in Python — by default in the style of an applied economics paper (AER / QJE / JPE / ReStud /…
Classical end-to-end empirical analysis workflow in the traditional Python econometric stack — pandas + numpy + scipy + statsmodels + linearmodels + pyfixest +…
Classical end-to-end empirical analysis workflow in the traditional Stata ecosystem — native Stata + reghdfe + ivreg2 + csdid + did_imputation +…
Classical end-to-end empirical analysis workflow in the modern tidyverse + econometrics R ecosystem — dplyr + tidyr + haven + fixest + sandwich + lmtest +…
Systematic writing framework for philosophy and interdisciplinary academic papers from optimized outline to submission-ready manuscript. Use when users want…