Portfolio Rebalance
它能做什么
这项技能检查投资组合偏离目标比例的程度,并建议交易进行修正。适合在包括应税账户在内的多个账户之间进行再平衡的投资人和顾问。
适用场景
- ✓当投资组合的比例偏离目标、需要检查的时候。
- ✓当你想在应税账户和享受税收优惠的账户之间进行再平衡时。
- ✓当你想知道哪些交易最具税务效率的时候。
技能链接
https://github.com/AI4Finance-Foundation/FinRobot/blob/master/finrobot_desktop/skills/wealth-management/portfolio-rebalance/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 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".
热度
- GitHub 星标
- 8.4k
- 排名
- #12463
- 许可证
- 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帮你的智能体起草正式的投资委员会备忘录,概括一项交易、它的风险、财务状况以及供批准的建议。