skills/fred-macro/SKILL.md
Fetches structured macro-economic data from FRED (Federal Reserve Economic Data) for 13 key series covering rates, inflation, employment, credit spreads, and financial stress. Produces a regime snapshot (label, confidence, macro_scores, sector_rotation, change_velocity) consumed by investment_protocol Phase 0, macro-regime-detector, and news-protocol macro context. Use when needing timely, authoritative macro inputs without relying on WebSearch or FMP (which has daily quota). Requires free FRED_API_KEY env var.
npx skillsauth add kavi-lin/stock fred-macroInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Pulls 12 key US economic series from FRED (Federal Reserve Economic Data) and derives a regime snapshot. FRED is free (120 req/min, effectively unlimited daily) and authoritative — no LLM hallucination risk vs WebSearch.
FRED_API_KEY env var — register free at https://fred.stlouisfed.org/docs/api/api_key.htmlrequests (already installed)python3 skills/fred-macro/scripts/fetch.py # 12 default series, 15-min cache
python3 skills/fred-macro/scripts/fetch.py --json-only # machine-readable only
python3 skills/fred-macro/scripts/fetch.py --no-cache # force refetch
python3 skills/fred-macro/scripts/fetch.py --series DGS10,T10Y2Y # custom subset
| Category | Series ID | Description |
|---|---|---|
| Rates | DGS10 / DGS2 / T10Y2Y / DFF | 10Y / 2Y Treasury, yield curve, Fed Funds |
| Inflation | CPIAUCSL / CPILFESL / PCEPILFE | CPI, Core CPI, Core PCE (Fed's preferred) |
| Employment | UNRATE / PAYEMS / ICSA | Unemployment, Nonfarm payrolls, Initial claims |
| Credit | BAMLH0A0HYM2 | High-yield bond spread (credit stress proxy) |
| Stress | NFCI | Chicago Fed Financial Conditions Index |
| Commodity | DCOILWTICO | WTI crude oil |
Per-series:
DGS10, DGS2, T10Y2Y, DFF, BAMLH0A0HYM2): {value, date, delta_bps_1m, delta_bps_3m, delta_bps_1y, percentile_1y, trend_30d, trend_90d}{value, date, yoy_change_pct, mom_change_pct, percentile_1y, trend_30d, trend_90d}Derived regime_signals:
yield_curve_inverted — T10Y2Y < 0 (recession leading indicator)yield_curve_steep — T10Y2Y > 1.0 (early recovery)credit_stress_elevated — BAMLH0A0HYM2 above 1-year 75th percentilefinancial_stress_above_avg — NFCI > 0 (tightening conditions)fed_rate_direction — DFF 3-month delta: rising / falling / flatreal_rate_estimate — DGS10 − CPI YoY (rough real rate)Enhanced fields (v1.1.0):
macro_scores — {rates, inflation, employment, credit, financial_conditions, composite} (0–100)regime_label — one of 9 regime strings (Goldilocks / Soft Landing / Reflation / Easing Cycle / Overheating / Late Cycle Tightening / Stagflation / Recession Risk / Transitional)regime_confidence — float 0.20–0.95, signal agreement scoremarket_implications — list of human-readable implication stringschange_velocity — per-series {trend_30d, mom_change_pct, monthly_baseline, velocity}sector_rotation — {regime, favor: [...], avoid: [...], rationale}15-minute TTL at skills/fred-macro/cache/fred_latest.json. Most FRED series update daily or slower, so cache hits are safe.
investment_protocol_v4_8.md Phase 0 — macro contextmacro-regime-detector — replace ETF-ratio proxies with official datanews_protocol_v2.md Phase 3 — news catalyst cross-referencedevelopment
# earnings-analyst — 個股財報深度分析 > **Trigger**: `財報 [TICKER]` > **Version**: V1.0 > **Data Source**: FMP HTTP REST(`$FMP_API_KEY`) ## 目的 針對單一個股產出**深度財報分析報告**(逐季趨勢、品質指標、估值、分析師共識),涵蓋 sector V1.4 與 `分析 [TICKER]` 既有 protocol **沒有**的「財報層級」深潛內容。 ## 與既有 skill 的差異 | Skill | 重點 | 觸發 | |---|---|---| | `us-stock-analysis` | 估值/技術/情緒 snapshot(yfinance + FMP partial) | Phase 2 fundamentals lane | | `earnings-valuation-forecaster` | 12M 目標價 3×3 敏感度 | ad-hoc / earnings 前 14 天 | | `earnings-trade-analyzer` |
testing
Daily Top N hot themes × Top M short-term movers per theme. Combines theme-detector heat scoring (medium-term) with short-term-target predictions (1d/5d/15d) into a "Tactical Opportunity Radar" recommendation log. Tags concentration WARNING when ≥2 picks share theme. Records FRED + market regime snapshot at recommendation time for future backtest cross-tabs. Standalone — not auto-wired into investment_protocol. Use for daily watchlist refresh / Dashboard推薦面板feed / batch screening across hot themes.
testing
Short-term (1d / 5d / 15d) directional projection for a US stock — "Tactical Opportunity Radar". Outputs target range + confidence breakdown + benchmark-relative alpha + trading meta (stop / position size hint / exit trigger). Each horizon uses independent weights from config/weights.yaml. Refuses to project when source data is stale (returns insufficient_data with reasons). Hard-clamped to prevent cold-start absurd predictions. Use when caller wants short-term directional bias on a specific ticker, NOT for long-term valuation (use earnings-valuation-forecaster for 12-month). Standalone — not auto-wired into investment_protocol.
tools
Shared Finnhub API client used by other skills. Provides rate-limited (60/min), cached, retry-aware access to 17 Finnhub endpoints covering quotes, OHLCV, fundamentals, earnings calendar, earnings surprises, insider transactions, recommendation history, price targets, upgrades/downgrades, dividends, splits, IPOs, and SEC filings. Also exports adapters that normalize Finnhub raw responses into FMP-compatible shapes so that downstream code can swap providers without changing call sites. Use when another skill needs Finnhub data or when building a unified provider layer.