State County Rankings

SkillFiles & storage

This skill should be used when users need ranked county-level demographic metrics within a state from a local CSV file, such as income, population, poverty, or rent.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the State County Rankings skill

What this skill tells your AI

The instructions your AI receives, as published by amkessler/nicar2026_skills_in_codex_claude in skills/state-county-rankings/SKILL.md and read by ahel’s review.

Use this skill to rank counties within a state for one or more metrics from a local dataset.

Requirements

  • R with dplyr, tidyr, readr, stringr, and jsonlite
  • Local CSV input with county, a state column (state, state_name, or state_abbrev), and requested metric columns
  • Bundled Census CSV for immediate use: skills/state-county-rankings/data/county_demographics_acs5_2023.csv
  • No API key required

Standard Workflow

  1. Confirm input CSV path and state.
    • --state accepts full names or USPS abbreviations (for example, Georgia or GA).
    • Default bundled input: skills/state-county-rankings/data/county_demographics_acs5_2023.csv
  2. Review skills/state-county-rankings/references/COLUMN_REQUIREMENTS.md and use exact output headers before downstream filtering/selecting.
    • Output columns are state, county, metric, value, rank, and direction.
  3. Ask for metrics (or use defaults) and ranking direction.
  4. Run:
    • Rscript skills/state-county-rankings/scripts/get_state_county_rankings.R --input skills/state-county-rankings/data/county_demographics_acs5_2023.csv --state "<state>"
  5. Return top/bottom county rankings and note missing/invalid fields.

Output

Return ranked rows with:

  • state
  • county
  • metric
  • value
  • rank
  • direction

Signals

GitHub stars
20
Forks
7
Last commit
Jul 2026
Advanced
Catalog kind
skill
Gateway key
state-county-rankings
Source
github.com/amkessler/nicar2026_skills_in_codex_claude