Customization
Before executing, check for user customizations at:
${PAI_USER_DIR}/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.
- 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
Purpose: Analyze U.S. economic and social metrics using the Substrate US-Common-Metrics dataset. Provides trend analysis, cross-metric correlation, pattern detection, and research recommendations.
Data Source
All metrics sourced from:
- Location: Configure your data directory path (e.g.,
${PAI_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 |
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 ${CLAUDE_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
- 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/UpdateSubstrateMetrics.ts |
Primary - Fetch all metrics, update Substrate files |
Tools/FetchFredSeries.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 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]
1---2name: usmetrics3description: 68 US economic indicators from FRED, EIA, Treasury, BLS, Census APIs with trend analysis and cross-metric correlation. Updates Substrate dataset, produces economic overviews. USE WHEN GDP, inflation, unemployment, economic metrics, gas prices, how is the economy, update data, refresh data, get current state, economic overview, FRED, fetch FRED series, generate analysis, update substrate metrics, US metrics, economic trends.4---56## Customization78**Before executing, check for user customizations at:**9`${PAI_USER_DIR}/SKILLCUSTOMIZATIONS/USMetrics/`1011If 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.121314<!-- ## 🚨 MANDATORY: Voice Notification (REQUIRED BEFORE ANY ACTION)1516**You MUST send this notification BEFORE doing anything else when this skill is invoked.**17181. **Send voice notification**:19 ```bash20 curl -s -X POST http://localhost:8888/notify \21 -H "Content-Type: application/json" \22 -d '{"message": "Running the WORKFLOWNAME workflow in the USMetrics skill to ACTION"}' \23 > /dev/null 2>&1 &24 ```25-->26272. **Output text notification**:28 ```29 Running the **WorkflowName** workflow in the **USMetrics** skill to ACTION...30 ```3132**This is not optional. Execute this curl command immediately upon skill invocation.**3334# US Metrics - Economic & Social Indicator Analysis3536**Purpose:** Analyze U.S. economic and social metrics using the Substrate US-Common-Metrics dataset. Provides trend analysis, cross-metric correlation, pattern detection, and research recommendations.3738## Data Source3940All metrics sourced from:41- **Location:** Configure your data directory path (e.g., `${PAI_DIR}/data/US-Common-Metrics/`)42- **Master Document:** `US-Common-Metrics.md` (68 metrics across 10 categories)43- **Source Documentation:** `source.md` (full methodology)44- **Underlying APIs:** FRED, EIA, Treasury FiscalData, BLS, Census, CDC, EPA454647## Workflow Routing4849**When executing a workflow, output this notification directly:**5051```52Running the **WorkflowName** workflow in the **USMetrics** skill to ACTION...53```5455### Available Workflows5657| Workflow | Description | Use When |58|----------|-------------|----------|59| **UpdateData** | Fetch live data from APIs and update Substrate dataset | "Update metrics", "refresh data", "pull latest", "update Substrate" |60| **GetCurrentState** | Comprehensive economic overview with multi-timeframe trend analysis | "How is the economy?", "economic overview", "get current state", "US metrics analysis" |6162## Workflows6364### UpdateData6566**Full documentation:** `Workflows/UpdateData.md`6768**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.6970**Execution:**71```bash72bun ${CLAUDE_SKILL_DIR}/Tools/UpdateSubstrateMetrics.ts73```7475**Outputs:**76- `US-Common-Metrics.md` - Updated with current values77- `us-metrics-current.csv` - Machine-readable snapshot78- `us-metrics-historical.csv` - Appended time series7980**Trigger phrases:**81- "Update the US metrics"82- "Refresh the economic data"83- "Pull latest metrics"84- "Update Substrate dataset"8586---8788### GetCurrentState8990**Full documentation:** `Workflows/GetCurrentState.md`9192**Produces:** A comprehensive overview document analyzing:93- 10-year, 5-year, 2-year, and 1-year trends for all major metrics94- Cross-category interplay analysis95- Pattern detection and anomalies96- Research recommendations9798**Trigger phrases:**99- "How is the US economy doing?"100- "Give me an economic overview"101- "What's the current state of US metrics?"102- "Analyze economic trends"103- "US metrics report"104105## Metric Categories Covered1061071. **Economic Output & Growth** - GDP, industrial production, retail sales1082. **Inflation & Prices** - CPI, PCE, gas prices, oil prices1093. **Employment & Labor** - Unemployment, payrolls, jobless claims, quit rate1104. **Housing** - Home prices, mortgage rates, housing starts1115. **Consumer & Personal Finance** - Sentiment, saving rate, credit1126. **Financial Markets** - Interest rates, Treasury yields, volatility1137. **Trade & International** - Trade balance, USD index1148. **Government & Fiscal** - Federal debt, budget deficit, spending1159. **Demographics & Social** - Population, inequality, poverty11610. **Health & Crisis** - Deaths of despair, air quality, life expectancy117118## API Keys Required119120For live data fetching:121- `FRED_API_KEY` - Federal Reserve Economic Data122- `EIA_API_KEY` - Energy Information Administration123124## Tools125126| Tool | Purpose |127|------|---------|128| `Tools/UpdateSubstrateMetrics.ts` | **Primary** - Fetch all metrics, update Substrate files |129| `Tools/FetchFredSeries.ts` | Fetch historical data from FRED API |130| `Tools/GenerateAnalysis.ts` | Generate analysis report from Substrate data |131132## Example Usage133134```135User: "How is the US economy doing? Give me a full analysis."136137→ Invoke GetCurrentState workflow138→ Fetch current + historical data for all metrics139→ Calculate 10y/5y/2y/1y trends140→ Analyze cross-metric correlations141→ Identify patterns and anomalies142→ Generate research recommendations143→ Output comprehensive markdown report144```145146## Output Format147148The GetCurrentState workflow produces a structured markdown document:149150```markdown151# US Economic State Analysis152**Generated:** [timestamp]153**Data Sources:** FRED, EIA, Treasury, BLS, Census154155## Executive Summary156[Key findings in 3-5 bullets]157158## Trend Analysis by Category159### Economic Output160[10y/5y/2y/1y trends with analysis]161...162163## Cross-Metric Analysis164[Correlations, leading indicators, divergences]165166## Pattern Detection167[Anomalies, regime changes, emerging trends]168169## Research Recommendations170[Suggested areas for deeper investigation]171```