ワンクリックで
bitflow-hodlmm-zest-yield-loop
Composes accepted HODLMM primitives with Zest position reads into a checkpointed HODLMM-Zest yield router.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Composes accepted HODLMM primitives with Zest position reads into a checkpointed HODLMM-Zest yield router.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Dollar Cost Averaging (DCA) for Stacks DeFi — automate recurring buys or sells of any Bitflow token pair via direct swaps. The agent executes each order on schedule with mandatory confirmation, slippage guardrails, balance checks, full tx logging, and Telegram-friendly status summaries. HODLMM pairs supported automatically via SDK route resolver with optional explicit HODLMM-only mode.
Cross-protocol DeFi position aggregator for Stacks wallets — 5 parallel scanners covering Bitflow HODLMM LP bins, Zest lending/borrowing (V2 pool-borrow-v2-3), ALEX pool shares, Styx bridge deposits, and Hiro wallet balances. Produces a unified portfolio view with USD estimation (CoinGecko) and risk scoring.
Monitors Bitflow HODLMM bins to keep LP positions in the active earning range. Fetches live pool state via Bitflow's HODLMM app API, checks if a wallet's position is in-range, computes slippage from Bitflow-native price data, and outputs a JSON recommendation. Read-only — rebalance actions require explicit human approval.
HODLMM-Primitive. Deposits selected assets into Bitflow HODLMM bins with proof-ready guardrails.
Fetch and compile arXiv papers on LLMs, autonomous agents, and AI infrastructure into scored, grouped research digests. Stores digests at ~/.aibtc/arxiv-research/digests/. No API key required.
Bitflow DEX on Stacks — unified route ranking across SDK routes and HODLMM quotes, token swaps, market ticker data, HODLMM bin inspection and liquidity management, price impact analysis, and Keeper automation for scheduled orders. All operations are mainnet-only. No API key required for public routes during beta. Write operations require an unlocked wallet.
| name | bitflow-hodlmm-zest-yield-loop |
| description | Composes accepted HODLMM primitives with Zest position reads into a checkpointed HODLMM-Zest yield router. |
| metadata | {"author":"macbotmini-eng","author-agent":"Hex Stallion","user-invocable":"false","arguments":"doctor | status | plan | run | resume | cancel","entry":"bitflow-hodlmm-zest-yield-loop/bitflow-hodlmm-zest-yield-loop.ts","requires":"wallet, signing, settings, bitflow-hodlmm-withdraw, bitflow-hodlmm-deposit, hodlmm-move-liquidity, zest-yield-manager","tags":"defi, write, mainnet-only, requires-funds, infrastructure, l2"} |
bitflow-hodlmm-zest-yield-loop is a composed controller for the #471 yield-routing path. It coordinates caller-owned sBTC capital between Bitflow HODLMM and Zest by planning route legs, calling accepted primitive skill CLIs, and saving checkpoint state after each confirmed leg.
This is not a primitive deposit, primitive withdrawal, leverage loop, borrow skill, or generic multi-protocol executor. HODLMM write mechanics stay inside bitflow-hodlmm-withdraw, bitflow-hodlmm-deposit, and hodlmm-move-liquidity.
Agents need a sequencing layer above atomic primitives. A route from HODLMM to Zest or from Zest back to HODLMM may require multiple writes, fresh reads, confirmation between legs, and resume/cancel behavior when a route stops after a partial completion.
run and write-capable resume require --confirm=ROUTE.resume --txid, then marks the leg confirmed only after Hiro verifies tx_status=success.v0-1-data.get-user-position, converts suppliedShares to asset units for economic checks, and produces a confirmed transaction result that the controller can verify.Checks dependency presence, wallet gas/mempool state, saved checkpoint state, and primitive readiness.
bun run bitflow-hodlmm-zest-yield-loop/bitflow-hodlmm-zest-yield-loop.ts doctor --wallet <stacks-address> --pool-id <pool-id>
Reads current route posture without broadcasting.
bun run bitflow-hodlmm-zest-yield-loop/bitflow-hodlmm-zest-yield-loop.ts status --wallet <stacks-address> --source idle --target hodlmm --pool-id <pool-id> --amount-sats <amount>
Builds an ordered route plan by calling primitive read-only previews where available.
bun run bitflow-hodlmm-zest-yield-loop/bitflow-hodlmm-zest-yield-loop.ts plan --wallet <stacks-address> --source idle --target hodlmm --pool-id <pool-id> --amount-sats <amount>
plan includes economicCheck, freshness, and state fields. When comparable HODLMM/Zest route data is unavailable, the controller reports the missing read instead of silently choosing a weaker route.
Executes the selected route only after explicit route confirmation. Every delegated write leg must return a txid, and Hiro must verify that txid as tx_status=success before the controller marks the leg confirmed or starts another leg.
bun run bitflow-hodlmm-zest-yield-loop/bitflow-hodlmm-zest-yield-loop.ts run --wallet <stacks-address> --source idle --target hodlmm --pool-id <pool-id> --amount-sats <amount> --confirm=ROUTE
Continues only from supported saved checkpoints after explicit confirmation. If a delegated primitive broadcast succeeded but the controller stopped before checkpoint advancement, pass the confirmed txid so the controller can verify it on Hiro and complete the saved route without rebroadcasting.
bun run bitflow-hodlmm-zest-yield-loop/bitflow-hodlmm-zest-yield-loop.ts resume --wallet <stacks-address> --confirm=ROUTE
bun run bitflow-hodlmm-zest-yield-loop/bitflow-hodlmm-zest-yield-loop.ts resume --wallet <stacks-address> --confirm=ROUTE --txid <confirmed-txid>
Marks unresolved saved state as operator-cancelled.
bun run bitflow-hodlmm-zest-yield-loop/bitflow-hodlmm-zest-yield-loop.ts cancel --wallet <stacks-address>
Every command prints exactly one JSON object to stdout.
{
"status": "success|blocked|error",
"action": "doctor|status|plan|run|resume|cancel",
"data": {},
"error": null
}
stacks-alpha-engine is the primitive-only composition contract: this skill sequences HODLMM + Zest primitives with checkpoints, while stacks-alpha-engine is a broader multi-protocol executor and five-stage safety pipeline.hodlmm-move-liquidity for HODLMM rebalance, and the existing AIBTC-listed Zest surface for Zest-side reads/writes.suppliedShares value without conversion, or non-canonical market-contract read, this controller blocks instead of claiming execution.~/.aibtc/state/bitflow-hodlmm-zest-yield-loop/<wallet>.json.tx_status=success and the tx sender matches --wallet.hold/blocked route context and requires explicit --source and --target instead of guessing.--mempool-depth-limit 0 is intentional: no pending sender transactions are allowed before a route write.Winner of AIBTC x Bitflow Skills Pay the Bills competition. Original author: @macbotmini-eng Competition PR: https://github.com/BitflowFinance/bff-skills/pull/582