Stock Correlation
Find what moves with a stock: correlated peers discovered for you, pair correlation with beta and spread, full correlation matrices with clustering, and rolling or regime-based co-movement.
- What
- Find what moves with a stock: correlated peers discovered for you, pair correlation with beta and spread, full correlation matrices with clustering, and rolling or regime-based co-movement.
- Cost
- Free
- Needs
- Python 3.8 or newer with pip, and an agent that can run Python code and shell commands. No API key, no paid data subscription and no account: the data comes from Yahoo Finance through the free yfinance library, with no authentication. Nothing is sent anywhere during installation itself. This is informational only, not investment advice.
- Level
- Beginner — Python 3.8 or newer with pip…
- Install
- Copy the installer prompt below into your Muse — your agent does the rest.
⚠️ Trading warning / Avertissement trading : informational only, not investment advice. Correlation describes how prices moved together in the past; it is not causation and it does not hold still. Curated by Skill Harbor: a correlation workbench with four routes. Co-movement discovery builds a peer universe for a single ticker at runtime with the Yahoo Finance screener (same industry first, then sector and adjacent themes, no hardcoded lists) and ranks the top correlated names with the reasons they might be linked. Pair analysis goes deep on two tickers: Pearson correlation, beta, R-squared, 60-day rolling correlation, and the log-price spread with its z-score for pairs and hedging work. Sector clustering computes the full matrix for a group and orders it with hierarchical clustering so blocks of tightly linked names become visible, outliers included. Realized correlation tracks how the relationship changes: rolling windows of 20, 60, and 120 days, plus regime splits for up days, down days, high volatility, and large drawdowns. Defaults are one year of daily log returns and a 0.60 correlation threshold. Data comes from Yahoo Finance through the free yfinance library, with pandas, numpy, and optionally scipy. From the himself65/finance-skills repository (MIT). Honest caveats: you need Python 3 with pip (the skill installs the libraries itself if missing); correlations famously spike toward 1 during sell-offs, so diversification measured in calm times can fail exactly when it is needed most, and the regime view exists precisely to show that; short lookback windows produce noisy numbers, and a spread z-score is a statistic, not a promise that two prices will converge. Skill Harbor never reviews the code, review it yourself before use.
Version:
Quick answer
Stock Correlation is a free Muse correlation workbench with routes for finding what moves with a stock. Co-movement discovery builds a peer universe for a ticker at runtime with the Yahoo screener, while pair correlation adds beta and spread, full matrices add clustering, and rolling views track co-movement. It is informational only, not investment advice, since correlation is not causation.
Install
Copy the install package below, then paste it into Muse🧪 Install ran in our test sandbox · Nov 11, 2026📌 Pinned version: commit 73d554dStep 0, before installing anything: read this install prompt, summarize in a few lines what this build does and what installing it involves, then ask me to confirm before you proceed. Prerequisites: Python 3.8 or newer with pip, and an agent that can run Python code and shell commands. No API key, no paid data subscription and no account: the data comes from Yahoo Finance through the free yfinance library, with no authentication. Nothing is sent anywhere during installation itself. This is informational only, not investment advice. Install "Stock Correlation" for me. It analyzes how stocks move together from Yahoo Finance price history pulled with yfinance: for a single ticker it discovers correlated peers, for two or more specific tickers it measures correlation, beta and spread, for a group it builds a correlation matrix and clusters it, and it tracks rolling and regime-dependent correlation over time, by @himself65, MIT-licensed. Repository: https://raw.githubusercontent.com/himself65/finance-skills/73d554d60c0a3f121a30f505680f7a06b2b1fd11/plugins/market-analysis/skills/stock-correlation/SKILL.md (the skill is the plugins/market-analysis/skills/stock-correlation/ folder at that commit: SKILL.md, README.md and references/sector_universes.md, which the skill reads when it builds a peer universe) Pinned version: install the code at commit 73d554d60c0a3f121a30f505680f7a06b2b1fd11 exactly (Skill Harbor tested this version). Do not substitute a newer version. If this commit is unreachable, stop and tell me. Updated October 20, 2026: Skill Harbor regenerated this install prompt from the current upstream file. One header was added at the top of SKILL.md, and it changes when code runs, so it is stated here before it happens: the skill now explicitly asks its host, if the host has not already done so (for example in Codex), to run the commands inside its `!` shell probes with its shell tool before choosing a setup path, to use the actual output, and to report the limitation if shell access is unavailable. The probes themselves are unchanged and were already in the previous version: the one probe in the file, at the start of its setup step, is a local Python check that only tries to import yfinance, pandas and numpy and prints their versions, or prints DEPS_MISSING; it contacts no network and reads or sends no personal information or keys. What is new is only the explicit instruction to run that probe before choosing the setup, instead of meeting it inside the setup step with no timing stated. The previous prompt also described a skill as plain-text instructions that runs nothing by itself and did not disclose this probe timing; that framing is corrected here: in use, this skill does run shell and Python — first the probe above, then, only if the probe reports DEPS_MISSING, a pip install of yfinance, pandas and numpy, and then the yfinance data-fetch scripts for the tickers you name (see the safety check below). Nothing about the correlation analysis itself changed: same data sources, same four routes, same caveats. 1. Fetch the whole plugins/market-analysis/skills/stock-correlation/ folder at the pinned commit, SKILL.md, README.md and references/sector_universes.md, into a temporary folder, then compare SKILL.md with the fingerprint from Skill Harbor's review of 2026-10-20: - SKILL.md: SHA-256 1fc3ebf4751111dd95cb634df4f70f2c4b4ed217cd9d82fa8e8b8fa17a515f2c If it does not match, it changed since the review: do not install it yet, tell me what you found and let me decide. 2. Safety check: read SKILL.md and references/sector_universes.md and review them for anything suspicious (unexpected network calls, shell commands, credential harvesting); STOP on any red flag and tell me. Tell me in plain words what the skill does when used, which services it connects to, whether it reads or sends any personal information or keys, and anything that seems unusual. Confirm these points from the files: - This skill is guidance plus Python it asks the agent to run in use, not just text to paste: SKILL.md, README.md and references/sector_universes.md. Nothing is sent anywhere during installation itself; installing is only copying the folder. - The shell probe runs first in use, before the setup choice: if the host has not already executed it, the agent runs the command inside the `!` wrapper with its shell tool — a local Python check that tries to import yfinance, pandas and numpy and prints their versions, or DEPS_MISSING. It contacts no network, and reads or sends no personal information or keys. If shell access is unavailable, the skill says to report that limitation instead of guessing the setup. - Only if that probe reports DEPS_MISSING does the setup install the packages: the file shows a Python snippet that runs pip to install yfinance, pandas and numpy quietly (pip install -q yfinance pandas numpy). That install is the one package download in the setup, and it happens in use, after the probe, not during the installation covered by this prompt. If the dependencies are already present, the setup step is skipped. SciPy is not installed by that snippet: it is optional, used only for hierarchical clustering in the sector-clustering route, and the file says to fall back to sorting by average correlation if it is unavailable. - To run an analysis, the agent runs Python scripts using yfinance for the tickers you name: it downloads their historical prices, and, for the peer-discovery route, it also queries the Yahoo Finance screener and reads a target company's sector, industry and business summary to build a peer universe of 15 to 30 candidates at runtime, with no hardcoded ticker lists. The ticker symbols you provide, and the peer tickers the screener returns, are what is queried against Yahoo Finance and public market data comes back; no API key, account or credential is used, and no personal information beyond the tickers asked about is read or sent. - What the analysis covers, and its limits: four routes chosen from your request, with defaults of a one-year lookback, daily prices, Pearson correlation, daily log returns, a 0.60 minimum correlation threshold, top 10 results and a 60-day rolling window. The discovery route ranks peers by absolute correlation and notes notable negative correlations as potential hedges. The pair route reports Pearson correlation, beta, R-squared, the mean, standard deviation and range of the 60-day rolling correlation, and the current z-score of the log-price spread. The clustering route computes the full correlation matrix, orders it with hierarchical clustering when SciPy is available, and shows clusters, outliers, and the strongest and weakest pairs. The realized route, which uses a two-year lookback in its example code, reports rolling correlations for 20, 60 and 120 days and splits correlation by regime: up days, down days, high and low volatility, and large drawdowns below -2%. Every answer should state the lookback period and data interval used, the number of observations, and any tickers dropped for insufficient data. Correlation is not causation, past correlation does not guarantee future correlation, short lookback windows produce noisy estimates, correlations can rise during sell-offs, and the skill is research and education only, not financial advice, and does not recommend specific trades; yfinance is not affiliated with Yahoo, Inc. 3. When I say yes, install it as a skill: copy the whole fetched stock-correlation folder's contents (SKILL.md, README.md and references/sector_universes.md, keeping the references/ subfolder as it is) into the agent's skills directory, in a folder named "stock-correlation". 4. Verify with no network calls: frontmatter valid, files in place. 5. Report what was installed, where, and what I still need to do myself (e.g. have Python 3.8 or newer with pip available where the skill will run; expect, the first time you use it, the shell probe described above to run before the setup choice, and a pip install of yfinance, pandas and numpy only if the probe finds them missing; no API key or account to create). GitHub is optional: if I have a GitHub account or the gh CLI, you may use it; otherwise public access is fine. Never require it unless it's in the prerequisites above. Rules: don't touch anything outside the temp folder and the install target. If anything looks off, stop and ask me.
Saved to your recent installs. Find it anytime on /connect.
🔒 Security, provenance and what this touches
- It can run commands on your Muse’s computer.
What the scan found — excerpts from the install prompt
- runs commands — Prerequisites: Python 3 with pip and an agent that can run Python code. The skill installs yfinance, pandas, a · Prérequis : Python 3 avec pip et un agent capable d'exécuter du code Python. Le skill installe lui-même yfinan
The install prompt below already includes the vetting steps: your agent follows the community checklist before installing anything with executable code. Want more?
Verification certificate
Dated facts about what was checked for this listing, and how. This is not a safety certification.
- Pinned version
- 73d554d · 2026-10-20
- Sandbox install test
- Install ran in our test sandbox · Nov 11, 2026 · Observed during the install test: registry.npmjs.org
- Creator identity
- Not verified
- Fingerprint watch
- Last checked · Nov 22, 2026 : no change detected in the files linked by this install prompt
- Install prompt analysis
- 2026-10-13 : runs commands
Skill Harbor never reviews the code of a listed skill. These are dated facts about the install prompt and our install test, not a safety certification. Review a skill yourself before you install it. How we verify
Questions
How do I install a skill?
Every product page includes a copy-paste install prompt. Paste it into your Muse and it sets the skill up for you — no manual configuration.
Where does my money go?
Straight to the seller. Skill Harbor never processes payments: checkout happens on the seller’s own page, usually Stripe.
What does the ✓ next to a creator’s name mean?
It means we confirmed the identity of the person behind the listing. It says nothing about the code itself — always check a skill before installing it.