More screenshots

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Investor Tax Lots: gain per lot, 12 countries

    1

    Lot method, loss windows, tax years and quirks for 12 jurisdictions, plus an offline script: CSV of trades to gain per lot.

    $12

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Investor Tax Lots: gain per lot, 12 countries

    Investor Tax Lots: gain per lot, 12 countries

    Example session with this skill installed

    I bought 100 AAPL in January 2024 and 100 in June 2024, sold 100 in March 2025, bought 50 back 17 days later and sold 50 in September 2025. What is the gain under UK rules versus FIFO?

    • Read your context and instructions
    • Compiled the investor tax lots
    • Generated the data export

    Run 2026-11-16, sample_trades.csv (illustrative AAPL trades, one currency): $ lots.py sample_trades.csv --method uk-s104 --year-start 04-06 sell_date ticker qty buy_date matched cost proceeds gain 2025-03-03 AAPL 50 2025-03-20 30-day 9500.00 10000.00 500.00 2025-03-03 AAPL 50 pool s104-pool 10000.00 10000.00 0.00 2025-09-01 AAPL 50 pool s104-pool 10000.00 12500.00 2500.00 tax year gains losses net 2024/2025 500.00 0.00 500.00 2025/2026 2500.00 0.00 2500.00 one currency assumed; planning aid, not tax advice. Same trades, other methods, net result: fifo 7500.00 | lifo -7000.00 | average 2666.67 | uk-s104 3000.00

    sample_trades.csv

    CSV · data export

    Generated

    Example file from a real run - the skill writes it into your workspace.

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

    About this skill

    Two buys and one sale can be a gain, a loss or zero depending on the country: the lot rule matters more than the rate. This skill gives your agent the rule, the loss window, the tax-year boundary and the quirk for 12 jurisdictions, and an offline script that turns a CSV of trades into gain per lot under four matching methods. ## What it does Your agent names the residence and tax year first, picks the right lot method (FIFO, LIFO, average cost, UK Section 104 with same-day and 30-day matching), applies the loss-repurchase window (US and Canada 30 days either side, Ireland 28 days after, Spain two months), nets by the country's rules and reports gain per lot, blocked losses, what was not modelled and a plain not-tax-advice line. ## What you get | Path | Holds | |---|---| | SKILL.md | rules, 12-row jurisdiction table, method | | references/spain.md | savings base, two-month rule, dividends in the base | | references/united-states.md | wash sale, holding period, 2025 brackets, NIIT, FBAR | | references/united-kingdom.md | s104, same-day, 30-day, AEA, 6 April year | | references/germany.md | Abgeltungsteuer, loss circles, fund exemption | | references/continental-europe.md | France, Italy, Portugal | | references/ireland.md | four-week rule, 33% CGT vs 41% exit tax | | references/commonwealth-and-gulf.md | Canada, Australia, UAE, Switzerland | | references/filing-calendar.md | statutory filing dates | | scripts/lots.py | CSV to gain per lot, 4 methods, wash window, tax-year start | | scripts/test_lots.py | 14 tests, happy paths and refusals | ## Who it's for Self-directed investors, accountants' assistants and developers building tax tooling who want an agent that explains or estimates capital-gains results for shares and funds in a taxable account. ## Scope Covered: ES, US, UK, DE, FR, IT, IE, PT, CA, AU, AE, CH. Each reference states the tax year its figures are for (mostly 2025) and links the tax office. Not covered: other countries, wrappers (ISA, IRA, PEA, TFSA), state or cantonal tax, wealth tax, filing software. The script does not apply brackets or allowances and does not add a blocked loss back to the replacement basis. Tax-office links were not re-fetched at build time. This is a planning aid, not tax advice. Verify with the tax office or a licensed adviser.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.

    Planning aid, not tax advice. Figures are for the year stated in each reference. No wrappers, state or cantonal tax, wealth tax or broker-withholding regimes. Script does not apply brackets or allowances and does not re-add blocked losses to basis. Spain's 1-year window for unlisted securities is described but not modelled. Tax-office links not re-fetched at build time.

    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 1 day ago

    Software
    Python 3.9+ (standard library only)A CSV of trades in one currency

    Permissions

    Offline: the script reads one local CSV and prints to stdout. References link public tax-office pages that the agent may open on request.

    Listed1 day ago

    What's inside

    Frequently Asked Questions

    No. It is a planning aid. Every reference states the tax year of its figures and links the tax office; verify with the tax office or a licensed adviser.

    12: Spain, United States, United Kingdom, Germany, France, Italy, Ireland, Portugal, Canada, Australia, UAE, Switzerland.

    No. It matches lots under four methods, nets gains and losses per tax year and reports blocked losses. Brackets, allowances and holding-period splits are explained in the references.

    They are for the year stated in each reference (mostly 2025). Rates change; check the linked tax-office page before using a later year.

    No. The script is offline, standard library only.