← 返回 Skills 市场
jayhenry00

民生黄金价格查询

作者 Jayhenry · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
136
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install gold-price-fetcher
功能描述
通过京东金融 API 获取实时金价,返回带时间戳的完整信息。当用户查询金价、询问今日金价、获取实时金价时触发此技能。
使用说明 (SKILL.md)

金价查询技能

触发场景

当用户需要查询实时金价时激活,例如:

  • "查询今日金价"
  • "现在金价多少"
  • "获取实时金价"
  • "金价最新是多少"

功能说明

  1. 调用京东金融 API 获取实时金价
  2. 解析返回结果中的 minimumPriceValue 字段
  3. 返回带时间戳的完整信息(格式:2026-04-04 19:14 金价:568.50 元/克)
  4. 缓存上一次查询结果,避免频繁请求

API 信息

使用方法

直接运行脚本获取金价:

python scripts/fetch_gold_price.py

缓存机制

  • 缓存文件:cache/last_price.json
  • 记录上次查询时间和金价
  • 可用于对比金价变化

输出示例

2026-04-04 19:14 金价:568.50 元/克
安全使用建议
This skill appears to be a small, self-contained script that fetches gold prices from the listed 京东金融 endpoint and caches the last result to cache/last_price.json. Before installing or running: (1) review the included scripts/fetch_gold_price.py yourself (it is short and readable); (2) be aware it will make outbound HTTPS requests to https://ms.jr.jd.com and will create/write the cache/last_price.json file in the skill directory; (3) ensure Python 3 and the requests library are available (the package metadata didn't declare dependencies); (4) because the source is 'unknown', prefer running it locally in a controlled environment rather than granting broad agent privileges without review. There are no signs of credential exfiltration or unexpected network destinations.
功能分析
Type: OpenClaw Skill Name: gold-price-fetcher Version: 1.0.0 The skill bundle is a legitimate tool designed to fetch real-time gold prices from a public JD Finance API (ms.jr.jd.com). The core logic in `scripts/fetch_gold_price.py` uses standard HTTP requests and implements a local caching mechanism without any signs of data exfiltration, malicious execution, or prompt injection.
能力评估
Purpose & Capability
Name/description (fetching real-time gold price from 京东金融) match the included script and SKILL.md. The script only calls the documented API URL with the parameters listed in SKILL.md/README and returns a formatted price.
Instruction Scope
SKILL.md instructs the agent to run scripts/fetch_gold_price.py. The script only performs an outbound HTTPS GET to the documented JD endpoint, parses JSON, prints a formatted line, and writes a local cache file (cache/last_price.json). It does not read other system files, environment variables, or send data to third-party endpoints.
Install Mechanism
There is no install spec (instruction-only with an included Python script), which is low risk. Minor inconsistency: README lists the requests library as a dependency but the registry metadata does not declare dependencies — users must ensure Python + requests are present before running.
Credentials
The skill requires no environment variables or credentials and does not access any secrets. The requested capabilities are proportionate to the stated purpose.
Persistence & Privilege
The skill does not request always:true, does not alter other skills' configs, and only writes its own local cache file under a cache/ directory in the skill tree. This level of persistence is reasonable for a caching script.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install gold-price-fetcher
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /gold-price-fetcher 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of gold-price-fetcher. - Provides real-time gold price using JD Finance API. - Returns gold price with timestamp in a clear format. - Caches the last query to reduce API requests. - Supports trigger phrases like "查询今日金价", "现在金价多少", and similar.
元数据
Slug gold-price-fetcher
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

民生黄金价格查询 是什么?

通过京东金融 API 获取实时金价,返回带时间戳的完整信息。当用户查询金价、询问今日金价、获取实时金价时触发此技能。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 136 次。

如何安装 民生黄金价格查询?

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

民生黄金价格查询 是免费的吗?

是的,民生黄金价格查询 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

民生黄金价格查询 支持哪些平台?

民生黄金价格查询 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 民生黄金价格查询?

由 Jayhenry(@jayhenry00)开发并维护,当前版本 v1.0.0。

💬 留言讨论