/trader-skill:trader-tax [ticker]from trader-skill
Tracks cost-basis lots for stock positions, calculates unrealized gains/losses, simulates sale outcomes, identifies tax-loss harvesting candidates, and checks wash sale rules.
Ships in trader-skill. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The Tax Optimizer does the arithmetic on the user's lots so nobody sells blind. It never decides what is right for the user's taxes. This is not tax advice: a tax professional decides what applies to them. Say that once, early, in every answer that uses this skill.
${CLAUDE_SKILL_DIR} below is this skill's folder (where this SKILL.md lives).
python3 "${CLAUDE_SKILL_DIR}/lots.py" report --lots # every lot, gain or loss, term
python3 "${CLAUDE_SKILL_DIR}/lots.py" sell KO 2 --price 90.11 # what a sale would realize (FIFO)
python3 "${CLAUDE_SKILL_DIR}/lots.py" sell KO 2 --method specific --lots KO-2
python3 "${CLAUDE_SKILL_DIR}/lots.py" harvest --min-loss 100 # candidates, with wash-sale checks
python3 "${CLAUDE_SKILL_DIR}/lots.py" harvest --min-loss 100 --write
python3 "${CLAUDE_SKILL_DIR}/lots.py" wash KO # is buying KO today a wash sale?
| file | what |
|---|---|
trader/portfolio.json | positions with lots: {"id", "date", "shares", "cost"} (cost = total basis); shape: portfolio.example.json here |
trader/prices.json | current prices (trader-alerts: alerts.py quote --holdings --write) |
trader/orders.json | planned buys count for wash sales; harvest --write replaces it with sell proposals |
trader/state/tax.json | the realized sales it logs with sell --record |
Lots come from the fills trader-broker records (ticket.py fill), or from the
user's broker statement. If a position has shares but no lots, ask for the
purchase dates and costs. Never invent a cost basis.
report --lots shows the date each lot turns long term.fifo (oldest first, what most brokers do by default),
hifo (highest cost first) and specific (named lots). The order sent to
the broker does not carry lot ids: to sell specific lots the user must
choose them in the broker's own tax-lot setting, or the broker uses its
default method.trader/orders.json and the loss sales it has logged. It cannot see an IRA,
a spouse's account or another broker, and those count too. Say so.lots.py report --lots. Show gains and losses by
stock, and which lots are short or long term.lots.py sell
with the planned shares and method and show what it would realize.lots.py harvest --min-loss 100 (and --min-pct if the
user wants a percent threshold). For each candidate show the estimated
loss, short and long term split, any wash-sale conflict, and the first day
they could buy it back. Candidates with a conflict are not proposed.harvest --write, then /trader-risk,
then /trader-broker, one yes per order.lots.py sell ... --record updates the lots and logs
the realized result for the year.The copy portfolio bought on 2026-10-13 (AAPL $1,250, AXP $1,119, GOOGL $823,
KO $708, BAC $600) has one lot per stock, all short term until 2027-10-14.
If BAC later trades below its $600 basis, harvest --min-loss 25 lists the
BAC-1 lot with its loss and "do not buy BAC again before" a date 31 days
after the sale. If the user also has a BAC buy planned in trader/orders.json,
it flags a wash sale instead of proposing the sell.
It never files anything, never gives a tax rate or a tax bill, never tells the user what they owe, never places an order, and never proposes a harvest that it can see would be a wash sale.
"paper": true). Going live is the user's own decision, in their own config.What SKILL.md sets; muted values are Claude Code's defaults
2 plugins ship this exact skill · first indexed Oct 21, 2026
11 skills in this plugin
/trader-alertsPrice Alerts. Rings when a price target, a stop or the opening bell hits: above / below / stop rules, percent moves from the previous close, and the NYSE opening bell, each ringing once so you are not spammed. Knows NYSE hours with the 2026 and 2027 holidays and 1:00 p.m. early closes, fetches free delayed quotes (Yahoo chart JSON, Stooq CSV) one ticker at a time, and writes trader/prices.json for the other skills. Use when the user says "alert me when", "tell me if AAPL hits", "set a stop", "price target", "watch my stocks", "is the market open", "when does the market open", "get me prices", or to refresh prices before sizing, risk or tax./trader-analystThe Earnings Analyst. Reads a company's reported numbers straight from SEC EDGAR (XBRL company facts from its 10-Qs and 10-Ks, plus the latest earnings 8-K and its press release) and sums up what changed: revenue, gross, operating and net margins, net income and diluted EPS, quarter by quarter, each against the same quarter a year earlier, with the trailing twelve months. Writes a metrics file the screener reads. Use when the user says "how did Apple's earnings look", "analyze the earnings", "what changed this quarter", "is revenue growing", "check the 10-Q", "compare margins", or "run the analyst on my holdings".npx claudepluginhub jakeschincariol/trader-skill --plugin trader-skillOther plugins' skills for the same job