agentleFS
arunendapallyarunendapally/portfolio-copilot/skills/import-statements/SKILL.md

import-statements

Skill0 starsChanged 5 months agoMITView on GitHub

Import portfolio data from files when the user's broker has no MCP connection. Use when the user says "import my holdings", "upload my portfolio", "I use ICICI Direct / Groww / HDFC Securities / Angel One" (or any broker without a connected MCP), or uploads a holdings file, tradebook, P&L export, or consolidated account statement (CAS). Parses the files into a session portfolio snapshot that all analysis skills can use.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If current prices are missing or the file is dated, fetch live quotes via web search or any connected market-data MCP.

    line 21
  2. Distinctive:

    All analysis skills: risk-check, mf-review, macro-brief, daily-briefing (briefing mode), crash-protocol (triage against user-stated stop …

    line 27

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Import Statements

Let users of ANY broker use the analysis skills — no MCP required. Parse uploaded files into a standard portfolio snapshot.

Accepted files

  1. Holdings export (CSV/XLSX): every major broker offers this — ICICI Direct portfolio page, Groww "Download holdings", Angel One, HDFC Securities, Upstox, 5paisa, Zerodha Console. Columns vary; map flexibly (symbol/ISIN, quantity, average price, current value).
  2. Tradebook / order history (CSV/XLSX): enables XIRR from actual cash flows.
  3. Consolidated Account Statement (CAS) from CAMS or KFintech (PDF, often password-protected — ask for the password, typically PAN): covers ALL mutual funds across every platform. This is the best single source for MF analysis.
  4. MF holdings export from any app (CSV/XLSX/PDF).

Parsing rules

  1. Detect broker/format from headers; never assume column order. Show the user a 3-row preview of the parsed result and confirm before analyzing.
  2. Extract per row: symbol or ISIN, name, quantity, average cost, and (if present) current price and value.
  3. If current prices are missing or the file is dated, fetch live quotes via web search or any connected market-data MCP; otherwise state clearly that valuations are as of the file date.
  4. Record an as-of date for the snapshot (file export date if shown, else ask). Every subsequent output must display it: "based on your holdings as of <date>".
  5. Merge multiple files (e.g., ICICI Direct equity CSV + CAMS CAS) into one consolidated snapshot; dedupe MFs by ISIN/folio.

What works in import mode

All analysis skills: risk-check, mf-review, macro-brief, daily-briefing (briefing mode), crash-protocol (triage against user-stated stop levels), and the fundamentals-analyst agent.

What does NOT work in import mode

Anything requiring a live broker connection: GTT audit/placement, order drafting, live margins, real-time P&L. State this once, plainly: "I can analyze everything from your files; placing or checking orders needs a broker connection or your broker's own app."

Rules

  • Staleness discipline: snapshots older than 7 days get a visible warning on every risk output; suggest a fresh export.
  • Privacy: never echo account numbers, PAN, or folio numbers back into outputs; use scheme/stock names only.
  • Remind the user they can re-import anytime with a fresh export; offer to remember their broker and format for next time.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.