بنقرة واحدة
portfolio-balancergenerate-recommendations
Create specific rebalancing recommendations based on drift analysis
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Create specific rebalancing recommendations based on drift analysis
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Calculate current allocation percentages, identify drift from targets, analyze margin efficiency
Gather current portfolio positions, values, and prices from Robinhood using bin/robinhood CLI
Compile comprehensive human-readable daily report with all analysis and recommendations
Daily Permanent Portfolio analysis with allocation drift and rebalancing recommendations
Creates a job.yml specification by gathering workflow requirements through structured questions. Use when starting a new multi-step workflow.
Generates step instruction files and syncs slash commands from the job.yml specification. Use after job spec review passes.
| name | portfolio_balancer.generate_recommendations |
| description | Create specific rebalancing recommendations based on drift analysis |
| user-invocable | false |
Step 3/4 in portfolio_balancer workflow
Daily Permanent Portfolio analysis with allocation drift and rebalancing recommendations
Before proceeding, confirm these steps are complete:
/portfolio_balancer.analyze_allocationGoal: Create specific rebalancing recommendations based on drift analysis
Create specific, actionable rebalancing recommendations based on the allocation drift analysis to restore the 25/25/25/25 Permanent Portfolio targets.
Using the allocation analysis, calculate the exact dollar amounts needed to buy or sell in each asset class to restore target allocations. Generate clear, prioritized recommendations for manual execution.
Read the allocation analysis
Load portfolio_balancer/data/allocation_analysis.yml from the analyze_allocation step.
Determine if rebalancing is needed
Calculate rebalancing amounts For each asset class:
target_value = total_portfolio_value * 0.25
adjustment = target_value - current_value
Generate specific trade recommendations For each asset class needing adjustment:
Handle satellite adjustments (if enabled) If satellite allocation is off-target:
Generate margin recommendations Based on margin analysis:
Prioritize recommendations Order recommendations by:
Add implementation notes Include practical considerations:
A YAML file containing prioritized rebalancing recommendations.
Structure:
recommendation_date: "YYYY-MM-DD"
rebalancing_needed: true
urgency: "moderate" # none, low, moderate, high
summary: "Rebalance stocks and gold to restore 25/25/25/25 allocation"
# Detailed recommendations
recommendations:
- priority: 1
action: "SELL"
asset_class: "stocks"
amount: 3000.00
reason: "Stocks overweight by 3% ($3,000)"
suggested_trade:
symbol: "VTI"
shares: 12
approximate_value: 3000.00
notes: "Consider tax implications of selling"
- priority: 2
action: "BUY"
asset_class: "gold"
amount: 2000.00
reason: "Gold underweight by 2% ($2,000)"
suggested_trade:
symbol: "GLD"
shares: 9
approximate_value: 2070.00
notes: "Round up to whole shares"
- priority: 3
action: "BUY"
asset_class: "long_term_bonds"
amount: 1000.00
reason: "Long-term bonds underweight by 1% ($1,000)"
suggested_trade:
symbol: "TLT"
shares: 8
approximate_value: 960.00
notes: "Slight underbuy due to share price"
# Satellite recommendations (if applicable)
satellite_recommendations:
- action: "BUY"
description: "Increase satellite allocation from 10.7% to 15% of stocks"
amount: 1200.00
notes: "Consider adding to existing satellite positions or new picks"
# Margin recommendations (if applicable)
margin_recommendations:
- action: "REVIEW"
description: "Margin fees ($50/mo) exceed expected cost ($25/mo)"
recommendation: "Consider reducing margin balance or negotiating fees"
potential_savings: 300.00 # annual
# Implementation guidance
implementation:
order_of_operations:
- "1. Execute SELL orders first to generate cash"
- "2. Execute BUY orders with proceeds"
- "3. Adjust satellite positions"
tax_considerations:
- "VTI sale may trigger capital gains - check cost basis"
- "Consider tax-loss harvesting opportunities"
timing_notes:
- "Execute during market hours for best liquidity"
- "Consider limit orders to control execution price"
# No-action scenario (when rebalancing not needed)
# recommendations:
# - priority: 1
# action: "HOLD"
# reason: "All asset classes within 5% drift threshold"
# notes: "Continue monitoring; next review recommended in 30 days"
<promise>✓ Quality Criteria Met</promise> in your responseThis step translates analysis into action. The Permanent Portfolio philosophy emphasizes simplicity and discipline - rebalancing only when drift exceeds the threshold, not chasing market movements. Recommendations should be clear enough for manual execution but include enough context for informed decision-making.
Critical Reminder: This system generates RECOMMENDATIONS ONLY. No trades are executed automatically. The user must manually review and execute any trades they agree with.
Automated daily portfolio analysis implementing Harry Browne's Permanent Portfolio strategy.
The Permanent Portfolio maintains equal 25% allocations across four asset classes designed to perform in different economic conditions:
This workflow:
bin/robinhood positions --save CLIIMPORTANT: This system is read-only. No trades are executed automatically. All recommendations require manual review and execution.
Files from Previous Steps - Read these first:
portfolio_balancer/data/allocation_analysis.yml (from analyze_allocation)Use branch format: deepwork/portfolio_balancer-[instance]-YYYYMMDD
git checkout -b deepwork/portfolio_balancer-[instance]-$(date +%Y%m%d)Required outputs:
portfolio_balancer/data/recommendations.yml/portfolio_balancer.generate_reportReference files: .deepwork/jobs/portfolio_balancer/job.yml, .deepwork/jobs/portfolio_balancer/steps/generate_recommendations.md