commodities

commodities is a skill for Claude Code from JoelLewis/finance_skills. It costs 110 tokens per session (1,678 once invoked), scanned A, original, MIT.

A reference for markets built around physical goods such as oil, gas, metals, and agricultural products. It explains spot prices, futures contracts, supply and demand, and the cost of holding commodities.

In plain words
What is it for?
Use it to analyze futures curves, roll yield, commodity funds, supply-and-demand factors, and commodities as an inflation hedge.
Why use it?
It helps explain why a commodity futures price can differ from today's physical price and how that difference affects returns. It also covers contango, when later futures cost more, and backwardation, when they cost less.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the wealth-management plugin — 38 skills shipped together

Good fit Use it to analyze futures curves, roll yield, commodity funds, supply-and-demand factors, and commodities as an inflation hedge.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/joellewis/finance_skills/commodities
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add JoelLewis/finance_skills --skill commodities
Clone the repo
git clone --depth 1 https://github.com/JoelLewis/finance_skills

Made for: Claude Code.

Or install wealth-management, the plugin that ships this one along with the rest of its 38 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for commodities

README.md
[![agentmods](https://agentmods.dev/badge/skills/joellewis/finance_skills/commodities/github.svg)](https://agentmods.dev/skills/joellewis/finance_skills/commodities)
Your own site
<a href="https://agentmods.dev/skills/joellewis/finance_skills/commodities"><img src="https://agentmods.dev/badge/skills/joellewis/finance_skills/commodities/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for commodities

Your own site · 80×15
<a href="https://agentmods.dev/skills/joellewis/finance_skills/commodities"><img src="https://agentmods.dev/badge/skills/joellewis/finance_skills/commodities.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 110 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,678 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 15 Sept 2026
  • Snyk pass 15 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00110 $0.01678
Opus 5.5 $0.00044 $0.00671
Sonnet 5.5 $0.00022 $0.00336
Haiku 4.5 $0.00011 $0.00168

Measured 3d ago against content hash 9b4d74b9889f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

commodities scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/commodities.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/wealth-management/skills/commodities/SKILL.md · 107 lines

How it starts

The opening of the file, as written. The whole thing — 107 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Commodities

Core Concepts

Spot vs Futures Pricing

The futures price is related to the spot price through the cost-of-carry model:

F = S × e^((r + u - y) × t)

where S = spot price, r = risk-free rate, u = storage cost, y = convenience yield, t = time to expiration. The convenience yield represents the benefit of holding the physical commodity (e.g., avoiding production shutdowns).

Contango

When F > S, the futures curve is upward-sloping. Storage costs and financing costs exceed the convenience yield. Contango creates negative roll yield because investors must sell cheaper expiring contracts and buy more expensive later contracts. Contango is common in well-supplied markets and for storable commodities like oil and natural gas.

Backwardation

When F < S, the futures curve is downward-sloping. The convenience yield exceeds storage and financing costs, often due to near-term supply scarcity. Backwardation creates positive roll yield because investors sell expensive expiring contracts and buy cheaper later contracts. Backwardation is common in tight supply environments.

Sources of Commodity Return

Total commodity return has three components:

  1. Spot return: Change in the spot price of the commodity
  2. Roll yield: Gain or loss from rolling expiring futures into the next contract
  3. Collateral yield: Interest earned on the margin/collateral posted to hold futures positions

Total Return = Spot Return + Roll Yield + Collateral Yield

Roll Yield

The gain or loss realized when an expiring futures contract is replaced by a longer-dated contract. In contango (upward curve), roll yield is negative. In backwardation (downward curve), roll yield is positive. Roll yield can be a significant drag or boost to total returns — in deep contango, roll yield can eliminate or even exceed spot price gains.

Commodity Sectors

  • Energy: crude oil, natural gas, gasoline, heating oil — largest sector by production value
  • Precious metals: gold, silver, platinum, palladium — safe haven and industrial uses
  • Industrial metals: copper, aluminum, zinc, nickel — tied to global economic activity
  • Agriculture: corn, wheat, soybeans, coffee, sugar, cotton — weather and harvest dependent
  • Livestock: live cattle, lean hogs — demand-driven

Read the full file on GitHub · 107 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 107 lines · 110 tokens per session scan A 9b4d74b9889f

Subscribe to this mod's changes

commodities is a skill published in the GitHub repository JoelLewis/finance_skills (272 stars, last pushed 3d ago), licensed MIT. It adds 110 tokens to every session and 1,678 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-27.

Related

commodities compared with skills from other repositories

commodities next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
commoditiesJoelLewis/finance_skillsSkill2723d agoMITA110Claude Code
Freelance EmpireLeoYeAI/openclaw-master-skillsSkill2.2k8d agoMITA71Claude Code, Codex
agent-otc-tradeLeoYeAI/openclaw-master-skillsSkill2.2k8d agoMITA80Claude Code
agentic-streetLeoYeAI/openclaw-master-skillsSkill2.2k8d agoMITA91Claude Code, Codex
alpha-vantageforyourhealth111-pixel/Vibe-SkillsSkill3.9k21d agoApache-2.0A126Claude Code, Codex
prompt-proximity-architectureelvisun/newsjackSkill1.7k4d agoMITA67Claude Code
syndicromainsimon/paperasseSkill2.6k18d agoMITA204Claude Code