smart-yield-migrator

Automate capital migration between Stacks DeFi protocols using APY and gas price data.

2|1|Updated Mar 30, 2026
One-click install
npx skills add https://github.com/cliqueengagements/30-Days-AI-Challenge --skill smart-yield-migrator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: smart-yield-migrator
Source: https://github.com/cliqueengagements/30-Days-AI-Challenge/tree/main/day-2-smart-yield-migrator
Command: npx skills add https://github.com/cliqueengagements/30-Days-AI-Challenge --skill smart-yield-migrator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires axios, json-parse-better-errors, yargs, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenges of maximizing yield while minimizing gas costs for DeFi capital migrations across various Stacks protocols.

Core Features & Use Cases

  • Live APY Scanning: Compares APYs from Bitflow HODLMM, Zest, ALEX, and PoX, ensuring real-time data for accurate comparisons.
  • Gas Cost Estimation: Calculates the actual gas cost for migrations to avoid unnecessary fees.
  • Profit Gate: Applies a strict yield-to-gas ratio to ensure that migrations only occur when profitable.
  • Use Case: For example, if you have 1 sBTC in the Zest protocol, this Skill can analyze if moving it to the Bitflow HODLMM protocol is profitable after considering gas costs and potential yield improvements.

Quick Start

Analyze the potential migration for 1 sBTC from Zest to HODLMM using the 'smart-yield-migrator' skill.

Frequently Asked Questions about smart-yield-migrator

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

FAQPage Schema
How do I optimize yield when migrating capital between Stacks DeFi protocols?

To optimize yield during Stacks DeFi migrations, automate capital reallocation by scanning live APYs from protocols like Bitflow HODLMM, Zest, ALEX, and PoX. This process compares real-time rates to identify the most profitable destination for your assets.

What is the best way to calculate gas costs for cross-protocol DeFi migrations?

Calculating gas costs for DeFi migrations requires estimating actual network fees before executing transactions. The process evaluates real-time gas price data alongside potential yield improvements to ensure capital moves only when profitable.

How does a profit gate work for yield optimization in DeFi?

A profit gate for yield optimization applies a strict yield-to-gas ratio to cross-protocol migrations. This mechanism ensures capital allocation only occurs when the yield improvement significantly outweighs the calculated network fees.

Can I analyze if moving sBTC from Zest to Bitflow HODLMM is profitable after gas fees?

Yes, you can analyze sBTC migrations from Zest to Bitflow HODLMM by comparing live APY data and estimating actual gas costs. This analysis applies a profit gate to verify if the yield improvement justifies the transaction fees.

When should I not use automated capital allocation for DeFi yield optimization?

You should avoid automated capital allocation when network gas prices are exceptionally high or when the yield-to-gas ratio falls below the profitable threshold. In these cases, migration costs will erode potential yield improvements.