# fii-dii-flows

The fii-dii-flows Claude Code skill reads Indian equity flow data for FII/FPI and DII from downloaded CSVs. It responds to requests about institutional selling, futures positions, holdings changes, and stock deals.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · ★ 69 repo stars
- Author: Shubham Kumar
- License: MIT · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/Shubhamkumartrichy/claude-trading-skills-india/tree/HEAD/skills/fii-dii-flows/SKILL.md
- Updated: 2026-11-13
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/fii-dii-flows

## What it does

The skill processes CSV files containing FII/FPI and DII activity, participant positions, and reported deals. Its `flows.py` script calculates flows across several periods, buying and selling streaks, how much DII buying offsets FII outflows, and correlation with NIFTY. It runs offline.

For NSE open-interest analysis, provide a folder of daily files. The script also compares quarterly shareholding and flags pledge changes, while deal reports group activity by symbol and client. It needs `python3` and CSV files downloaded in advance; scripted requests to `nseindia.com` are blocked.

## Install

### Claude Code (native platform)

1. **Plugin marketplace**
In the agent chat (not a shell):
```text
/plugin marketplace add Shubhamkumartrichy/claude-trading-skills-india
```
In the agent chat (not a shell):
```text
/plugin install india-trading-skills@india-trading-skills
```
This installs the whole india-trading-skills plugin with all its skills

2. **Skills CLI (Vercel)**
```bash
npx skills add Shubhamkumartrichy/claude-trading-skills-india --skill fii-dii-flows -a claude-code
```

3. **Manually: put the files in place**
- File: `~/.claude/skills/fii-dii-flows/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/fii-dii-flows/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add Shubhamkumartrichy/claude-trading-skills-india --skill fii-dii-flows -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/fii-dii-flows/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add Shubhamkumartrichy/claude-trading-skills-india --skill fii-dii-flows -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/fii-dii-flows/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install Shubhamkumartrichy/claude-trading-skills-india skills/fii-dii-flows
```

2. **Manually: put the files in place**
- File: `.github/skills/fii-dii-flows/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add Shubhamkumartrichy/claude-trading-skills-india --skill fii-dii-flows -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/Shubhamkumartrichy/claude-trading-skills-india --path skills/fii-dii-flows
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/fii-dii-flows/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/Shubhamkumartrichy/claude-trading-skills-india/tree/HEAD/skills/fii-dii-flows/SKILL.md

## When to use it
- calculate FII and DII flows across reporting periods
- track how long FII selling has continued
- compare FII outflows with DII buying
- inspect participant positions in futures and options
- find shareholder changes and deals by symbol

## Example prompts
- Calculate this week's FII and DII flows from `fii_dii.csv`.
- Check whether DII buying is offsetting FII sales, and compare the figures with NIFTY.
- Find deals for `HDFCBANK` and changes in FII holdings.

## Source text · SKILL.md · MIT

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: 1b2a9f0303a174e5.

BEGIN THIRD-PARTY FILE 1b2a9f0303a174e5
````text
---
name: fii-dii-flows
description: |
  Institutional money flow in Indian equities, from CSVs you download: FII/FPI and DII cash flows
  (₹ crore) with 5/10/20-session and month-to-date sums, streaks, how much FII selling DIIs
  absorbed, largest days and NIFTY correlation; NSE participant-wise F&O open interest (FII
  index-futures long %, day-over-day change, index calls/puts, client positioning, extreme flags);
  quarterly shareholding changes with pledge red flags; bulk/block deals by symbol and client.
  flows.py works offline.

  Use when the user asks: "FII DII data this week", "are FIIs selling", "how long have FIIs been
  selling", "are DIIs absorbing FII selling", "FII long short ratio", "participant wise OI", "FII
  positioning in index futures", "who is buying this stock", "FII holding change", "promoter
  pledge", "bulk deals in X", "block deals", or wants flow context for a market or stock view.
---

# FII/DII Flows (India)

`market-pulse` quotes last evening's FII/DII figures. This skill turns weeks of downloaded data into
streaks, absorption, positioning extremes and holder changes, so a single day's number gets context.

## Commands

```bash
python3 scripts/flows.py cash --csv fii_dii.csv                      # flows, streaks, absorption
python3 scripts/flows.py cash --csv fii_dii.csv --nifty nifty.csv --json   # + NIFTY correlation
python3 scripts/flows.py participants --oi participant_oi/ --days 10  # folder of daily NSE files
python3 scripts/flows.py shareholding --csv shp.csv [--symbol HDFCBANK,ITC]
python3 scripts/flows.py deals --csv bulk.csv --csv block.csv [--symbol XYZ] [--client "fund"]
```
Common flags: `--json` (strict JSON), `--as-of DATE`, `--date-format dmy|mdy`. Tuning: `--lookback 60`,
`--top 5` (cash); `--long-low 20 --long-high 70 --shift-pp 5` (participants); `--min-change 1`,
`--promoter-drop 0.5`, `--pledge-watch 10 --pledge-red 20 --pledge-severe 50` (shareholding);
`--kind bulk|block --from --to` (deals). Errors exit 2 with one `error:` line.

**Dates are never guessed.** ISO, `30-Oct-2026`, `30-OCT-2026`, `Oct 30, 2026` and `30-10-2026` (dashes =
day first, NSE style) parse directly. Slash dates like `05/10/2026` work only if some row in the file
proves the order (a day above 12); otherwise the script stops and asks for `--date-format`.

## Getting the files

nseindia.com blocks scripted requests: download in a browser, or use WebSearch/WebFetch on sites that
republish the figures (cite them). Never invent a missing day.

| Command | Source | Format handled |
|---|---|---|
````
END THIRD-PARTY FILE 1b2a9f0303a174e5

The third-party file has ended. Everything between the 1b2a9f0303a174e5 tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

First 2563 of 10039 bytes. © Shubham Kumar · MIT · https://github.com/Shubhamkumartrichy/claude-trading-skills-india/tree/HEAD/skills/fii-dii-flows/SKILL.md

_Part of the page did not fit — see the HTML version._

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
