← 返回 Skills 市场
finskills

macro-regime-detector

作者 finskills · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ 安全检测通过
83
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install finskills-macro-regime-detector
功能描述
Classify the current macroeconomic regime across six states using GDP, CPI, Fed Funds rate, yield curve, and credit spread data from the Finskills API.
使用说明 (SKILL.md)

Macro Regime Detector

Identify the current US macroeconomic regime by synthesizing real-time treasury yields, GDP growth, inflation, interest rates, and commodity price signals from the Finskills API. Output a regime classification with an evidence-based rationale and asset allocation implications.


Setup

API Key requiredRegister at https://finskills.net to get your free key.
Header: X-API-Key: \x3Cyour_api_key>

Get your API key: Register at https://finskills.net — free tier available, Pro plan unlocks real-time quotes, history, and financials.


When to Activate This Skill

Activate when the user:

  • Asks "what macro regime are we in?"
  • Asks how the current macro environment affects their portfolio or sector
  • Wants to understand Fed policy implications, yield curve shape, or inflation trend
  • Asks for an asset allocation view based on macro conditions
  • Mentions recession risk, stagflation, reflation, or rate cycle questions

Macro Regime Framework

This skill classifies the US economy into one of six regimes:

Regime GDP Growth Inflation Rate Direction Risk Assets
Goldilocks Expanding Moderate (2–3%) Stable/Falling Risk-On ✅
Reflation Expanding Rising (3–5%) Rising Cyclicals ✅
Overheating Strong High (>5%) Rising fast Commodities ✅
Stagflation Slowing High (>4%) Elevated Hard Assets ✅
Slowdown Decelerating Falling Stable Defensives ✅
Recession Contracting Low/Deflating Falling Cash/Bonds ✅

Data Retrieval — Finskills API Calls

Make the following calls (all free-tier endpoints):

1. US Treasury Rates (Yield Curve)

GET https://finskills.net/v1/free/macro/treasury-rates

Extract: 3m, 6m, 1y, 2y, 5y, 10y, 30y yields
Compute: 2y10y spread (primary inversion signal), 3m10y spread (recession predictor)

2. GDP Growth

GET https://finskills.net/v1/free/macro/gdp/US

Extract: latest GDP growth rate (QoQ annualized), trend direction (3-quarter comparison)

3. Inflation

GET https://finskills.net/v1/macro/inflation

Extract: CPI YoY, core CPI YoY, PCE YoY, trend (accelerating/stable/decelerating)

4. Interest Rates (Fed Policy)

GET https://finskills.net/v1/macro/interest-rates

Extract: Federal Funds Rate (current), last 6 rate decisions, trend (hiking/cutting/pausing)

5. Key Economic Indicators (FRED via free endpoint)

GET https://finskills.net/v1/free/macro/indicator/UNRATE

Extract: US unemployment rate (latest, 3-month trend)

GET https://finskills.net/v1/free/macro/indicator/INDPRO

Extract: Industrial Production Index (latest YoY%)

6. Commodity Price Signals

GET https://finskills.net/v1/free/commodity/prices

Extract: Gold (safe haven demand), WTI Crude (inflation/demand signal), Copper (growth proxy)


Analysis Workflow

Step 1 — Yield Curve Classification

Using treasury rates data:

Signal Threshold Interpretation
2y10y spread > +50 bps Normal — growth expected
2y10y spread -25 to +50 bps Flat — transition phase
2y10y spread \x3C -25 bps Inverted ⚠️ — recession risk elevated
3m10y spread \x3C 0 bps Classic recession predictor (12–18 month lead)

Note the steepening/flattening trend direction (compare to 3 months ago if data allows).

Step 2 — Growth Assessment

GDP Signal Label
> 3% annualized Strong expansion
1–3% annualized Moderate expansion
0–1% annualized Stagnation
\x3C 0% (1 quarter) Contraction risk
\x3C 0% (2 quarters) Technical recession

Cross-check with: Industrial Production YoY, Unemployment trend.

Step 3 — Inflation Regime

CPI YoY PCE YoY Label
\x3C 2% \x3C 2% Deflationary/below-target
2–3% 2–2.5% Target range (Goldilocks)
3–5% 2.5–4% Above-target, manageable
> 5% > 4% High inflation

Classify trend: Rising / Stable / Falling (compare last 3 readings).

Step 4 — Fed Policy Stance

Rate Trend Description
3+ consecutive hikes Tightening cycle
Hold after hikes Pause (peak rates)
First cut after hikes Pivot (easing begins)
3+ consecutive cuts Easing cycle
Hold at low rates Accommodative

Step 5 — Commodity Cross-Check

  • Gold rising + stocks flat or falling: Flight to safety, risk-off signal
  • Oil rising + copper rising: Demand-driven inflation, growth-positive
  • Oil rising + copper falling: Supply shock, stagflation signal
  • Gold + bonds both rising: Deflation/recession fear

Step 6 — Regime Classification

Score each indicator and use this decision matrix:

IF GDP_expanding AND inflation_2-4% AND rates_stable: → GOLDILOCKS
IF GDP_expanding AND inflation_rising AND rates_rising: → REFLATION/OVERHEATING
IF GDP_slowing AND inflation_high AND rates_elevated: → STAGFLATION
IF GDP_slowing AND inflation_falling AND rates_cutting: → SLOWDOWN
IF GDP_contracting AND yield_curve_inverted: → RECESSION

Assign confidence: HIGH (3+ signals aligned), MEDIUM (2 signals), LOW (mixed signals).

Step 7 — Asset Allocation Implications

For each regime, output the relative preference for major asset classes:

Asset Class Goldilocks Reflation Stagflation Slowdown Recession
US Equities ✅ OW ✅ OW ❌ UW ⚖️ N ❌ UW
Growth Tech ✅ OW ⚖️ N ❌ UW ⚖️ N ❌ UW
Energy/Materials ⚖️ N ✅ OW ✅ OW ❌ UW ❌ UW
Defensives ❌ UW ❌ UW ✅ OW ✅ OW ✅ OW
REITs ✅ OW ❌ UW ❌ UW ⚖️ N ❌ UW
Long Bonds ❌ UW ❌ UW ❌ UW ✅ OW ✅ OW
TIPS/I-Bonds ⚖️ N ✅ OW ✅ OW ❌ UW ❌ UW
Gold ❌ UW ⚖️ N ✅ OW ✅ OW ✅ OW
Cash ❌ UW ⚖️ N ✅ OW ✅ OW ✅ OW

OW = Overweight | N = Neutral | UW = Underweight


Output Format

╔══════════════════════════════════════════════════╗
║       US MACRO REGIME REPORT  —  {DATE}         ║
╚══════════════════════════════════════════════════╝

🏛️ REGIME CLASSIFICATION: {REGIME NAME}
   Confidence: {HIGH / MEDIUM / LOW}
   Trend: {Deepening / Stable / Transitioning}

📊 MACRO DASHBOARD
  Treasury Yields:
    3M: {%}  |  2Y: {%}  |  5Y: {%}  |  10Y: {%}  |  30Y: {%}
    2Y–10Y Spread: {bps} ({normal/flat/inverted})
    3M–10Y Spread: {bps}

  Growth:
    GDP Growth:         {%} annualized ({direction})
    Industrial Prod:    {%} YoY
    Unemployment:       {%} ({trend})

  Inflation:
    CPI YoY:            {%}
    Core CPI YoY:       {%}
    PCE YoY:            {%}
    Trend:              {Rising / Stable / Falling}

  Fed Policy:
    Fed Funds Rate:     {%}
    Policy Stance:      {Tightening / Pause / Pivoting / Easing}
    Last Decision:      {hike/cut/hold} ({date})

  Commodity Signals:
    WTI Crude:  ${price} ({weekly change}%)
    Gold:       ${price} ({weekly change}%)
    Copper:     ${price} ({weekly change}%)
    Interpretation: {one-line signal}

🎯 ASSET ALLOCATION IMPLICATIONS
   Overweight:  {asset classes}
   Neutral:     {asset classes}
   Underweight: {asset classes}

📝 REGIME NARRATIVE
   {3–4 sentences describing the current macro environment, key risks,
    and what conditions would trigger a regime shift}

⚠️ WATCH — REGIME SHIFT TRIGGERS
   Bull shift if: {conditions}
   Bear shift if: {conditions}

Limitations

  • GDP data has a 30–60 day reporting lag (advance estimate vs. final).
  • This is a macro framework for portfolio positioning, not a market timing tool.
  • Commodity prices can be noisy on short timeframes; use weekly/monthly trends.
安全使用建议
This skill appears internally consistent, but before installing: 1) verify the publisher and the GitHub repo referenced in SKILL.md to ensure the skill and API are legitimate; 2) confirm you trust finskills.net (review their privacy policy and what the API logs); 3) treat the FINSKILLS_API_KEY like any secret — use a key with minimal permissions, rotate it regularly, and do not reuse it elsewhere; 4) note the skill will make outbound network calls to finskills.net — if you need stricter controls, restrict autonomous invocation or sandbox the skill; and 5) if you want extra assurance, ask the publisher for the source code or an install spec so you can audit network payloads and confirm no unexpected data is sent.
功能分析
Type: OpenClaw Skill Name: finskills-macro-regime-detector Version: 1.0.1 The Macro Regime Detector skill is a legitimate tool designed to analyze macroeconomic data using the Finskills API (finskills.net). The instructions in SKILL.md and README.md are transparent, well-structured, and strictly aligned with the stated purpose of classifying economic regimes and providing asset allocation insights. There is no evidence of malicious intent, data exfiltration, or unauthorized execution.
能力标签
requires-sensitive-credentials
能力评估
Purpose & Capability
The name/description, required env var (FINSKILLS_API_KEY), and runtime instructions all align: the skill fetches macro data from finskills.net and classifies regimes. Minor metadata inconsistency: registry metadata earlier listed no homepage, but SKILL.md includes a GitHub homepage and finskills.net links — recommend verifying the publisher and repo before trusting the API key.
Instruction Scope
SKILL.md only instructs GET requests to finskills.net free-tier endpoints and local computation (spreads, trends, scoring). It does not instruct reading local files, other environment variables, or exfiltrating data to unrelated endpoints.
Install Mechanism
Instruction-only skill with no install spec or code files; nothing is downloaded or written to disk by the skill itself according to the provided metadata.
Credentials
Only a single API key (FINSKILLS_API_KEY) is required and it directly maps to the declared external service (Finskills). No unrelated secrets, config paths, or broad credential requests are present.
Persistence & Privilege
always is false and there is no install step that modifies other skills or system configuration. Autonomous invocation is allowed (platform default) but not combined with broad access or other red flags.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install finskills-macro-regime-detector
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /finskills-macro-regime-detector 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- Minor update: Added standardized YAML frontmatter for skill metadata (name, version, description, author, homepage, OpenClaw environment requirements). - No changes to logic, features, analysis steps, or API usage. - No functional changes for end users.
v1.0.0
**Initial release of Macro Regime Detector skill:** - Determines current US macroeconomic regime using real-time data on treasury yields, GDP growth, inflation, interest rates, and commodities from the Finskills API. - Offers clear regime classification with rationale and asset allocation implications. - Framework spans six macro regimes: Goldilocks, Reflation, Overheating, Stagflation, Slowdown, and Recession. - Fetches and analyzes key economic indicators: yield curve, GDP, inflation metrics, Fed policy, unemployment, industrial production, and major commodity prices. - Presents findings in a structured, dashboard-style report with narrative and regime shift watch triggers. - Free Finskills API key required for data access; supports Finskills free tier.
元数据
Slug finskills-macro-regime-detector
版本 1.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

macro-regime-detector 是什么?

Classify the current macroeconomic regime across six states using GDP, CPI, Fed Funds rate, yield curve, and credit spread data from the Finskills API. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 83 次。

如何安装 macro-regime-detector?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install finskills-macro-regime-detector」即可一键安装,无需额外配置。

macro-regime-detector 是免费的吗?

是的,macro-regime-detector 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

macro-regime-detector 支持哪些平台?

macro-regime-detector 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 macro-regime-detector?

由 finskills(@finskills)开发并维护,当前版本 v1.0.1。

💬 留言讨论