跳到正文
Skillpedia
其他8.4k · #12464

Tax-Loss Harvesting

它能做什么

这项技能寻找应税账户中有未实现亏损的投资,并建议如何利用它们节税。适合做税务规划的投资人和顾问,尤其是在年末前后。

适用场景

  • ✓当年终税务规划即将到来,你想检查亏损情况的时候。
  • ✓当应税账户中有持仓的价格远低于买入价的时候。
  • ✓当你希望在卖出并买回时避免 wash sale 问题的时候。

技能链接

https://github.com/AI4Finance-Foundation/FinRobot/blob/master/finrobot_desktop/skills/wealth-management/tax-loss-harvesting/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/AI4Finance-Foundation/FinRobot/blob/master/finrobot_desktop/skills/wealth-management/tax-loss-harvesting/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请在年底前,找出我应税账户中可以进行税务亏损收割的机会。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会扫描应税账户中有亏损的持仓,按影响大小排序,并与当年的收益进行比较。然后它会建议替代持仓,并跟踪 wash sale 的时间窗口。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Tax-Loss Harvesting

description: Identify tax-loss harvesting opportunities across taxable accounts. Finds positions with unrealized losses, suggests replacement securities, and tracks wash sale windows. Triggers on "tax-loss harvesting", "TLH", "harvest losses", "tax losses", "unrealized losses", or "year-end tax planning".

Workflow

Step 1: Identify Candidates

Scan taxable accounts for positions with unrealized losses:

Security Asset Class Cost Basis Current Value Unrealized Loss Holding Period % Loss
ST / LT

Prioritize by:

  1. Largest absolute loss (biggest tax benefit)
  2. Short-term losses first (offset short-term gains taxed at ordinary income rates)
  3. Positions with the largest % loss (less likely to recover quickly)

Step 2: Gain/Loss Budget

Calculate the client's tax situation:

Category Amount
Realized short-term gains YTD
Realized long-term gains YTD
Realized losses YTD
Net gain/(loss) position
Carryforward losses from prior years
Target harvesting amount

Tax savings estimate:

  • Short-term losses × marginal ordinary income rate
  • Long-term losses × capital gains rate
  • Up to $3,000 net loss deduction against ordinary income
  • Excess carries forward

Step 3: Replacement Securities

For each harvest candidate, suggest a replacement that:

  • Maintains similar market exposure (same asset class, sector, geography)
  • Is NOT "substantially identical" (wash sale rule)
  • Has similar risk/return characteristics
Sell Replace With Reason Tracking Error Risk
SPDR S&P 500 (SPY) iShares Core S&P 500 (IVV) Same index, different fund family Minimal
Vanguard Total Intl (VXUS) iShares MSCI ACWI ex-US (ACWX) Similar exposure, different index Low
Individual stock ABC Sector ETF (XLK) Broader exposure, no wash sale risk Moderate

Step 4: Wash Sale Check

Before executing, verify no wash sales:

  • Check ALL accounts in the household (taxable, IRA, Roth, spouse accounts)
  • 30-day lookback: Did we buy substantially identical securities in the last 30 days?
  • 30-day forward: Block repurchase of the same security for 30 days
  • Check for dividend reinvestment plans (DRIPs) that could trigger wash sales
  • Document the wash sale window for each trade
Security Sold Wash Sale Window Start Window End DRIP Active? Risk

Step 5: Execution Plan

Trade # Account Action Security Shares Est. Proceeds Est. Loss Replacement Notes
Sell
Buy

Summary:

  • Total estimated losses harvested: $
  • Estimated tax savings: $ (at marginal rate of %)
  • Net portfolio impact: minimal (replacement securities maintain exposure)
  • Wash sale window management: [dates]

Step 6: Post-Harvest Tracking

After 30+ days, optionally:

  • Swap back to original securities (if preferred)
  • Maintain replacement securities (if no reason to switch back)
  • Update cost basis records
  • Document for tax reporting

Step 7: Output

  • Harvest opportunity list (Excel)
  • Trade execution sheet
  • Wash sale tracking calendar
  • Tax savings estimate summary
  • Replacement security rationale

Important Notes

  • Wash sale rules are strict — violations disallow the loss AND adjust cost basis
  • Substantially identical means same security, not same asset class — ETFs tracking different indexes are generally fine
  • Always coordinate across all household accounts including retirement accounts
  • Consider the long-term cost basis step-down — harvesting resets cost basis, which means more gains later
  • Year-end is prime harvesting season but opportunities exist throughout the year
  • Mutual fund capital gains distributions in December can create additional harvesting urgency
  • Document everything for tax reporting and compliance
  • Not all losses are worth harvesting — transaction costs and tracking error have real costs
常见问题

什么是 wash sale?

这是一项规则:如果在卖出前后不久买入了实质相同的投资,该笔亏损可能不被认可。

亏损可以抵减普通收入吗?

这项技能说明,净亏损最多可抵减普通收入 3000 美元,超出部分可结转到以后年度。

它会检查退休账户吗?

不会。它只检查应税账户。

详情

作者的原始描述

Identify tax-loss harvesting opportunities across taxable accounts. Finds positions with unrealized losses, suggests replacement securities, and tracks wash sale windows. Triggers on "tax-loss harvesting", "TLH", "harvest losses", "tax losses", "unrealized losses", or "year-end tax planning".

repo: AI4Finance-Foundation/FinRobot

热度

GitHub 星标
8.4k
排名
#12464
许可证
Apache-2.0
更新时间
2026/10/24

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能