원클릭으로
portfolio-balanceranalyze-allocation
Calculate current allocation percentages, identify drift from targets, analyze margin efficiency
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Calculate current allocation percentages, identify drift from targets, analyze margin efficiency
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Gather current portfolio positions, values, and prices from Robinhood using bin/robinhood CLI
Create specific rebalancing recommendations based on drift analysis
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.analyze_allocation |
| description | Calculate current allocation percentages, identify drift from targets, analyze margin efficiency |
| user-invocable | false |
Step 2/4 in portfolio_balancer workflow
Daily Permanent Portfolio analysis with allocation drift and rebalancing recommendations
Before proceeding, confirm these steps are complete:
/portfolio_balancer.collect_portfolio_dataGoal: Calculate current allocation percentages, identify drift from targets, analyze margin efficiency
Calculate current allocation percentages against the 25/25/25/25 Permanent Portfolio targets, identify drift from targets, and analyze margin efficiency.
Analyze the portfolio snapshot to determine how current allocations compare to Harry Browne's Permanent Portfolio targets. Identify which asset classes are over or underweight and assess whether margin usage is cost-effective.
Read the portfolio snapshot
Load portfolio_balancer/data/portfolio_snapshot.yml from the collect_portfolio_data step.
Calculate current allocation percentages For each asset class, calculate:
current_percentage = (asset_class_value / total_portfolio_value) * 100
Calculate drift from targets The Permanent Portfolio target is 25% for each asset class:
drift = current_percentage - 25.0
Determine if rebalancing is needed
Compare each asset class drift against the drift_threshold from the snapshot:
Analyze satellite allocation (if enabled) If satellite_tracking is enabled:
Analyze margin efficiency If margin is enabled:
margin_balance * interest_rateApply Four Seasons context Note which economic conditions favor current over/underweight positions:
A YAML file containing the complete allocation analysis.
Structure:
analysis_date: "YYYY-MM-DD"
drift_threshold: 5 # from snapshot
total_portfolio_value: 100000.00
# Allocation breakdown
allocations:
stocks:
target_percentage: 25.0
current_percentage: 28.0
current_value: 28000.00
drift: 3.0 # overweight by 3%
exceeds_threshold: false
status: "overweight"
# Satellite breakdown (if enabled)
satellite:
enabled: true
core_percentage: 89.3 # % of stocks in core index
satellite_percentage: 10.7 # % of stocks in satellites
target_satellite_percentage: 15.0
satellite_drift: -4.3 # underweight satellites
long_term_bonds:
target_percentage: 25.0
current_percentage: 24.0
current_value: 24000.00
drift: -1.0 # underweight by 1%
exceeds_threshold: false
status: "underweight"
gold:
target_percentage: 25.0
current_percentage: 23.0
current_value: 23000.00
drift: -2.0
exceeds_threshold: false
status: "underweight"
cash_treasuries:
target_percentage: 25.0
current_percentage: 25.0
current_value: 25000.00
drift: 0.0
exceeds_threshold: false
status: "on_target"
# Overall rebalancing assessment
rebalancing:
needed: false
reason: "No asset class exceeds 5% drift threshold"
assets_exceeding_threshold: []
# Margin analysis
margin_analysis:
enabled: true
current_balance: 5000.00
annual_cost: 300.00 # balance * rate
monthly_cost: 25.00
monthly_fees_paid: 50.00
efficiency_rating: "poor" # paying more in fees than calculated cost
recommendation: "Review margin fees - paying $50/mo vs $25/mo expected cost"
# Four Seasons context
economic_context:
current_overweights:
- asset: "stocks"
favored_condition: "Prosperity/Growth (Spring)"
drift: 3.0
current_underweights:
- asset: "gold"
favored_condition: "Inflation (Summer)"
drift: -2.0
- asset: "long_term_bonds"
favored_condition: "Deflation/Recession (Winter)"
drift: -1.0
interpretation: "Portfolio currently positioned for prosperity; vulnerable to inflation"
<promise>✓ Quality Criteria Met</promise> in your responseThis analysis is the core of Permanent Portfolio management. Harry Browne designed the 25/25/25/25 allocation to provide balance across all economic conditions - the "Four Seasons" of the economic cycle. Drift analysis helps determine when rebalancing is needed to maintain this balance.
The margin analysis helps users understand whether their use of margin is cost-effective, comparing actual fees paid against calculated costs and expected benefits.
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/portfolio_snapshot.yml (from collect_portfolio_data)Use branch format: deepwork/portfolio_balancer-[instance]-YYYYMMDD
git checkout -b deepwork/portfolio_balancer-[instance]-$(date +%Y%m%d)Required outputs:
portfolio_balancer/data/allocation_analysis.yml/portfolio_balancer.generate_recommendationsReference files: .deepwork/jobs/portfolio_balancer/job.yml, .deepwork/jobs/portfolio_balancer/steps/analyze_allocation.md