← Back to list
cost-basis-engine Checked
Multi-method cost basis computation including specific identification, FIFO, LIFO, HIFO, and prop…
7.7Overall rating
Installation
🤖 Install via AI
Copy the prompt below and send it to your AI assistant (e.g. Claude Code) — it will follow the instructions and install automatically.
Install the "cost-basis-engine" skill by following the instructions at https://skill123.me/install/cost-basis-engine.
⌨️ Command line install
Run in your terminal — downloads and installs to ~/.claude/skills/.
curl -fsSL https://skill123.me/install/cost-basis-engine.sh | bash
📦 Download ZIP
Download the zip and extract it into your skills directory (e.g. ~/.claude/skills/), then restart your session.
⬇ Download v1.0.0 · 13 KBAbout this skill
Overview
Multi-method cost basis computation including specific identification, FIFO, LIFO, HIFO, and proportional average cost with partial sell handling
Source
- Repo: https://github.com/agiprolabs/claude-trading-skills
- Path: skills/cost-basis-engine
Score breakdown
Trigger
4.0
Description states What only (methods list, partial sells); no When/When-Not, no trigger phrase variants, no Chinese keywords; keyword richness from method names only.
Structure
9.3
358-line SKILL.md within limit; clean scripts/+references/ split; Files table points to both; no redundant docs. Reference filename 'planned_features.md' is misleading (contains formulas, not roadmap).
Workflow
6.4
Mostly explanatory snippets plus Quick Start and runnable comparison script; demo mode and worked examples provide verification; moderate error handling (qty clamping, float epsilon) but no input validation for malformed trade data.
Content
9.0
Concise, consistent formatting, concrete runnable examples with expected numbers; minor duplication between SKILL.md snippets and script.
Engineering
10.0
Valid frontmatter (name/description/metadata); script has shebang and declared stdlib-only deps; all referenced paths exist; demo runs successfully.
Security
10.0
Capability manifest: no file/env/credential reads, no writes, no network egress, no persistence — pure computation; capabilities match declared scope. Tax disclaimer present. No injection, no secrets, no external URLs.
Solid computational skill: 5 cost-basis methods (FIFO/LIFO/HIFO/SpecificID/AvgCost) with a runnable stdlib-only Python engine and demo mode; good worked examples and tax disclaimer. Weak trigger description (no When/When-Not, no user phrasing variants); SKILL.md is largely explanatory code snippets duplicating the script (minor 3.1/3.2 hit).
