美国经济指标分析_usmetrics

📅 2026/7/24 22:08:18
美国经济指标分析_usmetrics
以下为本文档的中文说明该技能提供对美国68项经济和社会指标的全面分析与更新能力数据来源涵盖FRED、EIA、财政部FiscalData、BLS和人口普查局等五个政府API。功能分为两大工作流UpdateData流程从各API实时获取最新数据更新本地数据集US-Common-Metrics.md、us-metrics-current.csv、us-metrics-historical.csvGetCurrentState流程进行多时间维度10年/5年/2年/1年的趋势分析、跨类别相关性分析、模式与异常检测。68项指标分布在十个类别经济产出与增长GDP、工业生产、零售销售、通胀与价格CPI、PCE、汽油、石油、就业与劳动失业率、薪资、失业金申请、离职率、住房房价、房贷利率、新房开工、消费者与个人金融消费者信心、储蓄率、信贷、金融市场利率、国债收益率、波动率、贸易与国际贸易余额、美元指数、政府与财政联邦债务、赤字、支出、人口与社会人口、贫富差距、贫困率、健康与危机绝望死亡、空气质量、预期寿命。核心特点在于数据源的权威性和类别的全面性覆盖了经济分析所需的大部分关键指标。核心原则是’数据驱动分析’——所有趋势判断和模式识别都基于实际数据而非直觉提供量化的分析结果。该技能特别适合经济研究者、投资分析师、政策制定者和数据新闻工作者使用可以快速获取美国经济的全景式快照和深度洞察。US Metrics - Economic Social Indicator AnalysisPurpose: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 SourceAll 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, EPAWorkflow RoutingWhen executing a workflow, output this notification directly:Running the **WorkflowName** workflow in the **USMetrics** skill to ACTION...Available WorkflowsWorkflowDescriptionUse WhenUpdateDataFetch live data from APIs and update Substrate dataset“Update metrics”, “refresh data”, “pull latest”, “update Substrate”GetCurrentStateComprehensive economic overview with multi-timeframe trend analysis“How is the economy?”, “economic overview”, “get current state”, “US metrics analysis”WorkflowsUpdateDataFull documentation:Workflows/UpdateData.mdPurpose: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.tsOutputs:US-Common-Metrics.md- Updated with current valuesus-metrics-current.csv- Machine-readable snapshotus-metrics-historical.csv- Appended time seriesTrigger phrases:“Update the US metrics”“Refresh the economic data”“Pull latest metrics”“Update Substrate dataset”GetCurrentStateFull documentation:Workflows/GetCurrentState.mdProduces:A comprehensive overview document analyzing:10-year, 5-year, 2-year, and 1-year trends for all major metricsCross-category interplay analysisPattern detection and anomaliesResearch recommendationsTrigger 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 CoveredEconomic Output Growth- GDP, industrial production, retail salesInflation Prices- CPI, PCE, gas prices, oil pricesEmployment Labor- Unemployment, payrolls, jobless claims, quit rateHousing- Home prices, mortgage rates, housing startsConsumer Personal Finance- Sentiment, saving rate, creditFinancial Markets- Interest rates, Treasury yields, volatilityTrade International- Trade balance, USD indexGovernment Fiscal- Federal debt, budget deficit, spendingDemographics Social- Population, inequality, povertyHealth Crisis- Deaths of despair, air quality, life expectancyAPI Keys RequiredFor live data fetching:FRED_API_KE Y- Federal Reserve Economic DataEIA_API_KEY- Energy Information AdministrationToolsToolPurposetools/UpdateSubstrateMetrics.tsPrimary- Fetch all metrics, update Substrate filesTools/FetchFredSeries.tsFetch historical data from FRED APItools/GenerateAnalysis.tsGenerate analysis report from Substrate dataExample UsageUser: 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 reportOutput FormatThe 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]Gotchas68 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 LogAfter 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/PAI/MEMORY/SKILLS/execution.jsonlReplaceWORKFLOW_USEDwith the workflow executed,8_WORD_SUMMARYwith a brief input description, andSECONDSwith approximate wall-clock time. Logstatus: errorif the workflow failed.4f:T596,Analyze and update 68 US economic and social indicators from five government APIs: FRED, EIA, Treasury FiscalData, BLS, Census. Ten categories: Economic Output Growth (GDP, industrial production, retail sales), Inflation Prices (CPI, PCE, gas, oil), Employment Labor (unemployment, payrolls, jobless claims, quit rate), Housing (home prices, mortgage rates, 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, deficit, spending), Demographics Social (population, inequality, poverty), Health Crisis (deaths of despair, air quality, life expectancy). Two workflows: UpdateData (fetch live data via FRED_API_KEY and EIA_API_KEY, update US-Common-Metrics.md, us-metrics-current.csv, us-metrics-historical.csv in Substrate dataset), GetCurrentState (10y/5y/2y/1y multi-timeframe trend analysis, cross-category correlation, pattern/anomaly detection, research recommendations as structured markdown report). 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. NOT FOR state-level pathogen wastewater surveillance (use a dedicated surveillance data skill).3d:[“,,,L4d”,null,{“content”:“$4e”,“frontMatter”:{“name”:“USMetrics”,“description”:“$4f”,“effort”:“medium”}}]