rue-chialisp
Create Chia blockchain puzzles using Rue, a type-safe language that compiles to CLVM. Use for smart contract development, custom puzzle creation, or when user says "create a coin that...", "build a puzzle", "chialisp", "rue", "timelock", "multisig", "escrow", "atomic swap", or describes coin spending conditions.
Why use this skill?
Build type-safe Chia smart contracts with the Rue-Chialisp skill. Automate multisig, timelocks, and atomic swaps on the Chia blockchain.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/koba42corp/rue-chialispWhat This Skill Does
The rue-chialisp skill is a powerful development tool for the Chia blockchain that allows users to write smart contracts using Rue, a type-safe, high-level language designed for the CLVM (Chia Lisp Virtual Machine). Unlike raw Chialisp, which can be verbose and difficult to debug, Rue provides familiar procedural syntax, strong typing, and compiler-level optimizations. This agent skill enables users to define complex spending conditions, timelocks, multisig configurations, and atomic swaps through natural language interactions. The agent automates the process of scaffolding, compiling, and validating your smart contracts into CLVM bytecode, ready for on-chain deployment on the Chia network.
Installation
To integrate this skill into your environment, use the command: clawhub install openclaw/skills/skills/koba42corp/rue-chialisp. Once installed, ensure your development environment is ready by running scripts/rue-check.sh to verify your dependencies. Initialize your workspace with scripts/rue-init.sh my-project to set up the necessary boilerplate for your specific use case.
Use Cases
This skill is indispensable for building secure and scalable DeFi applications on Chia. Common use cases include:
- Vaults and Timelocks: Restricting coin expenditure until a specific block height is reached.
- Multi-Party Security: Creating multi-signature wallets requiring M-of-N consensus.
- Atomic Swaps: Facilitating trustless asset exchanges between two parties.
- Subscription Services: Automating recurring payments with conditional logic.
- Escrow Contracts: Holding funds until an arbiter validates a transaction.
Example Prompts
- "Create a coin that acts as an escrow for 50 XCH, requiring a signature from my arbiter key and a release date after block 4,000,000."
- "Build a 2-of-3 multisig puzzle where any two of my three provided public keys can authorize a transfer."
- "Write a timelocked contract that burns 10% of the coin amount if spent before a specific height, otherwise allows full withdrawal to my address."
Tips & Limitations
- Types and Safety: Always utilize Rue's type-checking to prevent runtime errors in CLVM. Stick to the predefined types like
Bytes32andPublicKeyto avoid compilation failures. - Debugging: Use
brunto simulate execution against specific arguments before deploying on-chain. - Limitations: While Rue simplifies development, always perform a security audit on your generated CLVM bytecode before deploying high-value assets. Complex recursive puzzles may hit cost limits; aim for modular, lean code structures.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-koba42corp-rue-chialisp": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read, code-execution
Related Skills
imsg-autoresponder
Monitor iMessage/SMS conversations and auto-respond based on configurable rules, AI prompts, and rate-limiting conditions. Use when you need to automatically reply to specific contacts with AI-generated responses based on conversation context. Also use when the user asks to manage auto-responder settings, contacts, prompts, or view status/history.
vinculum
Shared consciousness between Clawdbot instances. Links multiple bots into a collective, sharing memories, activities, and decisions in real-time over local network using Gun.js P2P sync.
sage-wallet
Interact with the Sage Chia blockchain wallet via RPC. Use for XCH transactions, CAT tokens, NFTs, DIDs, offers, options, coin management, and wallet configuration. Supports cross-platform setups (Mac/Linux/Windows) with configurable RPC endpoints and SSL certificates. Invoke with /sage commands or natural language like "send XCH", "check my NFTs", "create an offer", "mint a CAT token".
Dexie
Skill by koba42corp
go4me
Send XCH to Twitter users via Go4Me address lookup. Use when sending Chia (XCH) to someone by their Twitter handle, looking up a Twitter user's XCH address, or tipping someone on Go4Me. Triggers on "send XCH to @user", "tip @user", "lookup @user on go4me", "what's @user's XCH address".