Token导航 LogoToken导航TokenDH.com
效率只读clawhub未标认证来源可访问clear审计通过

qc-order-forensics质量控制命令取证

Agent Skill

qc-order-forensics 用于辅助测试设计、自动化测试和回归验证,适合在 OpenClaw 中需要补充测试、分析失败日志或验证功能改动时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

4,796

周安装

194

GitHub Stars

公开资料未说明

下载量

1,505
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:qc-order-forensics(质量控制命令取证)
来源仓库:https://github.com/tltby12341/qc-order-forensics
安装命令:
openclaw skills install qc-order-forensics
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install qc-order-forensics

简介

用于回测订单数据的法证诊断引擎——交易质量、投资回报率归因、每月现金流、回撤根本原因分析和法学硕士可读报告。

SKILL.md

name
qc-order-forensics
description
Forensic diagnosis engine for backtest order data — trade quality, ROI attribution, monthly cashflow, drawdown root-cause analysis, and LLM-readable reports.
version
1.0.0
metadata
openclaw
requires
bins
emoji
\F52C

QC Order Forensics

Turn raw backtest order data into actionable diagnostic reports. Feed the output directly to an LLM for strategy improvement decisions.

When to use

Use this skill when the user has completed a backtest and wants to understand why the strategy performed the way it did. Typical triggers:

  • "Analyze my backtest results"
  • "Why did my strategy lose money?"
  • "Show me the trade quality report"
  • "Diagnose this backtest"

How it works

The OrderForensics class takes an orders.csv (and optionally a result.json) and produces a multi-section diagnostic report:

from forensics import OrderForensics

forensics = OrderForensics("path/to/orders.csv", "path/to/result.json")
report = forensics.full_diagnosis()
print(report)  # LLM-readable text report

Or from CLI:

python3 -c "
from forensics import OrderForensics
f = OrderForensics('orders.csv', 'result.json')
print(f.full_diagnosis())
"

Report Sections

1. Key Statistics

Extracted from result.json: Net Profit, Sharpe Ratio, Drawdown, Win Rate, Expectancy, Alpha, Beta, Total Fees.

2. Trade Quality Detection

  • Total order count (options vs equity)
  • Buy/sell split with average fill prices
  • Number of unique underlyings traded
  • Zero rate: % of options sold at <= $0.05 (expired worthless)
  • Windfall trades: Count of trades exceeding 100%, 400%, 1000% ROI

3. ROI Breakdown by Contract

  • Per-symbol: Cost, Return, Net Profit, ROI%
  • Top 5 winners and Top 5 losers
  • Overall option ROI, winning vs losing symbol counts
  • Average winner ROI vs average loser ROI

4. Monthly Cashflow

  • Net cash flow per month (buys + sells)
  • Cumulative cashflow curve
  • Trade count and buy/sell density per month
  • Identifies bleeding months vs profitable months

5. Drawdown Death Causes

  • Detects consecutive loss streaks exceeding $1,000
  • Reports start/end month and cumulative loss for each streak
  • Sorted by severity (worst first)

6. Yearly Breakdown

  • Annual net cashflow, trade count, and ticker diversity
  • Identifies which years were profitable vs destructive

Input Format

orders.csv columns (standard QC export):

orderId, symbol, type, direction, quantity, fillPrice, fillQty, fee, status, submitTime, fillTime, tag

The parser automatically separates options from equity (QQQ) orders by extracting the underlying from the symbol field.

Output

A structured plain-text report using emoji markers for quick visual scanning. Designed to be directly consumed by LLMs for follow-up analysis and strategy iteration decisions.

Key Metrics to Watch

MetricHealthy RangeRed Flag
Zero rate< 50%> 65% means most options expire worthless
Windfall > 400%>= 2 per year0 means no tail wins to offset losses
Monthly cashflowMixed +/-All negative = structural problem
Drawdown streaks< 3 months> 6 months = survival crisis

Rules

  • Input CSV must be in standard QuantConnect export format with columns: orderId, symbol, type, direction, quantity, fillPrice, fillQty, fee, status, submitTime, fillTime, tag. Missing columns will cause silent misclassification.
  • Do not manually edit the orders CSV before analysis. Changing fill prices, removing rows, or reordering columns will produce misleading diagnostics.
  • The equity_symbol parameter (default "QQQ") must match your strategy's anchor equity. If your strategy holds SPY instead of QQQ, pass --equity-symbol SPY or the equity/options split will be wrong.
  • Zero rate above 65% is not automatically bad for OTM lottery strategies — it's expected. Interpret in context of the strategy's design, not as an absolute red flag.
  • This tool analyzes closed trades only. Open positions at backtest end are excluded from ROI calculations.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

96.42%
按下载量换算1,451

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills