heurist-finance: Skill for Claude Code

.claude/skills/commodity-curve/SKILL.md

commodity-curve is a skill for Claude Code from heurist-network/heurist-finance. It costs 85 tokens per session (1,090 once invoked), scanned A, original, MIT.

A guide to analysing commodity futures markets, including oil, gold, natural gas, and grains. It explains how the futures curve shows whether holding a contract earns or loses value as contracts are replaced over time.

In plain words
What is it for?
Use it to assess contango and backwardation, estimate roll yield, examine trader positioning and seasonality, connect gold with real interest rates, and compare futures with exchange-traded funds.
Why use it?
A correct view of a commodity's price direction can still produce a loss when the cost of replacing futures contracts is ignored. It also helps distinguish temporary scarcity from higher expected future prices.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is heurist-network/heurist-finance's own configuration. It tells Claude Code how to work on heurist-finance itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything heurist-finance configures →

Reuse

Borrowing it

Nothing to install: this file belongs to heurist-network/heurist-finance. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/heurist-network/heurist-finance/main/.claude/skills/commodity-curve/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/heurist-network/heurist-finance

Made for: Claude Code.

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 commodity-curve

README.md
[![agentmods](https://agentmods.dev/badge/skills/heurist-network/heurist-finance/commodity-curve/github.svg)](https://agentmods.dev/skills/heurist-network/heurist-finance/commodity-curve)
Your own site
<a href="https://agentmods.dev/skills/heurist-network/heurist-finance/commodity-curve"><img src="https://agentmods.dev/badge/skills/heurist-network/heurist-finance/commodity-curve/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 commodity-curve

Your own site · 80×15
<a href="https://agentmods.dev/skills/heurist-network/heurist-finance/commodity-curve"><img src="https://agentmods.dev/badge/skills/heurist-network/heurist-finance/commodity-curve.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,090 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.
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.00085 $0.01090
Opus 5.5 $0.00034 $0.00436
Sonnet 5.5 $0.00017 $0.00218
Haiku 4.5 $0.00009 $0.00109

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

Security

Grade A, and why

commodity-curve 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 13d ago.

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.

.claude/skills/commodity-curve/SKILL.md · 32 lines

How it starts

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

Commodity Curve

Shared plumbing and output contract: ../_shared/analyst-core.md. Equities pay you for holding; commodities pay (or charge) you for rolling. Every commodity call starts at the curve, because a correct spot view can still lose money to carry — the single most common retail commodity error.

Curve first, always

Pull the front contract and 2–4 deferred months: yahoo quote_snapshot/prices on CL=F plus specific months (CLZ26.NYM style); spot-check via market_overview market=COMMODITIES. Compute annualized roll yield = (front − deferred) ÷ front × (12 ÷ months between), and state the regime:

  • Backwardation (front > deferred): scarcity now; long positions earn the roll. Gorton & Rouwenhorst's long-run futures work associates backwardation regimes with positive excess returns — the curve is itself a signal, not just a cost.
  • Contango (front < deferred): storage economics; long positions pay the roll. Steep contango (>~10–12% annualized) has fully consumed correct directional theses — the USO 2020 case (right that oil recovers, −60% anyway via roll bleed) is the canonical lesson; cite it when a user wants long exposure in steep contango.
  • The trade must clear the carry: expected spot move minus roll cost over the holding period. Write that arithmetic out. In steep contango, the honest expressions are deferred contracts, producer equities (which own the curve), or call spreads — not the front-month tracker.

Instrument audit for ETFs: fund_snapshot + the fund's roll methodology (web). Front-month rollers (USO-style) bleed in contango; equity proxies (XLE, GDX) add equity beta and management factors — say which risk the user is actually buying.

Positioning, seasonality, and the macro leg

  • COT as a crowding flag, not a timer. Managed-money net positioning from the CFTC's weekly Commitments of Traders report — the workable source is cftc.gov's Disaggregated COT (or Tradingster/Barchart mirrors) via web; disambiguate the contract (WTI positioning lives on NYMEX, Brent on ICE — name which report you pulled). If a current reading can't be pinned down, "COT unavailable this run" is the expected fallback: flag it, don't fabricate a percentile. >~90th percentile of its 3-year range flags washout vulnerability: forward returns from crowded-long extremes show negative skew. Use it to veto adding to crowded trades and to size down, never as a standalone reversal signal — extremes persist.
  • Seasonality: real but decaying, decade-drift applies. Natgas withdrawal season (Nov–Mar) genuinely structures vol and storage math; ag planting/harvest cycles are physical. But specific calendar patterns ("buy corn in February") drift by decade and are partly folklore — check the claimed pattern against the last 10–15 years from prices before citing it, and label the sample size.
  • Gold is a real-rates trade wearing a commodity costume. Post-2003 correlation with 10y TIPS yields ≈ −0.4 to −0.6; a +100bps real-rate shock has historically pressured gold 15–25% over 6–12 months (label: regularity, not law — central-bank buying regimes weaken it, as post-2022 showed). Pull real rates via fred macro_series_history; a gold view without a real-rates and dollar view is incomplete (see macro-regime).
  • Supply/demand work is where the fundamental edge lives: inventories (EIA weekly for energy via web), production discipline, demand proxies. News (yahoo news_search, web) tracks the narrative; the curve tells you how much of it is priced — backwardation is the market saying "shortage now."

Read the full file on GitHub · 32 lines

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. 13d ago First seen · 32 lines · 85 tokens per session scan A 719008c43427

Subscribe to this mod's changes

commodity-curve is a skill published in the GitHub repository heurist-network/heurist-finance (11 stars, last pushed 14d ago), licensed MIT. It adds 85 tokens to every session and 1,090 once invoked, about $0.0003 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-10-24.

Related

commodity-curve compared with skills from other repositories

commodity-curve next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
commodity-curveheurist-network/heurist-financeSkill1114d agoMITA85Claude Code
sector-rotationHKUDS/Vibe-TradingSkill38kyesterdayMITA39Claude Code, Codex
twitter-readerhimself65/finance-skillsSkill3.5k2d agoMITA110Claude Code
strategy-pivot-designertradermonty/claude-trading-skillsSkill3.7k2d agoMITA28Claude Code, Codex
energy-procurementhashgraph-online/awesome-codex-pluginsSkill1.5kyesterdayApache-2.0A93Claude Code, Codex
airdrop-hunting-guidenirholas/three.wsSkill269yesterdayApache-2.0A54Claude Code, Codex
multi-expert-analyzerdigoal/blogSkill8.6k2d agoGPL-2.0A292Codex