Skip to content
Finance
Skill

/rebalancing

Maintain portfolio allocations over time using calendar-based, threshold-based, and tax-efficient rebalancing strategies. Use when the user asks about when to rebalance, rebalancing bands, transaction cost trade-offs, tax-efficient rebalancing, or the rebalancing premium. Also

From plugin
finance-skills
16491 skills
Install
$ npx -y skills add JoelLewis/finance_skills --skill rebalancing --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/rebalancing

Context preview

The summary Claude sees to decide when to auto-load this skill.

Maintain portfolio allocations over time using calendar-based, threshold-based, and tax-efficient rebalancing strategies. Use when the user asks about when to rebalance, rebalancing bands, transaction cost trade-offs, tax-efficient rebalancing, or the rebalancing premium. Also

SKILL.md

rebalancing.SKILL.md
name: rebalancing
description: "Maintain portfolio allocations over time using calendar-based, threshold-based, and tax-efficient rebalancing strategies. Use when the user asks about when to rebalance, rebalancing bands, transaction cost trade-offs, tax-efficient rebalancing, or the rebalancing premium. Also trigger when users mention 'my portfolio drifted', 'how often should I rebalance', 'rebalancing across taxable and IRA accounts', 'volatility harvesting', 'buy low sell high automatically', or ask whether to use cash flows to rebalance."

Rebalancing

Core Concepts

Calendar Rebalancing

Rebalance at fixed time intervals regardless of drift magnitude:

  • **Monthly:** Tightest tracking to targets; highest transaction costs
  • **Quarterly:** Common institutional frequency; good balance of tracking and costs
  • **Annually:** Lowest cost; may allow significant drift between dates

Calendar rebalancing is simple to implement and schedule but may miss large dislocations between dates or trigger unnecessary trades when drift is minimal.

Threshold (Band) Rebalancing

Rebalance when any asset weight drifts beyond a defined tolerance band around its target:

  • Monitor weights continuously (or at regular intervals)
  • Trigger rebalancing when |w_actual - w_target| > tolerance
  • Typical bands: +/- 3% to +/- 5% (absolute) or +/- 20% to +/- 25% (relative)

Threshold rebalancing is more responsive to market dislocations and avoids unnecessary trades when markets are calm. However, it requires more frequent monitoring.

Optimal Band Width (Leland Model)

Leland (2000) derived the optimal no-trade band width as a function of transaction costs, risk aversion, and asset variance:

Band width proportional to (3 * transaction_cost / (2 * risk_aversion * variance))^(1/3)

Key intuition:

  • Higher transaction costs → wider bands (trade less)
  • Higher risk aversion → narrower bands (maintain target more tightly)
  • Higher variance → narrower bands (drift happens faster, risk of deviation is greater)

Rebalancing Premium

Systematic rebalancing generates a "volatility harvesting" or "rebalancing premium" through the buy-low/sell-high mechanism:

  • When an asset rises, its weight increases → rebalancing sells some (sell high)
  • When an asset falls, its weight decreases → rebalancing buys some (buy low)

This effect is sometimes called **Shannon's Demon**: in a two-asset portfolio with equal expected returns but independent volatility, the constantly rebalanced portfolio outperforms buy-and-hold. The rebalancing premium is larger when:

  • Asset volatilities are higher
  • Correlations are lower
  • Assets have similar expected returns (so mean-reversion dominates trends)

Note: The rebalancing premium is not a free lunch — it underperforms in trending markets where winners keep winning.

Transaction Costs

Costs incurred when rebalancing that reduce net returns:

  • **Commissions:** Per-trade or per-share fees (increasingly zero for retail)
  • **Bid-ask spread:** The cost of crossing the spread; wider for less liquid assets
  • **Market impact:** Price movement caused by the trade itself; significant for large positions in less liquid markets
  • **Opportunity cost:** Delay cost if rebalancing is deferred to avoid transaction costs

Total implementation cost = commissions + half-spread + market impact + opportunity cost

Tax-Efficient Rebalancing

Strategies to minimize tax impact when rebalancing in taxable accounts:

1. **Use cash flows:** Direct new contributions to underweight assets and withdrawals from overweight assets 2. **Redirect dividends and interest:** Reinvest income from overweight assets into underweight assets 3. **Rebalance with new contributions:** The most tax-efficient method — no selling required 4. **Asset location:** Hold tax-inefficient assets (bonds, REITs) in tax-deferred accounts; rebalance these freely 5. **Selective lot identification:** When selling, choose tax lots with the highest cost basis (lowest gain) or lots held over one year (long-term capital gains rate)

Coordinating with Tax-Loss Harvesting (TLH)

Rebalancing and TLH should be planned together, not as separate trade lists:

  • **Combine TLH sells with rebalance sells** to reduce total trade count and transaction costs
  • **An overweight position sitting at a loss is the ideal dual-purpose trade** — the harvest and the rebalance are the same sell
  • **Check open wash-sale windows before buying back** or before rebalance buys in any account (including IRAs and spouse accounts)

Tax benefit = Realized loss * Marginal tax rate. For the 61-day wash-sale window, the $3,000 ordinary-income offset, replacement selection, and full TLH mechanics, see the **tax-loss-harvesting** skill.

Rebalancing Across Account Types

When an investor has multiple account types (taxable, IRA, 401k), optimize rebalancing by:

  • **Tax-deferred accounts (IRA, 401k):** Rebalance freely — no tax consequences
  • **Taxable accounts:** Minimize selling; use cash flows, TLH, and selective lot sales
  • **Cross-account rebalancing:** Consider the aggregate portfolio across all accounts and rebalance within the most tax-efficient account

Drift Tolerance Setting

Factors that determine optimal band width:

  • **Tighter bands (e.g., +/- 2%):** Better risk control, higher costs, appropriate for low-cost/institutional settings
  • **Wider bands (e.g., +/- 10%):** Lower costs, more drift risk, appropriate for taxable accounts with high tax impact
  • **Asset-specific bands:** More volatile assets may need wider absolute bands but tighter relative bands

Cash Flow Rebalancing

Use regular deposits or withdrawals to move toward target weights without explicit rebalancing trades:

  • Calculate current vs. target weights
  • Direct 100% of new contributions to the most underweight asset(s)
  • Process withdrawals from the most overweight asset(s)
  • This "natural rebalancing" is the most cost-effective and tax-efficient approach

Rebalancing Workf

Read more
Ships withfinance-skills

A collection of Claude Code skill plugins for financial services. 91 skills across 7 domain plugins teach Claude investment management, regulatory compliance, advisory workflows, trading operations, and more — so it can assist with finance questions, build

Get the whole plugin
Stats
170
Stars
34
Forks
Maintained
Maintenance
Python
Language
MIT
License
1mo ago
Last commit
6mo ago
Created

Repo: JoelLewis/finance_skills

Other skills on finance-skills.