← 返回 Skills 市场
youpele52

commodities

作者 youpele52 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
128
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install commodities
功能描述
Fetch commodity prices for WTI (Crude Oil), Brent, Natural Gas, and Gold using Yahoo Finance (yfinance). Follow the same pattern as stock-price-checker-pro.
使用说明 (SKILL.md)

Skill: Commodities

When to use

  • The user asks for current commodity prices (WTI, Brent, Natural Gas, Gold).
  • The user wants daily change, percent change, recent high/low ranges, or recent headlines affecting these commodities.

When NOT to use

  • User wants equities, fundamentals, or portfolio-level analysis — use the stock skills instead.

Authentication

  • No API key required. Uses Yahoo Finance via yfinance.

Commands

Check a commodity price

uv run skills/commodities/src/main.py \x3CSYMBOL>

Examples

uv run skills/commodities/src/main.py CL=F   # WTI Crude Futures (WTI)
uv run skills/commodities/src/main.py BZ=F   # Brent Crude Futures (Brent)
uv run skills/commodities/src/main.py NG=F   # Natural Gas Futures (NG)
uv run skills/commodities/src/main.py GC=F   # Gold Futures (GC)

Ticker Reference (Yahoo Finance)

Commodity Yahoo Ticker
WTI Crude Oil CL=F
Brent Crude BZ=F
Natural Gas NG=F
Gold Futures GC=F

Output

  • Current price, daily change & % change
  • Previous close
  • Today's high / low
  • 2W, 1M, 3M, 6M, 52W high / low ranges
  • Recent headlines (when available)

Notes

  • uv run reads the inline # /// script dependency block in main.py and auto-installs yfinance.
  • Do NOT use web search or curl for these prices — use this script for consistent formatting.
安全使用建议
This skill appears to do only what it says: run a small Python script (via the uv runner) that installs yfinance and queries Yahoo Finance for commodity tickers. Before installing, ensure you have (or trust) the 'uv' runner since it will install yfinance from PyPI at runtime and perform network requests to Yahoo. No API keys or secrets are requested. If you have security concerns, review the included source files yourself or run the skill in an isolated environment (container/VM) to limit exposure.
功能分析
Type: OpenClaw Skill Name: commodities Version: 1.0.0 The commodities skill bundle is a legitimate tool designed to fetch and format commodity price data and news from Yahoo Finance using the yfinance library. The code in src/main.py and src/service.py is well-structured, follows the stated purpose, and contains no indicators of data exfiltration, malicious execution, or prompt injection.
能力评估
Purpose & Capability
Name/description match the included Python scripts which use yfinance to fetch commodity tickers; the declared required binary (uv) is consistent with the SKILL.md commands.
Instruction Scope
SKILL.md and the code limit behavior to calling yfinance for price/history/news and formatting output. The skill does not read unrelated files or environment variables. It does surface news article link URLs (from Yahoo) but does not follow or fetch them itself.
Install Mechanism
There is no external download URL; main.py contains an inline dependency block that causes uv to install the 'yfinance' Python package (likely via PyPI) at runtime. Installing a package from PyPI is normal here but is the primary runtime install action to be aware of.
Credentials
The skill requests no env vars, no credentials, and no config paths. All external access is to Yahoo Finance via the yfinance library, which is appropriate for the stated function.
Persistence & Privilege
always is false and the skill does not claim or attempt to persist beyond its own files. Autonomous invocation is allowed (platform default) but not combined with any elevated privileges or secret access.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install commodities
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /commodities 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release: Query live prices for WTI, Brent, Natural Gas, and Gold using Yahoo Finance. - Supports key stats: current price, daily change & %, previous close, daily/high low, and multi-period high/low ranges. - Includes command examples for each commodity ticker. - Outputs recent headlines when available. - No authentication or API key required; uses `yfinance` with `uv run`.
元数据
Slug commodities
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

commodities 是什么?

Fetch commodity prices for WTI (Crude Oil), Brent, Natural Gas, and Gold using Yahoo Finance (yfinance). Follow the same pattern as stock-price-checker-pro. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 128 次。

如何安装 commodities?

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

commodities 是免费的吗?

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

commodities 支持哪些平台?

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

谁开发了 commodities?

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

💬 留言讨论