技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
prediction-market-analysis【数据与研究】Route analysis, indexing, and data-ops guidance for the prediction-market-analysis repo.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
This skill covers the repo that analyzes and collects Kalshi and Polymarket market data. The repo is centered on three user-facing workflows:
analyze for calibration, returns, volume, category, and comparison studies.index for Kalshi and Polymarket market/trade/block backfills.setup / package for dataset download, archive management, and local data packaging.uv sync --frozen --group dev from the repo root.uv run python -c "import src; print(src.__file__)".references/cli-reference.md for command names and command-line behavior.references/data-layout.md for directory layout, parquet inputs, and env vars.references/api-reference.md for the public Python classes and helper functions.references/troubleshooting.md when a workflow fails, returns empty data, or cannot find files.sub-skills/analysis/Use when the task is about:
Analysis, AnalysisOutput, ChartConfig, or Analysis.load() behavior.src/analysis/.Typical signals:
win_rate_by_price, mispricing, maker_taker, volume_over_time, meta_stats, polymarket, calibration, chart, output/.
sub-skills/indexing/Use when the task is about:
KalshiClient, PolymarketClient, PolygonClient, or Indexer.load() behavior.src/indexers/.Typical signals:
kalshi_markets, kalshi_trades, polymarket_markets, polymarket_trades, polymarket_blocks, polymarket_fpmm_trades, cursor, backfill, POLYGON_RPC, resume.
sub-skills/data-ops/Use when the task is about:
data/ directory.data.tar.zst.zstd, aria2c, curl, or wget.make setup and make package workflows.Typical signals:
make setup, make package, data.tar.zst, download.sh, install-tools.sh, zstd, aria2c, curl, wget.
prediction-market-data; the source package tree is rooted at src/.Analysis.load() and Indexer.load() default to src/analysis and src/indexers relative to the current working directory.data/kalshi/ and data/polymarket/, plus CSV/JSON/PNG/PDF/GIF outputs under output/.main.py dispatches analyze, index, and package.make setup is a convenience wrapper for host-tool installation plus dataset download.main.py package / make package create data.tar.zst; the code does not delete the source data/ directory.scripts/catalog.py lists available analyses and indexers from the repo checkout when run through the repo environment.scripts/run_analysis.sh runs the analysis CLI from the repo root.scripts/run_index.sh runs the indexing CLI from the repo root.scripts/package_data.sh runs dataset packaging from the repo root.references/analysis-catalog.md for the full analysis catalog.references/indexing-catalog.md for the full indexer catalog and cursor files.references/data-ops.md for download, extraction, and packaging details.references/troubleshooting.md for cross-cutting failures.If a request names missing data, a cursor problem, a Polygon RPC issue, a download failure, or a headless plotting problem, read the matching troubleshooting section before guessing.