Handles the mechanics of keeping portfolio allocations from drifting after market moves. You get calendar versus threshold strategies, optimal band width calculations from the Leland model, and tax-loss harvesting workflows that respect wash sale rules. The rebalancing premium section explains why systematic rebalancing can add return through volatility harvesting, though it's honest that this underperforms in trending markets. Most useful when you're deciding between rebalancing frequencies, setting tolerance bands based on transaction costs and risk aversion, or working out tax-efficient approaches across taxable and retirement accounts. The cash flow rebalancing guidance is especially practical since it avoids triggering taxable events entirely.

skills.sh installs
783
GitHub stars
224
last updated
Aug 21, 2026

Install

$ npx -y skills add joellewis/finance_skills --skill rebalancing --agent claude-code

Installs into .claude/skills of the current project.

Files

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:

Sponsors

Details

Repository
github.com/joellewis/finance_skills
Category
Finance & Trading
First seen
Jun 3, 2026

More from joellewis/finance_skills

All 84
1joellewis avatardiversificationjoellewis/finance_skillsBuild diversified portfolios using correlation analysis, efficient frontier construction, and factor-based diversification. Use when the user asks about portfol769skills.sh installs
2joellewis avataraccount-transfersjoellewis/finance_skillsProcess and manage account transfers between and within financial institutions. Use when handling full or partial ACAT transfers between broker-dealers, trouble753skills.sh installs
3joellewis avatarperformance-metricsjoellewis/finance_skillsEvaluate investment performance on a risk-adjusted basis using industry-standard ratios and capture analysis. Use when the user asks about Sharpe ratio, Sortino746skills.sh installs
4joellewis avatarreturn-calculationsjoellewis/finance_skillsCompute and compare investment return metrics including TWR, MWR (dollar-weighted IRR on portfolio cash flows), CAGR, and annualized returns. Use when the user 745skills.sh installs
5joellewis avatarlendingjoellewis/finance_skillsAnalyze lending products including mortgages, HELOCs, and personal loans with amortization and comparison tools. Use when the user asks about mortgage compariso741skills.sh installs
6joellewis avatartrade-executionjoellewis/finance_skillsGuide the design, evaluation, and monitoring of trade execution quality and best execution practices. Use when assessing best execution obligations under FINRA 739skills.sh installs