/compound-science:publication-output <table or figure type>from compound-science
Formats regression results, summary statistics, Monte Carlo output, and research visualizations into publication-quality LaTeX tables and figures.
Ships in compound-science. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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.
Skip when:
empirical-playbook or causal-inference skill)submission-guide skill)Use when:
| 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 |
| 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> |
| 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 | 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.
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.
import pandas as pd
from stargazer.stargazer import Stargazer
from linearmodels.iv import IV2SLS
# Format results with stargazer
stargazer = Stargazer([ols_result, iv_result])
stargazer.custom_columns(["OLS", "IV/2SLS"])
stargazer.show_model_numbers(False)
stargazer.significant_digits(3)
with open("tables/main-results.tex", "w") as f:
f.write(stargazer.render_latex())
import matplotlib.pyplot as plt
import matplotlib
matplotlib.rcParams.update({"font.family": "serif", "font.size": 11})
fig, ax = plt.subplots(figsize=(6.5, 4.5))
ax.errorbar(leads_lags, coefficients, yerr=1.96 * se, fmt="o-", color="black", capsize=3)
ax.axhline(y=0, color="gray", linestyle="--", linewidth=0.8)
ax.axvline(x=-0.5, color="red", linestyle=":", linewidth=0.8)
ax.set_xlabel("Periods relative to treatment")
ax.set_ylabel("Coefficient estimate")
ax.spines[["top", "right"]].set_visible(False)
fig.savefig("figures/event-study.pdf", bbox_inches="tight")
Before finalizing any output:
econometric-reviewer agent preloads this skill to audit tables against code outputeconometric-reviewer may request formatted output during /workflows:review/workflows:compound captures table/figure templates into docs/solutions/What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: outputStyles: Invalid string: must start with "./"
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
20 skills in this plugin
/bayesian-estimationThis skill covers Bayesian estimation and inference in quantitative social science. Use when the user is specifying priors, running MCMC, diagnosing chain convergence, or reporting posterior summaries — including hierarchical models, Bayesian structural models, and small-sample settings where priors regularize. Triggers on "Bayesian estimation", "Bayesian inference", "MCMC", "Markov chain Monte Carlo", "Stan", "PyMC", "NumPyro", "prior", "posterior", "credible interval", "Bayesian structural", "Bayesian BLP", "Bayesian DSGE", "hierarchical model", "random effects Bayesian", "posterior predictive check", "Bayes factor", "prior predictive check", "NUTS", "HMC", "Hamiltonian Monte Carlo", "R-hat", "rhat", "effective sample size", "ESS", "Bayesian calibration", "posterior distribution", "prior elicitation", "weakly informative prior", "brms", "rstanarm", "cmdstanpy", "pymc", "arviz"./causal-inferenceThis skill covers causal inference methods in observational and quasi-experimental settings. Use when the user is implementing, choosing between, or debugging causal identification strategies — including instrumental variables, difference-in-differences, regression discontinuity, synthetic control, or matching estimators. Triggers on "causal effect", "identification strategy", "instrumental variable", "2SLS", "GMM", "difference-in-differences", "DiD", "staggered treatment", "regression discontinuity", "RDD", "synthetic control", "matching", "propensity score", "IPW", "AIPW", "doubly robust", "LATE", "ATT", "ATE", "parallel trends", "exclusion restriction", "first stage", "weak instruments", or "endogeneity"./causal-mlThis skill covers causal machine learning methods in applied economics and quantitative social science. Use when implementing or choosing between modern ML-based causal estimators — including double machine learning, DML, partially linear models, interactive regression models, cross-fitting, Neyman orthogonality, debiased ML, causal forests, generalized random forest, GRF, honest causal trees, AIPW with machine learning, doubly robust with machine learning, DR-Learner, T-Learner, S-Learner, X-Learner, meta-learners, heterogeneous treatment effects, conditional average treatment effect, CATE, HTE, high-dimensional controls, LASSO controls, post-LASSO, post-double selection, Belloni-Chernozhukov-Hansen, Riesz representer, Chernozhukov, sample splitting, econml, DoubleML package, or any combination of machine learning and causal inference./empirical-playbookThis skill covers applied microeconomic empirical methods and research design. Use when the user is selecting an identification strategy, comparing estimators, running diagnostics, designing a research study, or evaluating an empirical strategy. Triggers on "which method", "what estimator", "how to choose", "method comparison", "empirical strategy", "research design", "applied micro", "identification strategy", "power analysis", "design-based", "model-based", "minimum detectable effect", "specification"./estimateRun a structural estimation pipeline — routes to /workflows:work with estimation context from empirical-playbook/game-theoryThis skill covers game-theoretic methods in structural econometrics and industrial organization. Use when the user is working with strategic interactions, equilibrium analysis, or game-theoretic structural models — including entry games, conduct testing, auction models with strategic bidding, bargaining, or matching markets. Triggers on "Nash equilibrium", "subgame perfect", "best response", "strategic interaction", "entry game", "conduct testing", "auction", "mechanism design", "matching market", "bargaining", "BNE", "Bayesian Nash", "static game", "dynamic game", "repeated game", "multiple equilibria", "equilibrium selection", "discrete game", "oligopoly", "game-theoretic", "player", "payoff", "strategy", "dominant strategy", "Bresnahan-Reiss", "Ciliberto-Tamer", "partial identification", "set identification", or markup test.Other plugins' skills for the same job