hodlmm-signal-allocator/SKILL.md
Signal-gated HODLMM yield allocator. Reads aibtc.news signals and Quantum Readiness Index alongside live HODLMM APR to compute a risk-adjusted yield score, then executes a Bitflow swap to prepare wallet for HODLMM deposit when conditions align.
npx skillsauth add aibtcdev/skills hodlmm-signal-allocatorInstall 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.
Reads three live data sources in sequence — the active HODLMM pool's 24h APR, approved signals from the aibtc.news bitcoin-macro beat, and the Bitcoin Developer Quantum Readiness Index — and computes a single risk-adjusted yield score. When that score exceeds the minimum threshold (≥60) and five safety gates pass, it executes a Bitflow swap (STX → sBTC) to align the wallet for optimal HODLMM deposit entry. Every execution is logged with signal IDs, readiness index snapshot, and the Hiro explorer link.
Entering a HODLMM position requires two things most agents handle separately: knowing when macro conditions favor a yield allocation, and having the right token ratio at the active bin. Agents acting on stale or low-quality signals over-allocate to HODLMM during unfavorable windows and under-allocate during yield spikes. This skill closes that gap by gating the swap on verified signal quality and quantum risk — if the intelligence layer is silent or uncertain, the skill does nothing and says why.
No other skill in this registry combines news signal intelligence with Quantum Readiness risk adjustment as a DeFi execution gate.
Five hard-coded gates execute in order before any swap:
signal_score < 60 → status: "blocked". Derived from aibtc.news approved bitcoin-macro signals, 24h window, recency-weighted.(100 - readiness_index) / 100 × 0.2 > 0.15 → status: "blocked". Quantum Power Map must show Readiness Index ≥ 25 before long-duration HODLMM allocation proceeds.--amount-stx hard-coded max: 500 STX. Amounts above this return status: "blocked".status: "blocked".--confirm is required for live execution. Without it, run returns full simulation output with status: "blocked" and reason CONFIRM_REQUIRED. Cooldown: 6 hours between executions, enforced from ~/.hodlmm-signal-allocator-state.json.
| Command | Description |
|---|---|
| doctor | Health check: Bitflow APIs, aibtc.news signals API, Quantum Power Map, BitflowSDK import |
| scan --pool <id> --wallet <addr> | Read HODLMM APR, fetch signal score, compute quantum risk factor, evaluate all gates |
| run --pool <id> --wallet <addr> --amount-stx <n> [--confirm] [--dry-run] | Execute Bitflow swap after all 5 gates pass. --dry-run simulates without broadcasting. |
Pool IDs (from bff.bitflowapis.finance/api/quotes/v1/pools): dlmm_1 (STX-sBTC), dlmm_3 (STX-xBTC). Default: dlmm_1.
All commands emit a single JSON object to stdout:
{
"status": "success | error | blocked",
"action": "Human-readable summary of outcome",
"data": {},
"error": { "code": "ERROR_CODE", "message": "...", "next": "How to resolve" }
}
doctor data fields: { checks: { bitflow_quotes, bitflow_app, aibtc_signals, quantum_map, bitflow_sdk }, degraded: string[] }
scan data fields: { pool_id, pool_apr_24h, adjusted_apr, signal_score, quantum_risk_factor, readiness_index, signals_used: [...], gates: { signal_ok, quantum_ok, cooldown_ok }, recommendation, wallet_stx_balance, wallet_sbtc_balance }
run success data fields: { txId, explorerUrl, amount_in_stx, amount_out_sbtc_estimated, price_impact_pct, signal_score, readiness_index, signal_basis: [...], quantum_risk_factor, adjusted_apr, next_eligible_at }
@bitflowlabs/core-sdk installed (bun install in skill directory)bff.bitflowapis.finance) has a 500 req/min public rate limitdoctor warning but does not block scanWinner of AIBTC x Bitflow Skills Pay the Bills competition. Original author: @IamHarrie-Labs Competition PR: https://github.com/BitflowFinance/bff-skills/pull/203
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.