DeFi Skills for Openclaw

A stateless engine that converts natural language DeFi intents into deterministic, unsigned Ethereum transactions across major protocols.

billa05
v1.0.0
Apr 3, 2026
1
261
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install ddefii

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install ddefii using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is DeFi Skills?

DeFi Skills acts as a bridge between high-level user intents and low-level Ethereum calldata. As a component within the ecosystem of Openclaw Skills, it provides a deterministic PlaybookEngine that handles the complexities of ABI encoding, token address resolution, and unit conversion. The tool is designed to be stateless and safe, generating unsigned transactions for protocols like Aave, Uniswap, and Lido without ever touching private keys.

By leveraging this skill, developers can enable AI agents to plan and execute sophisticated financial workflows. Whether it is staking assets, managing liquidity, or interacting with yield protocols like Pendle and EigenLayer, the skill ensures that transactions are built correctly according to protocol-specific rules on the Ethereum mainnet.

DeFi Skills Use Cases

  • Transferring ETH, ERC-20, or ERC-721 tokens via natural language commands.
  • Supplying collateral and borrowing assets on Aave V3 or Compound V3.
  • Staking ETH through Lido or Rocket Pool and managing stETH/wstETH transformations.
  • Providing and removing liquidity on Uniswap V3, Curve, and Balancer V2 pools.
  • Managing complex restaking positions and delegations on the EigenLayer protocol.

How DeFi Skills Works

  1. The agent analyzes user intent to map it to one of the supported protocol actions like aave_supply or lido_stake.
  2. The CLI is queried for action metadata to verify required and optional parameters and valid token types.
  3. The system resolves ENS names or token symbols into standard Ethereum hex addresses using provided API keys.
  4. The deterministic engine builds the transaction, producing an ordered array of unsigned transactions (approvals and actions).
  5. The agent validates the JSON response and presents the raw transaction data to the user for final signing and broadcasting.

DeFi Skills Setup

To integrate this into your environment, install the package and configure your wallet address. Note that this tool is optimized for use within Openclaw Skills environments.

pip install defi-skills --extra-index-url https://nethermind.jfrog.io/artifactory/api/pypi/kyoto-pypi-local-prod/simple
defi-skills config set-wallet "$YOUR_WALLET_ADDRESS"

For actions requiring on-chain data (like ENS resolution or swap quotes), set your Alchemy API key:

defi-skills config set alchemy_api_key "<YOUR_ALCHEMY_KEY>"

DeFi Skills Data Schema & Taxonomy

The skill utilizes a structured JSON format for both input parameters and output transactions. This ensures compatibility with common AI agent workflows.

Field Type Description
success boolean Indicates if the transaction build was successful
transactions array An ordered list of objects containing approval and action data
transactions.raw_tx object The actual transaction data including chain_id, to, value, and data
error string Provided only if success is false, explaining the failure reason

DeFi Skills Advanced Features

  • Multi-step workflow planning for predictable outcomes like stake-then-deposit sequences.
  • Comprehensive support for over 15 major DeFi protocols with deterministic execution paths.
  • Built-in logic for handling USDT reset-to-zero approval requirements automatically.
  • Automated token address resolution and base unit conversion for precision financial operations.
  • Seamless integration for developers building sophisticated agents with Openclaw Skills.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*