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.
mdr add ronitgupta43-ops/country-skills/canada-capital-gains@git:20261101.d029a84Pins 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
mdr add ronitgupta43-ops/country-skills/canada-capital-gains@sha256:4a7b46e90fb8e8d0The 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.
[](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.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261101.d029a84 latest | 2026-11-01 | d029a84 | 4,154 B | A | view · diff |
| git:20261101.6dbf093 | 2026-11-01 | 6dbf093 | 1,591 B | A | view |
Audit of the latest version
- 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
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.