Rebalance

From hvkshetry/StewardOS · View interactive version

Rebalance is an AI agent skill from the GitHub repository hvkshetry/StewardOS. Analyze portfolio allocation drift and generate rebalancing trade recommendations across accounts. Considers tax implications, transaction costs, and wash sale rules.

How to use this skill

Skill file

Portfolio Rebalance

This skill is the corrective-action engine that portfolio-review should call whenever a hard gate or threshold trigger requires action.

Internal MCP Tool Map

Workflow

Step 1: Establish current state

Step 2: Determine the repair objective

Always solve in this order:

  1. get ES below 2.5%
  2. raise hyper-safe to at least 15%
  3. raise convex to at least 10%
  4. reduce fragile-middle toward 70%
  5. clean up residual IPS drift and tax inefficiency

If ES is critical, do not let drift cleanup override the de-risking objective.

Step 3: Funding order

Rank sells in this order:

Use include_decomposition=true when needed to identify the biggest component-VaR contributors.

Step 4: ES-driven repair

When risk.status == "critical" or illiquid_overlay.adjusted_es_975_1d > 0.025:

Step 5: Barbell repair

Use portfolio-analytics.classify_barbell_buckets gap outputs directly:

Then:

Step 6: Convex implementation

When convex is below target:

Important:

Step 7: Verification

Do not pretend to verify by mentally adjusting weights.

Step 8: Tax overlay

Output Contract

The rebalance output should include:

Constraints

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.