mcpField
E
edge-concept-synthesizer

edge-concept-synthesizer

github.com/tradermontyその他3.4k3.3k 回インストール2 日前に更新
リポジトリ

edge-concept-synthesizer について

edge-concept-synthesizerは、生のチケットの証拠をクラスタリングし、明示的な仮説と無効化条件を持つ概念にまとめるスキルです。戦略を作成する前に反復する条件を検討するチーム向けで、個々のチケットから戦略へ直接当てはめることを避けやすくします。

主な機能

  1. 01チケット証拠のクラスタリング
  2. 02反復する条件の要約
  3. 03重複する概念の統合
  4. 04仮説と無効化シグナルの記録
  5. 05エクスポート準備状況の表示

活用シーン

  1. 01多数のチケットにある証拠の整理
  2. 02戦略作成前の概念レビュー
  3. 03チケットから戦略への直接的な当てはめの抑制

インストール

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

$npx skills add https://github.com/tradermonty/claude-trading-skills --skill edge-concept-synthesizer

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

同梱ファイル

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

requirements.txt
agents/
openai.yaml
references/
concept_schema.md
scripts/
synthesize_edge_concepts.py
scripts/tests/
conftest.py
test_synthesize_edge_concepts.py

詳細

エッジ概念の統合

概要

検出と戦略実装の間に抽象化レイヤーを作成します。 このスキルはチケットのエビデンスをクラスタリングし、繰り返し現れる条件を要約して、明示的なテーゼと無効化ロジックを含む edge_concepts.yaml を出力します。

使用するタイミング

  • 大量の未加工チケットがあり、メカニズムレベルの構造が必要な場合。
  • チケットから戦略への直接的な過剰適合を避けたい場合。
  • 戦略の策定前に、概念レベルでレビューする必要がある場合。

前提条件

  • Python 3.9+
  • PyYAML
  • 検出器の出力から取得したチケット YAML ディレクトリ(tickets/exportable、tickets/research_only)
  • 任意の hints.yaml

出力

  • 以下を含む edge_concepts.yaml:
    • 概念クラスタ
    • サポート統計
    • 抽象的なテーゼ
    • 無効化シグナル
    • エクスポート準備状況フラグ

ワークフロー

  1. 自動検出の出力からチケット YAML ファイルを収集します。
  2. コンテキストのマッチングに hints.yaml を任意で指定します。
  3. scripts/synthesize_edge_concepts.py を実行します。
  4. 概念の重複を排除します。同じ仮説を持ち、条件が重複する概念を統合します(包含度 > しきい値)。
  5. 概念をレビューし、サポートの高い概念のみを戦略の策定に進めます。

クイックコマンド

python3 skills/edge-concept-synthesizer/scripts/synthesize_edge_concepts.py \
  --tickets-dir /tmp/edge-auto/tickets \
  --hints /tmp/edge-hints/hints.yaml \
  --output /tmp/edge-concepts/edge_concepts.yaml \
  --min-ticket-support 2

# With hint promotion and synthetic cap
python3 skills/edge-concept-synthesizer/scripts/synthesize_edge_concepts.py \
  --tickets-dir /tmp/edge-auto/tickets \
  --hints /tmp/edge-hints/hints.yaml \
  --output /tmp/edge-concepts/edge_concepts.yaml \
  --promote-hints \
  --max-synthetic-ratio 1.5

# With custom dedup threshold (or disable dedup)
python3 skills/edge-concept-synthesizer/scripts/synthesize_edge_concepts.py \
  --tickets-dir /tmp/edge-auto/tickets \
  --output /tmp/edge-concepts/edge_concepts.yaml \
  --overlap-threshold 0.6

python3 skills/edge-concept-synthesizer/scripts/synthesize_edge_concepts.py \
  --tickets-dir /tmp/edge-auto/tickets \
  --output /tmp/edge-concepts/edge_concepts.yaml \
  --no-dedup

リソース

  • skills/edge-concept-synthesizer/scripts/synthesize_edge_concepts.py
  • references/concept_schema.md

コメント