crunch-coordinate

Use when managing Crunch coordinators, competitions (crunches), rewards, checkpoints, staking, or cruncher accounts via the crunch-cli.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "crunch-coordinate" with this command: npx skills add philippwassibauer/crunch-coordinate

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 <name>crunch-cli crunch get "<name>"
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 <name>crunch-cli crunch checkpoint-get-current "<name>"
create checkpoint <name>crunch-cli crunch checkpoint-create "<name>" prizes.json
deposit reward <name> <amount>crunch-cli crunch deposit-reward "<name>" <amount>
drain <name>crunch-cli crunch drain "<name>"
create/register crunchercrunch-cli cruncher create
register for <name>crunch-cli cruncher register "<name>"
claim rewards <name>crunch-cli cruncher claim "<name>"
show staking positionscrunch-cli staking positions
stake/deposit <amount>crunch-cli staking deposit <amount>
delegate to <coordinator>crunch-cli staking delegate "<coordinator>" <amount>
show staking rewardscrunch-cli staking rewards
claim staking rewardscrunch-cli staking claim
undelegate from <coordinator>crunch-cli staking undelegate "<coordinator>" <amount>
withdraw stake <amount>crunch-cli staking withdraw <amount>
init workspace <name>crunch-cli init-workspace "<name>"
list scenarios/simulationscrunch-cli model list
run simulation <scenario>crunch-cli model run "<scenario>"
register coordinator <name>crunch-cli coordinator register "<name>"
create crunch <name>crunch-cli crunch create "<name>" <amount> [maxModels]
start/end crunch <name>crunch-cli crunch start/end "<name>"

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: <b>bold</b>, 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

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

redmine-tools

Fetch, update, and summarize Redmine issue attachments from CLI.

Registry SourceRecently Updated
Coding

进出口许可文档智能预审系统

进出口许可文档智能预审系统。支持 PDF 和图片处理:自动提取合同号、出口国、进口商、总金额、数量、重量、合格证编号、生产商、报关口岸等字段,检测公章,按审核规则执行审核,生成 MD 和 JSON 审核报告。支持 CLI 和对话交互两种方式触发。

Registry SourceRecently Updated
Coding

Coding Rules

当用户要求生成、修改或审查 Vue3 + TypeScript 子项目代码时触发。 覆盖 kb-pro-table / useTable / useForm 使用规范、arco design + unocss 样式规则、 模块组织与命名规范、枚举与类型约束、ref 优先的响应式规范等。 无论用户是否明确提到"规范...

Registry SourceRecently Updated
Coding

gspread-sheets

Batch read/write Google Sheets using the gspread Python library with service account authentication. Use when the user needs to: (1) read/write/update/clear...

Registry SourceRecently Updated