data-ops
Guide dataset download, extraction, and packaging workflows for prediction-market-analysis.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- data-ops
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Guide dataset download, extraction, and packaging workflows for prediction-market-analysis.
- disable-model-invocation
- true
02 资源文件 2
- 参考文档references/troubleshooting.md1.4 KB
- 参考文档references/workflows.md900 B
03 SKILL.md 正文
data-ops
Use this sub-skill for dataset download, extraction, archive creation, and host-tool troubleshooting. It covers the repo's dataset lifecycle but not the analysis or indexing logic.
Use this route when
- The user wants to download or restore the prebuilt dataset.
- The user wants to package
data/intodata.tar.zst. - The user needs to diagnose
zstd, downloader, or archive problems. - The user wants to understand the repo's
make setupormake packagebehavior.
Scope
Included
- Dataset download and extraction from the published archive.
- Packaging
data/intodata.tar.zst. - Host-tool and network troubleshooting for those workflows.
- Archive and sentinel-file behavior.
Excluded
- Market/trade/block backfills, which belong to
sub-skills/indexing/. - Analysis and plotting workflows, which belong to
sub-skills/analysis/.
Read first
../../references/data-ops.mdfor the workflow summary.../../references/data-layout.mdfor the directories the dataset should contain.../../references/troubleshooting.mdfor cross-cutting failures.
Core workflow
- Determine whether the user wants to download/extract or package.
- Check the required host tools and disk space.
- Run the download/extract or packaging command from the repo checkout.
- Verify the resulting
data/tree ordata.tar.zstarchive. - If the workflow fails, use the host-tool or archive troubleshooting notes before retrying.
Download and extract
The documented path uses make setup, which in turn runs the tool-install and download helpers.
Important details:
scripts/install-tools.shis interactive and may mutate the host.scripts/download.shdepends on a downloader andzstd.- The archive is large, so timeouts and partial downloads are common failure points.
- A
.download_completesentinel marks a successful extraction cycle.
Packaging
The packaging path is make package or uv run main.py package.
Important details:
- The archive name is
data.tar.zst. - The helper uses
tar --zstd. - The code does not remove
data/after packaging, even though the README wording suggests that behavior.
Adding or fixing data-ops guidance
- Keep host mutation and network side effects explicit.
- Prefer safe read-only checks before suggesting a download or package rerun.
- Make the archive and sentinel-file semantics obvious.
- Document the exact failure symptoms that mean the host is missing tools rather than the repo being broken.
Common failure patterns
- Missing
zstdor downloader tools. - Not enough disk for the archive or extracted dataset.
- Download links that are temporarily unavailable.
- Confusion about whether packaging should delete the source tree.
Helpful helper
../../scripts/package_data.shruns the packaging command from the repo root when the repo environment is available.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).