open-data: Skill for Claude Code

.claude/skills/add-new-state/SKILL.md

add-new-state is a skill for Claude Code from CivicPatch/open-data. It costs 72 tokens per session (2,726 once invoked), scanned A, original, CC0-1.0.

A skill for adding a US state to a data pipeline that uses Wikipedia list pages, local government coordinates, and Google Civic data. It performs the initial setup steps and a dry-run check.

In plain words
What is it for?
Use it to register a state, choose its Census data sources, configure its list-page settings, fetch civic data, and test the setup without completing the full run.
Why use it?
It guides the state-specific configuration work and catches setup problems before the full pipeline runs.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is CivicPatch/open-data's own configuration. It tells Claude Code how to work on open-data itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything open-data configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is uv run python scripts/jurisdictions/states.py <state>.

Reuse

Borrowing it

Nothing to install: this file belongs to CivicPatch/open-data. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/CivicPatch/open-data/main/.claude/skills/add-new-state/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/CivicPatch/open-data

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for add-new-state

README.md
[![agentmods](https://agentmods.dev/badge/skills/civicpatch/open-data/add-new-state/github.svg)](https://agentmods.dev/skills/civicpatch/open-data/add-new-state)
Your own site
<a href="https://agentmods.dev/skills/civicpatch/open-data/add-new-state"><img src="https://agentmods.dev/badge/skills/civicpatch/open-data/add-new-state/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for add-new-state

Your own site · 80×15
<a href="https://agentmods.dev/skills/civicpatch/open-data/add-new-state"><img src="https://agentmods.dev/badge/skills/civicpatch/open-data/add-new-state.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,726 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00072 $0.02726
Opus 5.5 $0.00029 $0.01090
Sonnet 5.5 $0.00014 $0.00545
Haiku 4.5 $0.00007 $0.00273

Measured 9d ago against content hash 58cf78b85557, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

add-new-state scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

data = requests.get(url, headers=headers).json()
.claude/skills/add-new-state/SKILL.md · 164 lines

How it starts

The opening of the file, as written. The whole thing — 164 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Add a New State (steps 1-4)

Covers the manual prep before the full mise run setup-state run. Full reference: DEVELOPMENT.md → "Adding a new state". This skill only does steps 1-4; stop after the dry-run and hand back to the user for step 5 onward (they'll want to review results before the full run, OCD-ID validation, the civicpatch.org map generation trigger, etc.).

Ask the user for the two-letter state code and full name if not given (e.g. va / Virginia).

What to collect

Only legislative and executive bodies (agreed 2026-10-30):

  1. Research lists the legislative and executive organizations the state's law establishes (general law, then charter, then bylaws and ordinances) and only the roles the law names in them, each organization labelled legislature or executive. Courts and special-purpose or advisory boards (library, cemetery, parks, planning, budget) are not listed. Pipeline 2 asks about each listed role per place and records established and filled_by.
  2. Presiding offices the members choose (council president, chair) are member roles on a member's post, not posts of their own.
  3. Every other role is a post that carries its selection method, as the law read set it for the place: elected officials are the posts elected_by_voters; an appointed manager is a post appointed, kept in the data and filtered out of the elected view.
  4. The law names it but not how it is filled (not_stated): dropped.
  5. Being named in the law, or even elected, is not enough: read what the office does (added 2026-11-03). An office that only carries out tasks is not listed, however old its title. Ask of its duties statute: does it decide policy, ordinances, budgets or taxes, or run the government day to day? Can a town simply vote to abolish it? Vermont's constable is named and usually elected, but its duties are serving papers and destroying animals (24 V.S.A. § 1936a(b)), a town may bar its law enforcement (§ 1936a(a)) and may eliminate it (17 V.S.A. § 2651a(d)): not listed. Keep its role in the config so its title still parses; just leave it out of every form.

Read the full file on GitHub · 164 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago Changed · +28 lines 58cf78b85557
  2. 1mo ago Changed · +20 lines 061f1851256c
  3. 2mo ago First seen · 116 lines · 72 tokens per session scan A 8fd03350f749

Subscribe to this mod's changes

add-new-state is a skill published in the GitHub repository CivicPatch/open-data (5 stars, last pushed yesterday), licensed CC0-1.0. It adds 72 tokens to every session and 2,726 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

add-new-state compared with skills from other repositories

add-new-state next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
add-new-stateCivicPatch/open-dataSkill5yesterdayCC0-1.0A72Claude Code
imagegenopenai/codexSkill135ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill100ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill394ktodayMITA36Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill80k6d agoMITA200Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill143ktodayMITA95Claude Code
chat-pet-sprite-creationmicrosoft/vscodeSkill195ktodayMITA53Claude Code, Codex