К основному содержанию
скилл CX Codex

stock-screener — скилл для Claude Code: фильтры акций

Скилл stock-screener для Claude Code отбирает и ранжирует индийские акции по данным CSV. Запускается по запросу проверить список компаний, найти акции с заданными финансовыми показателями или объяснить, почему компания не прошла фильтр.

MIT ★ 69 обновлён 2026-11-13

Установить в Claude Code · Через маркетплейс плагинов Все способы и платформы ↓
/plugin marketplace add Shubhamkumartrichy/claude-trading-skills-india
/plugin install india-trading-skills@india-trading-skills
Открыть на GitHub

Что делает stock-screener

Скилл фильтрует и ранжирует индийские акции по фундаментальным показателям из CSV-файла. В нём есть пять готовых фильтров: canslim-india, value-dividend, dividend-growth-pullback, garp и quality-compounder. Можно задать условия через --where, посмотреть компании, не прошедшие ровно одно правило, и получить разбор по каждой компании или текст запроса для Screener.in.

Скрипт screen.py работает офлайн. Он показывает, какие правила компания прошла, и ранжирует результаты; список для чтения не является списком рекомендаций к покупке. Для фильтра dividend-growth-pullback нужны CSV с ценами либо столбец RSI. В canslim-india рыночный режим не входит в CSV: для этого правила требуется отдельно запустить market-regime.

На вход подойдёт экспорт Screener.in или собственный CSV с именами полей в snake_case. Для распознавания банков и NBFC используется столбец Industry, а без него тип компании определяется по названию. Запуск требует Python 3; правила --where принимают сравнение поля с числом, а не выражения произвольного кода.

Какие задачи решает

  • отфильтровать индийские акции по финансовым показателям из CSV
  • найти компании, прошедшие готовый фильтр CANSLIM или GARP
  • выяснить, какое правило не прошла компания
  • получить текст фильтра для Screener.in

Примеры запросов агенту

  • Отфильтруй акции из export.csv по фильтру quality-compounder.
  • Проверь export.csv: какие компании почти прошли фильтр GARP?
  • Объясни, почему Infosys не прошла фильтр garp в export.csv.

Как установить stock-screener

1Через маркетплейс плагинов

/plugin marketplace add Shubhamkumartrichy/claude-trading-skills-india
/plugin install india-trading-skills@india-trading-skills

Команда ставит плагин india-trading-skills целиком, со всеми его скиллами

2Через Skills CLI (Vercel)

npx skills add Shubhamkumartrichy/claude-trading-skills-india --skill stock-screener -a claude-code

3Вручную: положить файлы

~/.claude/skills/stock-screener/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/stock-screener/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о stock-screener

Как установить stock-screener в Claude Code?

Добавь маркетплейс командой /plugin marketplace add Shubhamkumartrichy/claude-trading-skills-india, затем установи скилл командой /plugin install india-trading-skills@india-trading-skills.

Что делает stock-screener?

Он фильтрует и ранжирует индийские акции по фундаментальным данным из CSV. Показывает результаты по правилам и формирует текст запроса для Screener.in.

Что нужно для работы stock-screener?

Нужны Python 3 и CSV с фундаментальными данными. Для dividend-growth-pullback понадобятся CSV с ценами или столбец RSI; для рыночного правила canslim-india запускается market-regime.

Исходный текст

SKILL.md · MIT
---
name: stock-screener
description: |
  Filter and rank a universe of Indian stocks from a fundamentals CSV (a Screener.in screen or
  watchlist export, or your own snake_case file). Five built-in screens with India thresholds:
  canslim-india, value-dividend (yield bar tied to the 10-year G-sec), dividend-growth-pullback
  (RSI from price CSVs), garp and quality-compounder. Also a safe --where filter language, near-miss
  lists, a per-company rule breakdown and the matching Screener.in query text. Red-flag gates: promoter
  pledge, ₹500 cr market-cap floor, negative net worth, missing data, and bank/NBFC handling.
  screen.py works offline.

  Use when the user asks: "screen stocks for me", "find quality compounders", "CANSLIM stocks in
  India", "high dividend yield stocks that are safe", "GARP / low PEG stocks", "filter my Screener.in
  export", "ROCE > 20 and low debt", "which stocks almost qualified", "why did X fail the screen", or
  "write me a Screener.in query".
---

# Stock Screener (India)

`fundamental-screening` explains how to read one company. This skill is the calculator: it runs a
whole universe through explicit rules, shows each pass/fail with the value, and ranks what survives.
A screen produces a reading list, not a buy list.

## Commands

```bash
python3 scripts/screen.py presets                        # the five screens, rules, weights, reasons
python3 scripts/screen.py fields --csv export.csv        # how your headers mapped; field names
python3 scripts/screen.py run --csv export.csv --preset quality-compounder
python3 scripts/screen.py run --csv export.csv --where "roce>20" --where "pe<25" --where "pledge<=5" --sort roce --top 20
python3 scripts/screen.py run --csv export.csv --preset dividend-growth-pullback --prices-dir data/
python3 scripts/screen.py explain "Infosys" --csv export.csv --preset garp
python3 scripts/screen.py query --preset value-dividend --gsec 7.15
```
Common flags: `--json` (strict JSON, missing values are `null`), `--gsec` (current 10-year G-sec
yield, default 7.0), `--min-mcap` (₹ crore, 500), `--max-pledge` (%, 20), `--no-gates`,
`--map "field=Header"` (repeatable), `--financials auto|none|NAME,NAME`. A preset and `--where` can
be combined. Bad input exits 2 with a one-line `error:`.

## Getting the CSV out of Screener.in

1. Run a screen (or open a watchlist) on screener.in. Use **Edit Columns** to add what the preset
   needs; `screen.py presets` and the "NOT CHECKED" notes tell you which.
2. Click **Export** and save as CSV (if you get an .xlsx, open it and save the sheet as CSV).
3. Add an `Industry` column if you can: it is how banks and NBFCs are recognised.

Headers are matched by keyword, so units, `%`, commas (`1,23,456.70`), `₹`, blanks, `-` and `NA`
are fine. **Verified** on public Screener.in screen tables (Nov 2026): `S.No.`, `Company`, `CMP Rs.`,
`P/E`, `Mar Cap Rs.Cr.`, `Div Yld %`, `NP Qtr Rs.Cr.`, `Qtr Profit Var %`, `Sales Qtr Rs.Cr.`,
`Qtr Sales Var %`, `ROCE %`, `ROE %`, `Debt / Eq`, `CMP / BV`. **Assumed** (column names vary with
what you add): EPS, 3/5-year growth, promoter/pledge/FII/DII holding and change, PEG, payout,
dividend growth, free cash flow, 52-week high, returns. We have only seen the web tables, not an
exported file, so if a header is not recognised, `fields --csv` lists it as unmapped. Fix it with
`--map pledge="Pledged %"`. Snake_case files work too: `name,symbol,industry,price,market_cap_cr,pe,
pb,dividend_yield,payout_ratio,roce,roe,debt_to_equity,profit_growth_3y,promoter_holding,pledge_pct`.

## Gates (every run unless `--no-gates`)

| Gate | Default | Why |
|---|---|---|
| Market cap | ≥ ₹500 cr | Below this: SME boards, thin floats, operator stocks, ASM/GSM lists |
| Promoter pledge | ≤ 20% | Red-flag line in `fundamental-screening`; 10–20% is flagged `pledge` |
| Net worth | not negative | Negative book value, P/B or D/E means losses have eaten the equity |
| Missing data | any rule's value blank | Listed as INCOMPLETE, never silently passed (blank P/E usually = loss) |

**Banks, NBFCs, insurers** (from the Industry column, otherwise guessed from the name) skip the
debt, ROCE, free-cash-flow, interest-cover and margin rules in presets, and are tagged `FIN`. Judge
them on ROA (> 1.2%), GNPA/NNPA, NIM and capital adequacy with `fundamental-screening`. Your own
`--where` rules apply to them unchanged. Soft flags: `small-cap` (< ₹2,000 cr) and `low-base?`
(quarterly profit up 200%+).

## Presets (how each is adapted for India)

- **canslim-india**: C = quarterly profit ≥ 25% YoY with sales ≥ 15% (no free consensus
  estimates in India, so reported growth stands in for a surprise). A = 3-year profit CAGR ≥ 20% and
  ROE ≥ 15%. N = within 15% of the 52-week high. L = 1-year return in the top 30% *of your file*, so
  export NIFTY 500 or wider. I = FII + DII holding rose last quarter (`fii-dii-flows` for detail). M is
  not in a fundamentals file: run `../market-regime/scripts/regime.py status` (`market-regime`) first.
- **value-dividend**: P/E ≤ 20 (NIFTY's long-run average is about 20–22), P/B ≤ 3, D/E ≤ 0.5, payout ≤
  75%, 3-year profit growth ≥ 5% (no yield traps), ROE ≥ 12%. Yield ≥ 40% of the 10-year G-sec (2.8%
  at 7%, about twice NIFTY's yield). Pass `--gsec` with today's yield. Dividends are taxed at your slab
  rate, with 10% TDS once a company pays you more than ₹10,000 in a financial year (s.194, from
  FY 2025-26). In the 30% slab a 3% yield nets about 2.1% (`indian-tax-for-traders`).
- **dividend-growth-pullback**: yield ≥ 1.5%, dividend growth ≥ 10%, profit growth ≥ 12%, payout ≤ 60%,
  ROE ≥ 15%, D/E ≤ 0.5, and RSI(14) ≤ 40 from `--prices-dir` (daily CSVs named after the symbol or
  company, read with `../technical-analysis/scripts/ta.py`) or an RSI column. Without either, the
  pullback rule is reported as not checked.
- **garp**: trailing PEG between 0 and 1.5 (P/E ÷ 3-year profit growth if no PEG column), profit
  growth ≥ 15%, sales growth ≥ 10%, ROCE ≥ 18%, ROE ≥ 15%, P/E ≤ 40.
- **quality-compounder**: ROCE ≥ 20%, ROE ≥ 18%, D/E ≤ 0.3, sales growth ≥ 10%, profit growth ≥ 12% over
  both 3 and 5 years, promoter ≥ 40%, pledge ≤ 1%, positive free cash flow. Board-run companies with no
  promoter fail the promoter rule by design.

**Score**: each rule scores 50 at its threshold and 100 at its "best" value (linear, capped), and
the composite is the weighted average. Weights are in `presets`. **Near misses** failed exactly one
rule and show which, with the value.

## Filters and Screener.in queries

`--where` takes `FIELD OP NUMBER` only (`> >= < <= == !=`; `and` joins several). It is parsed by a
regular expression and never evaluated, so `__import__(...)`, function calls and field-vs-field
comparisons are rejected. `query` prints the same rules as Screener.in query text, e.g.
`Return on capital employed > 20 AND Debt to equity < 0.3 AND Pledged percentage < 1`. Query
names seen in public Screener.in screens are marked verified (`fields`). `Return over 1year` was
not found and is flagged unverified. Dividend growth has no known field and is left out. `≥` is
written as `>`.

## Hand-offs

1. Read each passer's filings, governance and red flags with `fundamental-screening`. Check results
   timing with `results-season`.
2. Time entries with `breakout-planner` (base and pivot) or `momentum-scanner` (RS and bursts).
3. Before buying, check fit and concentration with `portfolio-review`.

Limits: the file is a snapshot from the export date, and stale columns give stale answers. RS is
relative to your file only. Thresholds are judgement calls you can override. A screen cannot see
related-party deals, auditor changes or surveillance status.

_Educational analysis, not investment advice._

© Shubham Kumar · MIT · Shubhamkumartrichy/claude-trading-skills-india

Похожие скиллы

Все скиллы по теме «Финансы и бизнес» →
Screener Stock Research LogeshR15 MCP-сервер Screener Stock Research для Claude Code ищет и сопоставляет данные об индийских акциях. Он отвечает на запросы о финансовых показателях, биржевых событиях и результатах скрининга. CX Codex +1 ★ 28звёзд репо Stock Screener xang1234 MCP-сервер Stock Screener для анализа акций на 12 мировых рынках по итогам биржевого дня. Помогает находить бумаги по готовым торговым стратегиям без ключей API. CX Codex +1 ★ 424звёзд репо Tapetide - Indian Stock Market MCP Tapetide-hq MCP-сервер Tapetide - Indian Stock Market MCP для Claude Code подключает котировки, финансовые отчёты и скринер NSE и BSE. В чате можно анализировать данные более 8200 индийских компаний и опционов. CX Codex +1 ★ 151звёзд репо value-dividend-screener tradermonty Скилл value-dividend-screener для Claude Code отбирает дивидендные акции США по мультипликаторам и темпам роста. Включается при запросах на поиск доходных портфельных идей с устойчивыми выплатами. CX Codex +1 4 100установок vcp-screener tradermonty Скилл vcp-screener для Claude Code сканирует акции S&P 500 на паттерн сжатия волатильности Марка Минервини. Находит бумаги во 2-й стадии восходящего тренда около точек пробоя. CX Codex +1 3 900установок stock-market-pro sundial-org Скилл stock-market-pro для анализа акций, крипты и форекса: тянет котировки, фундаментальные метрики и рисует свечные графики прямо в терминале. CX Codex +1 4 100установок

Из того же набора36

Весь набор →
broker-integration Скилл broker-integration для Claude Code подключает индийских брокеров через MCP-серверы и помогает работать с их данными и ордерами. Запускается при настройке брокера, запросе котировок или подготовке сделки. CX Codex +1 ★ 69звёзд репо indian-tax-for-traders Скилл indian-tax-for-traders для Claude Code разбирает налогообложение доходов резидентов Индии от торговли акциями и деривативами. Помогает классифицировать сделки, оценить налог и выбрать форму декларации. CX Codex +1 ★ 69звёзд репо fno-options-analysis Скилл fno-options-analysis для Claude Code разбирает индийские фьючерсы и опционы: опционные цепочки, волатильность, греки и сроки экспирации. Запускается на вопросах о NIFTY, PCR, India VIX, марже или правилах экспирации. CX Codex +1 ★ 69звёзд репо breakout-planner Скилл breakout-planner для Claude Code оценивает пробойные сетапы акций NSE/BSE и рассчитывает план сделки. Запускается на запросы о тренде Stage 2, базе, точке входа или сканировании списка акций. CX Codex +1 ★ 69звёзд репо results-season Скилл results-season для Claude Code анализирует реакцию акций NSE и BSE на квартальные отчёты. Он оценивает гэп, объём и движение цены после публикации. CX Codex +1 ★ 69звёзд репо portfolio-review Скилл portfolio-review для Claude Code анализирует портфель индийских акций и отмечает концентрацию, риски и варианты ребалансировки. Запускается по запросу проверить портфель или после загрузки брокерского файла. CX Codex +1 ★ 69звёзд репо market-regime Скилл market-regime для Claude Code оценивает режим рынка по данным индекса или ETF. Запускается на вопросах о тренде NIFTY и размере позиции перед новыми сделками. CX Codex +1 ★ 69звёзд репо momentum-scanner Скилл momentum-scanner для Claude Code ищет импульсные движения и сильные акции NSE/BSE. Запускается на запросы о пробоях, гэпах после новостей и рейтинге относительной силы. CX Codex +1 ★ 69звёзд репо

Спонсоры проекта

Компании, которые помогают держать аналитику открытой