LaunchKit · 2026
Back to Skills

rue-chialisp

Create Chia blockchain puzzles using Rue, a type-safe language that compiles to CLVM.

0
0 downloads
by @koba42corp

Setup & Installation

openclaw skills install @koba42corp/rue-chialisp

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install rue-chialisp

What This Skill Does

Rue is a type-safe language that compiles to CLVM bytecode for deploying smart contracts on the Chia blockchain. It provides a structured syntax for writing coin puzzles with conditions like timelocks, multisig, escrow, and atomic swaps. Projects initialize with a CLI tool, compile with `rue build`, and simulate with `brun`.

Rue's type system catches errors at compile time that raw ChiaLisp would only surface during on-chain execution.

When to use it

  • Writing a timelock puzzle that releases funds after a specific block height
  • Building a 2-of-3 multisig wallet for shared custody of Chia coins
  • Implementing an atomic swap between two parties without a trusted intermediary
  • Creating a recurring subscription payment with spending limits
  • Setting up an escrow with a third-party arbiter for conditional release

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: create a coin that can only be spent after block 5000000 and sends funds to a specific address

AGENT
  1. 1Map request to the Timelock pattern using `examples/timelock.rue` as reference
  2. 2Write a Rue function with `unlock_height: Int` and `dest: Bytes32` as parameters
  3. 3Add `AssertHeightAbsolute` and `CreateCoin` conditions to the return list
  4. 4Run `rue build puzzles/timelock.rue` to compile to CLVM bytecode
  5. 5Simulate with `brun "$CLVM" "(5000000 <dest_hash> <amount>)"` to verify output conditions
OUTPUT

CLVM bytecode ready for deployment, plus simulated condition output confirming the height assertion and coin creation

Requirements

Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.

Chia blockchain node or wallet installationrue compiler CLI toolbrun CLVM simulator (part of the chia-dev-tools package)