Install any skill in seconds. Free to start, no credit card required.
Get Started Free →brycewang-stanford/redistricting-analysis
Redistricting analysis in R using the redistverse ecosystem.
Passed 19 of 22 test cases with the skill, and 10 of 22 without it.
and 10 more in the full report
9 fixed10 passed either way3 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 9 test cases the skill fixed. Same model, same prompt, with and without the skill.
To obtain official Census Bureau Block Assignment Files (BAF) for state legislative redistricting reconciliation in R, which package provides a direct function to download these BAF files?
| Checked | Without skill | With skill |
|---|---|---|
| The response recommends using the baf package. | Missed | Passed |
The instructions your model reads when the skill loads.
A comprehensive reference for redistricting analysis in R using the redistverse ecosystem (library(redistverse) loads redist, redistmetrics, ggredist, geomander, sf, and adj).
alarmdata, or assemble your own sf object and build a redist_map. → 12-alarmdata.mdredist_smc() (recommended) or MCMC to generate an ensemble of valid plans. → 01-redist-simulation.mdsummary()), R-hat, effective sample size, and plan diversity. → 01-redist-simulation.md| Package / Topic | Reference |
|---|---|
redist_map, redist_smc, redist_mergesplit, redist_flip, redist_plans, diagnostics | 01-redist-simulation.md |
redist_constr, add_constr_splits, add_constr_grp_hinge, all soft constraints | 02-redist-constraints.md |
redist_enumpart, redist_shortburst, redist_cyclewalk, init_particles | 03-redist-advanced.md |
redistmetrics — Polsby-Popper, Reock, spanning tree, prep_perims, comp_* functions | 04-redistmetrics-compactness.md |
redistmetrics — efficiency gap, mean-median, bias, declination, part_* functions | 05-redistmetrics-partisan.md |
redistmetrics — county splits, segregation, competitiveness, incumbents, plan_parity, group_frac | 06-redistmetrics-other.md |
ggredist — geom_district, party color scales, cartographic palettes, theme_map | 07-ggredist.md |
adj — adjacency graph construction, edge operations, coloring, Laplacian | 08-adj.md |
geomander — adjacency construction, contiguity checks, seam_rip, edge editing | 09-geomander-adjacency.md |
geomander — geo_match, estimate_down/up, block2prec, spatial estimation | 10-geomander-spatial.md |
geomander — downloading VEST, ALARM, DRA, HEDA, get_lewis election data | 11-geomander-data.md |
alarmdata — alarm_50state_map, pre-built datasets, caching, alarm_add_plan | 12-alarmdata.md |
PL94171 — Census P.L. 94-171 decennial data ingestion | 13-pl94171.md |
censable (data + state IDs), easycensus (ACS), tinytiger (TIGER shapefiles) | 14-census-utilities.md |
baf — download official Census Bureau block assignment files | 15-baf.md |
rict — gt summary tables: population, demographics, elections, compactness, splits | 16-rict.md |
redistio — interactive Shiny plan drawing (draw()) and adjacency editor (adj_editor()) | 17-redistio.md |
redist_map — an sf tibble with one row per precinct. Stores the adjacency graph, population column, number of districts, and population tolerance. Created by redist_map() or downloaded via alarm_50state_map(). Standard columns include pop, pop_black, pop_hisp, pop_asian, pop_white, pop_vap, pop_bvap, ndv (Democratic votes), nrv (Republican votes), and geometry.
test cases passed, vs 10 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.