Skip to content
Automation
Skill

/publication-output

This skill covers publication-quality tables and figures for academic research papers. Use when formatting regression results, summary statistics, Monte Carlo output, or research visualizations for LaTeX inclusion. Triggers on "table", "figure", "tabulate", "stargazer",

From plugin
auto-empirical-research-skills
5k200 skills

Claude Code

$ npx -y skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill publication-output --agent claude-code

SKILL.md

publication-output.SKILL.md
name: publication-output
argument-hint: "<table or figure type>"
description: >-
  This skill covers publication-quality tables and figures for academic research papers. Use when formatting regression results, summary statistics, Monte Carlo output, or research visualizations for LaTeX inclusion. Triggers on "table", "figure", "tabulate", "stargazer", "publication-ready", "LaTeX table", "event study plot", "coefficient plot", "RD plot", "power curve", "specification curve", "binscatter", "format results", "booktabs".

Publication Output

Generate publication-quality tables and figures for academic research papers. Routes to the appropriate output type based on content, applies standard academic formatting conventions, and produces files ready for LaTeX inclusion.

When to Use

Skip when:

  • The task is choosing an empirical method or running estimation (use `empirical-playbook` or `causal-inference` skill)
  • The task is journal submission logistics or referee responses (use `submission-guide` skill)
  • Results are exploratory and not yet ready for formatted output (finish estimation first)

Use when:

  • After estimation: format regression results, diagnostics, or robustness checks into tables
  • After simulation: format Monte Carlo results (bias, RMSE, coverage) into comparison tables
  • For descriptive work: summary statistics, balance tables, transition matrices
  • For visualization: event studies, RD plots, coefficient plots, power curves, densities, specification curves

Output Type Router

| Content type | Output | Reference | |---|---|---| | Regression results (coefficients, SEs, R², N) | Stargazer-style coefficient table | `references/table-generation.md` | | Summary statistics (means, SDs, quantiles) | Descriptive statistics panel | `references/table-generation.md` | | Monte Carlo output (bias, RMSE, coverage) | Simulation results table | `references/table-generation.md` | | Balance / covariate comparison | Balance table with normalized differences | `references/table-generation.md` | | Transition probabilities | Matrix with row/column labels | `references/table-generation.md` | | First-stage IV results | First-stage regression table | `references/table-generation.md` | | Time-relative coefficients (leads/lags) | Event study plot | `references/figure-generation.md` | | Running variable + cutoff | RD plot with local polynomial | `references/figure-generation.md` | | Multiple estimates with CIs | Coefficient comparison plot | `references/figure-generation.md` | | Sample sizes × effect sizes | Power curve | `references/figure-generation.md` | | Group distributions | Density / kernel density plot | `references/figure-generation.md` | | Two continuous variables | Binned scatter plot | `references/figure-generation.md` | | Sorted estimates + indicator matrix | Specification curve | `references/figure-generation.md` |

Format Defaults

Tables

| Setting | Default | |---|---| | Format | LaTeX (booktabs: `\toprule`, `\midrule`, `\bottomrule`) | | Stars | On coefficients, never on SEs (* p<0.10, ** p<0.05, *** p<0.01) | | SEs | In parentheses, directly below coefficient | | Decimal alignment | All numbers in a column align at decimal point | | Fixed effects | Yes/No indicator rows, not coefficient rows | | Negative numbers | Minus sign (economics convention), not parentheses | | File location | `tables/<descriptive-name>.tex` | | Label format | `tab:<name>` |

Figures

| Setting | Default | |---|---| | Font | Serif (Computer Modern / Times), 11-12pt labels | | Size | 6.5" × 4.5" (single column), 13" × 4.5" (two-panel) | | DPI | Vector (PDF) primary, 300 DPI PNG secondary | | Style | White background, no gridlines, bottom+left axes only | | Color | Grayscale-friendly with distinct markers and line styles | | Colorblind | Okabe-Ito or ColorBrewer Set2 when color is used | | File location | `figures/<descriptive-name>.pdf` + `.png` | | Label format | `fig:<name>` |

Language-Specific Packages

| Language | Tables | Figures | |---|---|---| | Python | pandas, stargazer, pystout, tabulate | matplotlib + seaborn | | R | stargazer, modelsummary, kableExtra, gt, tinytable, fixest::etable() | ggplot2, coefplot, binsreg | | Julia | PrettyTables.jl, Latexify.jl | Plots.jl, Makie.jl | | Stata | esttab, outreg2, estout | twoway, coefplot, binscatter |

**Package notes:**

  • `pystout` (Python) — estout-style regression tables for statsmodels and linearmodels (OLS, IV2SLS, PanelOLS). Supports `mgroups` for column grouping, `modstat` for custom statistics rows.
  • `tinytable` (R) — lightweight, native Typst support, used as modelsummary backend.
  • `fixest::etable()` (R) — direct from estimation, handles multi-way FE notation automatically.

**Automated vs semi-automated tradeoff:** Automated tools (esttab, stargazer) are quick but hard to customize. Semi-automated tools (save intermediates, generate LaTeX separately) are harder to start but easier to customize. Costs are convex for automated, concave for semi-automated.

**Quarto+Typst:** Quarto with Typst backend offers sub-second compilation for iterative work. Use `keep-tex: true` for journal submission when you need the raw LaTeX output.

Multi-Panel Assembly

Tables and figures often require multi-panel layouts:

| Pattern | Table panels | Figure layout | |---|---|---| | Multiple outcomes | Panel A/B/C by outcome | 1×2 or 1×3 side-by-side | | Multiple samples | Panel by subsample | 2×1 stacked | | Multiple methods | Panel by estimator (OLS/IV/GMM) | 2×2 grid | | Robustness variants | Columns within one panel | 2×3 grid | | Event study + pre-trends | — | 2×1 stacked (estimates + test) |

Ensure consistent axis scales, font sizes, and formatting across panels. Label panels as (a), (b), (c) or Panel A, Panel B, Panel C.

Quick Examples

Python: Regression Table

import pandas as pd
from stargazer.stargazer import Stargazer
from linearmodels.iv import IV2SLS

# Format results with stargazer
stargazer = Stargazer(
Read more
@brycewang-stanford
Ships withauto-empirical-research-skills

## 🔥 力荐 · StatsPAI — Stata 与 R 的 Python 平替,为 AI Agent 而生 🔁 Stata / R 平替:reghdfe、csdid、rdrobust、synth、fixest、did 等常用命令在 Python 中一站式替代,一个 import statspai as sp 搞定 DID / RD / IV / SCM / DML / matching 🤖 面向 Agent 设计:结构化结果对象 + 内置 MCP Server,Claude / Codex

Stars on GitHub

Momentum

stars in total
5.0k
Star history of brycewang-stanford/Auto-Empirical-Research-Skills on GitHub, a chart by star-history.com

More skills from other plugins.

agent-builder

agent-builder

Load immediately after an Agent intent, before the first agent_builder_* call. Governs how you create, configure, test, and…

n8n2w209k
@n8n-io@n8n-ioInstall Skill
browser-use

browser-use

Direct browser control via CDP for web interaction: automation, scraping, testing, screenshots, and site/app work. Also covers…

@browser-use@browser-useInstall Skill
add-anydoc

add-anydoc

Add local office-document-to-Markdown conversion to NanoClaw agent containers with the pinned Firecrawl AnyDoc CLI. Use when…

@nanocoai@nanocoaiInstall Skill

Questions about publication-output.

Which coding agents can use publication-output?
publication-output installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.