Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
Comprehensive portfolio analysis using Alpaca MCP Server integration to fetch holdings and positions, then analyze asset allocation, risk metrics, individual stock positions, diversification, and generate rebalancing recommendations. Use when user requests portfolio review, position analysis, risk assessment, performance evaluation, or rebalancing suggestions for their brokerage account.
Comprehensive portfolio analysis using Alpaca MCP Server integration to fetch holdings and positions, then analyze asset allocation, risk metrics, individual stock positions, diversification, and generate rebalancing recommendations. Use when user requests portfolio review, position analysis, risk assessment, performance evaluation, or rebalancing suggestions for their brokerage account.
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
Analyze and manage investment portfolios by integrating with Alpaca MCP Server to fetch real-time holdings data, then performing comprehensive analysis covering asset allocation, diversification, risk metrics, individual position evaluation, and rebalancing recommendations. Generate detailed portfolio reports with actionable insights. This skill leverages Alpaca's brokerage API through MCP (Model Context Protocol) to access live portfolio data, ensuring analysis is based on actual current positions rather than manually entered data.
Invoke this skill when the user requests: "Analyze my portfolio" "Review my current positions" "What's my asset allocation?" "Check my portfolio risk" "Should I rebalance my portfolio?" "Evaluate my holdings" "Portfolio performance review" "What stocks should I buy or sell?" Any request involving portfolio-level analysis or management
This skill requires Alpaca MCP Server to be configured and connected. The MCP server provides access to: Current portfolio positions Account equity and buying power Historical positions and transactions Market data for held securities MCP Server Tools Used: get_account_info - Fetch account equity, buying power, cash balance get_positions - Retrieve all current positions with quantities, cost basis, market value get_portfolio_history - Historical portfolio performance data Market data tools for price quotes and fundamentals If Alpaca MCP Server is not connected, inform the user and provide setup instructions from references/alpaca_mcp_setup.md.
For each position in the portfolio, gather additional market data and fundamentals: 2.1 Current Market Data: Real-time or delayed price quotes Daily volume and liquidity metrics 52-week range Market capitalization 2.2 Fundamental Data: Use WebSearch or available market data APIs to fetch: Sector and industry classification Key valuation metrics (P/E, P/B, dividend yield) Recent earnings and financial health indicators Analyst ratings and price targets Recent news and material developments 2.3 Technical Analysis: Price trend (20-day, 50-day, 200-day moving averages) Relative strength Support and resistance levels Momentum indicators (RSI, MACD if available)
Be prepared to answer follow-up questions: Common Questions: "Why should I sell [SYMBOL]?" Explain specific concerns (valuation, thesis breakdown, concentration) Provide supporting data Offer alternative positions if applicable "What should I buy instead?" Suggest specific stocks to improve allocation Explain how they address portfolio gaps Provide brief investment thesis "What's my biggest risk?" Identify primary risk factor (concentration, sector exposure, volatility) Quantify the risk Suggest mitigation strategies "How does my portfolio compare to [benchmark]?" Compare allocation, sector weights, risk metrics Highlight key differences Assess if differences are justified "Should I rebalance now or wait?" Consider market conditions, tax implications, transaction costs Provide timing recommendation with rationale "Can you analyze [specific position] in more detail?" Perform deep-dive analysis using us-stock-analysis skill if needed Integrate findings back into portfolio context
This skill includes reference allocation models for different investor profiles: Read references/target-allocations.md for detailed models: Conservative (Capital preservation, income focus) Moderate (Balanced growth and income) Growth (Long-term capital appreciation) Aggressive (Maximum growth, high risk tolerance) Each model includes: Asset class targets (Stocks/Bonds/Cash/Alternatives) Sector guidelines Market cap distribution Geographic allocation Position sizing rules Use these as comparison benchmarks when user hasn't specified their allocation strategy.
If user's target allocation is unknown, assess appropriate risk profile based on: Age (if mentioned) Investment timeline (if mentioned) Current allocation (reveals preferences) Position types (conservative vs speculative stocks) Read references/risk-profile-questionnaire.md for assessment framework
Tone and Style: Objective and analytical Actionable recommendations with clear rationale Acknowledge uncertainty in market forecasts Balance optimism with risk awareness Quantify whenever possible Data Presentation: Tables for comparisons and metrics Percentages for allocations and returns Dollar amounts for absolute values Consistent formatting throughout report Recommendation Clarity: Explicit action verbs (TRIM, ADD, HOLD, SELL) Specific quantities (sell XX shares, add $X,XXX) Priority levels (Immediate, High, Medium, Low) Supporting rationale for each recommendation Visual Descriptions: Describe allocation breakdowns as if creating pie charts Sector weights as bar chart equivalents Performance trends with directional indicators (โ โ โ)
Load these references as needed during analysis: references/alpaca-mcp-setup.md When: User needs help setting up Alpaca MCP Server Contains: Installation instructions, API key configuration, MCP server connection steps, troubleshooting references/asset-allocation.md When: Analyzing portfolio allocation or creating rebalancing plan Contains: Asset allocation theory, optimal allocation by risk profile, sector allocation guidelines, rebalancing triggers references/diversification-principles.md When: Assessing portfolio diversification quality Contains: Modern portfolio theory basics, correlation concepts, optimal position count, concentration risk thresholds, diversification metrics references/portfolio-risk-metrics.md When: Calculating risk scores or interpreting volatility Contains: Beta calculation, standard deviation, Sharpe ratio, maximum drawdown, Value at Risk (VaR), risk-adjusted return metrics references/position-evaluation.md When: Analyzing individual holdings for buy/hold/sell decisions Contains: Position analysis framework, thesis validation checklist, position sizing guidelines, sell discipline criteria references/rebalancing-strategies.md When: Developing rebalancing recommendations Contains: Rebalancing methodologies (calendar-based, threshold-based, tactical), tax optimization strategies, transaction cost considerations, implementation timing references/target-allocations.md When: Need benchmark allocations for comparison Contains: Model portfolios for conservative/moderate/growth/aggressive investors, sector target ranges, market cap distributions references/risk-profile-questionnaire.md When: User hasn't specified risk tolerance or target allocation Contains: Risk assessment questions, scoring methodology, risk profile classification
If Alpaca MCP Server is not connected: Inform user that Alpaca integration is required Provide setup instructions from references/alpaca-mcp-setup.md Offer alternative: manual data entry (less ideal, user provides CSV of positions) If API returns incomplete data: Proceed with available data Note limitations in report Suggest manual verification for missing positions If position data seems stale: Flag the issue Recommend refreshing connection or checking Alpaca status Proceed with analysis but caveat findings If user has no positions: Acknowledge empty portfolio Offer portfolio construction guidance instead of analysis Suggest using value-dividend-screener or us-stock-analysis for stock ideas
Identify positions with unrealized losses suitable for tax-loss harvesting: Positions with losses >5% Holding period considerations (avoid wash sale rule) Replacement security suggestions (similar but not substantially identical)
For portfolios with dividend-paying stocks: Estimate annual dividend income Dividend growth rate trajectory Dividend coverage and sustainability Yield on cost for long-term holdings
For portfolios with 5-20 positions: Estimate correlation between major positions Identify redundant positions (correlation >0.8) Suggest diversification improvements
Model portfolio behavior under different scenarios: Bull Market (+20% equity appreciation) Bear Market (-20% equity decline) Sector Rotation (Tech weakness, Value strength) Rising Rates (Impact on growth stocks and bonds)
Basic Portfolio Review: "Analyze my portfolio" "Review my positions" "How's my portfolio doing?" Allocation Analysis: "What's my asset allocation?" "Am I too concentrated in tech?" "Show me my sector breakdown" Risk Assessment: "Is my portfolio too risky?" "What's my portfolio beta?" "What are my biggest risks?" Rebalancing: "Should I rebalance?" "What should I buy or sell?" "How can I improve diversification?" Performance: "What are my best and worst positions?" "How am I performing vs the market?" "Which stocks are winning and losing?" Position-Specific: "Should I sell [SYMBOL]?" "Is [SYMBOL] overweight in my portfolio?" "What should I do with [SYMBOL]?"
Include in all reports: This analysis is for informational purposes only and does not constitute financial advice. Investment decisions should be made based on individual circumstances, risk tolerance, and financial goals. Past performance does not guarantee future results. Consult with a qualified financial advisor before making investment decisions. Data accuracy depends on Alpaca API and third-party market data sources. Verify critical information independently. Tax implications are estimates only; consult a tax professional for specific guidance.
Code helpers, APIs, CLIs, browser automation, testing, and developer operations.
Largest current source with strong distribution and engagement signals.