本文へ移動
cccskills
無料GitHub で公開日本語紹介

calculating-crypto-taxes

暗号資産の取引履歴から取得原価方式ごとの損益や課税対象イベントを集計し、Form 8949互換の税務レポートを作るスキルです。

原文原文の説明を見る

Calculate cryptocurrency tax obligations with cost basis tracking, capital gains computation, and Form 8949 generation. Use when calculating crypto taxes, generating tax reports, comparing cost basis methods, or identifying taxable events. Trigger with phrases like "calculate crypto taxes", "generate tax report", "cost basis FIFO", "capital gains", "Form 8949", or "crypto taxable events".

jeremylongshore/tons-of-skills-marketplaceスター 2,884(GitHub 2,884 + cccskills 0)
連携ツールBinance

実行スコア 未検証

インストール方法を見る

こんなときに便利

  • 暗号資産の年間損益を計算したいとき
  • FIFOやHIFOの結果を比べたいとき
  • Form 8949互換のレポートを作りたいとき

日本語での紹介

できること

暗号資産の取引履歴を集計し、売却や交換などの損益、ステーキング報酬、エアドロップ、マイニング収入を整理するスキルです。取引所から出力したCSVをもとに、取得原価の計算方法としてFIFO、LIFO、HIFOを使い分け、方式ごとの結果を比較できます。取引単位の売却額、取得原価、損益や、短期・長期の損益集計を含むレポートを作成し、Form 8949互換のCSVとして出力できます。複数の取引所の履歴をまとめて扱うこともできます。

こんなときに便利

複数の取引所に分かれた履歴をまとめたいときや、取得原価方式による損益の違いを確認したいときに役立ちます。課税対象となる取引や収入イベントを整理する際にも使えます。

使い方の例

  • 「この取引履歴CSVから、FIFO方式で年間損益を計算してください」
  • 「FIFO、LIFO、HIFOの結果を比較してください」
  • 「取引データからForm 8949互換のCSVを作ってください」

注意点

取引所のCSVとPython 3.8以上が必要です。計算結果は情報提供を目的とし、税務助言ではありません。税務上の判断は資格を持つ税務専門家に相談してください。

この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。

含まれるファイル(13)

  • SKILL.md4.6 KB
  • ARD.md9.8 KB
  • config/settings.yaml5.5 KB
  • PRD.md6.6 KB
  • references/errors.md6.6 KB
  • references/examples.md10.5 KB
  • references/exchange_formats.md5.7 KB
  • references/implementation.md3.1 KB
  • scripts/cost_basis_engine.py11.3 KB
  • scripts/report_generator.py15.3 KB
  • scripts/tax_calculator.py5.5 KB
  • scripts/tax_engine.py9.6 KB
  • scripts/transaction_parser.py10.9 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Calculating Crypto Taxes

Overview

Calculate cryptocurrency tax obligations from transaction history. Supports FIFO, LIFO, and HIFO cost basis methods, identifies taxable events (trades, staking, airdrops), and generates Form 8949 compatible reports.

DISCLAIMER: This tool provides informational calculations only, not tax advice. Consult a qualified tax professional.

Prerequisites

  • Transaction history exported as CSV from your exchanges (Coinbase, Binance, Kraken, etc.)
  • Python 3.8+ installed
  • Understanding of your tax jurisdiction's crypto rules

Instructions

  1. Prepare transaction data by exporting CSV from each exchange:

    ExchangeExport Location
    CoinbaseReports > Tax documents > Transaction history CSV
    BinanceOrders > Trade History > Export
    KrakenHistory > Export
    GenericSee references/exchange_formats.md for column mapping
  2. Run basic tax calculation using FIFO (IRS default):

    python ${CLAUDE_SKILL_DIR}/scripts/tax_calculator.py --transactions your_trades.csv --year 2025  # 2025 = tax year
    
  3. Compare cost basis methods to understand tax implications:

    python ${CLAUDE_SKILL_DIR}/scripts/tax_calculator.py --transactions trades.csv --compare-methods
    

    Methods: --method fifo (IRS default), --method lifo (Last In First Out), --method hifo (minimize gains)

  4. Generate Form 8949 report as CSV:

    python ${CLAUDE_SKILL_DIR}/scripts/tax_calculator.py --transactions trades.csv --method fifo --year 2025 --output form_8949.csv --format csv  # 2025 = tax year
    
  5. Handle income events (staking, airdrops, mining, DeFi yield):

    python ${CLAUDE_SKILL_DIR}/scripts/tax_calculator.py --transactions all_events.csv --income-report
    
  6. Consolidate multi-exchange data into a unified report:

    python ${CLAUDE_SKILL_DIR}/scripts/tax_calculator.py --transactions coinbase.csv binance.csv kraken.csv --year 2025  # 2025 = tax year
    

Output

Reports include short-term and long-term capital gains/losses broken down by transaction, with proceeds, cost basis, and gain/loss per disposal. Summary shows total proceeds, total cost basis, net capital gain, and short/long-term split. Income report lists staking, airdrop, and mining income with fair market values.

See references/implementation.md for detailed output format examples.

Error Handling

ErrorCauseFix
Missing columnsCSV format mismatchVerify format matches exchange template
Unknown transaction typeUnrecognized event categoryReview and manually categorize
Insufficient lotsMissing buy transactionsCheck for missing imports or transfers

Examples

Basic FIFO tax calculation - Standard IRS-default method for a single exchange:

python tax_calculator.py --transactions trades.csv --year 2025  # 2025 = tax year

HIFO to minimize gains - Highest-cost lots disposed first to reduce taxable gain:

python tax_calculator.py --transactions trades.csv --method hifo --year 2025  # 2025 = tax year

JSON output for processing - Machine-readable export for tax software integration:

python tax_calculator.py --transactions trades.csv --format json --output tax_data.json

Verbose with lot details - See which specific lots were matched to each disposal:

python tax_calculator.py --transactions trades.csv --verbose --show-lots

Resources

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

abridge-ci-integration

無料概要あり

Abridge連携コードのCIに合成データを使った回帰チェックを加え、同意状態、ノート確認、ログの秘匿、ロールバックなど顧客側の処理を検証します。

  • Abridge連携の回帰テストを追加したいとき
  • 同意やノート確認の処理を検証したいとき
  • ログに機微情報が出ないか確かめたいとき
jeremylongshore/tons-of-skills-marketplace2,8842026年10月29日 更新

abridge-common-errors

無料概要あり

Abridgeの録音、記録の確認、Epicへの引き渡し、アクセスの不具合を観測情報から切り分け、患者情報を抑えた証拠と担当窓口への引き継ぎ資料を整理するスキル。

  • 録音とアップロード障害の切り分け
  • 記録生成の遅延や編集画面の不具合調査
  • Epic連携障害の担当窓口の特定
jeremylongshore/tons-of-skills-marketplace2,8842026年10月29日 更新

abridge-core-workflow-a

無料概要あり

同意確認から録音、生成メモの根拠確認、編集、最終確定まで、臨床文書作成の手順と確認ポイントを整理するスキルです。

  • 診療メモ作成の手順を導入・監査したいとき
  • 同意から医師の確認までの流れを整理したいとき
  • 下書きの根拠確認と停止条件を定めたいとき
jeremylongshore/tons-of-skills-marketplace2,8842026年10月29日 更新

abridge-core-workflow-b

無料概要あり

Abridgeで臨床家が確認した記録内容が、承認済みの手順でEpicの適切なテンプレート欄へ渡るか、テスト記録を使って対応関係や例外を検証するスキルです。

  • AbridgeとEpicの記録欄の対応を確認したいとき
  • 部門ごとの連携設定を監査したいとき
  • 承認済みテスト記録で連携を検証したいとき
jeremylongshore/tons-of-skills-marketplace2,8842026年10月29日 更新

abridge-cost-tuning

無料概要あり

Abridgeの導入・更新判断に向け、利用定着率や業務の完了状況、診療記録の品質、支援負担を契約に基づく費用情報と照らし、継続や改善の選択肢を整理するスキル。

  • Abridge導入後の定着率確認
  • 契約更新の判断材料をまとめたいとき
  • 診療環境ごとの業務成果の比較
jeremylongshore/tons-of-skills-marketplace2,8842026年10月29日 更新

abridge-debug-bundle

無料概要あり

Abridgeの障害調査で、録音や診療記録を含めず、許可した項目だけを集めたサポート用資料と確認用マニフェストを作成します。

  • 障害サポート用の証拠をまとめたいとき
  • 共有資料の除外項目を記録したいとき
  • 調査情報を安全な経路で引き継ぎたいとき
jeremylongshore/tons-of-skills-marketplace2,8842026年10月29日 更新

jeremylongshore のスキルをすべて見る

このスキルの問題を報告する