← ClaudeAtlas

portfolio-reviewlisted

Health check for an Indian delivery (CNC) stock portfolio from a holdings CSV or a Zerodha Console, Kite, Groww or broker-MCP export: value and unrealised P&L, position and sector weights, top-5/top-10 concentration, business-group exposure (Adani, Tata...), large/mid/small mix against a target, pledged, SME and surveillance flags, a per-lot STCG→LTCG countdown, volatility, beta vs NIFTY, drawdown, correlated clusters, portfolio heat to stops, and a tax-aware rebalance plan with charges. Use when the user asks: "review my portfolio", "am I too concentrated", "sector allocation of my holdings", "how risky is my portfolio / what is my beta", "how much am I risking to my stops", "rebalance to equal weight", "what should I trim", "which holdings turn long-term soon", or uploads a holdings file from their broker.
Shubhamkumartrichy/claude-trading-skills-india · ★ 62 · Code & Development · score 84
Install: claude install-skill Shubhamkumartrichy/claude-trading-skills-india
# Portfolio Review (India) Look at the whole book before the next trade. This skill reports facts and flags (INFO / WARN / REVIEW). It never says "sell": every flag is a prompt for the user to re-check a thesis. ## Commands ```bash python3 scripts/portfolio.py review holdings.csv --cash 200000 # weights, flags, tax clock python3 scripts/portfolio.py review console.xlsx --sheet Equity --max-stock 8 --mcap-target 50/30/20 python3 scripts/portfolio.py risk holdings.csv --prices-dir prices/ --benchmark NIFTY # or --yf python3 scripts/portfolio.py rebalance holdings.csv --cash 50000 # equal weight python3 scripts/portfolio.py rebalance holdings.csv --targets targets.csv --broker groww --realized-ltcg 40000 python3 scripts/portfolio.py rebalance holdings.csv --cash 75000 --no-sell # deploy new money only ``` Every command takes `--as-of YYYY-MM-DD` and `--json`. `--prices-dir` holds daily candles named `SYMBOL.csv` or `SYMBOL.json` (any format `../technical-analysis/scripts/ta.py` reads) plus `NIFTY.csv`. Targets file: `symbol,weight[,price]` or `sector,weight`, in percent. Weight 0 means exit; symbols or sectors left out stay unchanged. A price column lets you add a stock you do not hold yet. ## Input columns Required: `symbol`, `qty`, `buy_price` (average cost), `ltp`. Strongly recommended: `buy_date`, with one row per lot, as in `../indian-tax-for-traders/scripts/tax.py` harvest files. Optional: `sector`, `mcap` (large/mid/sm