Skip to content
Back to skills

Artha Xray

ASecurity

Finds stock and sector overlap across an Indian mutual fund portfolio — which funds hold the same stocks, how many rupees you really have in each stock and sector through all funds combined, and which fund pairs largely duplicate each other. Use when the user asks about fund overlap, "do my funds hold the same stocks", diversification, consolidating funds, concentration in banks or any sector, or how much HDFC Bank/ICICI they really own — even if they only say "am I over-diversified" or "too ...

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 23, 2026
ai-agentspythonbash

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned November 23, 2026

npx -y skills add gpavan1992/artha-skill --skill artha-xray --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Artha Xray?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Artha Xray
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gpavan1992-artha-xray/badge)](https://www.skillsdirectory.com/skills/gpavan1992-artha-xray)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: artha-xray
description: Finds stock and sector overlap across an Indian mutual fund portfolio — which funds hold the same stocks, how many rupees you really have in each stock and sector through all funds combined, and which fund pairs largely duplicate each other. Use when the user asks about fund overlap, "do my funds hold the same stocks", diversification, consolidating funds, concentration in banks or any sector, or how much HDFC Bank/ICICI they really own — even if they only say "am I over-diversified" or "too many funds".
---

# India MF Overlap

Look-through analysis of a mutual fund portfolio from each fund's disclosed holdings.

```bash
python3 "${CLAUDE_SKILL_DIR}/scripts/overlap.py" funds.json [--values values.json] [--top 15] [--flag 30] [--out overlap.json] [--json]
```

## Getting the data

1. **Holdings:** call IND Money `get_mf_funds_details(fund_ids="...", includes=["holdings"])`
   (max 10 ids per call). Save the raw response as JSON. The script reads it directly and
   keeps only the **Equity** group.
2. **Values:** `values.json` = `{"Sample Focused Fund": 250000, ...}`, keyed by the fund's
   short name as IND Money returns it, or by fund_id. Take values from `networth_holdings(MF)`.
3. Or pass your own `funds.json`:
   `[{"name", "value", "holdings": [{"name", "perc", "sector"}]}]`.

## Output

- **pairs:** overlap % for every fund pair (Σ of the smaller weight across common stocks),
  the common stocks, and a flag at ≥30% (`--flag`).
- **top_stocks:** rupees and % of portfolio held in each stock through all funds, and in how
  many funds.
- **sectors:** look-through sector split, also as a share of the visible holdings.
- **coverage_pct** and per-fund warnings: how much of the portfolio the disclosed holdings
  actually explain.

## Traps this tool handles

1. **Partial disclosures.** IND Money usually returns top holdings only; on a real test they
   covered 29–64% of each fund. Every overlap number is therefore a **floor**. Always report
   coverage next to it ("at least 13.6%, from holdings covering 35–64% of each fund").
2. **Bonds named like companies.** Hybrid and debt funds list corporate bonds
   ("Samvardhana Motherson…") under Debt & Cash. Only the Equity group counts as stock overlap.
3. **Name variants.** "Max Healthcare Institute Ltd Ordinary Shares" and "Max Healthcare
   Institute Ltd" are matched after stripping Ltd/Limited/Ordinary Shares/etc.
4. **Index funds** hold the whole index; their overlap with active large-cap funds is
   structural, not a fund-manager choice. Say so instead of flagging it as duplication.

## How to report

Lead with the most useful number: the biggest look-through stock, or the most-duplicated
pair. Then coverage, then what it means for diversification. Observations only; never
tell the user to sell or switch.

Files in this skill

  • SKILL.md2.8 KB
  • example.indmoney.json8 KB
  • example.values.json96 B
  • scripts/overlap.py5.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.