跳到正文
Skillpedia
分析与电子表格8.4k · #12463

Portfolio Rebalance

它能做什么

这项技能检查投资组合偏离目标比例的程度,并建议交易进行修正。适合在包括应税账户在内的多个账户之间进行再平衡的投资人和顾问。

适用场景

  • ✓当投资组合的比例偏离目标、需要检查的时候。
  • ✓当你想在应税账户和享受税收优惠的账户之间进行再平衡时。
  • ✓当你想知道哪些交易最具税务效率的时候。

技能链接

https://github.com/AI4Finance-Foundation/FinRobot/blob/master/finrobot_desktop/skills/wealth-management/portfolio-rebalance/SKILL.md

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“我的投资组合已偏离目标比例。请给我看能使其回到目标的交易,并说明税务影响。”

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

工作原理

智能体会将当前持仓与目标配置进行比较,标出超出允许区间的持仓,并提出交易建议。它优先使用享受税收优惠的账户,并尽量避免在应税账户中进行代价高昂的卖出。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Portfolio Rebalance

description: Analyze portfolio allocation drift and generate rebalancing trade recommendations across accounts. Considers tax implications, transaction costs, and wash sale rules. Triggers on "rebalance", "portfolio drift", "allocation check", "rebalancing trades", or "my portfolio is out of balance".

Workflow

Step 1: Current State

For each account, capture:

  • Account type (taxable, IRA, Roth, 401k)
  • Holdings with current market value
  • Cost basis (for taxable accounts)
  • Unrealized gains/losses per position

Step 2: Drift Analysis

Compare current allocation to IPS targets:

Asset Class Target % Current % Drift $ Over/Under
US Large Cap Equity
US Small/Mid Cap
International Developed
Emerging Markets
Investment Grade Bonds
High Yield / Credit
TIPS / Inflation Protected
Alternatives
Cash

Flag positions exceeding the rebalancing band (typically ±3-5%).

Step 3: Trade Recommendations

Generate trades to bring allocation back to target:

Tax-Aware Rebalancing Rules:

  • Prefer rebalancing in tax-advantaged accounts (IRA, Roth) first — no tax consequences
  • In taxable accounts, avoid selling positions with large short-term gains
  • Harvest losses where possible while rebalancing
  • Watch for wash sale rules (30-day window) across all accounts
  • Consider directing new contributions to underweight asset classes instead of trading

Trade List:

Account Action Security Shares/$ Reason Tax Impact
Buy/Sell Rebalance / TLH ST gain / LT gain / Loss

Step 4: Asset Location Review

Optimize which assets are held in which account types:

  • Tax-deferred (IRA/401k): Bonds, REITs, high-turnover funds (highest tax drag)
  • Roth: Highest expected growth assets (tax-free growth)
  • Taxable: Tax-efficient equity (index funds, ETFs, munis), tax-loss harvesting candidates

Step 5: Implementation

  • Total trades by account
  • Estimated transaction costs
  • Estimated tax impact (realized gains/losses)
  • Net effect on allocation drift

Step 6: Output

  • Drift analysis table
  • Recommended trade list (Excel)
  • Tax impact summary
  • Before/after allocation comparison

Important Notes

  • Don't rebalance for rebalancing's sake — small drift within bands is fine
  • Tax costs can outweigh rebalancing benefits in taxable accounts — calculate the breakeven
  • Consider pending cash flows (contributions, withdrawals, RMDs) before trading
  • Check for any client-specific restrictions (ESG, concentrated stock, lockups)
  • Document rationale for every trade for compliance records
  • Wash sale rules apply across accounts — coordinate trades across the household
常见问题

什么是再平衡区间?

它是每个目标周围允许的浮动范围,例如正负 3% 至 5%。

它会考虑wash sale规则吗?

会。这项技能在其交易建议中包含了 wash sale 规则。

它会替我下单交易吗?

不会。它只提出交易建议,由你决定如何操作。

详情

作者的原始描述

Analyze portfolio allocation drift and generate rebalancing trade recommendations across accounts. Considers tax implications, transaction costs, and wash sale rules. Triggers on "rebalance", "portfolio drift", "allocation check", "rebalancing trades", or "my portfolio is out of balance".

repo: AI4Finance-Foundation/FinRobot

热度

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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能