plugins/r-econ-data/skills/get-econ-data/SKILL.md
Provides useful economic data sources and ways to retrieve the data. Use when user asks for "prices", "inflation", "employment", "unemployment", "inequality", "productivity", "poverty", "CPS", "Census", "BLS", "BEA", "FRED", "IPUMS", "SWADL", "State of Working America Data Library".
npx skillsauth add Economic/epi-skills get-econ-dataInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Useful economic data sources and ways to retrieve the data.
Outcomes: NIPA, GDP, PCE, consumption, investment, spending, trade
Geography: national, state, local areas
Access: API access with R package epidatatools. User-facing website at https://bea.gov.
Outcomes: wages, wage percentiles, pay versus productivity, wage disparities, prices, minimum wages, population shares, unions, unemployment, employment.
Geography: national, state
Data sources: ACS, BLS, CPS, BLS, BEA, EPI, NIPA, SSA
Access:
swadlr.More information: references/swadl.md.
Outcomes: Employment, unemployment, labor market participation, wages, productivity
Geography: national, state, local areas
Data sources: BLS, CPI, CPS, LAUS, OEWS
Access:
get_bls() and find_bls() from the R package epidatatools. Requires API key fromMore information: references/bls.md.
Common CPI- and PCE-based indexes are available in the R package realtalk.
More information: references/inflation.md.
The BLS, FRED, and BEA provide very extensive time series data on the US economy. Most of these data are available via public APIs, and the R package epidatatools has functions to help you find and retrieve the data:
get_bls, find_blsget_bea_nipa, get_bea_regionalget_fred, find_fredThe Federal Reserve Bank of St. Louis maintains FRED: an enormous
Use epidatatools or fredr R packages to access FRED: https://fred.stlouisfed.org/.
Use the tidycensus R package to access the Census API.
One can often use the aggregated data from the sources above, for say an analysis of how Black unemployment rates vary over time nationally or by state. But sometimes aggregated information is unavailable or inadequate. In that case, consider individual-level data, sometimes called microdata.
This should be your first stop for analysis using Current Population Survey microdata, especially using data on hourly wages. Try local copies of the EPI CPS extracts, using the R package epiextractr and its functions load_basic and load_org.
The EPI CPS variables are documented at https://microdata.epi.org.
More information: references/epiextracts.md.
The IPUMS microdata extracts are a useful secondary source, and contain more variables and data sources than the EPI CPS extracts, but be aware that IPUMS contains fewer consistent codes across time. You can download them via their microdata API with the associated functions in the epidatatools package or the ipumsr package.
More information: references/ipums.md.
tools
--- name: research-remote-code description: Techniques for retrieving and investigating remote codebases and their documentation. Use when user provides a GitHub/GitLab URL to look at, asks to follow conventions from a remote repo, asks "how does package/library X implement/handle Y", or references any external repository's code, structure, or patterns. Examples: "follow the conventions in https://github.com/...", "look at how repo X does Y", "check this GitHub link". --- ## Accessing code from
testing
Common ways to validate or benchmark data analysis estimates using external sources. Use to confirm or test the plausibility of results from an economic analysis.
testing
Methods for calculating statistics and estimates using economic data. Use when user asks to calculate or estimate quantities like percentiles, means, medians, shares, counts, or regression coefficients or regression-adjusted statistics.
development
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.