managing-portfolio-rebalancing

Structures rebalancing processes with drift monitoring, tax-aware trading, and transaction cost optimization. Use when rebalancing portfolios, managing allocation drift, or optimizing trading costs.

11 stars

Best use case

managing-portfolio-rebalancing is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Structures rebalancing processes with drift monitoring, tax-aware trading, and transaction cost optimization. Use when rebalancing portfolios, managing allocation drift, or optimizing trading costs.

Teams using managing-portfolio-rebalancing should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/managing-portfolio-rebalancing/SKILL.md --create-dirs "https://raw.githubusercontent.com/CaseMark/skills/main/skills/finance/managing-portfolio-rebalancing/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/managing-portfolio-rebalancing/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How managing-portfolio-rebalancing Compares

Feature / Agentmanaging-portfolio-rebalancingStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Structures rebalancing processes with drift monitoring, tax-aware trading, and transaction cost optimization. Use when rebalancing portfolios, managing allocation drift, or optimizing trading costs.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Managing Portfolio Rebalancing

Structures rebalancing processes with drift monitoring, tax-aware trading, and transaction cost optimization.

## When To Use

- Portfolio allocations have drifted beyond policy-defined thresholds (absolute or relative)
- Calendar-based rebalancing triggers are approaching (quarterly, semi-annual, annual)
- Cash flows (contributions, withdrawals, distributions) create meaningful allocation shifts
- Market events cause rapid asset class divergence from target weights
- Tax-loss harvesting opportunities overlap with rebalancing needs
- New investment policy statement (IPS) targets require transition trading

## Inputs To Gather

- **Current portfolio holdings**: Positions, quantities, market values, cost basis (lot-level if tax-aware)
- **Target allocation**: Policy weights by asset class, sub-asset class, or individual security
- **Drift thresholds**: Absolute (e.g., ±3%) and relative (e.g., ±20% of target weight) tolerance bands
- **Rebalancing constraints**: Minimum trade size, restricted securities, liquidity limits, sector caps
- **Tax information**: Holding periods, unrealized gains/losses by lot, wash-sale exposure windows, client tax bracket [VERIFY — jurisdiction-specific capital gains treatment]
- **Transaction cost data**: Commission schedules, bid-ask spreads, estimated market impact for position sizes
- **Cash flow schedule**: Pending contributions, withdrawals, income distributions, or capital calls
- **Account structure**: Taxable vs. tax-deferred vs. tax-exempt accounts; sleeve or sub-advisor mandates

## Workflow

1. **Snapshot current allocation**
   - Pull current market values for all holdings and compute actual weights
   - Map holdings to the target allocation taxonomy (asset class, geography, sector)
   - Flag any unmapped or illiquid positions that cannot participate in rebalancing

2. **Calculate drift**
   - Compute absolute drift (actual weight − target weight) for each asset class
   - Compute relative drift (absolute drift ÷ target weight) where target weight > 0
   - Identify which positions breach policy tolerance bands
   - Rank breaches by severity to prioritize trading

3. **Generate rebalancing trades**
   - Determine net buy/sell amounts needed to return each asset class to target
   - Net cash flows against required trades to reduce unnecessary round-trip transactions
   - Apply minimum trade size filters — suppress trades below materiality thresholds
   - For multi-account households, identify optimal account placement (asset location)

4. **Apply tax-aware overlay**
   - Identify lots with short-term vs. long-term holding periods; prefer selling long-term lots when gains are unavoidable
   - Screen for tax-loss harvesting candidates — replace with correlated but non-substantially-identical substitutes [VERIFY — IRS wash-sale rule 30-day window and "substantially identical" definition]
   - Estimate net realized gain/loss impact of proposed trades
   - Compare pre-tax and after-tax rebalancing paths; defer high-cost trades when drift is within outer tolerance band
   - Check for wash-sale conflicts across related accounts

5. **Optimize transaction costs**
   - Estimate total trading cost (commissions + spread + market impact) for the proposed trade list
   - Consolidate or batch trades where crossing opportunities exist internally
   - Consider limit orders for positions with wide bid-ask spreads
   - Evaluate partial rebalancing if full rebalancing cost exceeds expected tracking-error reduction benefit

6. **Execute and document**
   - Generate a rebalancing trade blotter with security, direction, quantity, estimated cost, and tax impact
   - Record pre-trade and post-trade allocations side by side
   - Note any positions intentionally left out of tolerance (with rationale)
   - Log compliance pre-trade checks: restricted list, concentration limits, IPS constraints [VERIFY — firm-specific compliance rule sets]

7. **Post-trade monitoring**
   - Confirm settlement and reconcile executed fills against intended trades
   - Recalculate portfolio weights post-execution to verify drift is resolved
   - Update cost basis records and wash-sale tracking ledgers
   - Set next rebalancing review date or re-arm drift-monitoring alerts

## Output

- **Drift analysis report**: Table showing each asset class with target weight, actual weight, absolute drift, relative drift, and breach status
- **Proposed trade list**: Security-level detail with direction, shares/units, estimated proceeds or cost, commission, spread cost, and tax impact per lot
- **Tax impact summary**: Projected short-term and long-term realized gains/losses, wash-sale exposure, and net tax cost estimate
- **Transaction cost estimate**: Aggregate commission, spread cost, and market impact projection
- **Pre/post allocation comparison**: Side-by-side weights before and after proposed rebalancing
- **Exception log**: Positions excluded from rebalancing with documented rationale

## Quality Checks

- Verify that post-rebalancing weights fall within all policy tolerance bands
- Confirm no wash-sale violations are created across taxable accounts in the household
- Validate that total transaction cost does not exceed the expected benefit of reduced tracking error
- Ensure all trades comply with restricted security lists and concentration limits
- Check that cash reserves remain above minimum requirements after all proposed trades settle
- Confirm lot-level cost basis data matches custodian records before calculating tax impact [VERIFY — custodian cost basis reporting standards may vary]
- Review that any substitute securities used for tax-loss harvesting maintain comparable risk/return characteristics

Related Skills

managing-wound-care

11
from CaseMark/skills

Guides wound assessment, classification, and treatment selection with documentation requirements. Use when managing surgical wounds, classifying wound types, or selecting wound care protocols.

managing-wound-assessment-nursing

11
from CaseMark/skills

Structures wound assessment with measurement, staging, and treatment plan documentation. Use when assessing wounds, staging pressure injuries, or documenting wound care.

managing-workplace-safety-healthcare

11
from CaseMark/skills

Tracks OSHA healthcare requirements including bloodborne pathogen, TB, and violence prevention programs. Use when managing OSHA compliance, implementing safety programs, or documenting exposure incidents.

managing-workers-compensation-rehabilitation

11
from CaseMark/skills

Structures workers comp rehab documentation with functional capacity evaluation and return-to-work planning. Use when managing work injury rehab, performing FCEs, or documenting return-to-work status.

managing-vestibular-rehabilitation

11
from CaseMark/skills

Structures vestibular assessment with positional testing and customized exercise programs. Use when evaluating vestibular disorders, performing Dix-Hallpike testing, or designing vestibular exercise programs.

managing-venous-thromboembolism-prophylaxis

11
from CaseMark/skills

Applies VTE risk assessment (Padua, Caprini) with appropriate prophylaxis selection. Use when assessing VTE risk, selecting prophylaxis regimens, or documenting DVT prevention.

managing-valvular-heart-disease

11
from CaseMark/skills

Guides valve disease severity assessment with intervention criteria and surveillance schedules. Use when evaluating valve disease, assessing surgical/interventional timing, or monitoring valve function.

managing-vaccine-schedules

11
from CaseMark/skills

Applies CDC immunization schedules with catch-up protocols and contraindication screening. Use when managing vaccinations, creating catch-up schedules, or documenting immunization decisions.

managing-vaccination-campaigns

11
from CaseMark/skills

Plans mass vaccination campaigns with logistics, cold chain management, and adverse event monitoring. Use when planning vaccination drives, managing immunization logistics, or monitoring VAERS.

managing-traumatic-brain-injury-rehabilitation

11
from CaseMark/skills

Structures TBI rehab with Rancho Los Amigos scoring and cognitive rehabilitation protocols. Use when managing TBI rehab, tracking Rancho levels, or implementing cognitive therapy.

managing-trauma-assessments

11
from CaseMark/skills

Conducts structured primary and secondary trauma surveys following ATLS methodology. Use when assessing trauma patients, documenting trauma workups, or coordinating trauma team activations.

managing-transplant-evaluations

11
from CaseMark/skills

Guides transplant candidacy evaluation with organ-specific criteria and listing documentation. Use when evaluating transplant candidates, documenting listing criteria, or coordinating transplant workups.