Detect crowded speculative positioning in CFTC futures markets (COT report analysis) to find contrarian setups using Jason Shapiro's methodology. Screens large-speculator ("non-commercial") net positioning across 65 futures markets (indices, rates, FX, metals, energy, crypto) via the FMP Commitment of Traders API, computes a 3-year and 26-week COT Index per market, and classifies extremes as CROWDED_LONG / CROWDED_SHORT. Use when the user asks about COT report analysis, crowded positioning, "who is trapped", speculative positioning extremes, contrarian futures setups, or wants to run Jason Shapiro-style analysis. This skill automates crowding DETECTION only (step 1 of 5) — it does not generate trade signals by itself.
npx skills add https://github.com/tradermonty/claude-trading-skills --skill cot-contrarian-detector
Implements step 1 of Jason Shapiro's COT (Commitment of Traders) contrarian
process: detect when large speculators are crowded into one side of a futures
market. Crowded positioning is a *precondition* for a contrarian trade, not a
trade signal — a market only becomes tradable once crowding is confirmed by a
news failure and price-action reversal (steps 2-3), which this skill guides
the user through manually.
Core thesis (Shapiro): Large speculators (hedge funds, CTAs, momentum
traders) tend to be maximally positioned at trend exhaustion, not trend
inception. When they are already crowded onto one side, the next big move is
statistically more likely to run them over than to reward them further. Fade
the *speculators*, not the commercials (commercials hedge for structural
reasons and are not a crowd-psychology signal).
English:
Japanese:
Do NOT use when:
actionable; see Guardrails below
futures markets only (indices, rates, FX, metals, energy, agri, crypto),
not single stocks
FMP_API_KEY environment variable or pass--api-key. COT endpoints require an FMP Premium+ plan — a free-tier
key will not have access.
requests installed.--core, up to ~65 for thefull universe), plus one call for the market list when neither --symbols
nor --core is given.
# Curated core futures universe (23 liquid/representative markets)
python3 skills/cot-contrarian-detector/scripts/screen_cot_crowding.py --core --output-dir reports/
# Explicit symbols
python3 skills/cot-contrarian-detector/scripts/screen_cot_crowding.py --symbols "ES,GC,CL" --output-dir reports/
# Full universe (all ~65 markets FMP's COT list covers)
python3 skills/cot-contrarian-detector/scripts/screen_cot_crowding.py --output-dir reports/
The script fetches each market's weekly legacy COT report (large-speculator
long/short positions), computes a 156-week (3-year) and 26-week COT Index per
market, and classifies extremes:
CROWDED_LONG — COT Index >= 90 (near the 3-year net-long high)CROWDED_SHORT — COT Index <= 10 (near the 3-year net-short high)NEUTRAL — everything in betweenMarkets with insufficient history to compute the index are never silently
dropped — they appear in a skipped list with the reason (e.g. "insufficient
history: 40/156 weeks").
Present the generated Markdown report, highlighting:
CROWDED_LONG / CROWDED_SHORT and by how muchFor any CROWDED_LONG / CROWDED_SHORT market the user wants to pursue,
load references/shapiro-methodology.md and walk through the remaining
steps — these are not automated:
the crowd's direction failed to move price the way the crowd would expect
(e.g. crowded-long market doesn't rally on bullish news). This is the core
edge and the most important manual confirmation.
pattern or a failure at a new high/low.
small, fixed-risk sizing (see position-sizer skill).
toward 50) or the stop is hit.
Never recommend an entry from crowding alone — steps 2 and 3 must both
confirm first.
reports/cot_crowding_<as-of-date>.json — machine-readable, witha run_context block (schema_version, params, universe, data_date) plus
markets (ranked results) and skipped (never silently dropped).
reports/cot_crowding_<as-of-date>.md — human-readablereport with Crowded Long / Crowded Short / Full Ranking / Week-over-Week
Swings / Skipped Markets / Methodology sections.
CFTC publishes the COT report Fridays ~3:30pm ET, with positions as of
the prior Tuesday — data is always 3+ days old by the time it's
published, and up to 9 days old by the following Friday. Run this skill:
read
the underlying data will be from the most recent Friday release either way
suggest an entry without steps 2 (news failure) and 3 (price action) from
references/shapiro-methodology.md also confirming.
read; do not treat them as a real-time signal.
non-commercial ("large speculator") positioning — commercial hedging flows
are structurally different and not a crowd-psychology signal.
references/shapiro-methodology.mdThe full 5-step process (crowding → news failure → price action → entry →
exit), why speculators (not commercials) are the fade target, the 3-day
publication lag caveat, and a table of what this skill automates vs. what
stays manual. Load this whenever guiding a user past step 1.
references/cot-index-calculation.mdThe COT Index formula, lookback rationale (156w primary / 26w context),
extreme threshold sensitivity, open-interest normalization rationale, the
legacy-vs-disaggregated report distinction (this skill uses the legacy
report's non-commercial = large-speculator fields), and a glossary of the FMP
COT API field names consumed by scripts/cot_index.py.
references/shapiro-methodology.md
references/cot-index-calculation.md
crowding computation
Automatically organizes invoices and receipts for tax preparation by reading messy files, extracting key information, renaming them consistently, and sorting them into logical folders. Turns hours of manual bookkeeping into minutes of automated organization.
Expert guidance for systematic backtesting of trading strategies. Use when developing, testing, stress-testing, or validating quantitative trading strategies. Covers "beating ideas to death" methodology, parameter robustness testing, slippage modeling, bias prevention, and interpreting backtest results. Applicable when user asks about backtesting, strategy validation, robustness testing, avoiding overfitting, or systematic trading development.
This skill calculates key financial ratios and metrics from financial statement data for investment analysis
This skill provides an advanced financial modeling suite with DCF analysis, sensitivity testing, Monte Carlo simulations, and scenario planning for investment decisions
This skill retrieves upcoming earnings announcements for US stocks using the Financial Modeling Prep (FMP) API. Use this when the user requests earnings calendar data, wants to know which companies are reporting earnings in the upcoming week, or needs a weekly earnings review. The skill focuses on mid-cap and above companies (over $2B market cap) that have significant market impact, organizing the data by date and timing in a clean markdown table format. Supports multiple environments (CLI, Desktop, Web) with flexible API key management.
Crypto wallet operations via the awal CLI — sign in, check balances, send USDC/ETH/POL/SOL, trade tokens, fund the wallet, and use the x402 payment protocol to discover paid services, pay for API calls, monetize an API, or query onchain data. Use whenever the user mentions signing in, login, authentication, wallet status, balance, address, sending money, paying someone, transferring tokens, ENS names, swapping/trading/converting tokens, funding/topping up/onramp, USDC, ETH, POL, SOL, the x402 bazaar, paid APIs, monetizing an endpoint, or querying onchain data on Base.
Access real-time and historical stock market data, forex rates, cryptocurrency prices, commodities, economic indicators, and 50+ technical indicators via the Alpha Vantage API. Use when fetching stock prices (OHLCV), company fundamentals (income statement, balance sheet, cash flow), earnings, options data, market news/sentiment, insider transactions, GDP, CPI, treasury yields, gold/silver/oil prices, Bitcoin/crypto prices, forex exchange rates, or calculating technical indicators (SMA, EMA, MACD, RSI, Bollinger Bands). Requires a free API key from alphavantage.co.
Braintree Automation: manage payment processing via Stripe-compatible tools for customers, subscriptions, payment methods, and transactions
Take tradermonty/cot-contrarian-detector from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.