USMetrics - US Metrics and Data Tracking
Category for skills that track and analyze US-specific metrics and data.
Skills in This Category
| Skill |
Purpose |
Trigger |
| USMetrics |
US-specific metrics, economic indicators and data tracking |
"US metrics", "American data", "statistics", "GDP", "inflation", "unemployment", "economic metrics", "gas prices", "demographics" |
When to Use
- Tracking US-specific metrics and statistics
- Analyzing American demographic data
- Monitoring US trends and indicators
- Economic analysis (GDP, inflation, unemployment)
Category Philosophy
USMetrics provides focused tracking for US-specific data points and trends.
Customization
MANDATORY: Before executing, check for user customizations at:
~/.opencode/PAI/USER/SKILLCUSTOMIZATIONS/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.
Send voice notification:
curl -s -X POST http://localhost:8888/notify \
-H "Content-Type: application/json" \
-d '{"message": "Running the WORKFLOWNAME workflow in the USMetrics skill to ACTION"}' \
> /dev/null 2>&1 &
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.
OPTIONAL: Additional Setup
- Configure data directory path in
Preferences.md
- Set API keys in environment variables
Workflow Routing
When executing a workflow, output this notification directly:
Running the **WorkflowName** workflow in the **USMetrics** skill to ACTION...
Available Workflows
| Workflow |
Description |
Use When |
| UpdateData |
Fetch live data from APIs and update Substrate dataset |
"Update metrics", "refresh data", "pull latest", "update Substrate" |
| GetCurrentState |
Comprehensive economic overview with multi-timeframe trend analysis |
"How is the economy?", "economic overview", "get current state", "US metrics analysis" |
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 ~/.opencode/skills/USMetrics/Tools/update-substrate-metrics.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
- Economic Output & Growth - GDP, industrial production, retail sales
- Inflation & Prices - CPI, PCE, gas prices, oil prices
- Employment & Labor - Unemployment, payrolls, jobless claims, quit rate
- Housing - Home prices, mortgage rates, housing starts
- Consumer & Personal Finance - Sentiment, saving rate, credit
- Financial Markets - Interest rates, Treasury yields, volatility
- Trade & International - Trade balance, USD index
- Government & Fiscal - Federal debt, budget deficit, spending
- Demographics & Social - Population, inequality, poverty
- 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 |
Tools/update-substrate-metrics.ts |
Primary - Fetch all metrics, update Substrate files |
Tools/fetch-fred-series.ts |
Fetch historical data from FRED API |
Tools/GenerateAnalysis.ts |
Generate analysis report from Substrate data |
Example Usage
User: "How is the US economy doing? Give me a full analysis."
→ Invoke UpdateData workflow (fetch latest data from APIs)
→ Invoke GetCurrentState workflow
→ 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]
1---2name: usmetrics3description: US metrics, economic indicators and data tracking. USE WHEN US metrics, American data, statistics, demographics, GDP, inflation, unemployment, economic metrics, gas prices.4---56# USMetrics - US Metrics and Data Tracking78**Category for skills that track and analyze US-specific metrics and data.**910## Skills in This Category1112| Skill | Purpose | Trigger |13|-------|---------|---------|14| **USMetrics** | US-specific metrics, economic indicators and data tracking | "US metrics", "American data", "statistics", "GDP", "inflation", "unemployment", "economic metrics", "gas prices", "demographics" |1516## When to Use1718- Tracking US-specific metrics and statistics19- Analyzing American demographic data20- Monitoring US trends and indicators21- Economic analysis (GDP, inflation, unemployment)2223## Category Philosophy2425USMetrics provides focused tracking for US-specific data points and trends.2627## Customization2829**MANDATORY:** Before executing, check for user customizations at:30`~/.opencode/PAI/USER/SKILLCUSTOMIZATIONS/USMetrics/`3132If 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.3334## 🚨 MANDATORY: Voice Notification (REQUIRED BEFORE ANY ACTION)3536**You MUST send this notification BEFORE doing anything else when this skill is invoked.**37381. **Send voice notification**:39 ```bash40 curl -s -X POST http://localhost:8888/notify \41 -H "Content-Type: application/json" \42 -d '{"message": "Running the WORKFLOWNAME workflow in the USMetrics skill to ACTION"}' \43 > /dev/null 2>&1 &44 ```45462. **Output text notification**:47 ```text48 Running the **WorkflowName** workflow in the **USMetrics** skill to ACTION...49 ```5051**This is not optional. Execute this curl command immediately upon skill invocation.**5253## OPTIONAL: Additional Setup5455- Configure data directory path in `Preferences.md`56- Set API keys in environment variables5758## Workflow Routing5960**When executing a workflow, output this notification directly:**6162```text63Running the **WorkflowName** workflow in the **USMetrics** skill to ACTION...64```6566### Available Workflows6768| Workflow | Description | Use When |69|----------|-------------|----------|70| **UpdateData** | Fetch live data from APIs and update Substrate dataset | "Update metrics", "refresh data", "pull latest", "update Substrate" |71| **GetCurrentState** | Comprehensive economic overview with multi-timeframe trend analysis | "How is the economy?", "economic overview", "get current state", "US metrics analysis" |7273## Workflows7475### UpdateData7677**Full documentation:** `Workflows/UpdateData.md`7879**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.8081**Execution:**82```bash83bun ~/.opencode/skills/USMetrics/Tools/update-substrate-metrics.ts84```8586**Outputs:**87- `US-Common-Metrics.md` - Updated with current values88- `us-metrics-current.csv` - Machine-readable snapshot89- `us-metrics-historical.csv` - Appended time series9091**Trigger phrases:**92- "Update the US metrics"93- "Refresh the economic data"94- "Pull latest metrics"95- "Update Substrate dataset"9697---9899### GetCurrentState100101**Full documentation:** `Workflows/GetCurrentState.md`102103**Produces:** A comprehensive overview document analyzing:104- 10-year, 5-year, 2-year, and 1-year trends for all major metrics105- Cross-category interplay analysis106- Pattern detection and anomalies107- Research recommendations108109**Trigger phrases:**110- "How is the US economy doing?"111- "Give me an economic overview"112- "What's the current state of US metrics?"113- "Analyze economic trends"114- "US metrics report"115116## Metric Categories Covered1171181. **Economic Output & Growth** - GDP, industrial production, retail sales1192. **Inflation & Prices** - CPI, PCE, gas prices, oil prices1203. **Employment & Labor** - Unemployment, payrolls, jobless claims, quit rate1214. **Housing** - Home prices, mortgage rates, housing starts1225. **Consumer & Personal Finance** - Sentiment, saving rate, credit1236. **Financial Markets** - Interest rates, Treasury yields, volatility1247. **Trade & International** - Trade balance, USD index1258. **Government & Fiscal** - Federal debt, budget deficit, spending1269. **Demographics & Social** - Population, inequality, poverty12710. **Health & Crisis** - Deaths of despair, air quality, life expectancy128129## API Keys Required130131For live data fetching:132- `FRED_API_KEY` - Federal Reserve Economic Data133- `EIA_API_KEY` - Energy Information Administration134135## Tools136137| Tool | Purpose |138|------|---------|139| `Tools/update-substrate-metrics.ts` | **Primary** - Fetch all metrics, update Substrate files |140| `Tools/fetch-fred-series.ts` | Fetch historical data from FRED API |141| `Tools/GenerateAnalysis.ts` | Generate analysis report from Substrate data |142143## Example Usage144145```text146User: "How is the US economy doing? Give me a full analysis."147148→ Invoke UpdateData workflow (fetch latest data from APIs)149→ Invoke GetCurrentState workflow150→ Calculate 10y/5y/2y/1y trends151→ Analyze cross-metric correlations152→ Identify patterns and anomalies153→ Generate research recommendations154→ Output comprehensive markdown report155```156157## Output Format158159The GetCurrentState workflow produces a structured markdown document:160161```markdown162# US Economic State Analysis163**Generated:** [timestamp]164**Data Sources:** FRED, EIA, Treasury, BLS, Census165166## Executive Summary167[Key findings in 3-5 bullets]168169## Trend Analysis by Category170### Economic Output171[10y/5y/2y/1y trends with analysis]172...173174## Cross-Metric Analysis175[Correlations, leading indicators, divergences]176177## Pattern Detection178[Anomalies, regime changes, emerging trends]179180## Research Recommendations181[Suggested areas for deeper investigation]182```