Individual skill
cost-basis-engine
Multi-method cost basis computation including specific identification, FIFO, LIFO, HIFO, and proportional average cost with partial sell handling
skills/cost-basis-engine/SKILL.md
Source commit 981e1d736cdc02bdc1c55c74ec9224e956414706
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Not checked yet
- Last checked
- Nov 10, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 527
- Repository last updated
- Sep 3, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- engineering Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 12,604 bytesSKILL.mdcore · 12,604 bytesSKILL.mdcore · 12,604 bytesSKILL.mdcore · 12,604 bytesSKILL.mdcore · 12,604 bytesSKILL.mdcore · 12,604 bytesSKILL.mdcore · 12,604 bytesSKILL.mdcore · 12,604 bytesSKILL.mdcore · 12,604 bytesSKILL.mdcore · 12,604 bytesSKILL.mdcore · 12,604 bytesSKILL.mdcore · 12,604 bytesSKILL.mdcore · 12,604 bytesreferences/planned_features.mddoc · 9,344 bytesscripts/cost_basis_calculator.pyruns · 24,368 bytes
Read excerpt
# Cost Basis Engine
Compute cost basis for crypto trades using multiple accounting methods and compare the resulting tax liability across methods. This skill handles the full complexity of on-chain activity: partial sells, token migrations, airdrops, staking rewards, LP entry/exit, and multi-hop swaps.
> **Disclaimer**: This skill provides computational tools for informational purposes only. It does not constitute tax, legal, or financial advice. Consult a qualified tax professional for your specific situation. Tax law varies by jurisdiction and changes frequently.
## Prerequisites
- Python 3.10+
- No external dependencies required (standard library only)
- Trade history as a list of dicts or CSV with columns: `date`, `action`, `token`, `quantity`, `price_usd`, `fee_usd`
## Methods Overview