New to Claude Skills? Learn how to install them →

danielmiessler on GitHub

US Metrics

Free

Analyze US economic indicators from multiple sources.

Get this skill

Free · Opens the source repo

What US Metrics does

US Metrics is a powerful tool designed for developers and analysts who need to track and analyze key economic and social indicators in the United States. It aggregates data from five government APIs—FRED, EIA, Treasury, BLS, and Census—covering 68 different metrics across ten categories, including GDP, inflation, employment, and health. By automating the data collection process, US Metrics saves users from the tedious task of manually retrieving and normalizing data from disparate sources, allowing for a more efficient analysis of economic trends.

The skill operates through two primary workflows: UpdateData and GetCurrentState. UpdateData is responsible for fetching the latest values from the various APIs and updating the Substrate dataset. This ensures that users are always working with the most current data available. Once the data is updated, users can invoke GetCurrentState to generate a comprehensive overview of economic trends, including multi-timeframe analyses (10-year, 5-year, 2-year, and 1-year) and insights into cross-metric correlations and patterns.

This skill is particularly useful for economists, financial analysts, and researchers who need to assess economic conditions or present data-driven insights. By providing a consolidated view of key indicators, US Metrics helps users identify trends, anomalies, and correlations that might otherwise go unnoticed. The skill’s ability to generate research recommendations based on the analyzed data further enhances its utility for users seeking to understand the implications of economic changes.

In summary, US Metrics streamlines the process of economic analysis by centralizing data collection and providing robust analytical capabilities. It is an essential tool for anyone involved in economic research or data analysis who requires accurate, up-to-date information from multiple government sources.

When to use it

Use US Metrics when you need to analyze current US economic indicators or trends, especially if you require data from multiple sources like FRED and BLS.

When not to use it

This skill is not suitable for tasks outside of economic and social metric analysis, such as pathogen surveillance or unrelated data inquiries.

What you can build with it

Economic Overview for Reports

Generate a comprehensive economic overview for presentations or reports using the GetCurrentState workflow.

Trend Analysis for Research

Conduct multi-timeframe trend analysis to support research projects or economic forecasts.

Real-time Data Updates

Keep your economic datasets current by regularly using the UpdateData workflow to fetch live metrics.

How to install US Metrics

View source

1. Install with the skills CLI

npx skills add danielmiessler/lifeos/USMetrics --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by danielmiessler

Customization

Before executing, check for user customizations at: ~/.claude/LIFEOS/USER/CUSTOMIZATIONS/SKILLS/USMetrics/

If this directory exists, load and apply any PREFERENCES.md, configurations, or resources found there. These override default behavior. If the directory does not exist, proceed with skill defaults.

🚨 MANDATORY: Voice Notification (REQUIRED BEFORE ANY ACTION)

You MUST send this notification BEFORE doing anything else when this skill is invoked.

  1. Send voice notification:

    curl -s -X POST http://localhost:31337/notify \
      -H "Content-Type: application/json" \
      -d '{"message": "Running the WORKFLOWNAME workflow in the USMetrics skill to ACTION"}' \
      > /dev/null 2>&1 &
    
  2. Output text notification:

    Running the **WorkflowName** workflow in the **USMetrics** skill to ACTION...
    

This is not optional. Execute this curl command immediately upon skill invocation.

US Metrics - Economic & Social Indicator Analysis

What It Does

Pulls 68 US economic and social indicators from five government APIs (FRED, EIA, Treasury, BLS, Census) across 10 categories — GDP, Inflation, Employment, Housing, Consumer Finance, Markets, Trade, Government/Fiscal, Demographics, Health — and analyzes them. Two workflows: UpdateData fetches live values into the Substrate dataset; GetCurrentState produces a multi-timeframe (10y/5y/2y/1y) trend overview with cross-metric correlation, pattern detection, and research recommendations.

The Problem

The numbers that tell you how the economy is actually doing are scattered across five federal agencies, each with its own API, its own update cadence, and its own publication lag. Pulling "how is the economy?" together by hand means hitting FRED, EIA, Treasury, BLS, and Census separately, normalizing the results, and lining up trends across different timeframes — slow, error-prone, and easy to present stale or preliminary data as if it were final. This skill collects all 68 indicators into one dataset and reads the trends across four timeframes at once.

How It Works

It analyzes U.S. economic and social metrics using the Substrate US-Common-Metrics dataset and provides trend analysis, cross-metric correlation, pattern detection, and research recommendations. UpdateData must run first so the dataset is current; GetCurrentState then reads the dataset and computes the trends.

Data Source

All metrics sourced from:

  • Location: Configure your data directory path (e.g., ${LIFEOS_DIR}/data/US-Common-Metrics/)
  • Master Document: US-Common-Metrics.md (68 metrics across 10 categories)
  • Source Documentation: source.md (full methodology)
  • Underlying APIs: FRED, EIA, Treasury FiscalData, BLS, Census, CDC, EPA

Workflow Routing

When executing a workflow, output this notification directly:

Running the **WorkflowName** workflow in the **USMetrics** skill to ACTION...

Available Workflows

WorkflowTriggerFile
UpdateData"Update metrics", "refresh data", "pull latest", "update Substrate" — fetch live data from APIs and update Substrate datasetWorkflows/UpdateData.md
GetCurrentState"How is the economy?", "economic overview", "get current state", "US metrics analysis" — multi-timeframe trend overviewWorkflows/GetCurrentState.md

Workflows

UpdateData

Full documentation: Workflows/UpdateData.md

Purpose: Fetch live data from FRED, EIA, Treasury APIs and populate the Substrate US-Common-Metrics dataset files. This must run before GetCurrentState to ensure data is current.

Execution:

bun ${LIFEOS_SKILL_DIR}/Tools/UpdateSubstrateMetrics.ts

Outputs:

  • US-Common-Metrics.md - Updated with current values
  • us-metrics-current.csv - Machine-readable snapshot
  • us-metrics-historical.csv - Appended time series

Trigger phrases:

  • "Update the US metrics"
  • "Refresh the economic data"
  • "Pull latest metrics"
  • "Update Substrate dataset"

GetCurrentState

Full documentation: Workflows/GetCurrentState.md

Produces: A comprehensive overview document analyzing:

  • 10-year, 5-year, 2-year, and 1-year trends for all major metrics
  • Cross-category interplay analysis
  • Pattern detection and anomalies
  • Research recommendations

Trigger phrases:

  • "How is the US economy doing?"
  • "Give me an economic overview"
  • "What's the current state of US metrics?"
  • "Analyze economic trends"
  • "US metrics report"

Metric Categories Covered

  1. Economic Output & Growth - GDP, industrial production, retail sales
  2. Inflation & Prices - CPI, PCE, gas prices, oil prices
  3. Employment & Labor - Unemployment, payrolls, jobless claims, quit rate
  4. Housing - Home prices, mortgage rates, housing starts
  5. Consumer & Personal Finance - Sentiment, saving rate, credit
  6. Financial Markets - Interest rates, Treasury yields, volatility
  7. Trade & International - Trade balance, USD index
  8. Government & Fiscal - Federal debt, budget deficit, spending
  9. Demographics & Social - Population, inequality, poverty
  10. Health & Crisis - Deaths of despair, air quality, life expectancy

API Keys Required

For live data fetching:

  • FRED_API_KEY - Federal Reserve Economic Data
  • EIA_API_KEY - Energy Information Administration

Tools

ToolPurpose
Tools/UpdateSubstrateMetrics.tsPrimary - Fetch all metrics, update Substrate files
Tools/FetchFredSeries.tsFetch historical data from FRED API
Tools/GenerateAnalysis.tsGenerate analysis report from Substrate data

Examples

User: "How is the US economy doing? Give me a full analysis."

→ Invoke GetCurrentState workflow
→ Fetch current + historical data for all metrics
→ Calculate 10y/5y/2y/1y trends
→ Analyze cross-metric correlations
→ Identify patterns and anomalies
→ Generate research recommendations
→ Output comprehensive markdown report

Output Format

The GetCurrentState workflow produces a structured markdown document:

# US Economic State Analysis
**Generated:** [timestamp]
**Data Sources:** FRED, EIA, Treasury, BLS, Census

## Executive Summary
[Key findings in 3-5 bullets]

## Trend Analysis by Category
### Economic Output
[10y/5y/2y/1y trends with analysis]
...

## Cross-Metric Analysis
[Correlations, leading indicators, divergences]

## Pattern Detection
[Anomalies, regime changes, emerging trends]

## Research Recommendations
[Suggested areas for deeper investigation]

Gotchas

  • 68 indicators from 5 agencies (FRED, EIA, Treasury, BLS, Census). Each has its own API rate limits and data freshness.
  • Economic data has publication lag. GDP is quarterly with revisions. Jobs data is monthly. Don't present preliminary data as final.
  • Cross-metric correlation is suggestive, not causal. Never claim one metric caused another.

Execution Log

After completing any workflow, append a single JSONL entry:

echo '{"ts":"'$(date -u +%Y-%m-%dT%H:%M:%SZ)'","skill":"USMetrics","workflow":"WORKFLOW_USED","input":"8_WORD_SUMMARY","status":"ok|error","duration_s":SECONDS}' >> ~/.claude/LIFEOS/MEMORY/SKILLS/execution.jsonl

Replace WORKFLOW_USED with the workflow executed, 8_WORD_SUMMARY with a brief input description, and SECONDS with approximate wall-clock time. Log status: "error" if the workflow failed.

Frequently asked questions about US Metrics

Similar skills