electoral-data

Installation
SKILL.md

Electoral Data Analysis

When to Use

Use this skill when you need to:

  • Load and parse CLEA (Comparative Legislative Elections Archive) data for cross-national vote share analysis
  • Compute the effective number of parties (Laakso-Taagepera ENP) for seats and votes
  • Measure electoral disproportionality (Gallagher index, Loosemore-Hanby)
  • Estimate ecological regression or King's EI for group-level voting patterns when individual data are unavailable
  • Model voter turnout as a function of district competitiveness, demographic composition, and institutional factors
  • Calculate gerrymandering metrics: efficiency gap, Polsby-Popper compactness, convex hull ratio, and mean-median difference

This skill covers national and sub-national election data from parliamentary and presidential systems.

Installs
8
GitHub Stars
38
First Seen
Mar 30, 2026