跳到正文
cccskills
免费在 GitHub 公开中文介绍

USStats

查询美国犯罪、工资等领域的长期统计,也可查看政府来源的最新经济指标。按多个时期比较变化、检查数据时效,并结合来源信息查看指标间的相关性。

原文查看原文说明

Query the configured long-run US almanac (90+ annual series on economy, debt, cost of living, health, crime, family, trust, energy, many back to the 1940s: trends, verdicts, movers, correlations, freshness vs source datasets), and pull 66 current indicators from FRED, EIA and Treasury into the local US-Common-Metrics dataset for a 10y/5y/2y/1y read of the economy now. USE WHEN usstats, US stats, US indicators, long-run US trends, is X getting better or worse in America, US crime trend, wage trend, inflation history, correlate US indicators, compare decades, is the usstats data fresh, how is the economy, economic overview, economic metrics, economic trends, GDP, inflation, unemployment, gas prices, mortgage rates, FRED, US metrics, refresh data, refresh the economic data, refresh US-Common-Metrics. NOT FOR pathogen surveillance, personal finances or investments, rebuilding or publishing the almanac site itself, refreshing our data sites (DataRefresh).

danielmiessler/LifeOS星标 19,635(GitHub 19,635 + cccskills 0)

实测评分 未实测

查看安装方法

适用场景

  • 查看美国犯罪或工资的长期变化
  • 按年代比较多个经济指标
  • 分多个时期了解美国经济
  • 核对数据是否跟上公开来源

中文介绍

功能

查询美国经济、物价、健康、犯罪、家庭、信任和能源等领域的长期统计。许多年度数据可追溯到20世纪40年代。您可以查看指标是改善还是恶化、某段时期内出现了哪些显著变化,也可以考察不同指标之间的相关性。查看当前经济状况时,本技能使用FRED、EIA和美国财政部的数据,按10年、5年、2年和1年等时间范围整理GDP、就业、住房、物价和财政等指标。它还可以获取最新数据以更新本地指标数据集,或核对已保存的数据是否跟上了公开数据源。

适用场景

想了解美国犯罪或工资的长期变化、比较不同时期的指标,或从多个时间范围掌握美国经济状况时,可以使用本技能。它也适合查看指标之间的关系,以及确认已保存的数据是否已更新至公开来源的最新进度。

使用示例

  • “美国犯罪率长期以来有所改善吗?”
  • “自2005年以来,哪些美国指标明显改善了?”
  • “获取最新经济数据并分析当前经济状况。”

注意事项

长期统计数据源需要配置URL。获取最新指标需要FRED和EIA的API密钥。年内数据会与全年数据区分;发布时间延迟、数据修订和调查方法变化都可能影响比较。相关性不能证明因果关系。本技能不用于个人投资决策、疾病监测,也不用于重建或发布统计网站。

本介绍由 AI(OpenAI Codex)根据公开的 SKILL.md 撰写。准确的规格请查看下方原文。

文档检查

AI 根据 SKILL.md 的内容检查了需要注意的操作和使用前提。评分只依据实际运行的结果(实测对比)。

安全性发送数据、删除文件、执行命令等是否有说明
B部分不足会更新本地数据集,并提示年内数据和数据修订。
安装难易度所需工具和 API 密钥是否少且有说明
B部分不足需要来源网址及FRED、EIA密钥,但资料未提供详细设置步骤。

不计入评分。 由 AI(OpenAI Codex)于 2026年10月28日 评估。仅供参考,安装前请同时查看原文。

如果您认为评估有误,请申请复核

请写明哪一项有误以及原因。无需登录。我们会对照 SKILL.md 重新评估,并在此处更新结果。

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

包含的文件(14)

  • SKILL.md12.1 KB
  • Intents/Analyze.md1.6 KB
  • Intents/GetCurrentState.md6.2 KB
  • Intents/SyncCheck.md1.6 KB
  • Intents/UpdateData.md5.1 KB
  • Setup.md3.9 KB
  • Tools/FetchFredSeries.help.md1.1 KB
  • Tools/FetchFredSeries.ts12.5 KB
  • Tools/GenerateAnalysis.help.md990 B
  • Tools/GenerateAnalysis.ts21.1 KB
  • Tools/UpdateSubstrateMetrics.help.md1.6 KB
  • Tools/UpdateSubstrateMetrics.ts28.1 KB
  • Tools/UsStats.ts20.6 KB
  • Tools/UsStatsConfig.ts1.5 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

USStats

Contents: Ideal State · Intent Routing · Data Contract · Data & Config · Quick Reference · Gotchas · Examples

Query and analyze the annual US indicator dataset at the almanac endpoint named by data_url in the install config (<configRoot>/LIFEOS/USER/CUSTOMIZATIONS/SKILLS/USStats/Config.md) — read-only, keyless, no local repo dependencies. Every series carries publisher provenance (source, sourceUrl, note) and a goodDirection flag that lets the tool answer "better or worse?" deterministically.

It also reads the current US economy straight from the government APIs (ported from the retired USMetrics skill, 2026-10-10). The one count and source list for that side, read from the updater's METRICS config in Tools/UpdateSubstrateMetrics.ts on 2026-10-11: UpdateData fetches 66 indicators in 9 categories (Economic Output, Inflation, Employment, Housing, Consumer, Financial, Trade, Fiscal, Demographics) through three APIs, FRED (64 series, carrying BLS, BEA, Census, Fed and Treasury data), EIA (gas price) and Treasury FiscalData (total public debt), into the local US-Common-Metrics dataset (US-Common-Metrics.md, us-metrics-current.csv, us-metrics-historical.csv). The master document lists 68 metrics in 10 categories; its Health & Crisis rows (CDC WONDER, EPA AQS) have no fetcher and stay placeholders, and a master row the updater did not fetch is named, never silently counted. GetCurrentState produces a multi-timeframe (10y/5y/2y/1y) trend report with cross-metric analysis, pattern detection, and research recommendations from its own FRED and EIA fetch, so it does not depend on an UpdateData run. The almanac answers "over decades, annually"; the live side answers "right now, monthly and weekly".

Ideal State

  • Every answer about a US indicator rests on this session's tool output from the live dataset, names the publisher of each quoted series, and judges better or worse only through goodDirection.
  • Year-to-date values, methodology breaks in note, base effects behind large percentage moves and the correlation-is-not-causation caveat reach the reader whenever they touch the numbers quoted.
  • A freshness question gets a per-upstream fresh or stale verdict from a --fresh run, and nothing in the skill ever writes to the site or its upstream datasets.
  • Every live-economy number reported is current and carries its period and source, whether it came from GetCurrentState's own FRED and EIA fetch or from the dataset UpdateData refreshed, and preliminary or stale figures are labelled as such, never presented as final.
  • A "how is the economy" answer covers the report's eight categories across the four timeframes, names the categories it does not cover (Demographics, Health & Crisis), and ends with what deserves a closer look, without claiming that one metric caused another.
  • A failed source or missing key degrades the result visibly (the affected metrics named) instead of aborting it or hiding the gap.

Intent Routing

IntentTriggerFile
Analyze"US trend", "better or worse", "movers", "correlate", any indicator questionIntents/Analyze.md
SyncCheck"is the data fresh", "synced with the source datasets"Intents/SyncCheck.md
UpdateData"Update metrics", "refresh data", "pull latest", "refresh the US metrics": fetch live data from APIs and update the local US-Common-Metrics datasetIntents/UpdateData.md
GetCurrentState"How is the economy?", "economic overview", "get current state", "US metrics analysis", "economic metrics", "GDP", "inflation", "unemployment", "gas prices", "economic trends": multi-timeframe trend overview from live government dataIntents/GetCurrentState.md

References

FileRead when
Setup.mdfirst-time setup: FRED and EIA keys and seeding the US-Common-Metrics dataset folder

Data Contract

  • Endpoint: data_url in <configRoot>/LIFEOS/USER/CUSTOMIZATIONS/SKILLS/USStats/Config.md, or env USSTATS_DATA_URL (Tools/UsStatsConfig.ts; the tool stops naming the file and key when neither is set). CSV siblings are listed in _meta.siblings.
  • License: public-domain government and published survey data; cite the publisher in each series' source field
  • Schema: series[key] = { name, category, unit, coverage, goodDirection, partialYear, partialThrough, source, sourceUrl, historicalSourceUrls[], note, data{year: value} }

Data & Config

First-time setup (accounts, keys, files to fill in): Setup.md.

User customizations live at <configRoot>/LIFEOS/USER/CUSTOMIZATIONS/SKILLS/USStats/ (configRoot is $CLAUDE_CONFIG_DIR when set, else ~/.claude). When that directory exists, its PREFERENCES.md, configurations and resources apply and override the defaults here; when it is absent, the defaults stand.

The live dataset:

  • Location: $USMETRICS_DATA_DIR if set, otherwise ~/.claude/LIFEOS/USER/DATA/US-Common-Metrics/ (Tools/UpdateSubstrateMetrics.ts)
  • Master Document: US-Common-Metrics.md (counts and fetched sources in the purpose paragraph above)
  • Source Documentation: source.md (full methodology)
  • Underlying APIs: FRED, EIA and Treasury FiscalData are fetched; the master document's CDC and EPA rows are not
  • Seeding: the directory starts empty; copy the four files from the seed named by seed_source in <configRoot>/LIFEOS/USER/CUSTOMIZATIONS/SKILLS/USStats/Config.md before the first UpdateData run (the tool refuses an unseeded directory with that instruction).
  • Why local: the skill keeps its own dataset so it never depends on another system's storage; install-specific notes on any other copy of the same pull live in <configRoot>/LIFEOS/USER/CUSTOMIZATIONS/SKILLS/USStats/Config.md.

Metric Categories Covered

The master document's ten categories; the updater fetches the first nine.

  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/UsStats.tsQuery the configured long-run almanac (Analyze, SyncCheck)
Tools/UpdateSubstrateMetrics.tsPrimary live tool - Fetch all metrics, update the local dataset files
Tools/UsStatsConfig.tsRead the install config (data_url, site_name, seed_source)
Tools/FetchFredSeries.tsFetch historical data from FRED API
Tools/GenerateAnalysis.tsGenerate the analysis report from its own FRED and EIA fetch (reads no local file)

Quick Reference

bun ~/.claude/skills/USStats/Tools/UsStats.ts summary            # dataset shape
bun ~/.claude/skills/USStats/Tools/UsStats.ts search crime       # find series keys
bun ~/.claude/skills/USStats/Tools/UsStats.ts trend income       # direction-aware verdict
bun ~/.claude/skills/USStats/Tools/UsStats.ts movers --window 20 # biggest changes
bun ~/.claude/skills/USStats/Tools/UsStats.ts correlate debt gdpGrowth
bun ~/.claude/skills/USStats/Tools/UsStats.ts sync-check --fresh # vs upstream source of record

All commands take --json (machine output) and --fresh (bypass the 6h cache).

Gotchas

  • Partial years are YTD, not annual. A series' partialYear value (e.g. a July year-to-date figure) is excluded from all math and flagged ← YTD in output.
  • Percentage change is base-sensitive. Movers rank by percent change; a series moving off a tiny base (CPI inflation 0.1 → 2.8) posts a huge percentage. Sanity-check the absolute values shown next to the rank before quoting a headline number.
  • Read note before comparing across years. Several series have methodology breaks (survey redesigns, definition changes) disclosed in note; a naive 1970-vs-today comparison can cross one.
  • Correlation is not causation. correlate prints the warning and the live report's cross-metric patterns are suggestive only; keep the caveat in any analysis you hand over and never claim one metric caused another.
  • Each of the three fetched APIs (FRED, EIA, Treasury FiscalData) has its own rate limits and data freshness; the series FRED carries keep their originating agency's release lag.
  • Economic data has publication lag. GDP is quarterly with revisions. Jobs data is monthly. Don't present preliminary data as final.
  • A seed dataset can carry corrupted rows from an old string-replacer bug (dollar-led values read as $2 group patterns). UpdateSubstrateMetrics.ts now repairs widened rows and uses function replacers; its tests pin both.
  • Cache lives in the user cache dir (${XDG_CACHE_HOME:-~/.cache}/usstats-skill/, owner-only), never in the skill tree. Deleting it is always safe.

Examples

Example 1: "Is crime getting better or worse?"

User: "What's the long-run crime trend in the US?"
→ Analyze intent (search crime, then trend on each hit: violentCrime, propertyCrime, …)
→ Direction-aware verdicts with sources, YTD caveats surfaced

Example 2: "What's improved most in the last 20 years?"

User: "Biggest US improvements since 2005?"
→ Analyze intent (movers --window 20)
→ Improving/worsening lists, direction-aware, absolute values alongside

Example 3: Full analysis of the current economy

User: "How is the US economy doing? Give me a full analysis."
→ GetCurrentState intent (GenerateAnalysis.ts fetches its own history; no UpdateData run needed)
→ The US Economic State Analysis report GenerateAnalysis.ts writes (Intents/GetCurrentState.md § Output format), saved under MEMORY/RESEARCH

Example 4: Refresh only

User: "Pull the latest economic data"
→ UpdateData intent
→ The three dataset files refreshed, with any failed fetch or skipped source named

Example 5: "Does household debt track income?"

User: "Correlate median income with revolving debt"
→ Analyze intent (correlate income debt)
→ Pearson r, N, overlap window, causation caveat

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

AnnualReports

免费有简介

按类别或厂商查找并获取网络安全报告,比较威胁、勒索软件、数据泄露、云安全和AI趋势。分析会注明每项数据的厂商、年份及报告,并分别呈现来源间的分歧。

  • 按类别查找威胁报告
  • 获取指定厂商的报告
  • 比较多家厂商的勒索软件趋势
danielmiessler/LifeOS2万2026年10月28日 更新

ApertureOscillation

免费有简介

通过三轮分析,对比单个功能或组件的设计需求与整个系统的目标,梳理两者的冲突、合适的实现范围,以及方案是否符合整体方向。

  • 判断服务或库是否应拆分
  • 比较功能需求与产品方向
  • 检查新组件是否符合现有系统
danielmiessler/LifeOS2万2026年10月28日 更新

Aphorisms

免费有简介

按文章主题寻找格言或引文,按相关程度排序,并附上作者和推荐理由。可添加带出处的引文、按主题研究思想家的言论、整理使用记录,帮助避免重复引用。

  • 为新闻简报寻找引文
  • 保存有出处且不重复的引文
  • 按主题研究思想家的言论
danielmiessler/LifeOS2万2026年10月28日 更新

Art

免费有简介

按用途选择制作流程,生成博客插图、技术图解、比较图、漫画和图标等视觉内容,并输出供预览的图像。

  • 制作博客标题图
  • 解释系统结构
  • 展示比较或时间线
danielmiessler/LifeOS2万2026年10月28日 更新

ArtDirection

免费有简介

依据简报和制作标准评估图片、影片、幻灯片及网站页面截图,由视觉评审给出评分和缺陷优先级,支持有限轮次的修改;通过评审后才能交付,并可记录人工评分供后续校准。

  • 按优先级整理图片修改项
  • 依标准评估影片或幻灯片
  • 发布前检查视觉效果
danielmiessler/LifeOS2万2026年10月28日 更新

ArXiv

免费有简介

按主题、研究领域或论文编号查找 arXiv 论文,并整理标题、作者、摘要和链接;查看新投稿,也可在有内容时获取 AlphaXiv 的人工智能生成概述。

  • 查看人工智能和机器学习新论文
  • 查找特定主题的论文
  • 按论文编号或 arXiv 网址查询
danielmiessler/LifeOS2万2026年10月28日 更新

查看 danielmiessler 的全部技能

报告此技能的问题