Covariance
This skill should be used when the user asks to "estimate a covariance matrix", "run Ledoit-Wolf shrinkage", "build an EWMA covariance", or validate PSD risk inputs for portfolio construction.
Install
/plugin marketplace add nutdnuy/self-driving-portfolio-skillThe repo is a Claude Code plugin marketplace. Run /plugin afterwards to pick the plugin that includes this skill.
npx skills add nutdnuy/self-driving-portfolio-skill --skill covariancegit clone --depth 1 https://github.com/nutdnuy/self-driving-portfolio-skill.git /tmp/self-driving-portfolio-skill
mkdir -p ~/.claude/skills
cp -r /tmp/self-driving-portfolio-skill/skills/covariance ~/.claude/skills/covariancePersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# covariance
Covariance estimation for the SAA pipeline.
## Methods
| `method` | Description |
| --------------- | --- |
| `sample` | Plain MLE; use only when T ≫ N. |
| `ewma` | Exponentially-weighted, λ=0.94 (RiskMetrics-style). |
| `ledoit_wolf` | Linear shrinkage toward a constant-correlation target. **Default.** |
All matrices are returned **annualised** (×252 for daily inputs).
Require at least 60 complete aligned return rows. Symmetrise each estimate and
clip non-positive eigenvalues to a scale-aware floor. Record the original
minimum eigenvalue, repair flag, condition number, aligned sample size, and
missing-data fraction. Treat repair as numerical stabilization, not economic
validation.
## CLI
```bash
python skills/covariance/scripts/build_cov.py \
--tickers SPY,EFA,EEM,IEF,LQD,TIP,GLD,VNQ,BIL \
--method ledoit_wolf \
--as-of 2026-05-08 \
--out outputs/demo01/covariance.json
```
Run through `pipeline/orchestrator.py` for schema gating and governed output.Details
- Skill name
covariance- Repository
- nutdnuy/self-driving-portfolio-skill
- Path
skills/covariance/SKILL.md- License
- MIT
- Repo updated
- 29 August 2026
FAQ
What does the Covariance skill do?
This skill should be used when the user asks to "estimate a covariance matrix", "run Ledoit-Wolf shrinkage", "build an EWMA covariance", or validate PSD risk inputs for portfolio construction.
How do I install the Covariance skill?
Claude Code plugin: /plugin marketplace add nutdnuy/self-driving-portfolio-skill. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Covariance popular?
It lives in nutdnuy/self-driving-portfolio-skill, which has 5 GitHub stars and 0 forks.
Related skills
Asset Class Cma
5nutdnuy/self-driving-portfolio-skill
This skill should be used when the user asks to "build capital market assumptions", "estimate asset-class returns", or create regime-conditioned return, volatility, and confidence inputs for portfolio construction.
Cio Ensemble
5nutdnuy/self-driving-portfolio-skill
This skill should be used when the user asks to "combine portfolio proposals", "build a CIO ensemble", "select an SAA recommendation", or "write a portfolio board memo" from reviewed candidates.
Macro Regime
5nutdnuy/self-driving-portfolio-skill
This skill should be used when the user asks to "classify the macro regime", "score expansion versus recession", or create a dated regime signal for capital market assumptions and SAA research.
Peer Review
5nutdnuy/self-driving-portfolio-skill
This skill should be used when the user asks to "review portfolio proposals", "rank strategies with Borda voting", "filter IPS violations", or test a candidate portfolio against an adversarial diversifier.
Portfolio Construction
5nutdnuy/self-driving-portfolio-skill
This skill should be used when the user asks to "compare portfolio construction methods", "run risk parity", "build a minimum-variance portfolio", or generate IPS-constrained SAA candidates.
Self Driving Portfolio
5nutdnuy/self-driving-portfolio-skill
This skill should be used when the user asks to "build a strategic asset allocation", "run a self-driving portfolio", "compare portfolio methods", "audit an SAA run", or "produce an IPS-governed policy portfolio".
Browse the most popular Claude skills, all finance & crypto skills, or write your own with the skills generator.