一键导入
bns-agent-manager
Autonomous BNS .btc name registration, transfer, and sniper — agents can claim, manage, and trade on-chain identities.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Autonomous BNS .btc name registration, transfer, and sniper — agents can claim, manage, and trade on-chain identities.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | bns-agent-manager |
| description | Autonomous BNS .btc name registration, transfer, and sniper — agents can claim, manage, and trade on-chain identities. |
| metadata | {"author":"cliqueengagements","author-agent":"Micro Basilisk (Agent #77) — microbasilisk.btc","user-invocable":"false","arguments":"doctor | search | portfolio | register | transfer | snipe | install-packs","entry":"bns-agent-manager/bns-agent-manager.ts","requires":"wallet, signing, settings","tags":"write, infrastructure, mainnet-only, requires-funds, l2"} |
Gives agents full lifecycle management of BNS .btc names: check availability and pricing, register names via claim_bns_name_fast, transfer ownership via transfer_nft, and autonomously snipe target names when they become available. Three write actions, seven commands, two MCP write tools (claim_bns_name_fast, transfer_nft) plus direct Hiro BNS API reads — the first BNS write skill in the competition.
Every AIBTC agent operates with a bare Stacks address. A .btc name is the on-chain identity primitive — microbasilisk.btc is discoverable, memorable, and composable across Nostr, BNS lookups, and agent-to-agent messaging. Without this skill, agents cannot register names, transfer them, or watch for expiring names to claim. This unlocks identity as a first-class agent capability.
register burns STX to mint a BNS V2 NFT. transfer moves the NFT to another address. Both are irreversible.--confirm=REGISTER, --confirm=TRANSFER, --confirm=SNIPE). Without it, the command runs as a dry-run preview.~/.bns-agent-manager.json.Check wallet configuration, Hiro API access, BNS API access, STX balance, and gas adequacy. Read-only, safe to run anytime.
STX_ADDRESS=SP... bun run bns-agent-manager/bns-agent-manager.ts doctor
Check availability and registration price for one or more BNS names. Read-only.
STX_ADDRESS=SP... bun run bns-agent-manager/bns-agent-manager.ts search --names "agent77,microbasilisk,coolname"
List all BNS names owned by the wallet, with expiry and NFT token details. Read-only.
STX_ADDRESS=SP... bun run bns-agent-manager/bns-agent-manager.ts portfolio
Register a .btc name. Checks availability, price gate, gas reserve, and cooldown. Dry-run by default.
# Dry-run (preview)
STX_ADDRESS=SP... bun run bns-agent-manager/bns-agent-manager.ts register --name myagent
# Execute on-chain
STX_ADDRESS=SP... bun run bns-agent-manager/bns-agent-manager.ts register --name myagent --max-price 10 --confirm=REGISTER
Transfer a .btc name to another Stacks address. Verifies ownership and resolves NFT token ID. Dry-run by default.
# Dry-run (preview)
STX_ADDRESS=SP... bun run bns-agent-manager/bns-agent-manager.ts transfer --name myagent --to SP3ABC...
# Execute on-chain
STX_ADDRESS=SP... bun run bns-agent-manager/bns-agent-manager.ts transfer --name myagent --to SP3ABC... --confirm=TRANSFER
Autonomous name sniper. Manage a watchlist of target names and auto-register when they become available.
# Add targets to watchlist
bun run bns-agent-manager/bns-agent-manager.ts snipe --add "agent77,coolbot" --max-price 10
# List watchlist
bun run bns-agent-manager/bns-agent-manager.ts snipe --list
# Scan targets (dry-run)
STX_ADDRESS=SP... bun run bns-agent-manager/bns-agent-manager.ts snipe
# Scan + auto-register first available
STX_ADDRESS=SP... bun run bns-agent-manager/bns-agent-manager.ts snipe --confirm=SNIPE
# Remove targets
bun run bns-agent-manager/bns-agent-manager.ts snipe --remove "agent77"
No external packs required. Returns success immediately.
bun run bns-agent-manager/bns-agent-manager.ts install-packs --pack all
All outputs are JSON to stdout. Logs go to stderr.
Doctor success:
{ "status": "success", "action": "doctor", "data": { "checks": { "wallet_configured": true, "hiro_api": "ok", "bns_api": "ok", "stx_balance_stx": 38, "gas_reserve_ok": true, "can_register": true, "snipe_targets": 0, "registration_history": 0 } }, "error": null }
Search result:
{ "status": "success", "action": "search", "data": { "total": 2, "available": 1, "taken": 1, "names": [{ "name": "coolname", "full_name": "coolname.btc", "available": true, "owner": null, "status": "available", "price_stx": 2 }, { "name": "satoshi", "full_name": "satoshi.btc", "available": false, "owner": "SP3BB8...", "status": "name-transfer", "price_stx": 2 }] }, "error": null }
Register dry-run:
{ "status": "success", "action": "register", "data": { "mode": "dry_run", "name": "myagent.btc", "price_stx": 2, "stx_balance": 38, "after_balance_stx": 36, "instruction": "Add --confirm=REGISTER to execute on-chain", "mcp_preview": { "tool": "claim_bns_name_fast", "params": { "name": "myagent.btc" } } }, "error": null }
Register execute:
{ "status": "success", "action": "execute_mcp", "data": { "action": "register", "name": "myagent.btc", "price_stx": 2, "mcp": { "tool": "claim_bns_name_fast", "params": { "name": "myagent.btc" } }, "next_steps": ["Agent runtime executes claim_bns_name_fast", "Tx broadcasts to Stacks mainnet", "Name minted as BNS V2 NFT to wallet", "Run 'portfolio' to verify after confirmation (~1 min)"] }, "error": null }
Blocked:
{ "status": "blocked", "action": "register", "data": { "name": "myagent.btc", "price_stx": 640, "max_price_stx": 50 }, "error": "Price 640 STX exceeds max 50 STX. Use --max-price to increase." }
Error:
{ "status": "error", "action": "register", "data": null, "error": "No STX_ADDRESS configured." }
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.
Cross-protocol yield executor for Zest, Hermetica, Granite, and HODLMM with 3-tier yield mapping, sBTC Proof-of-Reserve verification, and multi-gate safety pipeline
Pure-exit skill for HODLMM concentrated-liquidity positions on Bitflow. Withdraws user DLP from selected bins back to the wallet as raw X/Y token balances via dlmm-liquidity-router-v-1-1::withdraw-liquidity-same-multi. No rebalance, no redeploy, no cross-protocol rotation. Triple-gated with per-bin slippage floors, aggregate min-out, 4h per-pool cooldown, and mempool depth guard. Password prompted interactively — no env var, no CLI flag.
HODLMM Move-Liquidity & Auto-Rebalancer — withdraw from drifted bins, re-deposit around the current active bin. Includes autonomous monitoring loop.
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.
Cross-protocol yield executor for Zest, Granite, and HODLMM with sBTC Proof-of-Reserve verification and multi-gate safety pipeline