backtest-expert
Expert guidance for systematic backtesting of trading strategies. Use when developing,…
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,
$ npx -y skills add tradermonty/claude-trading-skills --skill portfolio-manager --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/portfolio-managerContext preview
The summary Claude sees to decide when to auto-load this skill.
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,
name: portfolio-manager description: 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.
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:
This skill requires Alpaca MCP Server to be configured and connected. The MCP server provides access to:
**MCP Server Tools Used:**
If Alpaca MCP Server is not connected, inform the user and provide setup instructions from `references/alpaca-mcp-setup.md`.
Run the connection check from the repository root. Use paper credentials first; never paste credentials into a report or commit them to the repository.
export ALPACA_API_KEY="<alpaca-key-id>" export ALPACA_SECRET_KEY="<alpaca-secret-key>" export ALPACA_PAPER="true" uv run python skills/portfolio-manager/scripts/check_alpaca_connection.py
The command writes a redacted diagnostic summary to stdout and returns zero only when the account and positions endpoints succeed. It does not create a report file or place orders.
Use Alpaca MCP Server tools to gather current portfolio information when available. In scheduled Hermes jobs, MCP tools may not be exposed even when Alpaca credentials are present; in that case, use the Alpaca REST API directly with `ALPACA_API_KEY`, `ALPACA_SECRET_KEY`, and `ALPACA_PAPER`.
**1.1 Get Account Information:**
Preferred: use mcp__alpaca__get_account_info to fetch: - Account equity (total portfolio value) - Cash balance - Buying power - Account status Fallback REST endpoints: - paper: https://paper-api.alpaca.markets/v2/account - live: https://api.alpaca.markets/v2/account Headers: - APCA-API-KEY-ID=$ALPACA_API_KEY - APCA-API-SECRET-KEY=$ALPACA_SECRET_KEY
**1.2 Get Current Positions:**
Preferred: use mcp__alpaca__get_positions to fetch all holdings: - Symbol ticker - Quantity held - Average entry price (cost basis) - Current market price - Current market value - Unrealized P&L ($ and %) - Position size as % of portfolio Fallback REST endpoints: - paper: https://paper-api.alpaca.markets/v2/positions - live: https://api.alpaca.markets/v2/positions
**1.3 Get Portfolio History (Optional):**
Preferred: use mcp__alpaca__get_portfolio_history for performance analysis: - Historical equity values - Time-weighted return calculation - Drawdown analysis Fallback REST endpoint: - /v2/account/portfolio/history
**Scheduled-job fallback discipline:**
**Data Validation:**
For `core-portfolio-weekly`, follow [`references/position-reconciliation.md`](references/position-reconciliation.md) to compare complete broker and ACTIVE / PARTIALLY_CLOSED memory snapshots using `scripts/reconcile_positions.py`. Generate the JSON and Markdown reconciliation reports. Stop allocation and rebalance review if `can_continue` is false or if snapshot completeness, account
Claude Trading Skills started as a personal project to use AI to improve my own trading process. Claude Trading Skills is a Claude Skills-based trading workflow toolkit for time-constrained individual investors.
Expert guidance for systematic backtesting of trading strategies. Use when developing,…
This skill should be used when analyzing market breadth charts, specifically the S&P 500…
Generate Minervini-style breakout trade plans from VCP screener output with worst-case risk…
Screen US stocks using William O'Neil's CANSLIM growth stock methodology. Use when user…
Synthesize the three Jason Shapiro contrarian-pipeline verdicts (COT crowding, news-reaction…
Detect crowded speculative positioning in CFTC futures markets (COT report analysis) to find…