Calculate Tax
Calculate cryptocurrency taxes with multi-jurisdiction support, cost basis
- Type
- Slash Command
- Repository
- jeremylongshore/tons-of-skills-marketplace
- GitHub stars
- 2.8k
- License
- MIT
- Repo last updated
- Sep 27, 2026
What Calculate Tax is
Calculate Tax is a slash command published in the jeremylongshore/tons-of-skills-marketplace repository on GitHub, which has about 2.8k stars. The repository describes itself as: “Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.”
A slash command is a reusable prompt saved as a markdown file and run by typing its name after a slash. In Claude Code, custom commands have been merged into skills: a file in .claude/commands/ and a skill folder in .claude/skills/ both create the same kind of command, and existing command files keep working.
Calculate Tax gives you a repeatable way to run the same instructions without retyping them, optionally with arguments.
How to install Calculate Tax
Claude Code
- Download calculate-tax.md from the repository.
- Save it to ~/.claude/commands/ (all projects) or .claude/commands/ (one project). As a skill, you can instead save it as ~/.claude/skills/<name>/SKILL.md.
- Run it by typing / followed by its name.
Claude Cowork
- Turn the command into a skill: create a folder with the file saved as SKILL.md and zip it.
- In Customize → Skills, click +, then upload the ZIP.
- Run it from any task with / and the skill name.
New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.
Inside the source file
An excerpt from plugins/crypto/crypto-tax-calculator/commands/calculate-tax.md, shared under the repository's MIT license. Read the full file on GitHub.
Comprehensive cryptocurrency tax calculation system with support for multiple accounting methods (FIFO, LIFO, HIFO, Specific ID), multi-jurisdiction compliance (US IRS, UK HMRC, EU DAC8), and automated tax form generation. Handles capital gains/losses, staking rewards, airdrops, mining income, DeFi yield, NFT transactions, and wash sale rules.
Usage
When calculating cryptocurrency taxes, implement comprehensive tax calculation across all taxable events:
Required Parameters
- Tax Year: Year for tax calculation (2024, 2023, etc.)
- Jurisdiction: US, UK, EU, AU, CA, or custom
- Accounting Method: FIFO, LIFO, HIFO, Specific Identification
- Transaction Sources: Exchanges, wallets, DeFi protocols
- Income Types: Trading, staking, mining, airdrops, DeFi
Supported Transaction Types
- Trading: Buy, sell, swap, conversions
- DeFi: Staking rewards, liquidity pool fees, yield farming
- Mining: Block rewards, mining pool payouts
- Income: Airdrops, hard forks, referral bonuses
- NFTs: Minting, sales, royalties
- Gifts: Received, sent, donations
Implementation
1. Complete Tax Calculator with Multi-Exchange Support
#!/usr/bin/env python3
"""
Comprehensive Cryptocurrency Tax Calculator
Supports: FIFO, LIFO, HIFO, Specific ID
Jurisdictions: US (IRS), UK (HMRC), EU (DAC8), AU (ATO), CA (CRA)
"""
import csv
import json
import logging
import sqlite3
from datetime import datetime, timedelta
from decimal import Decimal, ROUND_HALF_UP
from typing import Dict, List, Optional, Tuple
from dataclasses import dataclass, field
from enum import Enum
import hashlib
import pandas as pd
…Compliance Considerations
United States (IRS)
Key Requirements:
- Report all crypto transactions on Form 8949 and Schedule D
- Report ordinary income (staking, mining, airdrops) on Schedule 1
- De minimis exception: Personal transactions under $200 may be exempt
- Wash sale rules: Currently DO NOT apply to crypto (as of 2024)
- FinCEN Form 114: Required for foreign exchange accounts over $10k
Tax Rates (2024):
- Short-term capital gains: Ordinary income rates (10%-37%)
- Long-term capital gains: 0%, 15%, or 20% based on income
- Net Investment Income Tax: Additional 3.8% for high earners
Common Pitfalls:
- Failing to report crypto-to-crypto trades
- Not tracking cost basis properly
- Misclassifying staking rewards as capital gains
- Forgetting about hard forks and airdrops
United Kingdom (HMRC)
Key Requirements:
- Report on Self Assessment tax return (SA108)
- Same-day rule: Acquisitions on same day as disposal
- Bed and breakfast rule: 30-day lookback for repurchases
- Capital Gains Annual Exempt Amount: £6,000 (2024)
- Pooling: UK uses share pool accounting for most crypto
Tax Rates:
- Capital Gains Tax: 10% or 20% depending on income band
- Income Tax on crypto earnings: 20%-45%
European Union (DAC8)
Key Requirements:
- Mandatory reporting for crypto service providers
- Cross-border information exchange
- MiFID II compliance for some crypto assets
- AMLD5 anti-money laundering requirements
Member State Variations:
- Germany: Tax-free after 1 year holding
- France: Flat 30% tax on gains
- Portugal: Generally tax-free for individuals
Australia (ATO)
Key Requirements:
- Report on myTax CGT schedule
- 50% CGT discount for assets held >12 months
- Personal use asset exemption: Under $10,000 for personal spending
Canada (CRA)
Key Requirements:
- Report on Schedule 3
- 50% capital gains inclusion rate
- Superficial loss rules: 30-day restriction
Wash Sale Considerations
While wash sales don't currently apply to cryptocurrency in the US, best practices include:
- Track repurchases within 30 days of sales at a loss
- Document business purpose for quick repurchases
- Consider tax-loss harvesting opportunities
- Monitor legislative changes - may change in future
Audit Trail Requirements
Maintain records for at least 7 years:
- Complete transaction history from all exchanges
Before you install
- Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
- Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
- Try it in a test project or a copy of your files before pointing it at real work.
- Pin the version you tested, and review changes before updating.
- Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.
FAQ
What is Calculate Tax?
Calculate Tax is a slash command for Claude Code and Claude Cowork from the jeremylongshore/tons-of-skills-marketplace repository on GitHub. Calculate cryptocurrency taxes with multi-jurisdiction support, cost basis
How do I install Calculate Tax in Claude Code?
Download calculate-tax.md from the repository. Save it to ~/.claude/commands/ (all projects) or .claude/commands/ (one project). As a skill, you can instead save it as ~/.claude/skills/<name>/SKILL.md. Run it by typing / followed by its name.
Can I use Calculate Tax in Claude Cowork?
Turn the command into a skill: create a folder with the file saved as SKILL.md and zip it. In Customize → Skills, click +, then upload the ZIP. Run it from any task with / and the skill name.
Is Calculate Tax safe to install?
It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.
Similar resources
- Ai Commit Gen AI-powered commit message generator - analyzes your git diff and creates conventional commit messages instantly Plugin · jeremylongshore/tons-of-skills-marketplace
- Ai Agents Test Test your multi-agent system with a sample task, showing agent handoffs, Slash Command · jeremylongshore/tons-of-skills-marketplace
- Ai Experiment Logger Track and analyze AI experiments with a web dashboard and MCP tools Plugin · jeremylongshore/tons-of-skills-marketplace
- Aggregate News Aggregate crypto news with sentiment analysis and market impact scoring from Slash Command · jeremylongshore/tons-of-skills-marketplace
- Changelog Custom Generate a changelog draft for a custom date range Slash Command · jeremylongshore/tons-of-skills-marketplace
- Caching Implement multi-tier database caching with Redis, in-memory, and CDN layers Slash Command · jeremylongshore/tons-of-skills-marketplace
- Changelog Validate Validate changelog config, tokens, and template paths Slash Command · jeremylongshore/tons-of-skills-marketplace
- Build Websocket Server Build WebSocket servers for real-time bidirectional communication Slash Command · jeremylongshore/tons-of-skills-marketplace