kansoku-trade/fred
US/global macro time series from St. Louis Fed FRED — CPI, GDP, Fed funds, yields, M2, DXY, etc.
npx skills add https://github.com/kansoku-trade/kansoku --skill fred
> Response language: match user input (zh-CN / zh-TW / en).
Trigger phrases:
aliases.json (curated), then search.py if no alias matches.series.py <SERIES_ID|alias> for observations + metadata.Environment is auto-loaded on script import from .env at project root (or ~/.config/market-intel/env as fallback) — no manual source needed.
# Latest 60 monthly CPI observations
python3 .claude/skills/fred/scripts/series.py CPI
# 2Y Treasury yield, last 30 daily observations
python3 .claude/skills/fred/scripts/series.py "2Y yield" --limit 30
# 10-year breakeven inflation, custom window, ascending
python3 .claude/skills/fred/scripts/series.py T10YIE --start 2024-01-01 --order asc
# Discover series IDs
python3 .claude/skills/fred/scripts/search.py "consumer price index" --limit 10
# Bypass cache
python3 .claude/skills/fred/scripts/series.py CPI --fresh
{
"ok": true,
"data": [{"date": "2026-04-01", "value": 314.2}, ...],
"meta": {
"series_id": "CPIAUCSL",
"title": "Consumer Price Index for All Urban Consumers: All Items",
"units": "Index 1982-1984=100",
"frequency": "Monthly",
"seasonal_adjustment": "SA",
"last_updated": "2026-05-13 07:36:01-05",
"count_returned": 60,
"alias_resolved": "CPI"
}
}
See aliases.json for the curated CN/EN → series ID map. Common ones:
| Alias | Series ID |
| ------------------------ | --------- |
| CPI | CPIAUCSL |
| core CPI / 核心 CPI | CPILFESL |
| PCE | PCEPI |
| GDP | GDPC1 |
| unemployment / 失业率 | UNRATE |
| nonfarm / 非农 | PAYEMS |
| Fed funds / 联储利率 | DFF |
| 10Y yield / 美债 10 年 | DGS10 |
| yield curve | T10Y2Y |
| DXY / 美元指数 | DTWEXBGS |
| M2 | M2SL |
| VIX | VIXCLS |
| 10Y breakeven / 通胀预期 | T10YIE |
If the user's phrase isn't in the map, fall back to search.py "<query>" and pick the highest-popularity non-discontinued result.
| Exit code | Meaning | LLM action |
| --------- | ---------------------- | ------------------------------------------------------------------------------------------------------------- |
| 0 | Success | Parse data, narrate. |
| 2 | Missing FRED_API_KEY | Tell user to register at https://fred.stlouisfed.org/docs/api/api_key.html and add to .env at project root. |
| 3 | HTTP 4xx or non-JSON | Surface error from hint. |
| 4 | Network | Suggest retry. |
.; we normalise to null).search.py — use --include-discontinued to override.--fresh for the latest.longbridge-quote for live equity quotes.gdelt for narrative / sentiment context.sec-edgar for individual-company filings.Take kansoku-trade/fred from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.