Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计通过

hodlmm-bin-guardian霍德姆·本·守护者

Agent Skill

hodlmm-bin-guardian 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

514

周安装

21

GitHub Stars

5

下载量

166
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:hodlmm-bin-guardian(霍德姆·本·守护者)
来源仓库:https://github.com/aibtcdev/skills
仓库路径:skills/hodlmm-bin-guardian
安装命令:
npx skills add https://github.com/aibtcdev/skills --skill hodlmm-bin-guardian
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/aibtcdev/skills --skill hodlmm-bin-guardian

简介

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理。
  • 通过 npx skills add 命令从指定仓库安装并使用。
  • 建议确认权限范围和维护状态,注意是否会触发联网或文件读写操作。
  • hodlmm-bin-guardian 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

HODLMM Bin Guardian

Monitors Bitflow HODLMM (DLMM) bins to keep LP positions in the active earning range.

What it does

Fetches live Bitflow HODLMM pool state, the user's actual LP position bins (via wallet address), and compares the user's bin range against the active bin to determine if the position is earning fees. Volume, TVL, APR, and token prices are sourced directly from Bitflow's HODLMM app API — no external oracles. Slippage is measured as the deviation between the HODLMM active-bin price and Bitflow's own reported token price. Also checks estimated gas cost and cooldown before recommending REBALANCE.

Why agents need it

HODLMM positions stop earning fees the moment the market price moves outside the deposited bin range. This skill gives an autonomous agent a reliable, safe-to-run check that surfaces out-of-range positions and flags them for human-approved rebalancing — without ever spending funds autonomously.

Safety notes

  • Read-only. No transactions are submitted.
  • Mainnet-only. Bitflow HODLMM API does not support testnet.
  • Refuses to recommend rebalance if 24h pool volume < $10,000 USD.
  • Refuses to recommend rebalance if slippage > 0.5% (HODLMM bin price vs Bitflow app price).
  • Any actual rebalance (add/withdraw liquidity) requires explicit human approval before execution.
  • All price data sourced from Bitflow APIs only — no external oracles.

Commands

doctor

Checks all data sources: Bitflow HODLMM API, Bitflow Bins API, Bitflow App Pools API, and Hiro Stacks API.

bun run hodlmm-bin-guardian/hodlmm-bin-guardian.ts doctor

install-packs

No additional packs required — uses Bitflow and Hiro public HTTP APIs directly.

bun run hodlmm-bin-guardian/hodlmm-bin-guardian.ts install-packs

run

Checks the LP position in the default sBTC HODLMM pool (dlmm_1) and outputs a recommendation. Pass --wallet to enable the real in-range check against actual position bins.

# Full check with wallet (recommended)
bun run hodlmm-bin-guardian/hodlmm-bin-guardian.ts run --wallet SP1234...
bun run hodlmm-bin-guardian/hodlmm-bin-guardian.ts run --wallet SP1234... --pool-id dlmm_1

# Pool-only check (no position check — in_range will be null)
bun run hodlmm-bin-guardian/hodlmm-bin-guardian.ts run

Live terminal output

doctor (all 4 sources reachable)

{
  "status": "ok",
  "checks": [
    { "name": "Bitflow HODLMM API",      "ok": true, "detail": "8 pools found, dlmm_1 active bin: 504" },
    { "name": "Bitflow Bins API (dlmm_1)", "ok": true, "detail": "active_bin_id=504, 1001 bins" },
    { "name": "Bitflow App Pools API",   "ok": true, "detail": "dlmm_1 TVL: $77,142.99, vol_24h: $126,045, APR: 17.72%" },
    { "name": "Hiro Stacks API (fees)",  "ok": true, "detail": "2 µSTX/byte" }
  ],
  "message": "All data sources reachable. Ready to run."
}

run --wallet (wallet has no dlmm_1 position, slippage gate active)

{
  "status": "success",
  "action": "HOLD — position out of range but rebalance blocked: price slippage 1.86% > 0.5% cap.",
  "data": {
    "in_range": false,
    "active_bin": 504,
    "user_bin_range": null,
    "can_rebalance": false,
    "refusal_reasons": [ "price slippage 1.86% > 0.5% cap" ],
    "slippage_ok": false,
    "slippage_pct": 1.8595,
    "bin_price_raw": 66459654464,
    "pool_price_usd": 66459.65,
    "market_price_usd": 65246.37,
    "slippage_source": "bitflow-app-price-vs-hodlmm-active-bin",
    "gas_ok": true,
    "gas_estimated_stx": 0.0144,
    "cooldown_ok": true,
    "cooldown_remaining_h": 0,
    "last_rebalance_at": null,
    "volume_ok": true,
    "volume_24h_usd": 126045,
    "liquidity_usd": 77143,
    "apr_24h_pct": 17.72,
    "pool_id": "dlmm_1",
    "pool_name": "sBTC-USDCx-LP",
    "fee_bps": 30,
    "position_note": "No position found for SP219TWC8G12CSX5AB093127NC82KYQWEH8ADD1AY in pool dlmm_1."
  },
  "error": null
}

run --wallet (active position in range, all gates pass)

{
  "status": "success",
  "action": "HOLD — position in range at active bin 504. APR (24h): 17.72%.",
  "data": {
    "in_range": true,
    "active_bin": 504,
    "user_bin_range": { "min": 500, "max": 508, "count": 3, "bins": [500, 504, 508] },
    "can_rebalance": true,
    "refusal_reasons": null,
    "slippage_ok": true,
    "slippage_pct": 0.04,
    "bin_price_raw": 66459654464,
    "pool_price_usd": 66459.65,
    "market_price_usd": 66433.0,
    "slippage_source": "bitflow-app-price-vs-hodlmm-active-bin",
    "gas_ok": true,
    "gas_estimated_stx": 0.0144,
    "cooldown_ok": true,
    "cooldown_remaining_h": 0,
    "last_rebalance_at": null,
    "volume_ok": true,
    "volume_24h_usd": 126045,
    "liquidity_usd": 77143,
    "apr_24h_pct": 17.72,
    "pool_id": "dlmm_1",
    "pool_name": "sBTC-USDCx-LP",
    "fee_bps": 30
  },
  "error": null
}

Output contract

All outputs are strict JSON to stdout.

FieldTypeDescription
status`"success" \"error"`Overall result
actionstringHOLD, REBALANCE, or CHECK with reason
data.in_range`boolean \null`null if no wallet provided
data.active_binnumberPool's current active bin ID
data.user_bin_range`{min,max,count,bins} \null`User's liquidity bin range
data.can_rebalancebooleanWhether all safety gates pass
data.refusal_reasons`string[] \null`Why REBALANCE is blocked
data.slippage_okbooleanWhether price deviation is within cap
data.slippage_pctnumber`\hodlmm_price − bitflow_price\/ bitflow_price × 100`
data.bin_price_rawnumberRaw active bin price from Bitflow bins API
data.pool_price_usd`number \null`HODLMM derived USD price: (bin_price_raw / 1e8) × 10^(xDec − yDec)
data.market_price_usd`number \null`Bitflow app reported token price in USD
data.slippage_sourcestringPrice source identifier
data.gas_okbooleanWhether estimated gas is within limit
data.gas_estimated_stxnumberEstimated STX for 2-txn rebalance
data.cooldown_okbooleanWhether cooldown has elapsed
data.cooldown_remaining_hnumberHours until next rebalance allowed
data.last_rebalance_at`string \null`ISO timestamp of last recorded rebalance
data.volume_okbooleanWhether 24h volume meets minimum
data.volume_24h_usdnumber24h pool volume in USD
data.liquidity_usdnumberPool TVL in USD
data.apr_24h_pctnumber24h fee APR from Bitflow app API
data.pool_idstringPool identifier
data.pool_namestringHuman-readable pool name
data.fee_bpsnumberPool fee in basis points
data.position_notestring?Present when position state needs explanation

Data sources

SourceDataEndpoint
Bitflow HODLMM APIPool list, active binbff.bitflowapis.finance/api/quotes/v1/pools
Bitflow Bins APIPer-bin prices (raw, for slippage)bff.bitflowapis.finance/api/quotes/v1/bins/{poolId}
Bitflow App Pools APITVL, 24h volume, APR, token prices, decimalsbff.bitflowapis.finance/api/app/v1/pools
Bitflow Position APIUser's position binsbff.bitflowapis.finance/api/app/v1/users/{addr}/positions/{pool}/bins
Hiro Stacks APISTX fee estimateapi.mainnet.hiro.so/v2/fees/transfer

v2 changelog (fixes from day-1 review)

In-range check — was fake, now real

Before: inRange = isFinite(pool.active_bin) && pool.active_bin > 0 — always true.

After: Real HTTP call to GET /api/app/v1/users/{address}/positions/{poolId}/bins. Filters bins where user_liquidity > 0, checks if active_bin_id is in that set.

Slippage — was hardcoded, now live and fully Bitflow-native

Before: Constant value, always passed.

After: (bin_price_raw / 1e8) × 10^(xDec − yDec) vs Bitflow app API token price. No external oracles — all data from Bitflow endpoints.

Gas estimate — was a made-up constant, now live

Before: gas_estimated_stx: 0.006 — hardcoded.

After: Hiro /v2/fees/transfer × 500 bytes × 2 txns × 3× contract multiplier × 1.2 safety buffer.

Cooldown — was not tracked, now persistent

Before: No state file, cooldown always passing.

After: Reads/writes ~/.hodlmm-guardian-state.json. Returns cooldown_remaining_h on each run.

Frontmatter — stale dependency removed

Before: requires: [bitflow] — referenced a non-existent dependency.

After: requires: "" — fully self-contained, all data from public HTTP APIs.

Origin

Winner of AIBTC x Bitflow Skills Pay the Bills competition. Original author: @cliqueengagements Competition PR: https://github.com/BitflowFinance/bff-skills/pull/39

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.17%
按下载量换算57

Claude

29.27%
按下载量换算49

Cursor

18.7%
按下载量换算31

Gemini CLI

9.77%
按下载量换算16

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills