mcpField
T
trade-hypothesis-ideator

trade-hypothesis-ideator

github.com/mphinanceOther3286 installsUpdated 3d ago
Repository

About trade-hypothesis-ideator

A skill that turns normalized input bundles into structured trading hypotheses, then critiques and ranks them. It can optionally export hypotheses marked for pursuit as strategy artifacts.

Key features

  1. 01Normalize input and extract evidence
  2. 02Generate 1–5 hypothesis cards
  3. 03Critique and rank hypotheses
  4. 04Export pursue cards to strategy files

Use cases

  1. 01Develop trade hypotheses from research inputs
  2. 02Rank hypotheses before strategy drafting
  3. 03Export selected hypotheses for further strategy work

Install

Copy the command and run it in a terminal.

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

After installing, type/trade-hypothesis-ideatorin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with 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

Details

From the project README

Trade Hypothesis Ideator

Generate 1-5 structured hypothesis cards from a normalized input bundle, critique and rank them, then optionally export pursue cards into strategy.yaml + metadata.json artifacts.

Workflow

  1. Receive input JSON bundle.
  2. Run pass 1 normalization + evidence extraction.
  3. Generate hypotheses with prompts:
    • prompts/system_prompt.md
    • prompts/developer_prompt_template.md (inject {{evidence_summary}})
  4. Critique hypotheses with prompts/critique_prompt_template.md.
  5. Run pass 2 ranking + output formatting + guardrails.
  6. Optionally export pursue hypotheses via Step H strategy exporter.

Scripts

  • Pass 1 (evidence summary):
python3 skills/trade-hypothesis-ideator/scripts/run_hypothesis_ideator.py \
  --input skills/trade-hypothesis-ideator/examples/example_input.json \
  --output-dir reports/
  • Pass 2 (rank + output + optional export):
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

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

Comments

Markdown supported