
Stock Correlation
This is a well-structured financial analysis tool that finds stocks that move together using historical price data from Yahoo Finance. It routes between four sub-skills depending on what you ask: discovering correlated peers for a single ticker, analyzing the relationship between two specific stocks, clustering groups of tickers, or examining time-varying correlations. The peer discovery is thoughtfully designed to build universes dynamically using yfinance screeners rather than hardcoded lists, and it pulls from same-industry, sector, and adjacent thematic groups. Each sub-skill returns practical metrics like Pearson correlation, beta, R-squared, and spread z-scores with clear interpretation guides. Good for research and pair trading ideas, though the disclaimer is right that this is educational only.
- skills.sh installs
- 3.7K
- GitHub stars
- 3.5K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add himself65/finance-skills --skill stock-correlation --agent claude-codeInstalls into .claude/skills of the current project.
Files
Stock Correlation Analysis Skill
If 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.
Finds and analyzes correlated stocks using historical price data from Yahoo Finance via yfinance. Routes to specialized sub-skills based on user intent.
Important: This is for research and educational purposes only. Not financial advice. yfinance is not affiliated with Yahoo, Inc.
Step 1: Ensure Dependencies Are Available
Current environment status:
!`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\')')"`
If DEPS_MISSING, install required packages before running any code:
import subprocess, sys
subprocess.check_call([sys.executable, "-m", "pip", "install", "-q", "yfinance", "pandas", "numpy"])
Sponsors
Details
- Repository
- github.com/himself65/finance-skills
- Categories
- Debugging, Finance & Trading
- First seen
- May 16, 2026
More from himself65/finance-skills
All 25- Options Payoff3.6K
- Earnings Recap3.4K
- Generative Ui3.4K
- Earnings Preview3.4K
- Estimate Analysis3.4K
- Hormuz Strait3.4K
- Company Valuation3.4K
- Stock Liquidity3.3K
- Etf Premium3.3K
- Twitter Reader3.3K
- Sepa Strategy3.2K
- Startup Analysis3.2K
- Saas Valuation Compression3.2K
- Yc Reader3.1K
- Skill Creator3K
- Telegram Reader1.7K
- Finance Sentiment1.6K
- Discord Reader1.6K
- Linkedin Reader1.3K
- Tradingview Reader1.2K
- Funda Data1.2K
- Opencli Reader1.1K
- Hyperliquid Reader576
- Yfinance Data4.2K