01-diagnostics
SMC resampling weights, standardized to sum to 1. Formally defined in Algorithm 2 of the [SMC paper](https://arxiv.org/pdf/2008.06131.pdf); computed in [`redist-smc.R`](https://github.com/alarm-redist/redist/blob/e0521998ebc4b362ce7b95a683a896ea07d038bd/R/redist-smc.R#L128-L133).
> /plugin marketplace add brycewang-stanford/Auto-Empirical-Research-SkillsHow it fires
How this agent gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
Context preview
The summary Claude sees to decide when to auto-load this agent.
SMC resampling weights, standardized to sum to 1. Formally defined in Algorithm 2 of the [SMC paper](https://arxiv.org/pdf/2008.06131.pdf); computed in [`redist-smc.R`](https://github.com/alarm-redist/redist/blob/e0521998ebc4b362ce7b95a683a896ea07d038bd/R/redist-smc.R#L128-L133).
Agent definition
01-diagnostics.mdInterpreting Internal Diagnostic Plots
Plan Weights
SMC resampling weights, standardized to sum to 1. Formally defined in Algorithm 2 of the [SMC paper](https://arxiv.org/pdf/2008.06131.pdf); computed in [`redist-smc.R`](https://github.com/alarm-redist/redist/blob/e0521998ebc4b362ce7b95a683a896ea07d038bd/R/redist-smc.R#L128-L133).
**Check for**: No small number of plans with disproportionately large weights. Weights should vary by no more than 1–2 orders of magnitude. A long right tail means a few plans dominate the ensemble and effective sample size is low.
Plan Diversity (VI Distance)
Variation of Information measures how different sampled plans are from one another. Higher = more diverse sample. See the [SMC paper](https://arxiv.org/pdf/2008.06131.pdf) for formal definition.
**Check for**: Ideally concentrated in the 0.5–1 range. A spike at 0 means all plans are identical — a serious problem. Values < 0.3 may be tolerable in complicated settings if weights look OK. No large spikes.
Population Deviation
Maximum percent deviation from target district population (total pop / number of districts).
**Check for**: The enacted plan's deviation should be reasonable. Slightly inflated if the state splits precincts. Substantially higher deviation suggests the enacted plan was not added to `redist_map` correctly.
Compactness
SMC nudges compactness via the exponent of log spanning tree compactness, which is highly correlated with Fraction of Edges Kept and fairly well correlated with Polsby-Popper. This is why all three metrics tend to move together.
Polsby-Popper (PP)
Area / perimeter²; ranges 0–1 (1 = circle). Ordered boxplots: district 1 = least compact.
**Check for**: Consistent discrepancy between enacted plan and simulations, especially if enacted is *more* compact. Tight boxes (small y-range) indicate low plan diversity.
Fraction of Edges Kept (FK)
Proportion of precinct boundary edges not cut by district lines. Lower = less compact. More robust to map resolution than PP.
**Check for**: Same as PP.
Bounding Box Reock (BBR)
Area / minimum bounding box area; ranges 0–1 (1 = rectangle). Ordered boxplots.
**Check for**: Same as PP.
Administrative Unit Splits
**County/municipal splits**: Number of units not wholly contained in one district.
**Total splits**: Sum of (unit-district pairs − 1) across all units. A county split across 3 districts contributes 2.
**Check for**: Enacted plan splits within the simulated range or near the lower tail. Far more splits than simulations suggests a constraint or data problem.
Minority VAP Share
**Check for**:
- **Cracking**: All districts have low minority VAP — avoid.
- **Packing**: One district has absurdly high minority VAP — avoid.
- States with existing majority-minority districts: simulations should have (1) at least as many majority-minority districts and (2) that those districts perform.
Example Plans
Visual maps of sampled plans.
**Check for**: Discontiguities, bizarre shapes, or implausible plans. Use to sanity-check the adjacency graph and constraint setup.
Partisan Metrics
Not checked internally. Do not include partisan metrics in the PR.
Read more
Interpreting Internal Diagnostic Plots
Plan Weights
SMC resampling weights, standardized to sum to 1. Formally defined in Algorithm 2 of the [SMC paper](https://arxiv.org/pdf/2008.06131.pdf); computed in [`redist-smc.R`](https://github.com/alarm-redist/redist/blob/e0521998ebc4b362ce7b95a683a896ea07d038bd/R/redist-smc.R#L128-L133).
**Check for**: No small number of plans with disproportionately large weights. Weights should vary by no more than 1–2 orders of magnitude. A long right tail means a few plans dominate the ensemble and effective sample size is low.
Plan Diversity (VI Distance)
Variation of Information measures how different sampled plans are from one another. Higher = more diverse sample. See the [SMC paper](https://arxiv.org/pdf/2008.06131.pdf) for formal definition.
**Check for**: Ideally concentrated in the 0.5–1 range. A spike at 0 means all plans are identical — a serious problem. Values < 0.3 may be tolerable in complicated settings if weights look OK. No large spikes.
Population Deviation
Maximum percent deviation from target district population (total pop / number of districts).
**Check for**: The enacted plan's deviation should be reasonable. Slightly inflated if the state splits precincts. Substantially higher deviation suggests the enacted plan was not added to `redist_map` correctly.
Compactness
SMC nudges compactness via the exponent of log spanning tree compactness, which is highly correlated with Fraction of Edges Kept and fairly well correlated with Polsby-Popper. This is why all three metrics tend to move together.
Polsby-Popper (PP)
Area / perimeter²; ranges 0–1 (1 = circle). Ordered boxplots: district 1 = least compact.
**Check for**: Consistent discrepancy between enacted plan and simulations, especially if enacted is *more* compact. Tight boxes (small y-range) indicate low plan diversity.
Fraction of Edges Kept (FK)
Proportion of precinct boundary edges not cut by district lines. Lower = less compact. More robust to map resolution than PP.
**Check for**: Same as PP.
Bounding Box Reock (BBR)
Area / minimum bounding box area; ranges 0–1 (1 = rectangle). Ordered boxplots.
**Check for**: Same as PP.
Administrative Unit Splits
**County/municipal splits**: Number of units not wholly contained in one district.
**Total splits**: Sum of (unit-district pairs − 1) across all units. A county split across 3 districts contributes 2.
**Check for**: Enacted plan splits within the simulated range or near the lower tail. Far more splits than simulations suggests a constraint or data problem.
Minority VAP Share
**Check for**:
- **Cracking**: All districts have low minority VAP — avoid.
- **Packing**: One district has absurdly high minority VAP — avoid.
- States with existing majority-minority districts: simulations should have (1) at least as many majority-minority districts and (2) that those districts perform.
Example Plans
Visual maps of sampled plans.
**Check for**: Discontiguities, bizarre shapes, or implausible plans. Use to sanity-check the adjacency graph and constraint setup.
Partisan Metrics
Not checked internally. Do not include partisan metrics in the PR.
📌 文档结构(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 |
Other agents on auto-empirical-research-skills.
- data-detective
Investigates data quality, profiling datasets for distributional anomalies, missingness patterns, panel structure, merge diagnostics, and variable construction issues. Use when working with a new dataset, validating merges, checking panel structure, profiling variables for
Open agent - literature-scout
Conducts systematic literature surveys of econometric methods, seminal papers, and prior applications. Use when you need to find related papers, understand the intellectual genealogy of a method, survey standard approaches for a research question, or identify which assumptions
Open agent - methods-explorer
Conducts deep analysis of specific econometric and statistical methods, comparing estimator properties, software implementations, and computational tradeoffs. Also researches benchmark parameter values, calibration targets, and stylized facts from the literature. Use when
Open agent - econometric-reviewer
Reviews estimation code with an extremely high quality bar for identification, inference, and econometric correctness. Use after implementing estimation routines, modifying econometric models, running regressions, or writing code that uses statsmodels, linearmodels, PyBLP,
Open agent - identification-critic
--- name: identification-critic effort: high maxTurns: 15 skills: [causal-inference, identification-proofs, game-theory, structural-modeling] disallowedTools: [Edit, Write, MultiEdit, NotebookEdit] description: >- Scrutinizes identification arguments for completeness,
Open agent - journal-referee
Simulates a top-5 economics journal referee providing a full report on research quality, contribution, and methodology. Use when reviewing draft papers, written artifacts, research projects before submission, or during /workflows:review on completed work. <examples> <example>
Open agent

