Skip to content
Productivity
Skill

/USMetrics

Analyze and update 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. Two workflows: UpdateData,

From plugin
lifeos
19k56 skills8 agents7 commands
Install
$ npx -y skills add danielmiessler/personal_ai_infrastructure --skill USMetrics --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/USMetrics

Context preview

The summary Claude sees to decide when to auto-load this skill.

Analyze and update 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. Two workflows: UpdateData,

SKILL.md

USMetrics.SKILL.md
name: USMetrics
version: 1.0.20
description: "Analyze and update 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. Two workflows: UpdateData, GetCurrentState (10y/5y/2y/1y trend analysis). USE WHEN GDP, inflation, unemployment, economic metrics, gas prices, how is the economy, refresh data, FRED, US metrics, economic trends. NOT FOR pathogen surveillance."

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

| Workflow | Trigger | File | |----------|---------|------| | **UpdateData** | "Update metrics", "refresh data", "pull latest", "update Substrate" — fetch live data from APIs and update Substrate dataset | `Workflows/UpdateData.md` | | **GetCurrentState** | "How is the economy?", "economic overview", "get current state", "US metrics analysis" — multi-timeframe trend overview | `Workflows/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

| Tool | Purpose | |------|-------

Read more
Ships withlifeos

⛰️ The Life Operating System — an intent engineering platform that moves you from your current state to your ideal state, in life and work.

Get the whole plugin

Other skills on lifeos.