recipe-weekly-rebalance
Run a weekly portfolio rebalance to maintain target asset allocations.
Best use case
recipe-weekly-rebalance is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Run a weekly portfolio rebalance to maintain target asset allocations.
Teams using recipe-weekly-rebalance 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
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/kraken-official-recipe-weekly-rebalance/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How recipe-weekly-rebalance Compares
| Feature / Agent | recipe-weekly-rebalance | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Run a weekly portfolio rebalance to maintain target asset allocations.
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
# Weekly Rebalance > **PREREQUISITE:** Load the following skill to execute this recipe: `kraken-rebalancing` Check portfolio drift and rebalance to target weights once per week. ## Steps 1. Get balances: `kraken balance -o json 2>/dev/null` 2. Get prices: `kraken ticker BTCUSD ETHUSD SOLUSD -o json 2>/dev/null` 3. Calculate current weights (agent computes USD value per asset / total) 4. Compare to targets (e.g., 50% BTC, 30% ETH, 20% SOL) 5. If any asset drifts more than 5% from target, compute rebalance trades: `SELL_VOL=$(echo "scale=8; ($CURRENT_BTC_VALUE - $TARGET_BTC_VALUE) / $BTC_PRICE" | bc)` and `BUY_VOL=$(echo "scale=8; ($TARGET_SOL_VALUE - $CURRENT_SOL_VALUE) / $SOL_PRICE" | bc)` 6. Present the rebalance plan to the user with estimated fees 7. Validate sell orders: `kraken order sell BTCUSD $SELL_VOL --type market --validate -o json 2>/dev/null` 8. Execute sells first (requires human approval): `kraken order sell BTCUSD $SELL_VOL --type market -o json 2>/dev/null` 9. Execute buys with freed capital: `kraken order buy SOLUSD $BUY_VOL --type market -o json 2>/dev/null` 10. Verify final allocations: `kraken balance -o json 2>/dev/null`
Related Skills
recipe-withdrawal-to-cold-storage
Safely withdraw funds to a pre-approved cold storage address.
recipe-trailing-stop-runner
Ride a trend with a trailing stop that locks in profits on reversal.
recipe-track-orderbook-depth
Monitor order book depth and bid-ask imbalance for liquidity signals.
recipe-subaccount-capital-rotation
Rotate capital between subaccounts based on strategy performance.
recipe-start-dca-bot
Set up and run a dollar cost averaging bot from paper test to live.
recipe-price-level-alerts
Set up price level alerts that notify when key levels are crossed.
recipe-portfolio-snapshot-csv
Export a portfolio snapshot with balances and valuations to CSV.
recipe-paper-strategy-backtest
Backtest a trading strategy using paper trading against live prices.
recipe-multi-pair-breakout-watch
Monitor multiple pairs for price breakouts from defined ranges.
recipe-morning-market-brief
Generate a morning market summary with prices, volume, and portfolio state.
recipe-launch-grid-bot
Deploy a grid trading bot with paper validation and live safety controls.
recipe-futures-hedge-spot
Hedge a spot holding with a short futures position to lock in value.