Search

PythonReactSEOPDF
OpenClaw

tearsheet-generator

Generate professional tearsheets with custom SVG visualizations using the QuantStats library. Creates performance reports with MAE analysis, leverage recommendations, and trade lists. Use when analyzing strategy performance or generating visual reports.

ahuserious0 source installs☆ 0 Repository starsv1.1.0

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install ahuserious/tearsheet-generator

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

Tearsheet Generator Skill

About

This skill generates custom tearsheets using the QuantStats library - a Python library for portfolio analytics.

Key Features:

  • Custom SVG visualizations (returns, drawdowns, monthly heatmaps)
  • Professional HTML tearsheets
  • MAE (Maximum Adverse Excursion) analysis
  • Leverage recommendations based on risk metrics
  • Copyable strategy configurations

Generate comprehensive trading strategy tearsheets with:

  • IBM Plex Mono font styling (QuantStats format)
  • MAE (Max Adverse Excursion) percentile analysis (p90-p99)
  • Optimal leverage recommendations with stop-loss levels
  • Fixed Position (Static) vs Full Position (Dynamic) analysis
  • 10%, 20%, 30% liquidation buffer calculations
  • Full trade list with entry/exit details and MAE stats
  • Copyable strategy config text boxes
  • Multiple leverage scenario comparisons (1x, 10x, 15x, 20x)

Quick Start

# Generate tearsheet from trades CSV
/generate-tearsheet SOL_MTF_EMA_001 --trades ./trades.csv --capital 10000

# Verify backtest with Nautilus Trader
/verify-backtest SOL_MTF_EMA_001 --trades ./trades.csv

# Test optimal leverage configuration
/verify-mae-lev SOL_MTF_EMA_001 --leverage p95

Commands

/generate-tearsheet

Generate a complete tearsheet with all analysis sections.

/verify-backtest

Verify tearsheet results against Nautilus Trader for accuracy validation.

/verify-mae-lev

Run backtest with optimal leverage config derived from MAE analysis.

Output Files

Each tearsheet generation produces:

  • {strategy}_comparison.html - Full HTML tearsheet
  • {strategy}_comparison_metrics.json - JSON metrics for programmatic access

Key Sections

1. Key Performance Metrics
  • B&H, Fix1x, Dyn1x, Fix10x, Dyn10x columns
  • Cumulative Return, CAGR, Sharpe, Sortino, Max DD, Calmar
  • Intratrade risk metrics with liquidation distance
2. MAE Analysis & Optimal Leverage
  • MAE distribution table (min, mean, p50...

Source information

Source
github
Repository
openclaw/skills
Path
skills/ahuserious/tearsheet-generator
Version
1.1.0
Commit
9c2040c6c9b75c7bd388439ab50d217f7c7b9e04
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

Extracted content

SKILL.md
# Tearsheet Generator Skill

## About

This skill generates custom tearsheets using the [QuantStats library](https://github.com/ranaroussi/quantstats) - a Python library for portfolio analytics.

**Key Features:**
- Custom SVG visualizations (returns, drawdowns, monthly heatmaps)
- Professional HTML tearsheets
- MAE (Maximum Adverse Excursion) analysis
- Leverage recommendations based on risk metrics
- Copyable strategy configurations

Generate comprehensive trading strategy tearsheets with:
- IBM Plex Mono font styling (QuantStats format)
- MAE (Max Adverse Excursion) percentile analysis (p90-p99)
- Optimal leverage recommendations with stop-loss levels
- Fixed Position (Static) vs Full Position (Dynamic) analysis
- 10%, 20%, 30% liquidation buffer calculations
- Full trade list with entry/exit details and MAE stats
- Copyable strategy config text boxes
- Multiple leverage scenario comparisons (1x, 10x, 15x, 20x)

## Quick Start

```bash
# Generate tearsheet from trades CSV
/generate-tearsheet SOL_MTF_EMA_001 --trades ./trades.csv --capital 10000

# Verify backtest with Nautilus Trader
/verify-backtest SOL_MTF_EMA_001 --trades ./trades.csv

# Test optimal leverage configuration
/verify-mae-lev SOL_MTF_EMA_001 --leverage p95
```

## Commands

### /generate-tearsheet
Generate a complete tearsheet with all analysis sections.

### /verify-backtest
Verify tearsheet results against Nautilus Trader for accuracy validation.

### /verify-mae-lev
Run backtest with optimal leverage config derived from MAE analysis.

## Output Files

Each tearsheet generation produces:
- `{strategy}_comparison.html` - Full HTML tearsheet
- `{strategy}_comparison_metrics.json` - JSON metrics for programmatic access

## Key Sections

### 1. Key Performance Metrics
- B&H, Fix1x, Dyn1x, Fix10x, Dyn10x columns
- Cumulative Return, CAGR, Sharpe, Sortino, Max DD, Calmar
- Intratrade risk metrics with liquidation distance

### 2. MAE Analysis & Optimal Leverage
- MAE distribution table (min, mean, p50...

Related skills

OpenClaw

bambu-studio-ai

heyixuan2

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...

OpenClaw

geo-optimization

capt-marbles

Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discove...

OpenClaw

0protocol

0isone

Agents can sign plugins, rotate credentials without losing identity, and publicly attest to behavior.