File contents AI Portfolio Rebalancer
Intelligent portfolio rebalancing with tax-loss harvesting and drift detection.
Features
Drift Detection - Alert when allocations deviate from targets
Smart Rebalancing - AI decides optimal rebalance timing
Tax-Loss Harvesting - Automatically harvest losses for tax efficiency
Wash Sale Prevention - Avoid wash sale violations automatically
Multi-Account Coordination - Rebalance across all accounts as one
Transaction Cost Optimization - Minimize fees and slippage
Model Portfolio Support - Follow model portfolios with auto-adjustment
Rebalancing Strategies
Calendar - Rebalance on schedule (monthly, quarterly)
Threshold - Rebalance when drift exceeds X%
Tactical - AI-driven based on market conditions
Hybrid - Combine multiple strategies
Commands
kit rebalance status # Current drift analysis
kit rebalance preview # Preview rebalancing trades
kit rebalance execute # Execute rebalancing
kit rebalance harvest # Tax-loss harvest opportunities
kit rebalance history # Rebalancing history
kit rebalance model <name> # Follow model portfolio
API Endpoints
GET /api/rebalance/status - Drift analysis
GET /api/rebalance/preview - Preview trades
POST /api/rebalance/execute - Execute rebalance
GET /api/rebalance/harvest - Tax-loss opportunities
GET /api/rebalance/models - Available model portfolios
Configuration
rebalance:
strategy: threshold
threshold: 5% # Drift threshold
min_trade_size: $100
tax_loss_harvest: true
wash_sale_window: 30d
exclude_assets: []
schedule: quarterly # For calendar strategy
Tax-Loss Harvesting
Identifies losing positions
Sells for tax deduction
Buys correlated replacement
Tracks wash sale windows
Estimates tax savings
Model Portfolios
Ray Dalio All Weather
60/40 Balanced
Risk Parity
Permanent Portfolio
Custom models
1 --- 2 name: ai-portfolio-rebalancer 3 description: AI Portfolio Rebalancer 4 --- 5 # AI Portfolio Rebalancer 6 7 Intelligent portfolio rebalancing with tax-loss harvesting and drift detection. 8 9 ## Features 10 11 - **Drift Detection** - Alert when allocations deviate from targets 12 - **Smart Rebalancing** - AI decides optimal rebalance timing 13 - **Tax-Loss Harvesting** - Automatically harvest losses for tax efficiency 14 - **Wash Sale Prevention** - Avoid wash sale violations automatically 15 - **Multi-Account Coordination** - Rebalance across all accounts as one 16 - **Transaction Cost Optimization** - Minimize fees and slippage 17 - **Model Portfolio Support** - Follow model portfolios with auto-adjustment 18 19 ## Rebalancing Strategies 20 21 - **Calendar** - Rebalance on schedule (monthly, quarterly) 22 - **Threshold** - Rebalance when drift exceeds X% 23 - **Tactical** - AI-driven based on market conditions 24 - **Hybrid** - Combine multiple strategies 25 26 ## Commands 27 28 ``` 29 kit rebalance status # Current drift analysis 30 kit rebalance preview # Preview rebalancing trades 31 kit rebalance execute # Execute rebalancing 32 kit rebalance harvest # Tax-loss harvest opportunities 33 kit rebalance history # Rebalancing history 34 kit rebalance model <name> # Follow model portfolio 35 ``` 36 37 ## API Endpoints 38 39 - `GET /api/rebalance/status` - Drift analysis 40 - `GET /api/rebalance/preview` - Preview trades 41 - `POST /api/rebalance/execute` - Execute rebalance 42 - `GET /api/rebalance/harvest` - Tax-loss opportunities 43 - `GET /api/rebalance/models` - Available model portfolios 44 45 ## Configuration 46 47 ```yaml 48 rebalance: 49 strategy: threshold 50 threshold: 5% # Drift threshold 51 min_trade_size: $100 52 tax_loss_harvest: true 53 wash_sale_window: 30d 54 exclude_assets: [] 55 schedule: quarterly # For calendar strategy 56 ``` 57 58 ## Tax-Loss Harvesting 59 60 - Identifies losing positions 61 - Sells for tax deduction 62 - Buys correlated replacement 63 - Tracks wash sale windows 64 - Estimates tax savings 65 66 ## Model Portfolios 67 68 - Ray Dalio All Weather 69 - 60/40 Balanced 70 - Risk Parity 71 - Permanent Portfolio 72 - Custom models
Signal-Execution-Labs/forex-trading-ai-agent/tree/main/skills/ai-portfolio-rebalancer commit ef01af27c9
Frequently asked questions How do I install the AI Portfolio Rebalancer skill? Run npx skillmds@latest add signal-execution-labs/ai-portfolio-rebalancer in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the AI Portfolio Rebalancer skill do? AI Portfolio Rebalancer It is listed under Coding & Dev Tools on SkillMD.
Is AI Portfolio Rebalancer safe to use? This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with AI Portfolio Rebalancer? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is AI Portfolio Rebalancer free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published AI Portfolio Rebalancer? Signal-Execution-Labs (@signal-execution-labs) published this skill. Their other Agent Skills are listed on their SkillMD profile.