Tooluck logoTooluck
SKILL.md

stock-correlation

Agent skill fromhimself65/finance-skills

Analyze how stocks move together using Yahoo Finance price history (yfinance): find correlated peers for a ticker, measure correlation, beta, and spread between specific tickers, cluster a group into a correlation matrix, and track rolling or regime-dependent correlation. Use this skill whenever the user asks what moves with a stock, what else drops when it drops, related tickers or sympathy plays, sector or supply-chain peers, pair trading or hedging pairs, beta or relative performance, correlation matrices, co-movement, or rolling/realized correlation — including well-known pairs like AMD/NVDA, GOOGL/AVGO, or LITE/COHR. With a single ticker, assume the user wants its correlated peers.

How to install stock-correlation

install stock-correlation
# install the finance-skills pack with the skills CLI
npx skills add himself65/finance-skills

# or add only this skill to Claude Code: copy the folder

plugins/market-analysis/skills/stock-correlation/

# into

~/.claude/skills/stock-correlation/ (all projects)

.claude/skills/stock-correlation/ (one project)

plugins/market-analysis/skills/stock-correlation/SKILL.md

MITFull file
1# Stock Correlation Analysis Skill
2
3If your host has not already executed the shell probes below (for example, in Codex), run the commands inside the `!` wrappers with its shell tool before choosing a setup path. Use the actual output; if shell access is unavailable, report that limitation.
4
5Finds and analyzes correlated stocks using historical price data from Yahoo Finance via [yfinance](https://github.com/ranaroussi/yfinance). Routes to specialized sub-skills based on user intent.
6
7**Important**: This is for research and educational purposes only. Not financial advice. yfinance is not affiliated with Yahoo, Inc.
8
9---
10
11## Step 1: Ensure Dependencies Are Available
12
13**Current environment status:**
14
15```
16!`python3 -c "exec('try:\n import yfinance, pandas, numpy\n print(f\'yfinance={yfinance.__version__} pandas={pandas.__version__} numpy={numpy.__version__}\')\nexcept Exception:\n print(\'DEPS_MISSING\')')"`
17```
18
19If `DEPS_MISSING`, install required packages before running any code:
20
21```python
22import subprocess, sys
23subprocess.check_call([sys.executable, "-m", "pip", "install", "-q", "yfinance", "pandas", "numpy"])
24```
25
26If all dependencies are already installed, skip the install step and proceed directly.
27
28---
29
30## Step 2: Route to the Correct Sub-Skill
31
32Classify the user's request and jump to the matching sub-skill section below.
33
34| User Request | Route To | Examples |
35|---|---|---|
36…

Excerpt shown under the repository's MIT license.

More skills in finance-skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates