# Send Tearsheet Generator to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "tearsheet-generator",
    "name": "Tearsheet Generator",
    "source": "tencent",
    "type": "skill",
    "category": "效率提升",
    "sourceUrl": "https://clawhub.ai/ahuserious/tearsheet-generator",
    "canonicalUrl": "https://clawhub.ai/ahuserious/tearsheet-generator",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/tearsheet-generator",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=tearsheet-generator",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "commands/generate-tearsheet.md",
      "commands/verify-backtest.md",
      "commands/verify-mae-lev.md",
      "references/html_templates.md",
      "references/index.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "tearsheet-generator",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-01T10:01:24.687Z",
      "expiresAt": "2026-05-08T10:01:24.687Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=tearsheet-generator",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=tearsheet-generator",
        "contentDisposition": "attachment; filename=\"tearsheet-generator-0.1.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "tearsheet-generator"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/tearsheet-generator"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/tearsheet-generator",
    "downloadUrl": "https://openagent3.xyz/downloads/tearsheet-generator",
    "agentUrl": "https://openagent3.xyz/skills/tearsheet-generator/agent",
    "manifestUrl": "https://openagent3.xyz/skills/tearsheet-generator/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/tearsheet-generator/agent.md"
  }
}
```
## Documentation

### 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

### /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

### 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, p75, p90-p99, max)
Safe leverage recommendations per percentile
Stop loss table with % PRICE movement (not position cost)

### 3. Fixed Position (Static) Analysis

Leverage table: 5x, 10x, 15x, 20x, 25x, 30x
Columns: Liq @ %Price, Rec. SL, Max Loss, +10% Buffer, +20% Buffer, Risk Level

### 4. Full Position (Dynamic) Analysis

Warning about compounding risk
Leverage table: 1x, 2x, 3x, 5x, 10x
Recommendation per leverage level

### 5. Buffer Analysis Summary

+10%, +20%, +30% buffers above worst MAE
Safety check for 10x, 15x, 20x leverage

### 6. Full Trade List

All trades with entry/exit times, prices, side, PnL, MAE, MFE, duration
Scrollable table with sticky headers
Summary row with averages

### 7. Strategy Configuration

Original config text box (copyable JSON)
MAE-optimized config text box (copyable JSON)
Backtest methodology description

### Dependencies

Python 3.10+
pandas, numpy, matplotlib
StrategyComparisonTearsheet from backtesting.tearsheets

### Installation

The skill uses the tearsheet generator at:
/Users/DanBot/Desktop/dev/Backtests/backtesting/tearsheets/strategy_comparison_tearsheet.py

Ensure this path is accessible or update the script paths accordingly.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: ahuserious
- Version: 0.1.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-01T10:01:24.687Z
- Expires at: 2026-05-08T10:01:24.687Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/tearsheet-generator)
- [Send to Agent page](https://openagent3.xyz/skills/tearsheet-generator/agent)
- [JSON manifest](https://openagent3.xyz/skills/tearsheet-generator/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/tearsheet-generator/agent.md)
- [Download page](https://openagent3.xyz/downloads/tearsheet-generator)