defi

Automate token swaps, pool queries, and lending on Stacks via CLI.

9|43|Updated Feb 19, 2026
One-click install
npx skills add https://github.com/aibtcdev/skills --skill defi-aibtcdev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: defi
Source: https://github.com/aibtcdev/skills/tree/main/defi
Command: npx skills add https://github.com/aibtcdev/skills --skill defi-aibtcdev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires commander.

What problem does it solve?

Streamlines DeFi workflows on the Stacks blockchain by enabling token swaps, liquidity pool inquiries, and lending operations via a single CLI.

Core Features & Use Cases

  • ALEX DEX token swaps and pool queries for quick pricing, routing, and execution.
  • Zest Protocol lending — supply, borrow, repay, withdraw, and rewards management.
  • Mainnet-only operations with wallet context requirements for write actions.

Quick Start

Request a swap quote or perform a swap by supplying tokenX, tokenY, and amount via bun run defi/defi.ts.

Frequently Asked Questions about defi

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate token swaps and lending operations on the Stacks blockchain?

You can automate DeFi operations on Stacks by using this Skill to execute token swaps, query liquidity pools, and manage lending positions via a single CLI, producing JSON-formatted output.

Can I supply and borrow assets through Zest Protocol using a command line interface?

Yes, you can manage Zest Protocol lending operations directly from the CLI, allowing you to supply, borrow, repay, withdraw, and handle rewards on the Stacks mainnet.

Does executing ALEX DEX token swaps require an unlocked Stacks wallet?

Yes, executing ALEX DEX token swaps requires an unlocked wallet for write actions, while simply querying pool data and pricing only requires basic wallet context for reads.

What format should I use for token identifiers when requesting a swap quote?

You can provide token identifiers as either contract IDs or standard symbols when requesting swap quotes and executing operations, which the CLI processes to return JSON-formatted results.

Are ALEX DEX and Zest Protocol operations supported on the Stacks testnet?

No, this Skill targets mainnet-only scenarios for both ALEX DEX and Zest Protocol operations, meaning testnet environments are not supported for executing swaps or lending actions.