← 返回 Skills 市场
forest-qiao

Gold Monitor Skill

作者 forest-qiao · GitHub ↗ · v2.2.0 · MIT-0
cross-platform ✓ 安全检测通过
381
总下载
1
收藏
2
当前安装
4
版本数
在 OpenClaw 中安装
/install gold-monitor
功能描述
查询实时金价、黄金价格、美元指数、原油价格、金油比及投资建议。Query real-time gold price (Au99.99/COMEX/XAU), USD index (DXY), WTI oil price, and Gold/Oil ratio with investment signals. 支持...
使用说明 (SKILL.md)

Gold Monitor

实时贵金属与大宗商品价格查询工具,含金油比(Gold/Oil Ratio)投资信号分析。数据来源:上海黄金交易所 (SGE)、COMEX、新浪财经。

When to Use

Use this skill when the user asks about:

  • 金价 / 黄金价格 / 今日金价 / 实时金价 / gold price / gold rate
  • 国际金价 / COMEX金价 / XAU/USD / XAUUSD / 伦敦金
  • 中国金价 / 国内金价 / Au99.99 / 上海金 / SGE金价
  • 美元指数 / DXY / USD index / 美元走势
  • 原油价格 / 油价 / WTI / crude oil / 国际油价
  • 大宗商品行情 / 贵金属行情 / commodity prices
  • 金价走势 / 金价涨跌 / 黄金涨了吗 / 金价多少
  • 金油比 / gold oil ratio / 黄金原油比 / 大宗商品投资信号 / 现在适合买黄金吗

Setup

Before first use, install dependencies:

pip install -r {{SKILL_DIR}}/requirements.txt

Usage

Query all assets at once (includes gold-oil ratio):

python3 {{SKILL_DIR}}/query.py all

Query a single asset:

python3 {{SKILL_DIR}}/query.py AU9999    # China gold (CNY/gram)
python3 {{SKILL_DIR}}/query.py XAUUSD   # International gold (USD/oz)
python3 {{SKILL_DIR}}/query.py USIDX    # USD index (DXY)
python3 {{SKILL_DIR}}/query.py WTI      # WTI crude oil (USD/barrel)
python3 {{SKILL_DIR}}/query.py GORATIO  # Gold/Oil ratio + investment advice

Output

For price assets, the script prints JSON to stdout:

{
  "name": "国际黄金 COMEX",
  "symbol": "XAUUSD",
  "price": 3050.12,
  "change": 15.30,
  "change_pct": 0.50,
  "unit": "USD/oz",
  "update_time": "2026-03-27 10:30:00"
}

For GORATIO, the output includes ratio value, level, signal, and advice:

{
  "symbol": "GORATIO",
  "name": "金油比",
  "ratio": 32.5,
  "gold_price": 3050.12,
  "oil_price": 93.85,
  "level": "偏高",
  "signal": "🟠 避险情绪偏强",
  "advice": "金油比高于历史均值,反映经济下行预期...",
  "update_time": "2026-03-27 10:30:00"
}

For all, the output is an array of 5 objects (4 prices + 1 ratio).

If an "error" field is present, that asset's data could not be fetched — tell the user.

Gold/Oil Ratio Reference

Level Range Signal Meaning
极度偏高 >40 🔴 Recession/crisis signal (COVID 2020 peak ~70)
偏高 25-40 🟠 Risk-off sentiment, economic slowdown
正常 15-25 🟡 Historical average (~16-17), balanced
偏低 10-15 🟢 Economic expansion, commodities strong
极度偏低 \x3C10 🔵 Oil overvalued / inflation shock

Parse the JSON and present prices clearly with values, changes, and units. For GORATIO, highlight the signal and present advice as investment guidance.

Network Access

This skill makes outbound HTTP requests to the following hosts only:

  • hq.sinajs.cn — Sina Finance real-time quotes (international gold, USD index, WTI oil)
  • akshare API endpoints — Shanghai Gold Exchange data (China gold Au99.99)

No credentials or API keys are required. All requests are read-only.

Data Sources

  • China Gold (Au99.99) — Shanghai Gold Exchange via akshare
  • International Gold (COMEX) — Sina Finance real-time quotes
  • USD Index (DXY) — Sina Finance real-time quotes
  • WTI Crude Oil — Sina Finance real-time quotes
  • Gold/Oil Ratio — Computed from COMEX gold ÷ WTI oil
安全使用建议
This skill appears coherent: it fetches market quotes (via hq.sinajs.cn and akshare) and computes a gold/oil ratio with investment commentary. Before installing, consider: (1) running the code in a sandbox or isolated environment and reviewing akshare's network behavior (akshare may contact additional endpoints), (2) be aware pip will install akshare and requests (check versions and upstream trust), (3) the investment 'advice' is programmatic guidance, not professional financial advice, and (4) rate limits or data changes at the upstream endpoints could cause errors. If you need stricter network controls, inspect akshare's source or run the script with network egress limited to the declared hosts.
功能分析
Type: OpenClaw Skill Name: gold-monitor Version: 2.2.0 The gold-monitor skill is a legitimate financial data tool that fetches real-time prices for gold, oil, and the USD index using the 'akshare' library and Sina Finance APIs (hq.sinajs.cn). The code in query.py is straightforward, performing data retrieval and calculating the gold/oil ratio without any indicators of malicious behavior, data exfiltration, or unauthorized execution.
能力评估
Purpose & Capability
Name/description (gold, USD index, WTI, G/O ratio) align with the included files and runtime: query.py implements fetchers for AU9999, XAUUSD, USIDX, WTI and computes GORATIO. Declared data sources (Sina + akshare/SGE) match the code.
Instruction Scope
SKILL.md instructs the agent to run the provided CLI script and parse JSON output. The script only performs read-only network calls and local calculations; it does not read arbitrary files, environment variables, or other system state beyond argv.
Install Mechanism
No install spec in registry; SKILL.md directs a simple pip install of akshare and requests. Dependencies are reasonable and expected for this task. No downloads from untrusted URLs or archive extraction are present.
Credentials
The skill requires no environment variables, credentials, or config paths. All network requests are to Sina's quote endpoint and to whatever akshare uses; no secret access is requested.
Persistence & Privilege
Skill is user-invocable and not always-enabled. It does not request permanent presence, modify other skills, or alter system/agent configuration.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install gold-monitor
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /gold-monitor 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.2.0
新增金油比(GORATIO)查询及五档投资建议信号
v2.1.0
- Expanded and clarified SKILL.md documentation, including clearer usage instructions and output examples. - Added detailed setup and network access sections for easier installation and understanding of data flow. - Updated asset descriptions and documentation of data sources for all supported commodities. - No code changes in query.py or requirements.txt are detailed; updates focus on improving user guidance and transparency.
v2.0.0
gold-monitor 2.0.0 - Major simplification: monitoring dashboard, web UI, alerts, and scheduler removed - All API and dashboard code deleted; now exposes only a single query script (query.py) - Requirements significantly reduced; removed external dependencies and setup steps - Usage is now command-line only for querying current gold, USD index, and oil prices - Outputs data as JSON for easy parsing; error handling clarified in documentation
v1.0.0
- Initial release of gold-monitor. - Real-time monitoring dashboard for gold prices (China Au99.99 & COMEX), USD index (DXY), and WTI crude oil. - Configurable price alerts with Feishu (Lark) webhook notifications. - REST API endpoints for prices, historical data, and alert management. - Web dashboard available at http://127.0.0.1:8000. - Alert settings and webhook configuration are persisted automatically. - Supports flexible alert conditions and polling every 60 seconds.
元数据
Slug gold-monitor
版本 2.2.0
许可证 MIT-0
累计安装 2
当前安装数 2
历史版本数 4
常见问题

Gold Monitor Skill 是什么?

查询实时金价、黄金价格、美元指数、原油价格、金油比及投资建议。Query real-time gold price (Au99.99/COMEX/XAU), USD index (DXY), WTI oil price, and Gold/Oil ratio with investment signals. 支持... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 381 次。

如何安装 Gold Monitor Skill?

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

Gold Monitor Skill 是免费的吗?

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

Gold Monitor Skill 支持哪些平台?

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

谁开发了 Gold Monitor Skill?

由 forest-qiao(@forest-qiao)开发并维护,当前版本 v2.2.0。

💬 留言讨论