xingwudao/open-xquant/compare-experiments
Claude Code and agent skill by xingwudao/open-xquant
- community
Checking that the SKILL.md file is still in the repository.
Compare two completed open-xquant experiment runs.
Install
npx vskill@latest install xingwudao/open-xquant/compare-experimentsSKILL.md
Experiment Comparator
Use this skill when the user asks to compare two completed runs. The comparison is cross-experiment metadata, so do not write outputs inside either run directory. Resolve the comparison output root from .open-xquant/workspace.yaml when it exists: use paths.comparisons_dir for the comparison directory root and paths.comparison_registry for the summary registry. Fall back to comparisons/ and comparisons/comparisons.jsonl only when no workspace config value is present.
Do not use this skill in a version-governed workspace. Stop before reading run artifacts or writing comparison outputs and route the request to compare-strategy-versions, including when the user only says "compare two experiments". The version-aware comparator must validate each candidate against its claimed version manifest and backtest phase.
Classify the workspace exactly as the CLI does: it is version-governed if and only if workflow.layout == version_governed or the paths.versions_dir key is present. Otherwise it is legacy, even when .open-xquant/workspace.yaml exists. Use this legacy comparator only in the latter case.
Preconditions
Both runs must contain:
strategy_spec.yamlmetrics.jsonequity_curve.csvexecution_assumptions.jsonresearch_bias_audit.jsonreproducibility_audit.json
If a run lacks metrics.json, say that the experiment has not completed a backtest and cannot be compared yet. If either run lacks audit or execution-assumption artifacts, stop and explain that audited comparison requires those artifacts before naming winners or writing spec-impact conclusions. If an audit contains fatal findings, do not present that run as comparable to an audited candidate without making the audit failure the primary result.
Workflow
- Read both
strategy_spec.yamlfiles and generatespec_diff.yaml.
- Compare fields recursively.
- Include path, run A value, run B value, and likely impact.
- Read
execution_assumptions.jsonand both audit artifacts for each run.
- Verify execution assumptions are comparable before interpreting metric
differences.
- Treat reproducibility or research-bias failures as blockers for
winner-style conclusions.
- Read both
metrics.jsonfiles and generatemetrics_comparison.json.
- Include key metrics for each run.
- Include deltas and winners by return, Sharpe, and drawdown where present.
- Generate figures under
<comparisons_dir>/<comparison_id>/figures/.
equity_overlay.pngdrawdown_overlay.pngmetrics_bar.png
Do not leave figures/ empty. If no figure will be generated, do not create the directory.
- Write
comparison_report.md.
- Explain which spec differences plausibly drove the metric differences.
- Do not claim causality when the evidence only supports association.
- Append a summary row to
<comparison_registry>.
Output Layout
With the default fallback paths:
Report Evidence Gate
When a compared input includes a current report package, validate its chart_build_result.json before using charts or report claims. Require the requested/applicable/generated/skipped set invariants, closed skip reason codes, the exact {path, sha256} manifest reference, and every generated asset hash. For each manifest asset, require a safe package-relative source.script, full lowercase source.script_sha256, and recompute the script SHA-256 from exact bytes. A script mutation blocks report-derived comparison evidence; a containing manifest hash or unchanged PNG does not excuse it.
Red Lines
- Do not modify either run's artifacts.
- Do not compare unaudited assumptions as if they were equivalent.
- Do not hide metric trade-offs by naming a single winner without context.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingagent/skills/compare-experiments/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/xingwudao/open-xquant/compare-experiments)