census-data

census-data is a skill for Claude Code, Codex from beita6969/ScienceClaw. It costs 41 tokens per session (699 once invoked), scanned A, original, MIT.

A tool for retrieving United States demographic, housing, population, and economic statistics from the U.S. Census Bureau. The Census Bureau is the federal agency that collects and publishes data about people, households, and communities in the United States.

In plain words
What is it for?
Use it to query population, household income, poverty, housing, and demographic data by state or county through the Census Bureau API.
Why use it?
It avoids manually finding tables and geographic codes when comparing official statistics across states, counties, and other U.S. areas.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/beita6969/scienceclaw/census-data
Any agent
npx skills add beita6969/ScienceClaw --skill census-data
Clone the repo
git clone --depth 1 https://github.com/beita6969/ScienceClaw

Made for: Claude Code, Codex.

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 census-data

README.md
[![agentmods](https://agentmods.dev/badge/skills/beita6969/scienceclaw/census-data.svg)](https://agentmods.dev/skills/beita6969/scienceclaw/census-data)
Your own site
<a href="https://agentmods.dev/skills/beita6969/scienceclaw/census-data"><img src="https://agentmods.dev/badge/skills/beita6969/scienceclaw/census-data.svg" alt="Measured on agentmods" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 699 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00041 $0.00699
Opus 5 $0.00020 $0.00349
Sonnet 5 $0.00008 $0.00140
Haiku 4.5 $0.00004 $0.00070

Measured 4d ago against content hash 683527bb3708, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

census-data 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 4d 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.

metadata: { "openclaw": { "emoji": "📋", "requires": { "bins": ["curl"], "env": ["CENSUS_API_KEY"] } } }
skills/census-data/SKILL.md · 81 lines

How it starts

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

US Census Data Skill

Query the US Census Bureau API for demographics, population, and economic data.

When to Use

  • "What's the population of Texas?"
  • "Show demographic breakdown by county"
  • "Get median household income for California"
  • "Compare poverty rates across states"

When NOT to Use

  • Non-US data (use world-bank-data)
  • Real-time economic data (use financial APIs)
  • Historical pre-1790 data

Setup

Get a free API key at https://api.census.gov/data/key_signup.html

export CENSUS_API_KEY=your_key_here

API Base

https://api.census.gov/data/

Common Commands

ACS 5-Year Estimates (Most Used)

# Total population by state
curl -s "https://api.census.gov/data/2022/acs/acs5?get=NAME,B01001_001E&for=state:*&key=$CENSUS_API_KEY"

# Median household income by state
curl -s "https://api.census.gov/data/2022/acs/acs5?get=NAME,B19013_001E&for=state:*&key=$CENSUS_API_KEY"

# Population by county in California (state FIPS=06)
curl -s "https://api.census.gov/data/2022/acs/acs5?get=NAME,B01001_001E&for=county:*&in=state:06&key=$CENSUS_API_KEY"

# Poverty rate by state
curl -s "https://api.census.gov/data/2022/acs/acs5?get=NAME,B17001_001E,B17001_002E&for=state:*&key=$CENSUS_API_KEY"

Decennial Census

# 2020 total population by state
curl -s "https://api.census.gov/data/2020/dec/pl?get=NAME,P1_001N&for=state:*&key=$CENSUS_API_KEY"

Common Variables

Variable Description
B01001_001E Total population
B19013_001E Median household income
B17001_002E Population below poverty
B25077_001E Median home value
B15003_022E Bachelor's degree holders
B02001_002E White alone population

Notes

  • Free API key required for most queries
  • ACS 5-year estimates are most reliable for small geographies
  • FIPS codes identify states (e.g., 06=CA, 36=NY, 48=TX)
  • Rate limit: 500 requests/day without key, more with key
  • Variables list: https://api.census.gov/data/2022/acs/acs5/variables.html

Read the full file on GitHub · 81 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. 4d ago First seen · 81 lines · 41 tokens per session scan A 683527bb3708

Subscribe to this mod's changes

census-data is a skill published in the GitHub repository beita6969/ScienceClaw (891 stars, last pushed 2mo ago), licensed MIT. It adds 41 tokens to every session and 699 once invoked, about $0.0002 per session on Opus 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-30.

Related

Other skills, from other repositories

biomcp

Search and retrieve biomedical data - genes, variants, clinical trials, diagnostic tests, articles, drugs, diseases, pathways, proteins, adverse events, pharmacogenomics, and phenotype-disease matching. Use for gene function, variant pathogenicity, trials, diagnostics, drug safety, pathway context, disease workups…

genomoncology/biomcp · 70 tokens

biomcp-research

Do biomedical literature and variant research with the BioMCP CLI, and file what you learn about the tool itself as issues in the biomcp repo.

genomoncology/biomcp · 36 tokens

shidi

科研/工作中的"师弟"——用户给想法和方向,师弟负责把想法拆解、执行、交付:文献调研(多角度检索+评分标注+输出报告)、设计/验证实验方案(含文献支撑)、科研作图、精读论文、数据整理等脏活累活。触发词:师弟、脏活、跑腿活、文献调研、查文献、综述、帮我查资料、实验方案、做图、画图、帮我读论文。.

IcyCreamDAS/shidi-skill · 126 tokens

grounded

Write a scientific review of a topic or research question — small, medium (default), or large; in scientific, popsci (default), bullets, or ELI5 style; delivered as inline chat, a journal-styled PDF with generated figures (default), or, on explicit request only, an experimental 16:9 slide deck — built solely on…

jostelzer/grounded · 187 tokens

agents

Drop-in instructions for any AI agent connected to the foragekit MCP server (uvx foragekit serve --mcp). Paste this into your agent's instructions, or install it as a skill. It teaches the loop; the tools enforce the rules.

IlkhamFY/epistemic-foraging · 0 tokens

transformers

This skill should be used when working with pre-trained transformer models for natural language processing, computer vision, audio, or multimodal tasks. Use for text generation, classification, question answering, translation, summarization, image classification, object detection, speech recognition, and fine-tuning…

synthetic-sciences/openscience · 63 tokens