/regulatory-reporting
[STUB] Regulatory report generation including IRS Form 8949, Schedule D, FinCEN FBAR, and state-specific crypto reporting requirements
$ npx -y skills add agiprolabs/claude-trading-skills --skill regulatory-reporting --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/regulatory-reporting
Context preview
The summary Claude sees to decide when to auto-load this skill.
[STUB] Regulatory report generation including IRS Form 8949, Schedule D, FinCEN FBAR, and state-specific crypto reporting requirements
SKILL.md
regulatory-reporting.SKILL.mdname: regulatory-reporting
description: "[STUB] Regulatory report generation including IRS Form 8949, Schedule D, FinCEN FBAR, and state-specific crypto reporting requirements"
license: MIT
metadata:
author: agipro
version: "0.1.0"
category: trading
Regulatory Reporting
> **STATUS: STUB** — This skill outlines planned capabilities for crypto tax and regulatory reporting. All generated output must be reviewed by a qualified tax professional before filing. Nothing in this skill constitutes tax or legal advice.
Overview
Track and generate required regulatory reports for cryptocurrency trading activity. Covers U.S. federal forms (IRS Form 8949, Schedule D), FinCEN foreign account reporting (FBAR), state-specific crypto obligations, large-transaction flagging, and deadline tracking.
Crypto tax reporting is complex and evolving. Rules change frequently, cost-basis methods vary by jurisdiction, and DeFi activities (swaps, LP positions, airdrops, staking rewards) have ambiguous treatment under current guidance. This skill provides a structured framework for organizing trade data into the formats regulators expect — but a tax professional must validate every filing.
Disclaimer
> **WARNING**: This skill is for informational and educational purposes only. It does NOT constitute tax, legal, or financial advice. Cryptocurrency tax law is complex, jurisdiction-specific, and rapidly evolving. You MUST consult a qualified tax professional (CPA, EA, or tax attorney with crypto expertise) before relying on any output from this skill for actual tax filings. Errors in tax reporting can result in penalties, interest, and legal consequences. The authors accept no liability for any use of this material.
Current Status
This is a **STUB** skill. The code and references provided are starting points that demonstrate data structures and basic calculations. They have NOT been validated against current IRS guidance or any state tax authority requirements.
What Exists Now
- Basic Form 8949 line-item generation from trade data (see `scripts/form_8949_generator.py`)
- Regulatory requirements overview (see `references/planned_features.md`)
- Demo mode with sample trade data
What Is Planned
- Complete IRS Form 8949 and Schedule D PDF generation
- FinCEN FBAR generation when foreign exchange accounts exceed $10,000
- State-specific reporting requirement detection and templates
- Reporting threshold tracking and deadline calendar
- Large transaction flagging ($10,000+ cash-equivalent transactions)
- Foreign account reporting requirements (FATCA Form 8938)
- Wash sale detection and adjustment (where applicable)
- Cost-basis method selection (FIFO, LIFO, Specific ID, HIFO)
- DeFi-specific event classification (swaps, LP entry/exit, staking, airdrops)
- Actual IRS-compatible CSV/PDF form data output
Prerequisites
# No external dependencies for the demo script
python scripts/form_8949_generator.py --demo
For a production implementation, the following would be needed:
uv pip install pandas reportlab # PDF generation
Key Concepts
IRS Form 8949 — Sales and Dispositions of Capital Assets
Form 8949 reports each individual sale or disposition of a capital asset. For crypto, every trade, swap, or spending event is a taxable disposition. Key fields:
| Column | Description | |--------|-------------| | (a) | Description of property (e.g., "2.5 BTC") | | (b) | Date acquired | | (c) | Date sold or disposed of | | (d) | Proceeds (sale price in USD) | | (e) | Cost or other basis | | (f) | Adjustment code (e.g., W for wash sale) | | (g) | Adjustment amount | | (h) | Gain or loss (d minus e, adjusted by g) |
Transactions are split into **Part I** (short-term, held one year or less) and **Part II** (long-term, held more than one year).
Schedule D — Capital Gains and Losses
Schedule D aggregates the totals from Form 8949:
- Line 1b/8b: Totals from Form 8949 Part I / Part II (basis reported to IRS)
- Line 1c/8c: Totals where basis was NOT reported to IRS
- Line 7/15: Net short-term / long-term capital gain or loss
- Line 16: Combined net gain or loss
FinCEN FBAR (FinCEN Form 114)
Required when the aggregate value of foreign financial accounts exceeds $10,000 at any point during the calendar year. Crypto held on foreign exchanges (e.g., Binance for non-U.S. entities) may trigger this requirement — though IRS guidance on whether crypto accounts are "foreign financial accounts" remains evolving.
- **Filing deadline**: April 15 (automatic extension to October 15)
- **Penalty for non-filing**: Up to $12,500 per non-willful violation; up to $100,000 or 50% of account balance for willful violations
Large Transaction Reporting
Businesses receiving $10,000+ in cash (which may include crypto under recent guidance) must file IRS Form 8300 within 15 days. Individual traders generally do not file Form 8300, but exchanges may report large transactions.
Quick Start
"""Generate Form 8949 line items from trade history."""
from dataclasses import dataclass
from datetime import date
from decimal import Decimal
@dataclass
class Trade:
asset: str
quantity: Decimal
date_acquired: date
date_sold: date
proceeds_usd: Decimal
cost_basis_usd: Decimal
def classify_holding_period(trade: Trade) -> str:
"""Return 'short-term' or 'long-term' based on holding period."""
holding_days = (trade.date_sold - trade.date_acquired).days
return "short-term" if holding_days <= 365 else "long-term"
def compute_gain_loss(trade: Trade) -> Decimal:
"""Compute capital gain or loss for a single trade."""
return trade.proceeds_usd - trade.cost_basis_usd
# Example
trade = Trade(
asset="SOL",
quantity=Decimal("10"),
date_acquired=date(2025, 1, 15),
date_sold=date(2025, 8, 20),
proceeds_usd=Decimal("2500.00"),
cost_basis_usd=Decimal("1800.00"),
)
gain = compute_gain_loss(trade)
period = classify_holding_peRead more
name: regulatory-reporting description: "[STUB] Regulatory report generation including IRS Form 8949, Schedule D, FinCEN FBAR, and state-specific crypto reporting requirements" license: MIT metadata: author: agipro version: "0.1.0" category: trading
Regulatory Reporting
> **STATUS: STUB** — This skill outlines planned capabilities for crypto tax and regulatory reporting. All generated output must be reviewed by a qualified tax professional before filing. Nothing in this skill constitutes tax or legal advice.
Overview
Track and generate required regulatory reports for cryptocurrency trading activity. Covers U.S. federal forms (IRS Form 8949, Schedule D), FinCEN foreign account reporting (FBAR), state-specific crypto obligations, large-transaction flagging, and deadline tracking.
Crypto tax reporting is complex and evolving. Rules change frequently, cost-basis methods vary by jurisdiction, and DeFi activities (swaps, LP positions, airdrops, staking rewards) have ambiguous treatment under current guidance. This skill provides a structured framework for organizing trade data into the formats regulators expect — but a tax professional must validate every filing.
Disclaimer
> **WARNING**: This skill is for informational and educational purposes only. It does NOT constitute tax, legal, or financial advice. Cryptocurrency tax law is complex, jurisdiction-specific, and rapidly evolving. You MUST consult a qualified tax professional (CPA, EA, or tax attorney with crypto expertise) before relying on any output from this skill for actual tax filings. Errors in tax reporting can result in penalties, interest, and legal consequences. The authors accept no liability for any use of this material.
Current Status
This is a **STUB** skill. The code and references provided are starting points that demonstrate data structures and basic calculations. They have NOT been validated against current IRS guidance or any state tax authority requirements.
What Exists Now
- Basic Form 8949 line-item generation from trade data (see `scripts/form_8949_generator.py`)
- Regulatory requirements overview (see `references/planned_features.md`)
- Demo mode with sample trade data
What Is Planned
- Complete IRS Form 8949 and Schedule D PDF generation
- FinCEN FBAR generation when foreign exchange accounts exceed $10,000
- State-specific reporting requirement detection and templates
- Reporting threshold tracking and deadline calendar
- Large transaction flagging ($10,000+ cash-equivalent transactions)
- Foreign account reporting requirements (FATCA Form 8938)
- Wash sale detection and adjustment (where applicable)
- Cost-basis method selection (FIFO, LIFO, Specific ID, HIFO)
- DeFi-specific event classification (swaps, LP entry/exit, staking, airdrops)
- Actual IRS-compatible CSV/PDF form data output
Prerequisites
# No external dependencies for the demo script python scripts/form_8949_generator.py --demo
For a production implementation, the following would be needed:
uv pip install pandas reportlab # PDF generation
Key Concepts
IRS Form 8949 — Sales and Dispositions of Capital Assets
Form 8949 reports each individual sale or disposition of a capital asset. For crypto, every trade, swap, or spending event is a taxable disposition. Key fields:
| Column | Description | |--------|-------------| | (a) | Description of property (e.g., "2.5 BTC") | | (b) | Date acquired | | (c) | Date sold or disposed of | | (d) | Proceeds (sale price in USD) | | (e) | Cost or other basis | | (f) | Adjustment code (e.g., W for wash sale) | | (g) | Adjustment amount | | (h) | Gain or loss (d minus e, adjusted by g) |
Transactions are split into **Part I** (short-term, held one year or less) and **Part II** (long-term, held more than one year).
Schedule D — Capital Gains and Losses
Schedule D aggregates the totals from Form 8949:
- Line 1b/8b: Totals from Form 8949 Part I / Part II (basis reported to IRS)
- Line 1c/8c: Totals where basis was NOT reported to IRS
- Line 7/15: Net short-term / long-term capital gain or loss
- Line 16: Combined net gain or loss
FinCEN FBAR (FinCEN Form 114)
Required when the aggregate value of foreign financial accounts exceeds $10,000 at any point during the calendar year. Crypto held on foreign exchanges (e.g., Binance for non-U.S. entities) may trigger this requirement — though IRS guidance on whether crypto accounts are "foreign financial accounts" remains evolving.
- **Filing deadline**: April 15 (automatic extension to October 15)
- **Penalty for non-filing**: Up to $12,500 per non-willful violation; up to $100,000 or 50% of account balance for willful violations
Large Transaction Reporting
Businesses receiving $10,000+ in cash (which may include crypto under recent guidance) must file IRS Form 8300 within 15 days. Individual traders generally do not file Form 8300, but exchanges may report large transactions.
Quick Start
"""Generate Form 8949 line items from trade history."""
from dataclasses import dataclass
from datetime import date
from decimal import Decimal
@dataclass
class Trade:
asset: str
quantity: Decimal
date_acquired: date
date_sold: date
proceeds_usd: Decimal
cost_basis_usd: Decimal
def classify_holding_period(trade: Trade) -> str:
"""Return 'short-term' or 'long-term' based on holding period."""
holding_days = (trade.date_sold - trade.date_acquired).days
return "short-term" if holding_days <= 365 else "long-term"
def compute_gain_loss(trade: Trade) -> Decimal:
"""Compute capital gain or loss for a single trade."""
return trade.proceeds_usd - trade.cost_basis_usd
# Example
trade = Trade(
asset="SOL",
quantity=Decimal("10"),
date_acquired=date(2025, 1, 15),
date_sold=date(2025, 8, 20),
proceeds_usd=Decimal("2500.00"),
cost_basis_usd=Decimal("1800.00"),
)
gain = compute_gain_loss(trade)
period = classify_holding_peA comprehensive collection of 67 ready-to-use trading, DeFi, and quantitative finance Agent Skills. Works with Claude Code, Cursor, Codex, Gemini CLI, and 30+ other tools.
Repo: agiprolabs/claude-trading-skills
Other skills on trading-skills.
- /backtrader
Event-driven backtesting with bar-by-bar execution, complex order types, multiple analyzers, and custom indicators
Open skill - /birdeye-api
Solana token market data via Birdeye — prices, OHLCV, trades, token metadata, security checks, and trader activity
Open skill - /coingecko-api
Broad crypto market data from CoinGecko covering 13,000+ tokens. Global market stats, historical price data going back years, exchange volumes, trending tokens, and category filters. Best for macro analysis and long-term historical data.
Open skill - /cointegration-analysis
Cointegration testing for pairs trading using Engle-Granger, Johansen, and rolling stability analysis
Open skill - /copy-trading
Wallet evaluation, monitoring, and copy-trade strategy design for Solana DEX trading
Open skill - /correlation-analysis
Cross-asset correlation analysis including rolling correlation, hierarchical clustering, tail dependence, and regime-dependent correlation
Open skill

