Skip to content
Back to skills

Regime Audit

ASecurity

Workflow composite that runs change-point-detector + hurst-exponent on SPY plus the 11 SPDR sector ETFs. Reports per-name the last detected regime shift, current persistence classification (mean_reverting / random_walk / trending), and cross-sector summary (broad_regime_shift / localized_regime_shift / trend_dominated / mean_reversion_dominated / mixed_stable). Requires Stocks Basic. Runs on the free tier.

  • 7 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 6, 2026
developmentapi

Works with

  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 6, 2026

npx -y skills add rgourley/quant-garage --skill regime-audit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Regime Audit?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Regime Audit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rgourley-regime-audit/badge)](https://www.skillsdirectory.com/skills/rgourley-regime-audit)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: regime-audit
description: Workflow composite that runs change-point-detector + hurst-exponent on SPY plus the 11 SPDR sector ETFs. Reports per-name the last detected regime shift, current persistence classification (mean_reverting / random_walk / trending), and cross-sector summary (broad_regime_shift / localized_regime_shift / trend_dominated / mean_reversion_dominated / mixed_stable). Requires Stocks Basic. Runs on the free tier.
---

# regime-audit

Runs `change-point-detector` and `hurst-exponent` on SPY + 11 SPDR
sector ETFs. Reports a matrix view: for each name, when the last
regime shift happened, current annualized return + vol per segment,
and the Hurst persistence classification.

Answers "where has the market regime shifted, and which sectors are
in what regime right now?"

## When to invoke

- Weekly market context review
- Sector rotation prep
- "Is this a trending or mean-reverting environment?"
- The user says "regime audit", "sector regimes", "regime shift map"

## What you need

- `MASSIVE_API_KEY` exported
- Stocks Basic minimum

Optional:

- `--tickers` (default: SPY + 11 SPDR sector ETFs)
- `--lookback-days` (default 504)
- `--lambda-run` (default 250) — change-point prior mean run length

## What you get back

**Layer 1: JSON** with per-ticker `hurst`, `hurst_classification`,
`n_change_points`, `last_change_point_date`,
`last_change_point_confidence`, `current_segment` (annualized return
+ vol), `n_segments`. Top-level `by_regime` counts,
`n_shifted_recently`, `summary_verdict`.

**Layer 2: rendered note**. Header verdict + summary counts, per-name
table, one-line Take.

## Foundations used

- Composes `change-point-detector` and `hurst-exponent`
- Uses `massive-api-patterns` transitively.

Files in this skill

  • README.md448 B
  • SKILL.md1.7 KB
  • output-schema.json1010 B
  • references/rendering.md430 B
  • requires.yml1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.