Agent SkillsAlphaGBM/skills › alphagbm-macro-view

alphagbm-macro-view

GitHub

用于追踪VIX、美债利率等宏观指标及其对用户持仓的影响。支持添加、删除或查询当前宏观仪表盘,提供AI生成的持仓关联分析。

skills/alphagbm-macro-view/SKILL.md AlphaGBM/skills

Trigger Scenarios

用户希望开始跟踪新的宏观变量(如VIX、收益率) 用户询问当前宏观仪表盘或快照数据 用户询问宏观变化对其投资组合的具体影响 用户要求停止跟踪某个特定指标

Install

npx skills add AlphaGBM/skills --skill alphagbm-macro-view -g -y
More Options

Use without installing

npx skills use AlphaGBM/skills@alphagbm-macro-view

指定 Agent (Claude Code)

npx skills add AlphaGBM/skills --skill alphagbm-macro-view -a claude-code -g -y

安装 repo 全部 skill

npx skills add AlphaGBM/skills --all -g -y

预览 repo 内 skill

npx skills add AlphaGBM/skills --list

SKILL.md

Frontmatter
{
    "name": "alphagbm-macro-view",
    "description": "Track the macro variables that actually move your portfolio — VIX, US10Y, DXY, gold, oil, etc. — with auto-computed impact on user's holdings. Each tracked indicator returns current value, change, and AI-generated impact analysis linked to the user's profiles. Use when: adding a macro indicator, pulling current macro dashboard, asking how VIX affects the portfolio. Triggers on: \"track VIX\", \"current 10-year yield\", \"how's the dollar doing\", \"add gold to my macro watch\", \"remove US10Y\", \"宏观指标\", \"美债利率\", \"美元指数\", \"VIX恐慌指数\"."
}

AlphaGBM Macro View

Track key macro indicators — VIX, US10Y, DXY, gold, oil, BTC, etc. — in the user's knowledge base. Each indicator comes with auto-computed impact analysis linked to the user's actual holdings.

When to use

  • User wants to start tracking a macro variable (VIX, yields, USD, gold…)
  • User asks for current macro dashboard / snapshot
  • User asks how a macro change affects their portfolio
  • User wants to stop tracking an indicator
  • User mentions "宏观" / "VIX" / "美债" / "美元" / "macro" / "yield"

Prerequisites

  • API Key: env ALPHAGBM_API_KEY (format agbm_xxxx…).
  • Base URL: default https://alphagbm.zeabur.app. Override via ALPHAGBM_BASE_URL.
  • No profile requirement — macro tracking is independent of the company profile list.

API Endpoints

All endpoints require Authorization: Bearer $ALPHAGBM_API_KEY.

1. List tracked indicators (also returns supported catalog)

GET /api/research/macro

Response:

{
  "success": true,
  "indicators": [
    {
      "indicator_key": "VIX",
      "display_name": "CBOE Volatility Index",
      "current_value": 18.2,
      "previous_value": 16.8,
      "change_pct": 8.3,
      "impact_analysis": "Rising VIX — elevated uncertainty. Your NVDA & TSLA positions are high-beta; consider…",
      "last_updated_at": "2026-04-13T10:15:00Z"
    }
  ],
  "supported": {
    "VIX":    {"name": "CBOE Volatility Index",   "category": "volatility"},
    "US10Y":  {"name": "US 10-Year Treasury",     "category": "yields"},
    "DXY":    {"name": "US Dollar Index",         "category": "currency"},
    "GOLD":   {"name": "Gold Spot",               "category": "commodity"},
    ...
  }
}

The supported field is the catalog of valid indicator_key values. Use it to present options when the user asks "what can I track".

2. Add indicator

POST /api/research/macro
Content-Type: application/json

{"indicator_key": "VIX"}
Parameter Type Required Description
indicator_key string yes Must be in the supported catalog

400 response for unsupported keys:

{
  "success": false,
  "error": "Unsupported indicator. Supported: ['VIX', 'US10Y', 'DXY', ...]"
}

3. Remove indicator

DELETE /api/research/macro/<INDICATOR_KEY>

Uses the key (VIX, not an id). 404 if not tracked.

Response schema — indicator

{
  id, indicator_key,
  display_name,              // human-readable name
  current_value,             // most recent reading
  previous_value,            // for change_pct computation
  change_pct,                // % change
  impact_analysis,           // AI-generated, references user's holdings
  last_updated_at
}

Common indicator keys

Key Meaning Why it matters
VIX CBOE Volatility Index Risk sentiment, option pricing
US10Y US 10-Year Treasury Yield Discount rate, bond-equity rotation
US2Y US 2-Year Yield Rate-hike expectations
DXY US Dollar Index EM / commodity / multinational earnings
GOLD Gold spot Hedge, real-yield inverse
OIL WTI crude Inflation / energy sector
BTC Bitcoin Risk appetite, crypto-adjacent stocks
HKD HKD liquidity HK market liquidity signal

Always call GET /api/research/macro first to fetch the live supported catalog — keys may be added/retired.

Typical Workflow

1. User: "Track VIX and the 10-year yield"
   → POST /api/research/macro {"indicator_key": "VIX"}
   → POST /api/research/macro {"indicator_key": "US10Y"}
   → Confirm both added with their current values

2. User: "What's the macro picture?"
   → GET /api/research/macro
   → Present each indicator: value, change, impact on their holdings

3. User: "Stop tracking DXY"
   → DELETE /api/research/macro/DXY

4. User: "Is high VIX hurting my positions?"
   → GET /api/research/macro → read VIX's impact_analysis field
   → The impact_analysis already references the user's specific holdings

Output Formatting Tips

When presenting macro indicators:

  1. Table-first for multi-indicator views: key · value · change% · one-line impact
  2. Highlight change direction with arrow/color (↑ red for VIX/yields up, ↓ green etc.)
  3. Lead with impact_analysis when user asks "how does X affect my portfolio" — it's pre-computed with their holdings in mind
  4. Stale data — if last_updated_at > 1d old, note "data may be stale, refresh coming"
  5. When user asks "what can I track", show the supported catalog grouped by category

Related Skills

  • alphagbm-company-profile — Macro impact analysis references the user's profiles
  • alphagbm-market-sentiment — Broader cross-asset sentiment read
  • alphagbm-iv-rank — Options-specific volatility context

Powered by AlphaGBM — Real-data options & research intelligence for traders and AI agents. 10K+ users.

Version History

  • c69fa1b Current 2026-07-05 20:18

Same Skill Collection

skills/alphagbm-alert/SKILL.md
skills/alphagbm-compare/SKILL.md
skills/alphagbm-earnings-crush/SKILL.md
skills/alphagbm-market-sentiment/SKILL.md
skills/alphagbm-options-score/SKILL.md
skills/alphagbm-polymarket/SKILL.md
skills/alphagbm-stock-analysis/SKILL.md
skills/alphagbm-unusual-activity/SKILL.md
skills/alphagbm-watchlist/SKILL.md
skills/alphagbm-bps-backtest/SKILL.md
skills/alphagbm-buffett-analysis/SKILL.md
skills/alphagbm-company-profile/SKILL.md
skills/alphagbm-duan-analysis/SKILL.md
skills/alphagbm-fear-score/SKILL.md
skills/alphagbm-greeks/SKILL.md
skills/alphagbm-health-check/SKILL.md
skills/alphagbm-hedge-advisor/SKILL.md
skills/alphagbm-investment-thesis/SKILL.md
skills/alphagbm-iv-rank/SKILL.md
skills/alphagbm-marks-cycle/SKILL.md
skills/alphagbm-options-strategy/SKILL.md
skills/alphagbm-pnl-simulator/SKILL.md
skills/alphagbm-take-profit/SKILL.md
skills/alphagbm-tepper-signal/SKILL.md
skills/alphagbm-theme-research/SKILL.md
skills/alphagbm-vix-status/SKILL.md
skills/alphagbm-vol-smile/SKILL.md
skills/alphagbm-vol-surface/SKILL.md

Metadata

Files
0
Version
c69fa1b
Hash
25cc61ed
Indexed
2026-07-05 20:18

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-08 21:18
浙ICP备14020137号-1 $Гость$