Skip to content
Data
Skill

/vs-benchmark-audit

Take a book (weights per ticker), compute the daily portfolio return series, and run the full tearsheet with deflated Sharpe correction (Bailey & Lopez de Prado) plus rolling IC vs benchmark. Emits a verdict (real_alpha / possibly_alpha / essentially_beta / underperforming /

From plugin
quant-garage
761 skills

Claude Code

$ npx -y skills add rgourley/quant-garage --skill vs-benchmark-audit --agent claude-code

SKILL.md

vs-benchmark-audit.SKILL.md
name: vs-benchmark-audit
description: Take a book (weights per ticker), compute the daily portfolio return series, and run the full tearsheet with deflated Sharpe correction (Bailey & Lopez de Prado) plus rolling IC vs benchmark. Emits a verdict (real_alpha / possibly_alpha / essentially_beta / underperforming / no_edge_evident) based on DSR significance, alpha annualized, and beta. Answers "is this book actually alpha, honestly?" Requires Stocks Basic.

vs-benchmark-audit

You hand over a book (weights per ticker) and a benchmark (default SPY). The skill pulls daily bars, computes the portfolio return series, and runs the full performance tearsheet with the deflated Sharpe correction, plus a rolling 63-day IC vs the benchmark.

Answers **"is this book actually alpha, honestly?"** — with a verdict that separates real alpha from beta from noise.

When to invoke

  • Post-quarter review: did my strategy add anything above beta?
  • Investment committee prep on a candidate manager or strategy
  • Auditing a historical backtest with proper DSR correction
  • The user says "vs benchmark", "alpha vs beta", "is this real"

What you need

  • Positions (`--positions T=w,T=w,...`)
  • `MASSIVE_API_KEY` exported
  • Stocks Basic minimum

Optional:

  • `--benchmark` (default SPY)
  • `--lookback-days` (default 504, 2 years)
  • `--ic-window` (default 63, one quarter)
  • `--n-trials-dsr` (default 1): multiple-testing correction for

Deflated Sharpe. Pass N if this book was picked from N candidates during search.

What you get back

**Layer 1: JSON**. Full tearsheet (CAGR, Sharpe, DSR, Sortino, Calmar, max DD, ulcer, tail ratio, profit factor, hit rate, beta, alpha, tracking error) plus rolling IC mean and std vs benchmark. Top-level `verdict`.

**Layer 2: rendered note**. Header verdict + return stats block + vs-benchmark block + Take.

How it works

1. Pull daily bars for each position and the benchmark. 2. Align to common dates. 3. Compute daily portfolio returns (weighted sum of position returns, renormalized to abs-weights = 1). 4. Run `quant_garage.performance.tearsheet` with `benchmark` kwarg populated so beta / alpha / tracking error come through. 5. Compute rolling `ic_window`-day Pearson IC of portfolio vs benchmark returns for a time-varying correlation lens. 6. Emit verdict:

  • `real_alpha`: DSR significant at 5% AND alpha > 2% annualized
  • `possibly_alpha`: alpha > 0 AND Sharpe > 0.5 but DSR not sig
  • `essentially_beta`: beta > 0.8 AND |alpha| < 2%
  • `underperforming`: annualized return < 0
  • `no_edge_evident`: everything else

Foundations used

  • `quant_garage.performance.tearsheet`
  • `quant_garage.backtest.rolling_ic_series`
  • `massive-api-patterns`
Read more
@rgourley
Ships withquant-garage

Trade like a pro. Without the terminal. View the full landing page → Quant and equity research tools that run inside Claude, or behind your own UI.

Stars on GitHub

Momentum

stars in total
7
Star history of rgourley/quant-garage on GitHub, a chart by star-history.com

Other skills on quant-garage.

8-k-scanner

8-k-scanner

Scan SEC 8-K disclosures across a single ticker or a watchlist using Massive's pre-parsed disclosure taxonomy. Groups the…

analyst-tracker

analyst-tracker

Track sell-side analyst positioning on a name via Benzinga Analyst Ratings. Pulls every rating event over the lookback window,…

backtest-data-prep

backtest-data-prep

Build a clean, point-in-time, ready-to-backtest OHLCV dataset for a US equity universe across an arbitrary date window. Emits…

commodity-cycle

commodity-cycle

Single-commodity macro read. Answers "is this commodity in a winning or losing macro setup right now" and names the macro driver…

More skills from other plugins.

context-loader
Auto-invoked

context-loader

Search memories from earlier Pi sessions in this repository. Use it when earlier work may already explain the code, error,…

mem05d69k
@mem0ai@mem0aiInstall Skill
analyzing-ai-citations

analyzing-ai-citations

Answer AI citation and answer engine optimization (AEO) questions in PostHog: whether AI answer engines (ChatGPT, Claude, and an…

posthog12d41k
@posthog@posthogInstall Skill

Questions about vs-benchmark-audit.

Which coding agents can use vs-benchmark-audit?
vs-benchmark-audit installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.