Claude Code Plugins

Community-maintained marketplace

Feedback

portfolio-analyzer

@rgbussell/pine_scripts
0
0

Analyze portfolio data from Fidelity and Tastytrade CSV files. Use when analyzing positions, performance, or risk metrics from financial data.

Install Skill

1Download skill
2Enable skills in Claude

Open claude.ai/settings/capabilities and find the "Skills" section

3Upload to Claude

Click "Upload skill" and select the downloaded ZIP file

Note: Please verify skill by going through its instructions before using it.

SKILL.md

name portfolio-analyzer
description Analyze portfolio data from Fidelity and Tastytrade CSV files. Use when analyzing positions, performance, or risk metrics from financial data.
allowed-tools Read, Bash(python:*), Grep, Glob

Portfolio Analyzer

This skill helps analyze portfolio data from Fidelity and Tastytrade CSV files, including position sizing, risk analysis, and performance metrics.

Instructions

When analyzing portfolio data:

  1. Identify the data source

    • Check if the CSV is from Fidelity or Tastytrade
    • Use the appropriate parser (fidelity_utils.py or tastytrade_utils.py)
  2. Parse and harmonize the data

    • Read the CSV file using the appropriate utility
    • Harmonize data to a common format
    • Validate required fields are present
  3. Perform the requested analysis

    • Position sizing by ticker
    • Options analysis (calls vs puts, long vs short)
    • Risk metrics (delta, gamma, theta exposure)
    • Expiration timeline
    • Strategy identification (synthetic positions, spreads, etc.)
  4. Generate visualizations if requested

    • Use PlotPositions.py for position charts
    • Use options_list.py for options breakdown
    • Generate Pine script for TradingView integration

Key Files

  • src/fidelity_utils.py - Fidelity CSV parser
  • src/tastytrade_utils.py - Tastytrade CSV parser
  • src/parse_utils.py - Data harmonization utilities
  • src/PlotPositions.py - Position visualization
  • src/options_list.py - Options position analysis
  • config/harmonization.json - Field mapping configuration

Common Tasks

Analyze a new portfolio CSV

# Set Python path and run analysis
PYTHONPATH=src python src/PlotPositions.py

Identify options strategies

Look for:

  • Long/Short calls and puts
  • Synthetic positions (long stock + long put = synthetic call)
  • Spreads (same expiration, different strikes)
  • Calendars (same strike, different expirations)

Generate TradingView Pine Script

PYTHONPATH=src python scripts/csv_to_options_tasty.py

Output Format

Provide:

  1. Summary of positions (count, total value, asset allocation)
  2. Breakdown by ticker and strategy type
  3. Risk metrics (Greeks exposure if available)
  4. Identified strategies or concerns
  5. Visualization path or next steps

Example

When asked "Analyze my current portfolio positions":

  1. Look for CSV files in data/ directory
  2. Identify the most recent portfolio file
  3. Parse using appropriate utility
  4. Summarize positions, options strategies, and risk exposure
  5. Generate visualization if helpful