{
  "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": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/tearsheet-generator",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=tearsheet-generator",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "commands/generate-tearsheet.md",
      "commands/verify-backtest.md",
      "commands/verify-mae-lev.md",
      "references/html_templates.md",
      "references/index.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "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."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "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."
        },
        {
          "label": "Upgrade existing",
          "body": "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."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "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."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/tearsheet-generator",
    "agentPageUrl": "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"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "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."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "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."
      },
      {
        "label": "Upgrade existing",
        "body": "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."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "About",
        "body": "This skill generates custom tearsheets using the QuantStats library - a Python library for portfolio analytics.\n\nKey Features:\n\nCustom SVG visualizations (returns, drawdowns, monthly heatmaps)\nProfessional HTML tearsheets\nMAE (Maximum Adverse Excursion) analysis\nLeverage recommendations based on risk metrics\nCopyable strategy configurations\n\nGenerate comprehensive trading strategy tearsheets with:\n\nIBM Plex Mono font styling (QuantStats format)\nMAE (Max Adverse Excursion) percentile analysis (p90-p99)\nOptimal leverage recommendations with stop-loss levels\nFixed Position (Static) vs Full Position (Dynamic) analysis\n10%, 20%, 30% liquidation buffer calculations\nFull trade list with entry/exit details and MAE stats\nCopyable strategy config text boxes\nMultiple leverage scenario comparisons (1x, 10x, 15x, 20x)"
      },
      {
        "title": "Quick Start",
        "body": "# Generate tearsheet from trades CSV\n/generate-tearsheet SOL_MTF_EMA_001 --trades ./trades.csv --capital 10000\n\n# Verify backtest with Nautilus Trader\n/verify-backtest SOL_MTF_EMA_001 --trades ./trades.csv\n\n# Test optimal leverage configuration\n/verify-mae-lev SOL_MTF_EMA_001 --leverage p95"
      },
      {
        "title": "/generate-tearsheet",
        "body": "Generate a complete tearsheet with all analysis sections."
      },
      {
        "title": "/verify-backtest",
        "body": "Verify tearsheet results against Nautilus Trader for accuracy validation."
      },
      {
        "title": "/verify-mae-lev",
        "body": "Run backtest with optimal leverage config derived from MAE analysis."
      },
      {
        "title": "Output Files",
        "body": "Each tearsheet generation produces:\n\n{strategy}_comparison.html - Full HTML tearsheet\n{strategy}_comparison_metrics.json - JSON metrics for programmatic access"
      },
      {
        "title": "1. Key Performance Metrics",
        "body": "B&H, Fix1x, Dyn1x, Fix10x, Dyn10x columns\nCumulative Return, CAGR, Sharpe, Sortino, Max DD, Calmar\nIntratrade risk metrics with liquidation distance"
      },
      {
        "title": "2. MAE Analysis & Optimal Leverage",
        "body": "MAE distribution table (min, mean, p50, p75, p90-p99, max)\nSafe leverage recommendations per percentile\nStop loss table with % PRICE movement (not position cost)"
      },
      {
        "title": "3. Fixed Position (Static) Analysis",
        "body": "Leverage table: 5x, 10x, 15x, 20x, 25x, 30x\nColumns: Liq @ %Price, Rec. SL, Max Loss, +10% Buffer, +20% Buffer, Risk Level"
      },
      {
        "title": "4. Full Position (Dynamic) Analysis",
        "body": "Warning about compounding risk\nLeverage table: 1x, 2x, 3x, 5x, 10x\nRecommendation per leverage level"
      },
      {
        "title": "5. Buffer Analysis Summary",
        "body": "+10%, +20%, +30% buffers above worst MAE\nSafety check for 10x, 15x, 20x leverage"
      },
      {
        "title": "6. Full Trade List",
        "body": "All trades with entry/exit times, prices, side, PnL, MAE, MFE, duration\nScrollable table with sticky headers\nSummary row with averages"
      },
      {
        "title": "7. Strategy Configuration",
        "body": "Original config text box (copyable JSON)\nMAE-optimized config text box (copyable JSON)\nBacktest methodology description"
      },
      {
        "title": "Dependencies",
        "body": "Python 3.10+\npandas, numpy, matplotlib\nStrategyComparisonTearsheet from backtesting.tearsheets"
      },
      {
        "title": "Installation",
        "body": "The skill uses the tearsheet generator at:\n/Users/DanBot/Desktop/dev/Backtests/backtesting/tearsheets/strategy_comparison_tearsheet.py\n\nEnsure this path is accessible or update the script paths accordingly."
      }
    ],
    "body": "Tearsheet Generator Skill\nAbout\n\nThis skill generates custom tearsheets using the QuantStats library - a Python library for portfolio analytics.\n\nKey Features:\n\nCustom SVG visualizations (returns, drawdowns, monthly heatmaps)\nProfessional HTML tearsheets\nMAE (Maximum Adverse Excursion) analysis\nLeverage recommendations based on risk metrics\nCopyable strategy configurations\n\nGenerate comprehensive trading strategy tearsheets with:\n\nIBM Plex Mono font styling (QuantStats format)\nMAE (Max Adverse Excursion) percentile analysis (p90-p99)\nOptimal leverage recommendations with stop-loss levels\nFixed Position (Static) vs Full Position (Dynamic) analysis\n10%, 20%, 30% liquidation buffer calculations\nFull trade list with entry/exit details and MAE stats\nCopyable strategy config text boxes\nMultiple leverage scenario comparisons (1x, 10x, 15x, 20x)\nQuick Start\n# Generate tearsheet from trades CSV\n/generate-tearsheet SOL_MTF_EMA_001 --trades ./trades.csv --capital 10000\n\n# Verify backtest with Nautilus Trader\n/verify-backtest SOL_MTF_EMA_001 --trades ./trades.csv\n\n# Test optimal leverage configuration\n/verify-mae-lev SOL_MTF_EMA_001 --leverage p95\n\nCommands\n/generate-tearsheet\n\nGenerate a complete tearsheet with all analysis sections.\n\n/verify-backtest\n\nVerify tearsheet results against Nautilus Trader for accuracy validation.\n\n/verify-mae-lev\n\nRun backtest with optimal leverage config derived from MAE analysis.\n\nOutput Files\n\nEach tearsheet generation produces:\n\n{strategy}_comparison.html - Full HTML tearsheet\n{strategy}_comparison_metrics.json - JSON metrics for programmatic access\nKey Sections\n1. Key Performance Metrics\nB&H, Fix1x, Dyn1x, Fix10x, Dyn10x columns\nCumulative Return, CAGR, Sharpe, Sortino, Max DD, Calmar\nIntratrade risk metrics with liquidation distance\n2. MAE Analysis & Optimal Leverage\nMAE distribution table (min, mean, p50, p75, p90-p99, max)\nSafe leverage recommendations per percentile\nStop loss table with % PRICE movement (not position cost)\n3. Fixed Position (Static) Analysis\nLeverage table: 5x, 10x, 15x, 20x, 25x, 30x\nColumns: Liq @ %Price, Rec. SL, Max Loss, +10% Buffer, +20% Buffer, Risk Level\n4. Full Position (Dynamic) Analysis\nWarning about compounding risk\nLeverage table: 1x, 2x, 3x, 5x, 10x\nRecommendation per leverage level\n5. Buffer Analysis Summary\n+10%, +20%, +30% buffers above worst MAE\nSafety check for 10x, 15x, 20x leverage\n6. Full Trade List\nAll trades with entry/exit times, prices, side, PnL, MAE, MFE, duration\nScrollable table with sticky headers\nSummary row with averages\n7. Strategy Configuration\nOriginal config text box (copyable JSON)\nMAE-optimized config text box (copyable JSON)\nBacktest methodology description\nDependencies\nPython 3.10+\npandas, numpy, matplotlib\nStrategyComparisonTearsheet from backtesting.tearsheets\nInstallation\n\nThe skill uses the tearsheet generator at: /Users/DanBot/Desktop/dev/Backtests/backtesting/tearsheets/strategy_comparison_tearsheet.py\n\nEnsure this path is accessible or update the script paths accordingly."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/ahuserious/tearsheet-generator",
    "publisherUrl": "https://clawhub.ai/ahuserious/tearsheet-generator",
    "owner": "ahuserious",
    "version": "0.1.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "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"
  }
}