← 返回
开发者工具 中文

Crunch Coordinate

Use when managing Crunch coordinators, competitions (crunches), rewards, checkpoints, staking, or cruncher accounts via the crunch-cli.
通过 crunch-cli 管理 Crunch 协调器、竞赛 (crunches)、奖励、检查点、质押或 cruncher 账户时使用。
philippwassibauer
开发者工具 clawhub v0.1.1 1 版本 99828.2 Key: 无需
★ 0
Stars
📥 1,162
下载
💾 6
安装
1
版本
#latest

概述

Crunch Protocol CLI Skill

Translates natural language queries into crunch-cli commands. Supports profiles and output formatting for Slack, Telegram, Discord, or plain text.

Prerequisites

  • Node.js 18+ with npm
  • Solana wallet keypair (for on-chain operations)

Package Installation

This skill installs packages via npm (global):

PackageSourcePurpose
--------------------------
@crunchdao/crunch-clinpmCrunchDAO protocol CLI (coordinators, competitions, staking)

Agent rules for package installation:

  • Only install @crunchdao/crunch-cli from the official npm registry
  • No custom registry URLs — no --registry overrides
  • Ask the user before installing if not already present

Credentials

Solana Wallet Keypair (required for on-chain operations)

  • What it is: A JSON file containing a Solana private key, used to sign transactions
  • How it's configured: Set via crunch-cli config set wallet /path/to/wallet.json or -w flag per command
  • Stored in: User-managed file on disk; path referenced in ~/.crunch/config.json

Agent rules for wallets:

  • Never create or generate wallet keypairs unless the user explicitly asks and understands the security implications
  • Never read or display the contents of wallet keypair files
  • Never commit wallet files to git — always verify .gitignore covers them
  • Ask the user for the wallet path — never assume or search for keypair files

Profile Config (~/.crunch/config.json)

  • Stores network, wallet path, and RPC URL per profile
  • Managed via crunch-cli config commands — no need to edit manually
  • Never modify or delete existing profiles unless explicitly asked

Setup

npm install -g @crunchdao/crunch-cli
crunch-cli --version

Profiles

The CLI has built-in profile management via ~/.crunch/config.json:

crunch-cli config show                    # Show current config
crunch-cli config active                  # Show resolved active values
crunch-cli config list-profiles           # List available profiles
crunch-cli config save-profile <name>     # Save current config as profile
crunch-cli config use <profile>           # Switch profile
crunch-cli config set <key> <value>       # Set config value

Global flags can override config per-command:

FlagDescription
-------------------
-n, --networkSolana network: mainnet-beta, devnet, localhost
-u, --urlCustom RPC URL
-w, --walletPath to Solana keypair
-o, --outputOutput format: json, table, yaml

Direct Phrase Mapping

User PhraseCLI Command
--------------------------
get/show crunch crunch-cli crunch get ""
list crunchescrunch-cli crunch list
get/show coordinator [address]crunch-cli coordinator get [address]
list coordinatorscrunch-cli coordinator list
get configcrunch-cli coordinator get-config
checkpoint for crunch-cli crunch checkpoint-get-current ""
create checkpoint crunch-cli crunch checkpoint-create "" prizes.json
deposit reward crunch-cli crunch deposit-reward ""
drain crunch-cli crunch drain ""
create/register crunchercrunch-cli cruncher create
register for crunch-cli cruncher register ""
claim rewards crunch-cli cruncher claim ""
show staking positionscrunch-cli staking positions
stake/deposit crunch-cli staking deposit
delegate to crunch-cli staking delegate ""
show staking rewardscrunch-cli staking rewards
claim staking rewardscrunch-cli staking claim
undelegate from crunch-cli staking undelegate ""
withdraw stake crunch-cli staking withdraw
init workspace crunch-cli init-workspace ""
list scenarios/simulationscrunch-cli model list
run simulation crunch-cli model run ""
register coordinator crunch-cli coordinator register ""
create crunch crunch-cli crunch create "" [maxModels]
start/end crunch crunch-cli crunch start/end ""

Execution Pattern

  1. Parse — Identify action, target, name/identifier, parameters
  2. Resolve profile — If mentioned, switch profile or use flags
  3. Map — Use phrase mapping table
  4. Execute — Run command
  5. Format — Output for requested medium (Slack/Telegram/Discord/plain)

Output Formatting

Detect medium from user request ("for slack", "telegram format", etc.):

  • Slack: bold, bullets, separators
  • Telegram: bold, emoji prefixes
  • Discord: ## headers, bold
  • Plain: Simple key: value pairs

Error Handling

If command fails, suggest fixes:

  • Wrong network? Add -n mainnet-beta or -n devnet
  • Missing wallet? Add -w /path/to/wallet.json
  • Not found? List available with crunch-cli crunch list

Coordinator Node Setup

Scaffold a new competition workspace:

crunch-cli init-workspace my-challenge

This generates a full node workspace. See the coordinator-node-starter skill for customization.

Reference

For full CLI documentation: references/cli-reference.md

版本历史

共 1 个版本

  • v0.1.1 当前
    2026-03-29 05:22 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Crunch Compete

philippwassibauer
用于参与 Crunch 竞赛——设置工作区、探索快速启动项目、本地测试解决方案或提交作品。
★ 2 📥 1,060
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 671 📥 324,378
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,826