← Back to Skills Marketplace
积存金价格监控助手
by
WhatYouPrompt
· GitHub ↗
· v1.0.3
· MIT-0
204
Downloads
1
Stars
1
Active Installs
4
Versions
Install in OpenClaw
/install gold-price-monitor
Description
监控黄金价格 - 获取实时国际金价,记录历史价格,当价格波动超过阈值时发出通知。适合 OpenClaw 定时调用。
README (SKILL.md)
黄金积存金价格监控 Skill
监控上海金交所 Au99.99 实时报价(人民币/克),与基准价格(首次记录或最近一次触发警报的价格)进行对比。当买入价变动超过阈值时生成通知消息,并将当前价格更新为新的基准价,以避免金价缓慢变化时永远无法触发警报的问题。辅助买入/卖出决策。
执行步骤
1. 运行价格检查脚本
执行以下命令获取最新积存金报价:
python d:\VibeCode\.agents\skills\gold-price-monitor\scripts\check_gold_price.py
2. 解读脚本输出
脚本输出 JSON 格式的结果,关键字段:
buy_price:客户买入价(你用这个价格买入黄金)sell_price:客户卖出价(你用这个价格卖出黄金)mid_price:中间价buy_change:与上次买入价的差值today_open_buy:今日开盘价(北京时间9点后首次记录)day_change:与今日开盘价的差值(日内涨跌)alert:是否触发警报(差价超过阈值)suggestion:买卖建议
3. 根据结果通知用户
- 如果
alert为true:必须立即通知用户,用醒目格式输出消息和买卖建议。 - 如果
alert为false:简要告知用户当前价格即可。 - 如果
status为error:告知用户获取价格失败。
通知格式示例
价格大幅下跌(买入机会):
🚨 黄金价格波动警报!
📉 上金所Au99.99报价
买入价: ¥1010.50/克(-12.30)
卖出价: ¥1000.20/克(-12.10)
上次买入价: ¥1022.80/克
今日开盘价: ¥1020.00/克(日内-9.50, -0.93%)
💡 价格大幅下跌,可考虑买入
⏰ 银行更新时间: 2026-03-25 10:30:00
价格平稳:
📊 黄金价格播报
上金所Au99.99买入价: ¥1022.37/克(+2.30)
今日开盘价: ¥1020.00/克(日内+2.37, +0.23%)
价格波动不大,建议观望
配置说明
- 价格阈值:默认买入价差价 ≥ 10 元触发警报,可在脚本中修改
ALERT_THRESHOLD - 数据来源:新浪财经上海金交所 Au99.99 报价(JSONP 接口,无需 API Key)
- 数据存储:历史基准记录存于
data/price_history.json(仅在触发警报或首次记录时保存以用作对比基准,保留 1000 条),开盘价存于data/daily_open.json(保留 30 天) - 开盘价:每天北京时间 9:00 后的首次调用自动记录为当日开盘价
Usage Guidance
This skill appears internally consistent for monitoring gold prices: it fetches public market data, maintains local history files, and emits alerts when price change exceeds the threshold. Before installing, consider these practical points: (1) SKILL.md runs a hardcoded Windows path — change to a relative invocation (e.g., python ./scripts/check_gold_price.py) or adapt for your OS. (2) The script fetches data from hq.sinajs.cn (no API key) — verify this source meets your accuracy/trust requirements and that your environment allows outbound HTTP(S) requests. (3) Data is stored locally under the skill's data/ files; if that conflicts with your storage or privacy policies, review or relocate those files. (4) Adjust ALERT_THRESHOLD in the script if the default (10 RMB/gram) doesn't match your needs. (5) Because the skill can be invoked autonomously by the agent (normal default), ensure scheduling/notification behavior fits your risk tolerance. No credentials or suspicious network exfiltration were found.
Capability Analysis
Type: OpenClaw Skill
Name: gold-price-monitor
Version: 1.0.3
The skill is a legitimate gold price monitor that fetches real-time data from Sina Finance (hq.sinajs.cn) and maintains a local history in JSON files. The Python script (check_gold_price.py) uses standard libraries for network requests and data parsing without any signs of obfuscation, data exfiltration, or unauthorized command execution. While SKILL.md contains a hardcoded Windows file path and the script uses a legacy SSL connection flag for compatibility, these are functional choices rather than security risks.
Capability Assessment
Purpose & Capability
Name/description (gold price monitoring, record history, alerting) match the included script and data files. The script fetches price data from a public market endpoint (sina finance hq.sinajs.cn) and stores history/open-price JSON files locally; these actions are expected for the stated purpose. The SKILL.md mentions a CCB XML URL as a possible source but the script intentionally uses Sina as a '平替' (explained in code), which is plausible.
Instruction Scope
The SKILL.md instructs running a hardcoded Windows-style path (python d:\VibeCode\.agents\skills\gold-price-monitor\scripts\check_gold_price.py). That is brittle and platform-specific — on non-Windows hosts the command will fail. Aside from the hardcoded path, the instructions correctly describe the script's JSON output fields and require notifying the user when alert=true. The instructions do not request unrelated system data or credentials.
Install Mechanism
No install spec is provided and the skill is instruction-plus-script only. Nothing is downloaded or installed by the skill itself, so there is no installer risk.
Credentials
The skill declares no required environment variables, no credentials, and no config paths. The script uses only network access to a public market endpoint and writes to local data files inside the skill directory — these are proportionate to its monitoring purpose.
Persistence & Privilege
The skill does not request always:true and does not modify other skills or system-wide config. It stores history and daily open prices to local files under the skill's data directory, which is expected behavior for persistence of baseline prices.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install gold-price-monitor - After installation, invoke the skill by name or use
/gold-price-monitor - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.3
- 改进警报对比机制,警报触发后的价格将作为新基准价,避免缓慢波动时无法再次触发警报。
- 优化数据存储说明,历史基准仅在首次或警报后记录用于后续对比。
- 配置文档、使用说明调整为最新逻辑,提升准确性与可操作性。
v1.0.2
Version 1.0.2 of gold-price-monitor
- No file changes detected in this update.
- Functionality and documentation remain unchanged from the previous version.
v1.0.1
- 切换数据源为新浪财经上海金交所 Au99.99 报价(JSONP接口),不再使用建设银行接口。
- 通知内容和示例更新为上金所Au99.99描述,适应新数据源字段。
- 增加说明:当前监控为上海金交所Au99.99实时报价(人民币/克)。
- 文档其余用法、字段和配置保持一致。
v1.0.0
- Initial release of gold-price-monitor skill.
- Monitors real-time CCB gold prices and records historical data.
- Notifies user when buy price changes exceed a configurable threshold.
- Provides buy/sell suggestions based on price movements.
- Outputs user-friendly notifications for significant price changes or normal updates.
- Stores price history and daily opening prices automatically.
Metadata
Frequently Asked Questions
What is 积存金价格监控助手?
监控黄金价格 - 获取实时国际金价,记录历史价格,当价格波动超过阈值时发出通知。适合 OpenClaw 定时调用。 It is an AI Agent Skill for Claude Code / OpenClaw, with 204 downloads so far.
How do I install 积存金价格监控助手?
Run "/install gold-price-monitor" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is 积存金价格监控助手 free?
Yes, 积存金价格监控助手 is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does 积存金价格监控助手 support?
积存金价格监控助手 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created 积存金价格监控助手?
It is built and maintained by WhatYouPrompt (@whatyouprompt); the current version is v1.0.3.
More Skills