bitflow-hodlmm-zest-yield-loop/SKILL.md
Composes accepted HODLMM primitives with Zest position reads into a checkpointed HODLMM-Zest yield router.
npx skillsauth add aibtcdev/skills bitflow-hodlmm-zest-yield-loopInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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
development
Web of Trust operations for Nostr pubkeys — trust scoring, sybil detection, trust path analysis, neighbor discovery, follow recommendations, and network health. Free tier (wot.klabo.world, 50 req/day) with paid fallback (maximumsats.com, 100 sats via L402). Covers 52K+ pubkeys and 2.4M+ zap-weighted trust edges. Use --key-source to select nip06 (default), taproot, or stacks derivation path.
data-ai
BTC ordinals marketplace operations via Magic Eden — browse active listings, list inscriptions for sale via PSBT flow, submit signed listings, buy inscriptions, and cancel active listings. BTC ordinals only (not Solana). Mainnet-only.
testing
Pay-per-call access to LunarCrush social and market intelligence (Galaxy Score, AltRank, market cap rank, price, 24h change) via x402 on Stacks. USD-pegged pricing recomputed hourly from live STX/USD. Mainnet endpoint live; testnet supported.
devops
Detects HODLMM LP inventory drift (token-ratio imbalance from one-sided swap flow) and restores the target ratio via a corrective Bitflow swap plus a hodlmm-move-liquidity redeploy, gated by the 4h per-pool cooldown.