Skip to content
Skills Library
Finance & accounting · Review & audit

trader-risk

/trader-risk

Risk Manager for Indian stocks. Checks every proposed order against the user's limits before it can reach the broker and blocks anything over them: blocked symbols, max order size in rupees, minimum order, max position percent after the fill, the cash buffer, charges that eat too much of a small order (round trip including the Rs 20 DP charge), whole shares only, CNC delivery only (intraday MIS, F&O, MTF and short selling off unless allowed), stocks under NSE ASM/GSM surveillance, trade-to-trade (BE series) and SME stocks, malformed orders, duplicates and a daily order limit. Prints PASS or BL

Licence
MIT
Last repository change
05.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
2
Scripts
1
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 05.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 1 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: check.py

What it does and when to use it

Risk Manager for Indian stocks. Checks every proposed order against the user's limits before it can reach the broker and blocks anything over them: blocked symbols, max order size in rupees, minimum order, max position percent after the fill, the cash buffer, charges that eat too much of a small order (round trip including the Rs 20 DP charge), whole shares only, CNC delivery only (intraday MIS, F&O, MTF and short selling off unless allowed), stocks under NSE ASM/GSM surveillance, trade-to-trade (BE series) and SME stocks, malformed orders, duplicates and a daily order limit. Prints PASS or BL

Original author description

Risk Manager for Indian stocks. Checks every proposed order against the user's limits before it can reach the broker and blocks anything over them: blocked symbols, max order size in rupees, minimum order, max position percent after the fill, the cash buffer, charges that eat too much of a small order (round trip including the Rs 20 DP charge), whole shares only, CNC delivery only (intraday MIS, F&O, MTF and short selling off unless allowed), stocks under NSE ASM/GSM surveillance, trade-to-trade (BE series) and SME stocks, malformed orders, duplicates and a daily order limit. Prints PASS or BL

How it works

  1. What it checks
  2. How to run it
  3. Safety
Original SKILL.md headings · 66 lines, 515 words
SKILL.md preview
---
name: trader-risk
description: >-
  Risk Manager for Indian stocks. Checks every proposed order against the
  user's limits before it can reach the broker and blocks anything over them:
  blocked symbols, max order size in rupees, minimum order, max position percent
  after the fill, the cash buffer, charges that eat too much of a small order
  (round trip including the Rs 20 DP charge), whole shares only, CNC delivery
  only (intraday MIS, F&O, MTF and short selling off unless allowed), stocks
  under NSE ASM/GSM surveillance, trade-to-trade (BE series) and SME stocks,
  malformed orders, duplicates and a daily order limit. Prints PASS or BLOCK
  with the reason and records the verdicts so trader-broker only shows an order
  that passed. Use when the user says "check my orders", "is this safe", "risk
  check", "what are my limits", or after /trader-budget, /trader-rebalance or
  /trader-tax writes orders.
---

# trader-risk

The gate between a proposal and the broker. Deterministic: the same orders and
config always give the same verdicts, and `/trader-broker` refuses any order
that does not have a PASS from today (IST) for its exact fingerprint.

`${CLAUDE_SKILL_DIR}` below is this skill's folder (where this SKILL.md lives).

```bash
python3 "${CLAUDE_SKILL_DIR}/check.py"                       # PASS / BLOCK every order in trader/orders.json
python3 "${CLAUDE_SKILL_DIR}/check.py" surveillance --fetch  # cache NSE's ASM + GSM lists (do daily)
```

## What it checks

| check | config key | default |
| --- | --- | --- |
| symbol on your blocked list | `blocked` | `[]` |
| order value over the max | `max_order_inr` | 5000 |
| order value under the min | `min_order_inr` | 100 |
| position after the fill over the cap | `max_position_pct` | 25 |
| cash left under the buffer | `cash_buffer_pct` | 5 |
| buy + sell charges over X% of the order | `max_charges_pct` | 2.5 |
| more orders today than allowed | `max_orders_per_day` | 10 |
| intraday (MIS) | `allow_intraday` | false |
| F&O / NRML | `allow_fno` | false |
| margin trading (MTF) | `allow_mtf` | false |
| selling more than you hold | `allow_short` | false |
| NSE ASM / GSM surveillance | `allow_surveillance` | false |
| trade-to-trade series (BE, BZ) | `allow_t2t` | false |
| SME series (SM, ST) | `allow_sme` | false |
| fractional or zero quantity, bad fields, duplicates | always | |

Sells are checked first so the cash they free counts toward the buys, the way
a real broker's margin works for delivery. Charges come from Groww's published
delivery schedule (`trader-common/inr.py`, overridable under `"charges"` in config).

## How to run it

1. `check.py surveillance --fetch` once a day (it is cheap and blocks the stocks
   NSE itself has flagged as risky).
2. `check.py`. Show the user the table as is.
3. For every BLOCK, explain the reason in one line and the honest options:
   smaller order, fewer stocks, raise a limit **in config.json themselves**. Never
   raise a limit, edit orders.json or re-run with a different config to turn a
   BLOCK into a PASS on your own.
4. If everything they want passed, hand over to `/trader-broker`.

### The ₹1,000 question

With ₹1,000, the minimum ₹5 brokerage each side plus about ₹23.60 DP charge
(₹20 + GST) on every sale means a round trip costs ~3.8% of a ₹1,000 order: the
stock must rise almost 4% just to break even. `max_charges_pct` (2.5% by
default) blocks those orders on purpose. Say so plainly. Options: paper trade it,
one order instead of five, a low-priced ETF held for long, or raise the limit
knowingly.

## Safety

- PASS is required for any order; this skill never places orders.
- Only the user changes limits. Quote the config key; do not edit it for them
  unless they ask in so many words, and never to get a specific order through.
- Verdicts expire at midnight IST; re-check the next day.
- Not financial advice.
Files in this package (2)
  • SKILL.md 4 KB
  • check.py 12 KB

Versions

RepositoryScoreLicence
This page · KshitijBisht/bharat-trader-skill100MIT
devfn93/stock-trade-skill100MIT
rajumegal01-source/nse-day-trader-skill100MIT
jakeschincariol/day-trader-skill100MIT
jakeschincariol/trader-skill100MIT
AtiqMunawwar/crypto-day-trader-skill100MIT
sandysc0202-beep/day-trader-skill-india87MIT
rajdavee/bharat-trader87MIT
trmxvibs/day-trader-skill-india87MIT

Database snapshot: 13.11.2026 · package version 4344a68d5233 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 87nse-risk
    Risk Manager for NSE and BSE orders. Checks every order against your limits and stops anything over them, before it can reach the broker. For a new buy: a stop is required, the loss at the stop (measured from the higher of the plan's entry and a fresh NSE price, charges…
  • 100trader-budget
    Budget Manager for NSE cash equities. Sizes every position to your budget in rupees and your max loss per trade, charges included. Reads the trade plan from trader-exit (entry, stop, target), finds the whole shares that fit inside four limits (max loss per trade incl. estimated…
  • 87trader-budget
    Budget Manager for NSE trades in rupees. Sets up your rules once (size.py init: capital, risk per trade in percent, trades per day, MIS intraday or CNC delivery; every other limit derived and explained in plain words), then sizes every trade to them. Reads the plan from…
  • 100trader-budget
    Budget Manager for NSE intraday trades, in rupees. Sizes every position to your budget and your max loss per trade, with Indian charges counted: brokerage, STT, NSE transaction charges, SEBI fees, stamp duty and GST. Reads the trade plan from trader-exit (entry, stop, target),…
  • 100nse-budget
    NSE Budget Manager for Indian intraday trading, long only, no leverage. Sizes one trade to your capital and your max loss per trade in rupees, NET OF COSTS: the most whole shares whose loss at the stop, with slippage and every charge (brokerage, STT, exchange, SEBI, GST, stamp…
  • 87nse-risk
    Risk Manager for NSE/BSE. Checks every trade against your limits and stops anything over them, before it can reach the broker. For an intraday (MIS) trade: a stop is required, the loss at the stop INCLUDING charges must fit your max loss per trade, reward:risk after charges must…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.