Communitygithub.com

leecyno1/投資組合管理

分析投資組合配置偏差,並在各帳戶中生成再平衡交易建議。考量稅務影響、交易成本及洗售規則。觸發關鍵字包括「再平衡」、「投資組合偏差」、「配置檢查」、「再平衡交易」或「我的投資組合失衡」。

投資組合管理 是什麼?

此技能專為 AI 代理(如 Claude Code、Cursor、Codex)設計,用於自動化投資組合再平衡流程。它從多個帳戶(應稅、IRA、Roth、401k)擷取當前持有狀況,並與投資政策聲明(IPS)中的目標配置進行比較,以識別偏差。技能會根據資產類別偏差(超過 ±3-5% 的區間)生成交易建議,並優先採用稅務效率高的策略,例如先於稅務優惠帳戶中進行調整、避免產生重大短期資本利得,以及在可能的情況下進行稅務損失收割。此外,它還會進行資產配置地點審查,以優化稅務效率,並輸出偏差分析表、推薦交易清單、稅務影響摘要以及前後配置對比,確保全面且合規的投資組合管理。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/leecyno1/boutique-skills/tree/HEAD/skills/default/anthropic-fs-wealth-management-portfolio-rebalance

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

投資組合再平衡

工作流程

步驟 1:當前狀態

針對每個帳戶,擷取以下資訊:

  • 帳戶類型(應稅、IRA、Roth、401k)
  • 持有部位及其當前市值
  • 成本基礎(適用於應稅帳戶)
  • 每個部位的未實現損益

步驟 2:偏差分析

將當前配置與 IPS 目標進行比較:

資產類別目標 %當前 %偏差超額/不足金額 ($)
美國大型股
美國中小型股
國際成熟市場
新興市場
投資級債券
高收益/信用債
TIPS / 抗通膨債券
另類投資
現金

標記超出再平衡區間(通常為 ±3-5%)的部位。

步驟 3:交易建議

生成交易以使配置回到目標:

稅務意識再平衡規則:

  • 優先於稅務優惠帳戶(IRA、Roth)中進行再平衡 — 無稅務後果
  • 在應稅帳戶中,避免賣出具有大量短期收益的部位
  • 在再平衡過程中盡可能收割損失
  • 注意所有帳戶之間的洗售規則(30 天窗口期)
  • 考慮將新資金投入配置不足的資產類別,而非進行交易

交易清單:

帳戶動作證券股數/金額原因稅務影響
買入/賣出再平衡 / TLH短期收益 / 長期收益 / 損失

步驟 4:資產配置地點審查

優化各類資產在不同帳戶類型中的持有方式:

  • 稅務遞延(IRA/401k):債券、REITs、高週轉率基金(稅務負擔最高)
  • Roth:預期成長最高的資產(免稅成長)
  • 應稅帳戶:稅務效率高的權益資產(指數基金、ETF、市政債券)、稅務損失收割候選標的

步驟 5:執行

  • 按帳戶統計總交易次數
  • 估計交易成本
  • 估計稅務影響(已實現損益)
  • 對配置偏差的淨影響

步驟 6:輸出

  • 偏差分析表格
  • 推薦交易清單(Excel)
  • 稅務影響摘要
  • 前後配置對比

重要注意事項

  • 不要為了再平衡而再平衡 — 區間內的小幅偏差是可以接受的
  • 在應稅帳戶中,稅務成本可能超過再平衡帶來的效益 — 務必計算盈虧平衡點
  • 考慮交易前的現金流動(資金存入、提款、RMD)
  • 檢查是否有任何客戶特定的限制(ESG、集中持股、鎖定期)
  • 為每次交易記錄理由以符合合規要求
  • 洗售規則適用於所有帳戶 — 需協調整個家庭範圍內的交易

Individual skills in this repo

This repo contains 7 individual skills — each has its own dedicated page.

leecyno1/boutique-skills

Review fixed income portfolios by pricing multiple bonds, retrieving reference data, analyzing cashflows, and running scenario analysis. Use when reviewing bond portfolios, computing portfolio duration and DV01, analyzing cashflow waterfalls, stress testing rate scenarios, or assessing portfolio composition.

leecyno1/boutique-skills

Track and analyze portfolio company performance against plan. Ingests monthly/quarterly financial packages (Excel, PDF), extracts KPIs, flags variances to budget, and produces summary dashboards. Use when reviewing portfolio company financials, preparing board materials, or monitoring covenant compliance. Triggers on "review portfolio company", "monthly financials", "how is [company] performing", "covenant check", or "portfolio update".

leecyno1/boutique-skills

Router skill for LLMQuant portfolio-lab workflows. Use when the user needs portfolio exposure maps, what-if simulations, scenario states, or virtual portfolio comparisons.

leecyno1/boutique-skills

Router skill for LLMQuant portfolio workflows. Use when the user needs company profiles, thesis tracking, theme research, watchlist monitoring, or alert management.

leecyno1/boutique-skills

Comprehensive portfolio analysis using Alpaca MCP Server integration to fetch holdings and positions, then analyze asset allocation, risk metrics, individual stock positions, diversification, and generate rebalancing recommendations. Use when user requests portfolio review, position analysis, risk assessment, performance evaluation, or rebalancing suggestions for their brokerage account.

leecyno1/boutique-skills

Best practices for Remotion - Video creation in React

leecyno1/boutique-skills

Agent skill at skills/default/video-autopilot-kit/SKILL.md

相關技能