mcpField
T
trade-hypothesis-ideator

trade-hypothesis-ideator

github.com/mphinanceその他3286 回インストール3 日前に更新
リポジトリ

trade-hypothesis-ideator について

正規化された入力バンドルから、構造化された取引仮説を作成し、批評と順位付けを行うスキルです。任意で、pursue とされた仮説を戦略ファイルに出力できます。

主な機能

  1. 01入力の正規化と証拠の抽出
  2. 021~5件の仮説カードを生成
  3. 03仮説の批評と順位付け
  4. 04pursue カードを戦略ファイルに出力

活用シーン

  1. 01調査データから取引仮説を作成
  2. 02戦略案の前に仮説を順位付け
  3. 03選択した仮説を後続の戦略作業へ出力

インストール

コマンドをコピーしてターミナルで実行します。

$npx skills add https://github.com/mphinance/alpha-skills --skill trade-hypothesis-ideator

インストール後、Claude Code で/trade-hypothesis-ideatorを入力して読み込まれたか確認します。

同梱ファイル

SKILL.md と一緒にインストールされる参考資料やスクリプト。

README.md
examples/
example_input.json
example_output.json
sample_input.json
prompts/
critique_prompt_template.md
developer_prompt_template.md
system_prompt.md
references/
evidence_quality_guide.md
hypothesis_types.md
schemas/
hypothesis_card.schema.json
input_bundle.schema.json
output_bundle.schema.json
raw_hypotheses.schema.json
scripts/
run_hypothesis_ideator.py
scripts/pipeline/
__init__.py
evidence_extractor.py
format_output.py
normalize.py
ranking.py
strategy_exporter.py
scripts/tests/
conftest.py
test_evidence_extractor.py
test_format_output.py
test_guardrails.py
test_normalize.py
test_ranking.py
test_strategy_exporter.py

詳細

トレード仮説アイデア生成ツール

正規化された入力バンドルから 1~5 枚の構造化された仮説カードを生成し、それらを批評してランク付けしたうえで、任意で pursue カードを strategy.yaml + metadata.json アーティファクトにエクスポートします。

ワークフロー

  1. 入力 JSON バンドルを受け取ります。
  2. パス 1 の正規化 + エビデンス抽出を実行します。
  3. 次のプロンプトで仮説を生成します:
    • prompts/system_prompt.md
    • prompts/developer_prompt_template.md({{evidence_summary}} を注入)
  4. prompts/critique_prompt_template.md で仮説を批評します。
  5. パス 2 のランキング + 出力フォーマット + ガードレールを実行します。
  6. 任意で、ステップ H のストラテジーエクスポーターを介して pursue 仮説をエクスポートします。

スクリプト

  • パス 1(エビデンスサマリー):
python3 skills/trade-hypothesis-ideator/scripts/run_hypothesis_ideator.py \
  --input skills/trade-hypothesis-ideator/examples/example_input.json \
  --output-dir reports/
  • パス 2(ランク + 出力 + 任意のエクスポート):
python3 skills/trade-hypothesis-ideator/scripts/run_hypothesis_ideator.py \
  --input skills/trade-hypothesis-ideator/examples/example_input.json \
  --hypotheses reports/raw_hypotheses.json \
  --output-dir reports/ \
  --export-strategies

リファレンス

  • references/hypothesis_types.md
  • references/evidence_quality_guide.md

コメント