Genlayer Dev
Skill by acastellana
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/acastellana/genlayer-devWhat This Skill Does
The Genlayer Dev skill provides an integrated environment for building, testing, and managing Intelligent Contracts on the GenLayer blockchain. Unlike standard smart contracts, GenLayer contracts utilize Python to interact with Large Language Models (LLMs) and external web APIs while ensuring deterministic consensus through equivalence principles. This skill handles the complexity of the GenVM environment, offering developers a streamlined path to write contract logic, manage state with typed attributes, and execute non-deterministic operations securely.
Installation
To begin building Intelligent Contracts, ensure you have the OpenClaw environment configured, then execute the following command in your terminal:
clawhub install openclaw/skills/skills/acastellana/genlayer-dev
Once installed, you can trigger the skill by referencing GenLayer concepts or requesting specific contract scaffolding.
Use Cases
This skill is designed for advanced blockchain development. Key use cases include:
- AI-Driven Governance: Creating contracts that analyze proposal sentiment via LLMs before triggering state changes.
- Oracles & Web Data: Fetching real-time market data or web page content into a blockchain state without central middle-men, using
gl.nondet.web. - Complex Decision Making: Utilizing
gl.eq_principle.strict_eqto ensure that validators reach consensus on non-deterministic outputs from AI models. - Rapid Prototyping: Utilizing the GenLayer SDK reference to quickly iterate on Python-based contract logic that interfaces with GenVM.
Example Prompts
- "Generate a boilerplate GenLayer contract that fetches the current price of a cryptocurrency from a public API using gl.nondet.web."
- "Explain the difference between gl.public.view and gl.public.write in GenLayer and provide an example of how to update a TreeMap state."
- "How do I use gl.eq_principle.strict_eq to ensure my LLM prompt execution is consistent across all validators in the GenVM?"
Tips & Limitations
- Constraints: You can only define ONE
gl.Contractclass per file. - Determinism: Always remember that while you have access to LLMs and the web, the GenVM requires that operations wrapped in
strict_eqyield the same result for all validators. Ensure your prompts are structured to be deterministic when possible. - Version Control: Always include the
# v0.1.0version header and the dependency metadata comment at the top of your files to ensure compatibility with the GenVM runtime.
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-acastellana-genlayer-dev": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, code-execution
Related Skills
Skill Publisher Claw Skill
Skill by acastellana
vpn-rotate-skill
Bypass API rate limits by rotating VPN servers. Works with any OpenVPN-compatible VPN (ProtonVPN, NordVPN, Mullvad, etc.). Automatically rotates to new server every N requests for fresh IPs. Use for high-volume scraping, government APIs, geo-restricted data.
Genlayer
Skill by acastellana
telebiz-mcp
Access Telegram data via MCP using the telebiz-tt browser client. Lists chats, reads messages, searches, manages folders, and sends messages through an authenticated Telegram session.