mcpField
E
edge-concept-synthesizer

edge-concept-synthesizer

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

edge-concept-synthesizer について

edge-concept-synthesizer は、戦略を作成する前に生のチケット証拠を整理するスキルです。繰り返し現れる条件をクラスタリングし、仮説、裏付け統計、無効化シグナル、エクスポート準備状況を含む YAML 概念を出力します。

主な機能

  1. 01チケット証拠のクラスタリング
  2. 02反復条件の要約
  3. 03抽象的な仮説の作成
  4. 04裏付け統計と無効化シグナルの記録
  5. 05エクスポート準備状況の表示

活用シーン

  1. 01大量の生チケットの整理
  2. 02戦略作成前の概念レビュー
  3. 03チケットから戦略への過剰適合の抑制

インストール

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

$npx skills add https://github.com/mphinance/alpha-skills --skill edge-concept-synthesizer

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

同梱ファイル

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

README.md
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

コメント