canada-capital-gains SKILL.md skillA

canada-capital-gains from ronitgupta43-ops/country-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add ronitgupta43-ops/country-skills/canada-capital-gains@git:20261101.d029a84

Pins git:20261101.d029a84 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
ronitgupta43-ops/country-skills
Path
plugins/canada-finance/skills/canada-capital-gains/SKILL.md
Versions recorded
2
Latest version
git:20261101.d029a84, committed Nov 1, 2026
First version recorded
Nov 1, 2026
Size
4,154 bytes
Repository stars
6
License
MIT

Adjusted cost base (average cost), realized capital gains/losses per year and superficial loss warnings for a Canadian non-registered account. Use when the user asks "what's my ACB", "how much tax if I sell", "capital gains", "superficial loss", or uploads a trades CSV.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Capital gains (non-registered account)

## Input

A CSV with columns `date,action,symbol,qty,price,fees` (action = buy or sell, date = YYYY-MM-DD, prices in CAD). If the user's broker export looks different (Wealthsimple, Questrade, Coinbase), rename the columns to match first. Convert USD trades to CAD at the Bank of Canada rate for the trade date.

## Run

```
python scripts/acb.py trades.csv
```

It prints ACB per share for each holding, realized gain/loss per year, and flags any loss that may be superficial.

## Rules the script uses

- ACB is average cost: (total cost incl. fees) / shares. Selling doesn't change ACB per share.
- Gain = proceeds - fees - ACB of shares sold.
- 50% of a net capital gain is taxable (inclusion rate).
- Superficial loss: a loss is denied if the same security was bought within 30 days before or after the sale (by the user or a spouse) and is still held 30 days after. The denied loss is added to the ACB of the new shares.

## After running

- For flagged losses, explain the rule and that the loss gets added to the ACB of the repurchased shares, not lost forever.
- Gains in TFSA/RRSP/FHSA are not taxed; this is only for non-registered accounts.
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add ronitgupta43-ops/country-skills/canada-capital-gains@sha256:4a7b46e90fb8e8d0

The line at the top of this page pins the label git:20261101.d029a84, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_ew7gwyip73zqqj3u.svg)](https://markdownregistry.com/a/art_ew7gwyip73zqqj3u)

1 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 2 versions of this file, all committed on Nov 1, 2026.

versioncommittedcommitsizeaudit
git:20261101.d029a84 latest2026-11-01 d029a84 4,154 BA view · diff
git:20261101.6dbf0932026-11-01 6dbf093 1,591 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (4154 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

ronitgupta43-ops/country-skills · 6 stars · license MIT · pushed 2026-11-06 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_ew7gwyip73zqqj3u
GET https://markdownregistry.com/api/v1/resolve?ref=ronitgupta43-ops/country-skills/canada-capital-gains
GET https://markdownregistry.com/api/v1/blob/4a7b46e90fb8e8d09733d6b89c92eee049215c5ab178b990aeb01cf55819d4b2

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from ronitgupta43-ops/country-skills

AGENTS.md AGENTS.md file
ronitgupta43-ops/country-skills · AGENTS.md
git:20261106.33cfd8b · audit A · 6 stars
canada-creator-tax SKILL.md skill
ronitgupta43-ops/country-skills · plugins/canada-finance/skills/canada-creator-tax/SKILL.md · Tax for Canadian content creators and influencers - what the CRA counts as income (including gifted products), GST/HST…
git:20261101.891a563 · audit A · 6 stars
canada-crypto-tax SKILL.md skill
ronitgupta43-ops/country-skills · plugins/canada-finance/skills/canada-crypto-tax/SKILL.md · Canadian crypto tax - adjusted cost base (average cost) pooled across Coinbase, Binance, Wealthsimple and wallets…
git:20261102.ca94c46 · audit A · 6 stars
canada-first-home SKILL.md skill
ronitgupta43-ops/country-skills · plugins/canada-finance/skills/canada-first-home/SKILL.md · Plan a first home purchase in Canada - minimum down payment, CMHC insurance, monthly payment, the mortgage stress test…
git:20261102.5fb2a3d · audit A · 6 stars
canada-registered-accounts SKILL.md skill
ronitgupta43-ops/country-skills · plugins/canada-finance/skills/canada-registered-accounts/SKILL.md · Work out TFSA, RRSP and FHSA contribution room and which account to fund first. Use when the user asks "how much TFSA…
git:20261101.d029a84 · audit A · 6 stars
canada-cover-letter SKILL.md skill
ronitgupta43-ops/country-skills · plugins/canada-jobs/skills/canada-cover-letter/SKILL.md · Write a short, tailored Canadian cover letter from the user's resume and a job posting. Use when the user asks for a…
git:20261101.6dbf093 · audit A · 6 stars
canada-interview-prep SKILL.md skill
ronitgupta43-ops/country-skills · plugins/canada-jobs/skills/canada-interview-prep/SKILL.md · Prepare for a Canadian job interview with likely questions, STAR answers built from the user's own experience, and a…
git:20261101.6dbf093 · audit A · 6 stars
canada-resume SKILL.md skill
ronitgupta43-ops/country-skills · plugins/canada-jobs/skills/canada-resume/SKILL.md · Rewrite or review a resume in Canadian format and tailor it to a job posting, especially for newcomers with…
git:20261101.6dbf093 · audit A · 6 stars
creator-brand-deals SKILL.md skill
ronitgupta43-ops/country-skills · plugins/creator/skills/creator-brand-deals/SKILL.md · Help creators land and run brand deals - media kit, rate card from their own numbers, pitch emails to brands, contract…
git:20261101.d029a84 · audit A · 6 stars
creator-content-plan SKILL.md skill
ronitgupta43-ops/country-skills · plugins/creator/skills/creator-content-plan/SKILL.md · Plan content for a creator - content pillars, a weekly/monthly calendar with festivals and seasonal moments for India…
git:20261101.891a563 · audit A · 6 stars
creator-content-writer SKILL.md skill
ronitgupta43-ops/country-skills · plugins/creator/skills/creator-content-writer/SKILL.md · Write hooks, captions, Reel/Shorts/TikTok scripts, carousel text and hashtags in the creator's own voice, including…
git:20261101.891a563 · audit A · 6 stars
crypto-portfolio SKILL.md skill
ronitgupta43-ops/country-skills · plugins/crypto/skills/crypto-portfolio/SKILL.md · Combine crypto exports from Binance, Coinbase, Kraken, Wealthsimple, WazirX, CoinDCX or a wallet into one ledger and…
git:20261102.ca94c46 · audit A · 6 stars

Every file in ronitgupta43-ops/country-skills

Browse by kind, by grade A, or by owner.