Redistricting analysis in R using the redistverse ecosystem.

Custom licenceAuto-check passed

Install Redistricting Analysis

skills CLI
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill redistricting-analysis -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install brycewang-stanford/Auto-Empirical-Research-Skills redistricting-analysis --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/brycewang-stanford/Auto-Empirical-Research-Skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/22-christopherkenny-skills/skills/redistricting-analysis .claude/skills/redistricting-analysis && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
redistricting-analysis
GitHub stars
4.6k
Token cost
~1.5k tokens
SKILL.md length
430 words
Files
18 (incl. references)
Skills in repo
383
Repo updated
First seen
Licence
Custom licence

At a glance

Redistricting analysis in R using the redistverse ecosystem.

  • Works in 7 steps: Load data — Download pre-built precinct… → Prepare adjacency — Verify and edit the… → Set constraints — Define population… → …
  • The user is working with redist
  • SKILL.md covers Standard Analysis Pipeline, Quick Navigation, Key Data Structures and Population Tolerance Guidelines
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Redistricting Analysis is an agent skill from brycewang-stanford/Auto-Empirical-Research-Skills. Redistricting analysis in R using the redistverse ecosystem. Use whenever the user is working with redist, redistmetrics, ggredist, geomander, adj, alarmdata, PL94171, censable, easycensus, tinytiger, baf, rict, or redistio. Covers the complete pipeline: Census and spatial data loading, adjacency graph construction, SMC/MCMC simulation, constraints (population balance, county splits, VRA compliance), convergence diagnostics, plan metrics (compactness, partisan fairness, splits), visualization, summary tables, and…

Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 18 other files, including reference files (for example `references/01-redist-simulation.md`, `references/02-redist-constraints.md` and `references/03-redist-advanced.md`).

The repository describes itself as: 🔬 A curated collection of 23,000+ agent skills for empirical research across 8 social science disciplines. | 精选 23,000+ AI Agent 技能库,覆盖8大社会科学学科的实证研究。CoPaper.AI…

When your agent uses it

  • The user is working with redist
  • Mentions redistricting
  • Simulation ensembles
  • Any redistverse package by name

Example prompts

  • “/redistricting-analysis”

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Load data — Download pre-built precinct map + demographics + elections via alarmdata, or assemble your own sf object and build a…
  2. Prepare adjacency — Verify and edit the adjacency graph (remove water-body edges, fix topological errors). → 08-adj.md…
  3. Set constraints — Define population tolerance, county-split penalties, VRA hinge constraints, compactness. → 02-redist-constraints.md
  4. Simulate — Run redist_smc() (recommended) or MCMC to generate an ensemble of valid plans. → 01-redist-simulation.md
  5. Validate — Check convergence (summary()), R-hat, effective sample size, and plan diversity. → 01-redist-simulation.md
  6. Score — Compute compactness, partisan fairness, splits, and other metrics across the ensemble. → 04–06 redistmetrics references
  7. Visualize & compare — Map plans, plot metric distributions, compare enacted plan to the baseline. → 07-ggredist.md

What it can do on your machine

Read from SKILL.md and the folder at commit 9fa87d8. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Redistricting Analysis loads about 1.5k tokens when it runs, and up to ~21k if it reads all its reference files. Until then it costs about 177 tokens; SKILL.md has 430 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~177
When it runs · the whole SKILL.md, loaded when a task matches
~1.5k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~21k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 430 words (~1,476 tokens).

“A comprehensive reference for redistricting analysis in R using the redistverse ecosystem (library(redistverse) loads redist, redistmetrics, ggredist, geomander, sf, and adj).”

— opening of SKILL.md by brycewang-stanford, Custom licence
name
redistricting-analysis

Read the full SKILL.md on GitHub

Files

SKILL.md and 17 other files (references) in skills/22-christopherkenny-skills/skills/redistricting-analysis of brycewang-stanford/Auto-Empirical-Research-Skills.

  • SKILL.md
  • references/01-redist-simulation.md
  • references/02-redist-constraints.md
  • references/03-redist-advanced.md
  • references/04-redistmetrics-compactness.md
  • references/05-redistmetrics-partisan.md
  • references/06-redistmetrics-other.md
  • references/07-ggredist.md
  • references/08-adj.md
  • references/09-geomander-adjacency.md
  • references/10-geomander-spatial.md
  • references/11-geomander-data.md
  • references/12-alarmdata.md
  • references/13-pl94171.md
  • references/14-census-utilities.md
  • references/15-baf.md
  • references/16-rict.md
  • references/17-redistio.md

Open the folder on GitHubat commit 9fa87d8

Compare with similar skills

Redistricting Analysis next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Redistricting Analysis compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Redistricting Analysis this skillbrycewang-stanford/Auto-Empirical-Research-Skills4.6k—~1.5kAutomated safety check: PassCustom licence
Ecosystemglebis/claude-skills391—~2.1kAutomated safety check: PassMIT
EcosystemConvex-Dev/convex117—~159Automated safety check: PassCustom licence
Summarise Ecosystem Resultsastral-sh/ruff50k—~2.2kAutomated safety check: PassMIT
Minimizing Ty Ecosystem Changesastral-sh/ruff50k—~4.6kAutomated safety check: PassMIT
Gtm Developer Ecosystemgithub/awesome-copilot40k1 repos~2.3kAutomated safety check: PassMIT

Similar skills

  • Ecosystem

    glebis/claude-skills

    Audit the Claude Code ecosystem — skill health and staleness, project activity pulse, CLAUDE.md instruction drift, Mac Mini service status.

    391 GitHub stars~2.1k tokensUpdated 3 days ago
    Agent WorkflowsAuto-check passed
  • Ecosystem

    Convex-Dev/convex

    Orientation in the Convex ecosystem — what lives in which repository, where the specs and docs are, and which client libraries exist.

    117 GitHub stars~159 tokensUpdated yesterday
    Auto-check passed
  • Official

    A skill your agent uses when a user says "summarise ecosystem results", "summarize this ty ecosystem report", "what changed in this ecosystem run?", or asks to summarise or summarize ty ecosystem…

    50k GitHub stars~2.2k tokensUpdated today
    DevelopmentAuto-check passed
  • Official

    A skill your agent uses when a user says "minimize this ty ecosystem change", "reproduce this ecosystem result", "investigate a primer difference", "investigate a mypyprimer difference"…

    50k GitHub stars~4.6k tokensUpdated today
    DevelopmentAuto-check passed
  • Gtm Developer Ecosystem

    github/awesome-copilot

    Official

    Build and scale developer-led adoption through ecosystem programs.

    40k GitHub starsUsed in 1 repo~2.3k tokens
    Marketing & SEOAuto-check passed
  • Partnerships Ecosystem

    LeoYeAI/openclaw-master-skills

    World-Class Partnerships & Ecosystem Playbook. An agent skill from LeoYeAI/openclaw-master-skills.

    2.2k GitHub stars~5k tokensUpdated 2 mo ago
    Business, Finance & HRAuto-check passed

More from brycewang-stanford/Auto-Empirical-Research-Skills

All 383 skills in this repo
  • Aer Consistency

    brycewang-stanford/Auto-Empirical-Research-Skills

    A skill your agent uses when auditing a finished or near-finished AER, AER:Insights, or AEJ manuscript for internal consistency: headline numbers across abstract, introduction, results, and tables…

    4.6k GitHub starsUsed in 1 repo~2.6k tokens
    Auto-check passed
  • Latex Paper En

    brycewang-stanford/Auto-Empirical-Research-Skills

    English LaTeX academic paper assistant for existing .tex projects.

    4.6k GitHub starsUsed in 1 repo~2.2k tokens
    Auto-check passed
  • Bayesian Workflow

    brycewang-stanford/Auto-Empirical-Research-Skills

    Opinionated Bayesian modeling workflow with PyMC and ArviZ. An agent skill from brycewang-stanford/Auto-Empirical-Research-Skills.

    4.6k GitHub stars~3.5k tokensUpdated 6 days ago
    Auto-check passed
  • Daily Paper Generator

    brycewang-stanford/Auto-Empirical-Research-Skills

    A skill your agent uses when the user asks to "generate daily paper", "search arXiv for EEG papers", "find EEG decoding papers", "review brain-computer interface papers", or wants to create paper…

    4.6k GitHub stars~2.2k tokensUpdated 6 days ago
    Auto-check passed
  • Five Questions

    brycewang-stanford/Auto-Empirical-Research-Skills

    Deeply analyze any empirical economics PDF using the five-question framework (五问框架): research question, identification strategy, core estimand, robustness logic, and scholarly contribution.

    4.6k GitHub stars~1.7k tokensUpdated 6 days ago
    Auto-check: notes
  • Kaggle Research

    brycewang-stanford/Auto-Empirical-Research-Skills

    A skill your agent uses when a research task needs reproducible Kaggle discovery, metadata inspection, bounded public-data downloads, competition or kernel discovery, model discovery, or an…

    4.6k GitHub stars~868 tokensUpdated 6 days ago
    Auto-check passed

Questions about Redistricting Analysis

What does Redistricting Analysis do?

Redistricting analysis in R using the redistverse ecosystem. Redistricting Analysis is an agent skill from brycewang-stanford/Auto-Empirical-Research-Skills. Redistricting analysis in R using the redistverse ecosystem.

When should I use Redistricting Analysis?

Redistricting Analysis fits situations like: the user is working with redist; mentions redistricting; simulation ensembles; any redistverse package by name.

How do I install Redistricting Analysis in Claude Code?

Run `npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill redistricting-analysis -a claude-code`. Or copy the skill folder (skills/22-christopherkenny-skills/skills/redistricting-analysis in brycewang-stanford/Auto-Empirical-Research-Skills) into .claude/skills/redistricting-analysis in your project. Claude Code loads it when a task matches its description.

How do I install Redistricting Analysis in Codex?

Run `npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill redistricting-analysis -a codex`. Or copy the skill folder (skills/22-christopherkenny-skills/skills/redistricting-analysis in brycewang-stanford/Auto-Empirical-Research-Skills) into .agents/skills/redistricting-analysis in your project. Codex loads it when a task matches its description.

Can I use Redistricting Analysis in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill redistricting-analysis -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/redistricting-analysis, .gemini/skills/redistricting-analysis, .github/skills/redistricting-analysis and .opencode/skills/redistricting-analysis in your project.

What does Redistricting Analysis need to run?

SKILL.md names no scripts, command-line tools or credentials: Redistricting Analysis is instructions for the agent only.

Does Redistricting Analysis access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Redistricting Analysis safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Redistricting Analysis use?

Redistricting Analysis has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Redistricting Analysis use?

About 1.5k tokens (SKILL.md is roughly 5.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 20k tokens, read only when the agent opens those files.

What are the alternatives to Redistricting Analysis?

Skills that share tags, products or a category with Redistricting Analysis: Ecosystem (glebis/claude-skills, 391 stars), Ecosystem (Convex-Dev/convex, 117 stars), Summarise Ecosystem Results (astral-sh/ruff, 50k stars) and Minimizing Ty Ecosystem Changes (astral-sh/ruff, 50k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Redistricting Analysis?

brycewang-stanford (a GitHub user) maintains it in brycewang-stanford/Auto-Empirical-Research-Skills, which has 4,556 GitHub stars. The repository holds 383 skills in this directory. The repository was last updated on October 5, 2026.

Source: brycewang-stanford/Auto-Empirical-Research-Skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.