Install the "correlation-analysis" agent skill from https://github.com/agiprolabs/claude-trading-skills/tree/main/skills/correlation-analysis into .claude/skills/correlation-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "correlation-analysis", then confirm the skill loads.
Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
Type this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
skills CLI
$ npx skills add agiprolabs/claude-trading-skills --skill correlation-analysis -a codex
Project install goes to .agents/skills/; add -g for ~/.codex/skills/.
Install the "correlation-analysis" agent skill from https://github.com/agiprolabs/claude-trading-skills/tree/main/skills/correlation-analysis into .agents/skills/correlation-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "correlation-analysis", then confirm the skill loads.
Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
skills CLI
$ npx skills add agiprolabs/claude-trading-skills --skill correlation-analysis -a cursor
Project install goes to .agents/skills/; add -g for ~/.cursor/skills/.
Install the "correlation-analysis" agent skill from https://github.com/agiprolabs/claude-trading-skills/tree/main/skills/correlation-analysis into .cursor/skills/correlation-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "correlation-analysis", then confirm the skill loads.
Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
skills CLI
$ npx skills add agiprolabs/claude-trading-skills --skill correlation-analysis -a gemini-cli
Project install goes to .agents/skills/; add -g for ~/.gemini/skills/.
Install the "correlation-analysis" agent skill from https://github.com/agiprolabs/claude-trading-skills/tree/main/skills/correlation-analysis into .gemini/skills/correlation-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "correlation-analysis", then confirm the skill loads.
Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
Installs for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
skills CLI
$ npx skills add agiprolabs/claude-trading-skills --skill correlation-analysis -a github-copilot
Project install goes to .agents/skills/; add -g for ~/.copilot/skills/.
Install the "correlation-analysis" agent skill from https://github.com/agiprolabs/claude-trading-skills/tree/main/skills/correlation-analysis into .github/skills/correlation-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "correlation-analysis", then confirm the skill loads.
GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
skills CLI
$ npx skills add agiprolabs/claude-trading-skills --skill correlation-analysis -a opencode
OpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
Install the "correlation-analysis" agent skill from https://github.com/agiprolabs/claude-trading-skills/tree/main/skills/correlation-analysis into .opencode/skills/correlation-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "correlation-analysis", then confirm the skill loads.
OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
Facts
Skill name
correlation-analysis
GitHub stars
410
Token cost
~2.4k tokens
SKILL.md length
651 words
Files
5 (incl. scripts, references)
Skills in repo
68
Repo updated
First seen
Licence
MIT
At a glance
Cross-asset correlation analysis including rolling correlation, hierarchical clustering, tail dependence, and regime-dependent correlation
SKILL.md covers Why Correlation Matters, Correlation Methods, Rolling Correlation and Correlation Matrix Analysis, plus 6 more sections
Runs Python scripts from its folder
What it does
Correlation Analysis is an agent skill from agiprolabs/claude-trading-skills. Cross-asset correlation analysis including rolling correlation, hierarchical clustering, tail dependence, and regime-dependent correlation
Its SKILL.md is about 2.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including scripts and reference files (for example `references/methodology.md`, `references/portfolio_applications.md` and `scripts/correlation_matrix.py`).
The repository describes itself as: 68 trading, DeFi, and quantitative finance Agent Skills. Works with Claude Code, Cursor, Codex, Gemini CLI, and 30+ other tools. The licence is MIT.
Example prompts
“/correlation-analysis”
Requirements
Python 3
What it can do on your machine
Read from SKILL.md and the folder at commit 981e1d7. It shows what the files ask for, not the result of running them.
Tool permissions
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Runs code
Ships 2 files in scripts/ (Python), which the agent can run.
From the folder's file list and the shell code blocks in SKILL.md.
Network
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Credentials
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Context cost
Correlation Analysis loads about 2.4k tokens when it runs, and up to ~6k if it reads all its reference files. Until then it costs about 40 tokens; SKILL.md has 651 words of instructions outside code blocks.
Always· name and description, kept in context so the agent knows when to use it
~40
When it runs· the whole SKILL.md, loaded when a task matches
~2.4k
With references· SKILL.md plus every file in references/, read only if the agent opens them
~6k
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
Safety
Auto-check passed
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
Download SKILL.mdSave it as .claude/skills/correlation-analysis/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
correlation-analysis
description
Cross-asset correlation analysis including rolling correlation, hierarchical clustering, tail dependence, and regime-dependent correlation
Correlation Analysis
Cross-asset correlation analysis for diversification assessment, risk management, pairs trading signal generation, and portfolio construction.
Why Correlation Matters
Correlation measures how assets move together. In crypto markets this is critical for:
Diversification: holding correlated assets provides no diversification benefit — you are effectively holding one concentrated position
Risk management: portfolio risk depends on the correlation structure, not just individual asset volatility
Portfolio construction: optimal allocation requires accurate correlation estimates
Crash protection: understanding tail dependence reveals whether assets crash together
Correlation Methods
Pearson Correlation
Linear correlation assuming normality. Most common but least robust for crypto.
python
import pandas as pd
import numpy as np
# Always compute on returns, never on prices
returns_a = prices_a.pct_change().dropna()
returns_b = prices_b.pct_change().dropna()
pearson_corr = returns_a.corr(returns_b) # default is Pearson
Range: -1 (perfect inverse) to +1 (perfect co-movement)
Assumes: linear relationship, normally distributed returns, no outliers
Limitation: crypto returns are heavy-tailed — Pearson underestimates extreme co-movement
Spearman Rank Correlation
Converts values to ranks, then computes Pearson on ranks. Captures monotonic (not just linear) relationships.
Static correlation hides regime changes. Rolling correlation reveals how relationships evolve.
Window-Based Rolling Correlation
python
# Rolling Pearson correlation
rolling_corr = returns_a.rolling(window=60).corr(returns_b)
# Multiple windows for different time horizons
windows = {
'short': 20, # ~1 month of trading days
'medium': 60, # ~3 months
'long': 120, # ~6 months
}
for label, w in windows.items():
df[f'corr_{label}'] = returns_a.rolling(w).corr(returns_b)
EWMA Correlation
Exponentially weighted — more responsive to recent changes.
In crypto markets, tail dependence typically exceeds normal correlation:
Normal correlation of 0.6 between two altcoins might have tail dependence of 0.8
During market panics, correlations spike toward 1.0 across all risk assets
This means diversification benefits disappear exactly when needed most
Show full SKILL.md (247 more words)Show less
Regime-Dependent Correlation
Correlation is not constant — it changes with market regime.
Regime
Typical Correlation
Implication
Bull (trending up)
0.4–0.7
Moderate — some diversification works
Range-bound
0.2–0.5
Lower — best diversification environment
Bear (crash)
0.8–0.95
Very high — diversification fails
Recovery
0.5–0.7
Declining from crash highs
Detecting Correlation Regime Shifts
python
def correlation_zscore(rolling_corr: pd.Series, lookback: int = 252) -> pd.Series:
"""Z-score of rolling correlation vs its own history."""
mean = rolling_corr.rolling(lookback).mean()
std = rolling_corr.rolling(lookback).std()
return (rolling_corr - mean) / std
# Flag regime shift when z-score exceeds threshold
zscore = correlation_zscore(rolling_corr_60d)
regime_shift = zscore.abs() > 2.0
Crypto-Specific Correlation Patterns
Typical Correlation Ranges
Pair
Normal Range
Notes
BTC / ETH
0.7–0.9
Highest among majors
BTC / SOL
0.6–0.85
SOL more volatile, slightly less correlated
BTC / Altcoin
0.5–0.8
Varies by market cap and sector
Meme / BTC
0.2–0.5
Lower normal correlation
Meme / Meme
0.1–0.4
Low normal but high tail dependence
Stablecoin / BTC
-0.1–0.1
Should be near zero
Key Observations
Most altcoins are highly correlated with BTC (0.6–0.9) — the market factor dominates
Meme and PumpFun tokens show lower normal correlation but higher tail dependence
SOL ecosystem tokens correlate strongly with SOL price
Stablecoins should be uncorrelated with risk assets — if correlation appears, investigate (depeg risk)
Correlation tends to increase during high-volatility regimes
New token launches may show temporarily low correlation until price discovery stabilizes
Integration with Other Skills
risk-management: use correlation to compute portfolio-level VaR and stress scenarios
Correlation Analysis next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
Correlation Analysis compared with similar skills
Skill
Stars
Used in
Tokens
Auto-check
Licence
Repo updated
Correlation Analysis this skillagiprolabs/claude-trading-skills
A skill your agent uses when building a sample-level hierarchical clustering dendrogram from a bulk expression matrix and sample annotation table, especially for QC, batch inspection, or sample…
Build unified multi-level category taxonomy from hierarchical product category paths from any e-commerce companies using embedding-based recursive clustering with intelligent category naming via…
Finds co-moving assets and tests them for cointegration, with workflows for correlation studies, sector clustering, hedge ratios and pair-trading signals.
Use Agent-Native Assets for image and video generation requests, brand-safe asset search/export, and human-in-the-loop asset selection through the hosted Assets MCP app.
Multi-method cost basis computation including specific identification, FIFO, LIFO, HIFO, and proportional average cost with partial sell handling
410 GitHub stars~3.1k tokensUpdated 1 mo ago
Auto-check passed
Questions about Correlation Analysis
What does Correlation Analysis do?
Cross-asset correlation analysis including rolling correlation, hierarchical clustering, tail dependence, and regime-dependent correlation. Correlation Analysis is an agent skill from agiprolabs/claude-trading-skills.
How do I install Correlation Analysis in Claude Code?
Run `npx skills add agiprolabs/claude-trading-skills --skill correlation-analysis -a claude-code`. Or copy the skill folder (skills/correlation-analysis in agiprolabs/claude-trading-skills) into .claude/skills/correlation-analysis in your project. Claude Code loads it when a task matches its description.
How do I install Correlation Analysis in Codex?
Run `npx skills add agiprolabs/claude-trading-skills --skill correlation-analysis -a codex`. Or copy the skill folder (skills/correlation-analysis in agiprolabs/claude-trading-skills) into .agents/skills/correlation-analysis in your project. Codex loads it when a task matches its description.
Can I use Correlation Analysis in Cursor, Gemini CLI or GitHub Copilot?
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add agiprolabs/claude-trading-skills --skill correlation-analysis -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/correlation-analysis, .gemini/skills/correlation-analysis, .github/skills/correlation-analysis and .opencode/skills/correlation-analysis in your project.
What does Correlation Analysis need to run?
Going by SKILL.md and its folder, Correlation Analysis needs Python for the scripts in its folder. Our summary lists: Python 3.
Does Correlation Analysis access the network?
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Is Correlation Analysis safe to install?
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
What licence does Correlation Analysis use?
Correlation Analysis is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
How many tokens does Correlation Analysis use?
About 2.4k tokens (SKILL.md is roughly 9.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3.6k tokens, read only when the agent opens those files.
What are the alternatives to Correlation Analysis?
Skills that share tags, products or a category with Correlation Analysis: Hierarchical Clustering Plot (aipoch/medical-research-skills, 2k stars), Hierarchical Taxonomy Clustering (benchflow-ai/skillsbench, 1.8k stars), Correlation and Cointegration Analysis (HKUDS/Vibe-Trading, 35k stars) and Assets (BuilderIO/agent-native, 7.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
Who maintains Correlation Analysis?
agiprolabs (a GitHub user) maintains it in agiprolabs/claude-trading-skills, which has 410 GitHub stars. The repository holds 68 skills in this directory. The repository was last updated on September 3, 2026.