More screenshots

    Works with the AI Agents you already use

    Portfolio Ledger Doctor: fix your trade history first

    by Ignasi

    1

    Find transfers booked as sales, missing splits, oversells and net dividends in your CSV ledger; fix with consent and an undo log.

    $5

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Portfolio Ledger Doctor: fix your trade history first

    Portfolio Ledger Doctor: fix your trade history first

    Example session with this skill installed

    My portfolio shows AAPL twice and my realized gain this year looks too high. Check ledger.csv.

    • Read your context and instructions
    • Compiled the portfolio ledger doctor

    From a scan of the bundled illustrative ledger (2026-11-23): TRANSFER transfer:3-4 conf=high, effect: realized gain USD -426.52 -> -1,224.52 (a phantom +799.00 sale gain removed); CAPITAL capital:13 conf=high, effect: dividends USD 2,113.10 -> 113.10, realized gain +2,000.00; SPLIT split:8-9 conf=low (confirm against a split calendar), effect: holding NVDA 0 -> 15; OVERSELL oversell:10: likely cause split; clears when split:8-9 is applied

    Connects securely to your tools. The creator never sees your data.

    About this skill

    A return or a tax gain is a replay of your transaction list. When the list is wrong the number is wrong and still looks confident. The mistakes that matter sit where two brokers' statements meet, and no single statement shows them. This skill gives your agent the method and a scanner to find them, show what each one does to your numbers, and fix only what you have approved.

    What it does

    Reads a CSV ledger strictly (a bad row refuses the file, with line numbers), lists findings most-reliable first, and for each one gives the signature, the evidence that would confirm it, the fix, and its before/after effect on holdings, realized gain and dividends. Apply writes a new file and an undo log; undo restores the original byte for byte.

    Nine checks: transfer between brokers imported as sale + buy (doubled position, phantom gain); ISIN-vs-symbol double positions; missing splits, reverse splits and retired .OLD lines; oversell with a cause trace (duplicate, fee, split, transfer, unexplained); return of capital booked as dividend; crypto fees left in the coins; dividends imported net; duplicates from re-imports; currency and pence-vs-pounds slips.

    What you get

    FileHolds
    SKILL.mdContract, procedure, fix order, hard rules
    references/checks.mdSignature, confirmation, fix, effect and traps per check
    references/confirming.mdWhich document settles each finding
    scripts/ledger_doctor.pyscan / apply / undo, Python 3.9+ standard library, offline
    templates/Proposal block and closing report
    examples/Ledger with planted errors, its real scan output, a malformed file

    Who it's for

    Self-directed investors with more than one broker or an exchange account, anyone about to file a tax return from broker exports, and people building portfolio tooling who want the failure signatures spelled out.

    Scope

    Covered: the nine checks on a multi-broker CSV ledger, stocks and crypto. Not covered: the script is offline, so it does not check prices against splits (the reference explains how, by hand), look up ISINs, convert currencies or compute tax. Map your broker's export into the column shape first. Low-confidence findings are questions for your statements, not verdicts.

    Not investment, tax or accounting advice.

    Offline: does not check prices against splits, resolve ISINs, convert FX or compute tax. Split and dividend findings are low/medium confidence until confirmed outside the ledger. Partial broker transfers (quantities differ) are not auto-matched. One currency-agnostic replay; a symbol in two currencies is flagged, not split.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 10 days ago

    Software
    Python 3.9+ (standard library only)

    A CSV ledger with date, action, symbol, qty, price (currency, fee, broker recommended).

    Permissions

    No network. Writes only the --out and --log paths you give it.

    Listed10 days ago

    What's inside

    Frequently Asked Questions

    No. Scan is read-only. Apply writes a new file plus an undo log; undo restores your original text exactly, and refuses if the fixed file changed since.

    It reads a generic CSV (date, action, symbol, qty, price, currency, fee, broker). Map your export into that shape first; the skill is broker-neutral.

    No. It is offline standard-library Python. The reference explains which checks you should confirm with outside data such as a split calendar.

    No. It finds and fixes ledger errors so the numbers a tax tool reads are right. It reports effect on realized gain per currency, in the ledger's own currencies.

    Each has a confidence from the rows alone. High means the evidence is in the rows (e.g. an arrival priced at the departing basis); low is a question to settle with a statement.

    New in Finance & Accounting

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Finance & Accounting.