/india-trading-skills:indian-tax-for-tradersfrom india-trading-skills
Calculates Indian income tax on stock-market gains (STCG, LTCG, intraday, F&O), handles set-off/carry-forward rules, tax-loss harvesting, and FIFO tradebook analysis. Includes a CLI estimator and tradebook script.
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.
Covers resident individuals for FY 2025-26 and tax year 2026-27, which use the same slabs and rates. From 1 Apr 2026 the Income-tax Act, 2025 replaced the 1961 Act. It renamed "previous year" as "tax year" and renumbered sections. Commonly cited mappings are 111A → 196, 112A → 198, and loss carry-forward 72/73/74 → 112/113/111. Confirm the numbering against the official CBDT mapping before quoting it in a filing.
Always end with: "Estimate only, not tax advice. Confirm with a Chartered Accountant before filing."
python3 scripts/tax.py estimate --salary 1800000 --stcg 120000 --ltcg 300000 --fno -80000
python3 scripts/tax.py estimate --other-income 600000 --intraday -40000 --fno 250000 --regime old
python3 scripts/tax.py estimate ... --bf-business-loss 100000 --bf-stcl 20000 # brought-forward losses
python3 scripts/tax.py tradebook tradebook.csv --fy 2026-27 --details # FIFO STCG/LTCG/intraday
python3 scripts/tax.py turnover --csv fno_trades.csv # Σ|P&L| and audit hint
python3 scripts/tax.py harvest holdings.csv --as-of 2027-03-10 --realized-ltcg 40000
Tradebook CSV columns: date, symbol, side (BUY/SELL), qty, price, plus optional charges (exclude
STT) and fmv_2018 (31-Jan-2018 FMV for grandfathered lots). Zerodha Console and Groww tradebook
exports work after renaming headers if needed. Holdings CSV columns: symbol, buy_date, qty, buy_price, ltp.
| Activity | Head / type | Rate | Losses |
|---|---|---|---|
| Delivery equity or equity MF held ≤ 12 months | STCG (STT paid) | 20% | Offset STCG or LTCG. Carry forward 8 years |
| Delivery held > 12 months | LTCG | 12.5% above ₹1.25 lakh per year | Offset only LTCG. Carry forward 8 years |
| Intraday equity (same-day square-off) | Speculative business income | Slab | Offset only speculative income. Carry forward 4 years |
| F&O (futures, options, equity or index) | Non-speculative business income | Slab | Offset any head except salary in the same year. Carry forward 8 years (against business income) |
| Dividends | Other sources | Slab | — (TDS 10% above ₹10,000 per company per year) |
| Buyback proceeds (from 1 Apr 2026) | Capital gains | As STCG/LTCG | Promoters face additional tax |
Rates for STCG and LTCG changed on 23 Jul 2024 (from 15%/10% with a ₹1 lakh exemption). Older sales use old rates.
Holding period is more than 12 months. Bought 15 Jan 2025 and sold 15 Jan 2026 is still short-term; sold 16 Jan 2026 is long-term.
Grandfathering: for shares bought before 1 Feb 2018, cost = higher of actual cost and the lower of (FMV on 31 Jan 2018, sale price).
| Income | Rate |
|---|---|
| Up to ₹4 lakh | 0 |
| ₹4–8 lakh | 5% |
| ₹8–12 lakh | 10% |
| ₹12–16 lakh | 15% |
| ₹16–20 lakh | 20% |
| ₹20–24 lakh | 25% |
| Above ₹24 lakh | 30% |
tax.py turnover.tax.py harvest)Tax estimate (new regime, FY 2026-27)
Normal income ₹.. | STCG ₹.. @20% | LTCG ₹.. (₹.. taxable @12.5%)
Tax ₹.. + cess ₹.. = ₹..
Set-off steps: … Carry forward: …
Form: ITR-3 / ITR-2; file by the due date to keep losses
Estimate only, not tax advice. Confirm with a Chartered Accountant before filing.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub shubhamkumartrichy/claude-trading-skills-india --plugin india-trading-skills2 plugins ship this exact skill · first indexed Nov 1, 2026
35 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.
Other plugins' skills for the same job