← 返回
效率工具 中文

Crunch Compete

Use when working with Crunch competitions - setting up workspaces, exploring quickstarters, testing solutions locally, or submitting entries.
用于参与 Crunch 竞赛——设置工作区、探索快速启动项目、本地测试解决方案或提交作品。
philippwassibauer
效率工具 clawhub v0.1.2 1 版本 99908.1 Key: 无需
★ 2
Stars
📥 1,047
下载
💾 15
安装
1
版本
#latest

概述

Cruncher Skill

Guides users through Crunch competition lifecycle: setup, quickstarter discovery, solution development, local testing, and submission.

Prerequisites

  • Python 3.9+ with venv module (included in standard Python)
  • pip for package installation

Package Installation

This skill installs Python packages from PyPI into isolated virtual environments:

PackageSourcePurpose
--------------------------
crunch-cliPyPICrunchDAO competition CLI (setup, test, submit)
jupyterPyPINotebook support (optional)
ipykernelPyPIJupyter kernel registration (optional)
Competition SDKs (e.g. crunch-synth, birdgame)PyPICompetition-specific libraries (varies)

Agent rules for package installation:

  • Always use a virtual environment — never install into system Python
  • Only install known packages listed above or referenced in competition docs (PACKAGES.md)
  • Ask the user before installing any package not listed here
  • All packages are from PyPI — no custom URLs, no --index-url overrides, no .whl files from unknown sources

Credentials

Submission Token (required for setup & submit)

  • How to get: User logs into CrunchDAO Hub, navigates to the competition's submit page (/competitions//submit), and copies their token
  • How it's used: Passed once via --token during crunch setup
  • Persistence: After setup, the CLI stores the token in the project's .crunch/ config directory. All subsequent commands (crunch test, crunch push, crunch download) authenticate automatically — no need to pass the token again
  • If token expires: Run crunch update-token inside the project directory to refresh it

Agent rules for tokens:

  • Always ask the user to provide the token — never assume, guess, or reuse tokens from other projects
  • Never write tokens into source files, scripts, notebooks, or any committed file
  • Never log or echo tokens in shell output (use --token placeholder in examples shown to user)
  • Tokens are user-specific and project-scoped — each crunch setup call requires the user to supply one

GitHub API (optional, unauthenticated)

  • Used only for browsing quickstarter listings via api.github.com (public repo, no auth needed)
  • Rate-limited to 60 requests/hour per IP; sufficient for normal use

Network Access

OperationRequires networkEndpoint
--------------------------------------
crunch setupYeshub.crunchdao.com
crunch pushYeshub.crunchdao.com
crunch downloadYeshub.crunchdao.com
crunch testNoLocal only
crunch listYeshub.crunchdao.com
pip installYespypi.org
Quickstarter browsingYesapi.github.com

Quick Setup

Each competition needs its own virtual environment (dependencies can conflict).

mkdir -p ~/.crunch/workspace/competitions/<competition>
cd ~/.crunch/workspace/competitions/<competition>
python -m venv .venv && source .venv/bin/activate 
pip install crunch-cli jupyter ipykernel --upgrade --quiet --progress-bar=off
python -m ipykernel install --user --name <competition> --display-name "Crunch - <competition>"

# Get token from: https://hub.crunchdao.com/competitions/<competition>/submit
crunch setup <competition> <project-name> --token <TOKEN>
cd <competition>-<project-name>

For competition-specific packages and full examples, see references/competition-setup.md.

Core Workflow

1. Discover

crunch list                    # List competitions

2. Explain

Read the quickstarter code (main.py or notebook) and competition's SKILL.md/README.md. Provide walkthrough covering: Goal, Interface, Data flow, Approach, Scoring, Constraints, Limitations, Improvement ideas.

3. Propose Improvements

Analyze current approach, cross-reference competition docs (SKILL.md, LITERATURE.md, PACKAGES.md), generate concrete code suggestions:

  • Model: mixture densities, NGBoost, quantile regression, ensembles
  • Features: volatility regimes, cross-asset correlation, seasonality
  • Architecture: online learning, Bayesian updating, horizon-specific models

4. Test

crunch test                    # Test solution locally

5. Submit

crunch test                    # Always test first
crunch push -m "Description"   # Submit

Phrase Mapping

User saysAction
-------------------
what competitions are availablecrunch list
show quickstarters for Fetch from GitHub API
set up Full workspace setup
download the datacrunch download
get the quickstartercrunch quickstarter --name
explain this quickstarterStructured code walkthrough
propose improvementsAnalyze and suggest code improvements
test my solutioncrunch test
compare with baselineRun both, side-by-side results
submit my solutioncrunch push

Important Rules

  • Entrypoint must be main.py (default for crunch push/crunch test)
  • Model files go in resources/ directory
  • Respect competition interface and constraints (time limits, output format)
  • Ask before installing new packages

Reference

版本历史

共 1 个版本

  • v0.1.2 当前
    2026-03-29 04:55 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Crunch Coordinate

philippwassibauer
通过 crunch-cli 管理 Crunch 协调器、竞赛 (crunches)、奖励、检查点、质押或 cruncher 账户时使用。
★ 0 📥 1,185
productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 440 📥 147,949
productivity

Nano Pdf

steipete
使用nano-pdf CLI通过自然语言指令编辑PDF
★ 275 📥 114,914