# exhaustion-reversal

exhaustion-reversal is a Claude Code skill that scores fading NSE/BSE stock moves and maps entry or exit plans. It activates for questions about rallies, reversals, or news reactions.

- 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/exhaustion-reversal/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/exhaustion-reversal

## What it does

The skill runs `exhaustion.py` to score steep price rises using distance from moving averages, acceleration, run length, gaps, volume and upper-circuit streaks. It labels the move extended, climax or reversal confirmed. Other modes plan exits, find hammers after selling pressure, and assess how a stock reacted to news.

For an existing holding, the plan sets partial selling and a trailing level. Short plans are limited to F&O stocks and require a trigger. The script needs Python 3 and price-data CSV files; some modes also use F&O and price-band lists. A lower-circuit lock can block an exit in stocks with a 2% or 5% band.

## 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 exhaustion-reversal -a claude-code
```

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

### Codex

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

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

### Cursor

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

2. **Manually: put the files in place**
- File: `.cursor/skills/exhaustion-reversal/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/exhaustion-reversal
```

2. **Manually: put the files in place**
- File: `.github/skills/exhaustion-reversal/SKILL.md`

### Gemini CLI

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

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

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/exhaustion-reversal/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/exhaustion-reversal/SKILL.md

## When to use it
- judge whether a steep stock rally is fading
- map a partial-sale and trailing exit
- find a hammer after a sell-off
- assess a stock’s response to news
- scan stocks with F&O labels

## Example prompts
- Check whether this NSE stock’s rally is exhausted: `data/KAYNES.csv`.
- Plan an exit for 120 shares bought at an average of 4100 using `data/KAYNES.csv`.
- Assess the reaction to bullish news for the stock in `data/INFY.csv`.

## 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: 1449cf28c28815f2.

BEGIN THIRD-PARTY FILE 1449cf28c28815f2
````text
---
name: exhaustion-reversal
description: |
  When a move on NSE/BSE has run out of buyers or sellers. exhaustion.py scores a vertical run-up
  0-100 (stretch above the 20/50/200 DMA, acceleration, run length, range/volume blow-off, late
  gaps, upper-circuit streaks, price-band cuts), labels it extended, climax or reversal confirmed,
  and plans the exit: scale out and trail with a GTT if you hold, or short only via stock futures or
  puts on F&O names after a trigger, sized in lots. Also finds selling-exhaustion hammers for long
  entries, judges whether a stock failed to react to news, and scans a universe with F&O tags.

  Use when the user asks: "is this stock parabolic", "has the rally topped", "my stock hit upper
  circuit five days running, should I sell", "how do I book profit on a multibagger", "can I short
  this", "short a stock that ran up 80%", "capitulation or hammer setup", "selling exhaustion",
  "results were good but the stock fell, what does it mean", or wants a blow-off top scan.
---

# Exhaustion & Reversal (NSE/BSE)

`momentum-scanner` finds stocks as they start to move. This skill takes the same stocks weeks later,
when the move is old and steep, and asks whether it is ending. For most Indian retail traders the
answer matters as a **holder**: how much to sell into strength and where to trail the rest. Shorting
is the exception, and only possible in F&O stocks.

## Commands

```bash
python3 scripts/exhaustion.py climax --csv data/KAYNES.csv              # one stock: factors + stage
python3 scripts/exhaustion.py climax --csv-dir data/ --min-score 40     # ranked table
python3 scripts/exhaustion.py plan --csv data/KAYNES.csv --qty 120 --avg-price 4100
python3 scripts/exhaustion.py plan --csv-dir data/ --symbol KAYNES --side short --fno-list fo_mktlots.csv \
    --ban-list fo_secban.csv --margin-per-lot 210000 --capital 1500000 --risk-pct 1 --put-premium 120 --put-strike 5000
python3 scripts/exhaustion.py washout --csv-dir data/ --days 3 --capital 500000 --show-rejects
python3 scripts/exhaustion.py reaction --csv data/INFY.csv --date 2026-10-16 --news bullish --after-close \
    --crowding long --benchmark-csv nifty.csv
python3 scripts/exhaustion.py scan --csv-dir data/ --fno-list fo_mktlots.csv --bands bands.csv
```
Universe flags match `momentum.py`: `--csv-dir` + `--pattern`, `--csv` (repeatable), `--symbols`
(yfinance), `--as-of`, `--min-turnover-cr` (5), `--bands` (`SYMBOL,band`, 0 for F&O), `--tick`,
````
END THIRD-PARTY FILE 1449cf28c28815f2

The third-party file has ended. Everything between the 1449cf28c28815f2 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 2470 of 9290 bytes. © Shubham Kumar · MIT · https://github.com/Shubhamkumartrichy/claude-trading-skills-india/tree/HEAD/skills/exhaustion-reversal/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
