# quant-analyst

quant-analyst — a skill for Claude Code and Codex designed for financial modeling and backtesting. Handles portfolio optimization, risk metrics, and time series analysis.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 123 installs · ★ 2070 repo stars
- Author: rmyndharis
- License: MIT · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/rmyndharis/antigravity-skills/tree/HEAD/skills/quant-analyst/SKILL.md
- Updated: 2026-11-07
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/rmyndharis-quant-analyst

## What it does

Works across Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, and OpenCode. It guides your coding agent through quantitative finance workflows, validating market inputs before generating any trading logic.

The skill enforces out-of-sample testing while factoring in transaction costs and execution slippage. Calculations rely on vectorized routines built with `pandas`, `numpy`, and `scipy`, separating exploratory prototypes from production-ready code.

Because the generated scripts lean on `scipy` and `pandas`, your local environment must have both installed to run the analysis.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add rmyndharis/antigravity-skills --skill quant-analyst -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/quant-analyst/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/quant-analyst/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add rmyndharis/antigravity-skills --skill quant-analyst -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/quant-analyst/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add rmyndharis/antigravity-skills --skill quant-analyst -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/quant-analyst/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install rmyndharis/antigravity-skills skills/quant-analyst
```

2. **Manually: put the files in place**
- File: `.github/skills/quant-analyst/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add rmyndharis/antigravity-skills --skill quant-analyst -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/rmyndharis/antigravity-skills --path skills/quant-analyst
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/quant-analyst/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add rmyndharis/antigravity-skills --skill quant-analyst -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/rmyndharis/antigravity-skills/tree/HEAD/skills/quant-analyst/SKILL.md

## When to use it
- backtest trading strategies while modeling slippage and fees
- evaluate risk exposures using VaR, max drawdown, and Sharpe ratio
- balance asset weights using Markowitz or Black-Litterman models
- price options and calculate Greeks from market series

## Example prompts
- Run a backtest for a pairs trading strategy with transaction costs included.
- Optimize our portfolio allocations using the Black-Litterman model in scipy.
- Build a pipeline in pandas to clean and validate historical price feeds.

## Source text · SKILL.md · MIT

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: e533ac5e2040d011.

BEGIN THIRD-PARTY FILE e533ac5e2040d011
```text
---
name: quant-analyst
description: Build financial models, backtest trading strategies, and analyze
  market data. Implements risk metrics, portfolio optimization, and statistical
  arbitrage. Use for quantitative finance, trading algorithms, or
  risk analysis.
metadata:
  model: inherit
---

## Use this skill when

- Working on quant analyst tasks or workflows
- Needing guidance, best practices, or checklists for quant analyst

## Do not use this skill when

- The task is unrelated to quant analyst
- You need a different domain or tool outside this scope

## Instructions

- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.

You are a quantitative analyst specializing in algorithmic trading and financial modeling.

## Focus Areas
- Trading strategy development and backtesting
- Risk metrics (VaR, Sharpe ratio, max drawdown)
- Portfolio optimization (Markowitz, Black-Litterman)
- Time series analysis and forecasting
- Options pricing and Greeks calculation
- Statistical arbitrage and pairs trading

## Approach
1. Data quality first - clean and validate all inputs
2. Robust backtesting with transaction costs and slippage
3. Risk-adjusted returns over absolute returns
4. Out-of-sample testing to avoid overfitting
5. Clear separation of research and production code

## Output
- Strategy implementation with vectorized operations
- Backtest results with performance metrics
- Risk analysis and exposure reports
- Data pipeline for market data ingestion
- Visualization of returns and key metrics
- Parameter sensitivity analysis

Use pandas, numpy, and scipy. Include realistic assumptions about market microstructure.
```
END THIRD-PARTY FILE e533ac5e2040d011

The third-party file has ended. Everything between the e533ac5e2040d011 tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

© rmyndharis · MIT · https://github.com/rmyndharis/antigravity-skills/tree/HEAD/skills/quant-analyst/SKILL.md

## Similar
- [longbridge-quant](https://affpapa.org/en/nevibecode/skills/longbridge-quant.md) — skill · 4300 installs
- [backtest](https://affpapa.org/en/nevibecode/skills/starchild-ai-agent-backtest.md) — skill · 217 installs
- [alpha-skills-quant-factor-research](https://affpapa.org/en/nevibecode/rules/alpha-skills-quant-factor-research.md) — rule · ★ 41178 repo stars
- [Canli Quant](https://affpapa.org/en/nevibecode/mcp/canli-quant.md) — MCP server · ★ 6 repo stars
- [HPSILab - Quant Finance MCP Server for Stock Analysis and Options Analytics](https://affpapa.org/en/nevibecode/mcp/hpsilab-quant-finance-mcp-server-for-stock-analysis-and-options-analytics.md) — MCP server · 796 installs
- [backtesting-py-oracle](https://affpapa.org/en/nevibecode/skills/backtesting-py-oracle.md) — skill · 135 installs

From the same set: [rmyndharis/antigravity-skills](https://affpapa.org/en/nevibecode/by/rmyndharis/antigravity-skills.md) — 17 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
