Xpersona
C

commodities

CLAWHUB · Unverified

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: commodities Owner: youpele52 Summary: 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. Tags: latest:1.0.1 Version history: v1.0.1 | 2026-05-27T10:30:27.570Z | user - Added new file: src/mutex.py - Internal update only; no changes to usage or user-facing behavior. v1.0.0 | 2026-04-11T17:07:49.926Z | user

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s177cjete9gkkjq09py127x5xx83sfh8:commodities
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-youpele52-commodities/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

7,909 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: commodities
description: "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."
homepage: https://finance.yahoo.com
metadata: {"clawdbot":{"emoji":"🛢️","requires":{"bins":["uv"]}}}
---

# 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

```bash
uv run skills/commodities/src/main.py <SYMBOL>
```

### Examples

```bash
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.

tests/README.md

# Commodities tests

This folder contains a simple smoke test for the commodities skill. Run:

```bash
bash tests/test_commodities_smoke.sh
```

The test is a lightweight smoke test and may fail when offline or when Yahoo endpoints are unreachable.

_meta.json

{
  "ownerId": "kn71g9mq11zs12gef9tdn2h77182b5bn",
  "slug": "commodities",
  "version": "1.0.1",
  "publishedAt": 1779877827570
}

skill-card.md

## Description:

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.

This skill is ready for commercial/non-commercial use.

## Publisher:

[youpele52](https://clawhub.ai/user/youpele52)

### License/Terms of Use:

MIT-0

## Use Case:

External users and developers use this skill to retrieve current commodity price snapshots, daily changes, recent trading ranges, volume context, and available headlines for supported Yahoo Finance commodity tickers.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Runtime dependency resolution can introduce supply-chain or reproducibility risk.

Mitigation: Pin and review dependencies before deployment, especially yfinance resolved through uv.

Risk: The skill makes outbound Yahoo Finance requests and live data or headlines may be unavailable or delayed.

Mitigation: Run it only in environments where outbound finance-data requests are approved, and treat returned market data as informational rather than authoritative trading advice.

Risk: The default temporary lock file is shared and may be unsuitable for high-security or multi-user systems.

Mitigation: Set SKILL_MUTEX_LOCK to a private user-owned runtime path before use in shared environments.

## Reference(s):

- [Yahoo Finance](https://finance.yahoo.com)

## Skill Output:

**Output Type(s):** [text, shell commands, guidance]

**Output Format:** [Plain text commodity price report]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Requires uv and Python 3.12 or newer; resolves yfinance at runtime and may make outbound Yahoo Finance requests.]

## Skill Version(s):

1.0.1 (source: server release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to commodities and adjacent AI workflows.