Commodities
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
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 -yInstalls 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- Rebalancing864
- Debt Management853
- Diversification851
- Historical Risk838
- Order Lifecycle827
- Currencies And Fx824
- Market Data824
- Bet Sizing818
- Emergency Fund817
- Financial Planning Workflow817
- Time Value Of Money816
- Liquidity Management815
- Performance Metrics815
- Volatility Modeling815
- Savings Goals813
- Return Calculations810
- Fund Vehicles801
- Forward Risk798
- Account Transfers797
- Lending796
- Data Quality795
- Trade Execution788
- Equities787
- Tax Efficiency785
Similar to Commodities
More Finance & Tradingcurrencies-and-fxjoellewis/finance_skills824 installsCovers forward rates, parity conditions, carry trades, and hedging math for international portfolio currency risk.
fx-carry-tradeanthropics/financial-services1.9K installsStructured FX carry trade analysis that combines spot, forward curve, vol surface, and history into a carry-to-vol assessment.
bond-futures-basisanthropics/financial-services1.9K installsPrices bond futures against the cheapest-to-deliver bond to compute basis, implied repo, and delivery option value.
volatility-modelingjoellewis/finance_skills815 installsModel, forecast, and interpret volatility with EWMA, GARCH, implied volatility, and VIX.
market-environment-analysistradermonty/claude-trading-skills4.7K installsStructured market briefing workflow covering global indices, forex, commodities, and yields, with risk-on/risk-off assessment.
etf-premiumhimself65/finance-skills3.7K installsCalculates ETF premiums and discounts to NAV, decomposes sudden moves into NAV-driven and structural causes.