Tax-Loss Harvesting
できること
このスキルは、課税口座で含み損のある投資を探し、税金の節約に使う方法を提案します。特に年末に近い時期に、税金を計画する投資家やアドバイザー向けです。
使う場面
- ✓年末の税金対策が近づき、損失を見直したいとき。
- ✓課税口座に、購入価格を大きく下回るポジションがあるとき。
- ✓売却して買い戻すときに、ウォッシュセールの問題を避けたいとき。
スキルのリンク
https://github.com/AI4Finance-Foundation/FinRobot/blob/master/finrobot_desktop/skills/wealth-management/tax-loss-harvesting/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“年末までに、私の課税口座での税金損失の活用機会を見つけてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは課税口座をスキャンして損失のあるポジションを探し、影響の大きい順に並べます。その年の利益と比較し、代わりの保有銘柄を提案して、ウォッシュセールの期間を追跡します。
技術的な内容(元の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:
- Largest absolute loss (biggest tax benefit)
- Short-term losses first (offset short-term gains taxed at ordinary income rates)
- 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
よくある質問
ウォッシュセールとは何ですか?
実質的に同一の投資を、売却の直前または直後に買うと、損失が認められないことがあるルールです。
損失で通常所得を減らせますか?
スキルは、純損失を通常所得から最大3,000ドルまで控除でき、超過分は繰り越せると説明しています。
退職金口座も確認しますか?
いいえ。課税口座だけを確認します。
詳細
作者による元の説明
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".
人気
- GitHubのスター
- 8.4k
- ランキング
- #12464
- ライセンス
- Apache-2.0
- 更新日
- 2026/10/24
コメント
- …
このリポジトリの他のスキル
Portfolio AI Readiness
8.4k複数の投資先企業の最新情報を確認し、AIが最も役立つ場所を順位付けし、各社の早期に得られる成果をまとめるよう支援します。
Due Diligence Checklist
8.4k企業の買収や投資の前に確認するチェックリストを分野ごとに作成し、未確認の項目と危険信号を追跡するよう支援します。
Diligence Meeting Prep
8.4k経営陣のプレゼンテーションや顧客への照会の電話など、デューデリジェンスの会議の前に、質問と確認すべき点を準備するよう支援します。
Investment Committee Memo
8.4kディールの概要、リスク、財務状況、承認に関する推奨をまとめた、正式な投資委員会メモの作成を支援します。