Edge Strategy Reviewer

作者 tradermontyeab8d5cb97b9無授權條款2.9K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫3 天前更新

Critically review strategy drafts from edge-strategy-designer for edge plausibility, overfitting risk, sample size adequacy, and execution realism. Use when strategy_drafts/*.yaml exists and needs quality gate before pipeline export. Outputs PASS/REVISE/REJECT verdicts with confidence scores.

AI 產生的概覽

審查交易策略草稿 YAML 檔案,給出 PASS、REVISE 或 REJECT 結論及信心分數。

功能
載入策略草稿 YAML 檔案,並依八項加權標準為每份草稿評分,涵蓋邊緣合理性、過度擬合風險、樣本充足性、市場狀態相依性、出場校準、風險集中度、執行現實性與失效品質。它會計算信心分數,給出 PASS、REVISE 或 REJECT 結論,並判定是否可匯出。它輸出 review.yaml 或 review.json 檔案,可選擇產生 markdown 摘要,也能套用內建偏誤檢查清單,將有未處理項目的草稿降級。
適用情境
適用於策略草稿產生之後、匯出至下游流程之前,或需要人工驗證草稿策略的邊緣合理性時。它是對草稿檔案的品質把關,而非策略產生工具。
執行需求
需要 Python 3.10 以上版本與 PyYAML,並以策略草稿 YAML 檔案作為輸入。此技能附有可執行指令碼(含測試套件),並將結果寫入指定目錄。

Edge Strategy Reviewer

Deterministic quality gate for strategy drafts produced by edge-strategy-designer.

When to Use

  • After edge-strategy-designer generates strategy_drafts/*.yaml
  • Before exporting drafts to edge-candidate-agent via the pipeline
  • When manually validating a draft strategy for edge plausibility

Prerequisites

  • Strategy draft YAML files (output of edge-strategy-designer)
  • Python 3.10+ with PyYAML

Workflow

  1. Load draft YAML files from --drafts-dir or a single --draft file
  2. Evaluate each draft against 8 criteria (C1-C8) with weighted scoring
  3. Compute confidence score (weighted average of all criteria)
  4. Determine verdict: PASS / REVISE / REJECT
  5. Assess export eligibility (PASS + export_ready_v1 + exportable family)
  6. Write review output (YAML or JSON) and optional markdown summary

Review Criteria

#CriterionWeightKey Checks
C1Edge Plausibility20Thesis quality, domain terms, mechanism keywords (continuous 50-95)
C2Overfitting Risk205-tier filter count scoring (90/80/60/40/10), precise threshold penalty
C3Sample Adequacy15Continuous scoring from estimated annual opportunities (10-95)
C4Regime Dependency10Cross-regime validation
C5Exit Calibration10Stop-loss, reward-to-risk
C6Risk Concentration10Position sizing limits
C7Execution Realism10Volume filter, export consistency
C8Invalidation Quality5Signal count and specificity

Verdict Logic

  • C1 or C2 severity=fail → immediate REJECT
  • confidence >= 70, no fail findings → PASS
  • confidence < 35 → REJECT
  • Otherwise → REVISE (with revision instructions)

Running the Script

bash
# Review all drafts in a directorypython3 skills/edge-strategy-reviewer/scripts/review_strategy_drafts.py \  --drafts-dir reports/edge_strategy_drafts/ \  --output-dir reports/
# Single draft reviewpython3 skills/edge-strategy-reviewer/scripts/review_strategy_drafts.py \  --draft reports/edge_strategy_drafts/draft_xxx.yaml \  --output-dir reports/
# JSON output with markdown summarypython3 skills/edge-strategy-reviewer/scripts/review_strategy_drafts.py \  --drafts-dir reports/edge_strategy_drafts/ \  --output-dir reports/ \  --format json \  --markdown-summary
# Strict export mode: export-eligible drafts with any warn → REVISEpython3 skills/edge-strategy-reviewer/scripts/review_strategy_drafts.py \  --drafts-dir reports/edge_strategy_drafts/ \  --output-dir reports/ \  --strict-export
# Bias checklist (issue #297): mandatory strategy-research bias gate.# Uses the bundled checklist unless a custom YAML path is supplied.# A draft leaving any required item unaddressed is downgraded PASS → REVISE# and loses export eligibility.python3 skills/edge-strategy-reviewer/scripts/review_strategy_drafts.py \  --drafts-dir reports/edge_strategy_drafts/ \  --output-dir reports/ \  --bias-checklist

Output Format

Primary output: review.yaml (or review.json)

yaml
generated_at_utc: "2026-02-28T12:00:00+00:00"source:  drafts_dir: "/path/to/strategy_drafts"  draft_count: 4summary:  total: 4  PASS: 1  REVISE: 2  REJECT: 1  export_eligible: 1reviews:  - draft_id: "draft_xxx_core"    verdict: "PASS"    confidence_score: 80    export_eligible: true    findings: [...]    revision_instructions: []

Resources

  • references/review_criteria.md — Detailed scoring rubric for C1-C8
  • references/overfitting_checklist.md — Overfitting detection heuristics

來源與署名

來源:tradermonty/claude-trading-skills位於skills/edge-strategy-reviewer提交eab8d5c

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架

更多來自 tradermonty/claude-trading-skills 的技能

Weekly Performance Digest

tradermonty

將已平倉的交易論點彙整為每週績效報告,包含指標、模式分解與經驗教訓。

包含腳本
Data & Analytics2.9K3 天前更新

Trade Performance Coach

tradermonty

審查已記錄的交易,評估流程遵循、風險紀律、執行品質與行為模式,並產出教練報告。

包含腳本
Business & Finance2.9K3 天前更新

Strategy Pivot Designer

tradermonty

偵測回測迭代停滯,並為交易策略產生結構不同的策略轉向提案。

包含腳本
Business & Finance2.9K3 天前更新

Skill Designer

tradermonty

Design new Claude skills from structured idea specifications. Use when the skill auto-generation pipeline needs to produce a Claude CLI prompt that creates a complete skill directory (SKILL.md, references, scripts, tests) following repository conventions.

包含腳本
待分類2.9K3 天前更新

Residual Edge Analyzer

tradermonty

Separate a strategy return series into declared baseline exposure and residual edge with returns-based OLS attribution, HAC inference, rolling stability, alternate-baseline sensitivity, and regime breakdowns. Use when evaluating whether backtest, out-of-sample, or live returns contain independent alpha beyond market, equal-weight, momentum, sector, or user-supplied factor returns; when explaining whether a drawdown came from baseline exposure or strategy-specific behavior; or when a strategy needs an attribution quality gate after backtesting. Do not use for holdings-based Brinson attribution, feature-level Shapley explanations, or analysis from summary metrics without a dated return series.

包含腳本
待分類2.9K3 天前更新

Pre Trade Discipline Gate

tradermonty

離線交易前檢查清單閘門,核准、複核或阻擋計畫中的手動下單並記錄決策。

包含腳本
Business & Finance2.9K3 天前更新