Skip to content

Analytical guide to commodity futures returns, covering roll yield, curve shape, and index construction.

CCM score
62 of 100
skills.sh installs
873
GitHub stars
270
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers spot versus futures pricing, contango and backwardation, and the three components of commodity total return
  • Includes roll yield, commodity sectors, GSCI and BCOM index construction, and inflation hedge properties
  • Provides a cost-of-carry formula, a summary table of key formulas, and two worked examples with a runnable demo script
  • Designed for investors and analysts asking why commodity ETF returns diverge from spot price changes

Install

$ npx -y skills add joellewis/finance_skills --skill commodities -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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:

Details

Repository
github.com/joellewis/finance_skills
Category
Finance & Trading
First seen
Jun 3, 2026

Questions

What does the commodities skill do?

The commodities skill analyzes commodity markets, covering futures curve dynamics, roll yield, and supply and demand fundamentals. It helps with questions about contango, backwardation, commodity ETFs, and commodity indices such as the S&P GSCI and BCOM.

Why do commodity ETF returns differ from spot price changes?

Commodity ETFs track futures contracts rather than spot prices, so their returns combine spot return, roll yield, and collateral yield. In contango, negative roll yield can make ETF returns lag the spot price move.

How do I install the commodities skill?

Run npx -y skills add joellewis/finance_skills --skill commodities -y in a project to install it. Once installed, the agent can analyze commodity investing questions such as oil prices, gold as a safe haven, and roll yield.

Where does the commodities skill fit in the Finance and Trading category?

The commodities skill is listed in the Finance and Trading category on Claude Marketplaces, alongside wind-mcp-skill, stripe-best-practices and wind-find-finance-skill. It is focused on commodity market analysis rather than payments or trading tools.

More from joellewis/finance_skills

All 84

Similar to Commodities

More Finance & Trading