/india-trading-skills:thesis-trackerfrom india-trading-skills
Tracks Indian stock and F&O trade ideas as written, falsifiable theses with an enforced lifecycle (idea→watching→entry-ready→active→closed→invalidated). Flags reviews due, stop/kill hits, expiry dates, and LTCG transitions. Splits closing reviews into outcome vs. process. Stats by source and setup. Pure Python, offline.
Ships in india-trading-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
A trade without a written reason cannot be reviewed; it can only be remembered, and memory edits itself to protect the ego. This skill makes the reason, the entry trigger and the conditions that prove it wrong explicit before money moves, then holds the trader to them afterwards.
T="python3 scripts/thesis.py --store ~/trading/theses.json" # the store lives with the user's files
$T add TCS --direction long --horizon swing --source breakout-planner --setup breakout --tag it \
--statement "Deal wins revive IT; the 8-week base breaks out and holds above 3400" \
--trigger "daily close above 3400 on 1.5x volume" --trigger-price 3400 \
--kill "Q2 TCV below last quarter" --kill-price 3330 --stop 3340 --target 3520 --target 3650 \
--risk-pct 1 --catalyst 2026-11-20:"Q2 results"
$T add NIFTY --direction short --horizon swing --segment options --expiry 2026-11-24 ...
$T transition T0001 entry-ready
$T transition T0001 active --entry-price 3405 --qty 100 [--date 2026-11-14]
$T update T0001 --stop 3390 --note "trailed below the swing low"
$T note T0001 "Held the 20-DMA on falling volume" --reviewed # schedules the next review
$T due --prices ltp.csv [--days 7] [--ltcg-days 45] # start of every session
$T list [--state active] [--symbol TCS] [--tag it] [--due] [--all]; $T show T0001; $T stale --days 21
$T transition T0001 closed --exit-price 3520 --reason target --charges 160
$T postmortem T0001 # draft: facts from the record + the questions to ask
$T postmortem T0001 --thesis right --stop-honoured yes --mistake none --lesson "..."
$T stats [--since 2026-04-01]
$T export --journal thesis_journal.csv [--closed-only] [--overwrite]
$T hypothesis --symbol DIXON --expected-win-rate 45 --margin 10
Every command takes --json and --as-of YYYY-MM-DD (default today, IST). Bad input prints one
error: line and exits 2. --prices is any CSV with symbol and ltp (or close) columns.
| From | Allowed to | Needs |
|---|---|---|
| idea | watching, entry-ready, invalidated, expired | statement (at add) |
| watching | entry-ready, invalidated, expired | |
| entry-ready | active, watching, invalidated, expired | trigger, kill criteria, stop (premium for bought options) |
| active | closed | --entry-price --qty to enter; --exit-price --reason to close |
| expired | watching (revive) | |
| closed, invalidated | nothing: final | invalidating needs --note saying what proved it wrong |
Illegal moves are refused with the allowed list. Every change lands in the thesis history with its
date; update records old and new values. Widening a live stop, or rewriting the statement or kill
criteria while active, is allowed but flagged in the history and counted against plan adherence.
Closed theses are frozen (later thoughts go in note). Reviews default to 7 / 30 / 90 days by horizon.
The stop limits the loss; the kill criteria end the idea. "Q2 deal wins below last quarter", "stock enters ASM stage 2", "promoter pledge rises" are thesis-breaking even when price is above the stop. Written down before entry, they turn a later exit from a negotiation with hope into a lookup. A thesis without them cannot reach entry-ready.
due
(with a prices file if live quotes are available) and lead with kill hits, then reviews due.update / note,
which keep the earlier values. Never delete a thesis.due and stale only suggest; the trader confirms
the state change, the fill price and the reason.--source (breakout-planner, results-season, the stock
screener, momentum-scanner, pair-trading) so stats can say which sources actually make money.The postmortem separates the decision from the dice. Result comes from the record (₹ and R, using
the stop at entry). Whether the thesis was right comes from the trader: did the written statement
come true? The quadrant is right/good (earned), right/bad (variance or execution), wrong/good
(luck: do not repeat it) or wrong/bad (deserved); zero P&L is breakeven, never a loss. Plan checks
(entry within 1% of the trigger, exit not beyond the stop, early exit, stop widened) are filled from
the record and can be overridden with --entry-at-trigger, --stop-honoured, --exited-early.
stats gives win rate, average R, expectancy, results by source, setup, tag, horizon, direction and
segment, the quadrant table, plan-adherence rate (and followed vs broken expectancy) and the most
common mistakes. Fewer than 30 closed theses: every number is provisional.
--catalyst; due warns when one falls
inside an active holding. Read the reaction with results-season.due uses ../indian-tax-for-traders/scripts/tax.py
(listed equity is long-term after 12 months) to list holdings turning long-term within
--ltcg-days, with the STCG-vs-LTCG saving on the current gain. It never overrides a kill level.--expiry; due lists it ahead and flags an
expired contract. A bought option with no stop counts the whole premium as risk.--kill:
margins jump and exits thin. Shorts cannot be carried in delivery, so they need another segment.trading-discipline: run its pre-trade gate before transition ... active; export writes rows in
its journal format (date,symbol,side,entry,exit,stop,qty,charges + exit_date,setup,mistake, segment,notes), so ../trading-discipline/scripts/discipline.py review and
../position-sizing/scripts/risk.py journal read them. Active theses export with a blank exit
(open trade); use --closed-only for risk.py, which has no open-trade concept.backtest-lab: hypothesis prints a card (statement, evidence for and against, the backtest to run
with ../backtest-lab/scripts/backtest.py, pass marks set in advance, kill criteria, sample size).
Claude fills it in conversation; only a surviving idea is registered with add.portfolio-review checks the whole book, this skill why each position is in it; position-sizing sizes it.Thesis check as of Tue 20 Oct 2026 IST (1 open in /home/me/trading/theses.json)
Target reached (1)
T0001 TCS LTP ₹3,600 past ₹3,520 unrealised +₹19,500 (+3.00R): book, trail, or restate the thesis
Turning long-term within 30 days (1)
T0001 TCS bought 2025-11-03: wait 15 days (sell on or after 2026-11-04) to convert STCG 20% into LTCG 12.5%
Storage: one indented JSON file with schema_version; each save writes a temp file and renames it
over the store, keeping the previous version as theses.json.bak. A store from a newer version is
refused, as is a store that changed on disk mid-command. The script writes only the store (and the
journal CSV you name); default ./theses.json in the current folder, never inside the skill.
Limits: no prices are fetched; worded kill conditions are checked by the trader, not the script. Holidays and lot-size changes are not modelled. Tax figures ignore cess and the ₹1.25 lakh exemption.
Educational discipline tool, not investment advice. The thesis and the decision stay yours.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub xdhruv/claude-trading-skills-india-mv --plugin india-trading-skills36 skills in this plugin
/backtest-labBacktests rule-based swing ideas on NSE/BSE daily bars with Indian frictions built in: decide on
the close and fill at the next open, gap-through stops, slippage, exact per-trade charges by
segment and broker (STT, stamp duty, GST, DP), whole shares or lots, circuit-band no-fills,
futures-only shorts and an optional STCG/LTCG estimate. Six built-in strategies; CAGR vs
buy-and-hold, drawdown, Sharpe/Sortino, profit factor, expectancy in ₹ and R; parameter sweeps
with a plateau-or-spike read, walk-forward and Monte Carlo. backtest.py, stdlib only, offline.
Use when the user asks: "backtest this strategy", "would a 20/50 crossover have worked on X",
"is this edge real or curve-fit", "optimise my parameters", "walk-forward test", "Monte Carlo my
trades", "what drawdown should I expect", "do charges kill this idea", "does a NIFTY 200-DMA
filter help", or before putting real money behind any mechanical rule.
/breakout-plannerStage-2 breakout setups on NSE/BSE stocks: a trend-template check (rising 200 DMA, 50>150>200
stack, distance from 52-week high/low, relative strength vs NIFTY), base detection (volatility
contraction with successively tighter pullbacks, or a flat base) with pivot, depth, duration,
volume dry-up and a grade, then an order-ready plan: trigger, chase limit, capped stop, size,
Indian charges, R targets, GTT/SL templates, circuit-band and NSE tick-size checks. breakout.py
scans a folder of CSVs or yfinance symbols and ranks them, offline-capable.
Use when the user asks: "is X in a Stage 2 uptrend", "find VCP setups", "where is the pivot on X",
"plan a breakout trade in X", "breakout buy point and stop", "scan these stocks for breakouts",
"Minervini trend template for NSE stocks", "how do I place a GTT for a breakout", or any question
about buying stocks as they clear a base.
2 plugins ship this exact skill · first indexed Nov 14, 2026
Other plugins' skills for the same job