← Back to Skills Marketplace
xiaojuhao1020-debug

黄金价格查询

by xiaojuhao1020-debug · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
292
Downloads
0
Stars
3
Active Installs
1
Versions
Install in OpenClaw
/install gold-price
Description
查询当前黄金大盘价格。用于回答关于黄金价格、金价走势、贵金属行情的问题。包括国内金价(银行金条、回收价、首饰品牌价)和国际金价。不需要 API key。
README (SKILL.md)

Gold Price Skill

查询黄金、白银、铂金、钯金等贵金属的实时价格。

何时使用

使用场景:

  • "今天金价多少?"
  • "黄金价格查询"
  • "现在金条多少钱?"
  • "金价涨了吗?"
  • "足金价格"

不使用:

  • 历史金价数据分析 → 使用专业金融数据库
  • 黄金投资建议 → 不提供投资建议

数据来源

  • 银行投资金条:浦发银行、工商银行、中国银行、建设银行、农业银行等
  • 黄金回收价:24K/18K/14K 金饰回收
  • 首饰品牌金价:周大福、周生生、老凤祥、老庙黄金、菜百等
  • 国际金价:美元/盎司(需额外 API)

命令

查询所有金价

curl -s "https://v2.xxapi.cn/api/goldprice"

解析输出

# 获取银行金条价格
curl -s "https://v2.xxapi.cn/api/goldprice" | jq '.data.bank_gold_bar_price'

# 获取首饰金价
curl -s "https://v2.xxapi.cn/api/goldprice" | jq '.data.precious_metal_price'

# 获取回收金价
curl -s "https://v2.xxapi.cn/api/goldprice" | jq '.data.gold_recycle_price'

响应格式

{
  "code": 200,
  "data": {
    "bank_gold_bar_price": [
      { "bank": "浦发银行投资金条", "price": "1136.0" },
      { "bank": "工商银行如意金条", "price": "1131.83" }
    ],
    "gold_recycle_price": [
      { "gold_type": "24K金回收", "recycle_price": "1101.0", "updated_date": "2026-03-17" }
    ],
    "precious_metal_price": [
      { "brand": "周大福", "gold_price": "1551", "platinum_price": "832" }
    ]
  }
}

常用查询示例

简洁输出(用户友好)

curl -s "https://v2.xxapi.cn/api/goldprice" | jq -r '
"🌟 今日金价\
" +
"━━━━━━━━━━━━\
" +
"📈 首饰金价(部分品牌):\
" +
(.data.precious_metal_price[:5][] | "\(.brand): \(.gold_price)元/克") +
"\
📍 更新日期:\(.data.precious_metal_price[0].updated_date)"
'

获取最低/最高品牌金价

curl -s "https://v2.xxapi.cn/api/goldprice" | jq -r '
"最低:\(.data.precious_metal_price | min_by(.gold_price | tonumber) | "\(.brand) \(.gold_price)元/克")\
" +
"最高:\(.data.precious_metal_price | max_by(.gold_price | tonumber) | "\(.brand) \(.gold_price)元/克")"
'

单位说明

  • 银行金条:元/克
  • 首饰金价:元/克
  • 回收金价:元/克

注意事项

  • 数据每日更新
  • 价格仅供参考,实际交易请以各渠道为准
  • 首饰金价包含工费,品牌间差异较大
Usage Guidance
This skill simply calls a third-party HTTP API and formats the result. Before installing, consider: (1) The examples use jq but jq is not declared—install jq or update the skill to avoid runtime errors. (2) The API endpoint (v2.xxapi.cn) is an unsigned third-party service; network requests will reveal client IP and request metadata to that host—verify its trustworthiness or replace with a reputable data provider if you need stronger privacy/availability guarantees. (3) The skill does not request credentials, so it cannot access your cloud accounts, but be mindful that any sensitive query data you include in prompts could be transmitted to the API. If you want increased assurance, ask the maintainer for the API provider's documentation or switch to a known, documented gold-price API.
Capability Analysis
Type: OpenClaw Skill Name: gold-price Version: 1.0.0 The gold-price skill is a straightforward tool for querying precious metal prices via a public API (v2.xxapi.cn). It uses standard system utilities (curl and jq) to fetch and format data as described in its documentation, with no evidence of data exfiltration, malicious command execution, or prompt injection attempts.
Capability Assessment
Purpose & Capability
Name/description (查询黄金大盘价格) matches the runtime instructions: all examples use curl to fetch gold-price data from an API and parse it. Requiring curl is proportional to the stated purpose.
Instruction Scope
Instructions stay within the stated purpose (fetching/parsing gold prices). However, example commands use jq for JSON parsing but jq is not listed in required binaries—this is a documentation/instruction mismatch that could cause runtime errors. The instructions do call an external third-party endpoint (https://v2.xxapi.cn/api/goldprice), so network requests and any data returned will go to that service.
Install Mechanism
No install spec and no files are written to disk; this is the lowest-risk pattern. There is no download-from-URL or package installation happening.
Credentials
The skill requests no environment variables, no credentials, and no config paths — appropriate for a read-only public-data query skill.
Persistence & Privilege
Defaults are used (not always: true, agent-invocable allowed). The skill does not request elevated persistence or modify other skill/system configs.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install gold-price
  3. After installation, invoke the skill by name or use /gold-price
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
首次发布 - 查询国内黄金价格
Metadata
Slug gold-price
Version 1.0.0
License MIT-0
All-time Installs 3
Active Installs 3
Total Versions 1
Frequently Asked Questions

What is 黄金价格查询?

查询当前黄金大盘价格。用于回答关于黄金价格、金价走势、贵金属行情的问题。包括国内金价(银行金条、回收价、首饰品牌价)和国际金价。不需要 API key。 It is an AI Agent Skill for Claude Code / OpenClaw, with 292 downloads so far.

How do I install 黄金价格查询?

Run "/install gold-price" 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 xiaojuhao1020-debug (@xiaojuhao1020-debug); the current version is v1.0.0.

💬 Comments