pillar/SKILL.md
Pillar smart wallet operations in two modes — browser-handoff (pillar.ts) opens the Pillar frontend for user signing, and agent-signed direct (pillar-direct.ts) signs locally with a secp256k1 keypair and submits directly to the Pillar API (no browser required, gas sponsored). Supports sBTC send/supply/boost/unwind, DCA programs, stacking, key management, wallet creation, and position queries.
npx skillsauth add aibtcdev/skills pillarInstall 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.
Provides Pillar smart wallet operations in two modes:
bun run pillar/pillar.ts <subcommand> [options]
Connect to your Pillar smart wallet. Opens the Pillar website; if logged in, automatically connects and saves the wallet address locally.
bun run pillar/pillar.ts connect
Disconnect from Pillar. Clears the locally stored wallet session.
bun run pillar/pillar.ts disconnect
Check if connected to Pillar and get the current wallet address.
bun run pillar/pillar.ts status
Send sBTC from your Pillar smart wallet. Opens the frontend for signing, then waits for confirmation.
bun run pillar/pillar.ts send --to <recipient> --amount <sats> [--recipient-type bns|wallet|address]
Options:
--to (required) — Recipient: BNS name, Pillar wallet name, or Stacks address--amount (required) — Amount in satoshis--recipient-type (optional) — bns (default), wallet, or addressFund your Pillar smart wallet via exchange deposit, BTC wallet, or sBTC wallet.
bun run pillar/pillar.ts fund --method exchange|btc|sbtc [--amount <sats>]
Options:
--method (required) — exchange, btc, or sbtc--amount (optional) — Amount in satoshisAdd a backup admin address to your Pillar smart wallet for recovery.
bun run pillar/pillar.ts add-admin [--admin-address <SP...>]
Options:
--admin-address (optional) — Stacks address to add as backup adminEarn yield by supplying sBTC to Zest Protocol. No leverage, no liquidation risk.
bun run pillar/pillar.ts supply [--amount <sats>]
Options:
--amount (optional) — Amount in satoshisConfigure auto-compound for your Pillar wallet.
bun run pillar/pillar.ts auto-compound [--min-sbtc <sats>] [--trigger <sats>]
Options:
--min-sbtc (optional) — Minimum sBTC to keep in wallet (sats)--trigger (optional) — Amount above minimum that triggers auto-compound (sats)Close or reduce your leveraged sBTC position.
bun run pillar/pillar.ts unwind [--percentage <1-100>]
Options:
--percentage (optional) — Percentage of position to unwind (1-100)Create or increase a leveraged sBTC position (up to 1.5x).
bun run pillar/pillar.ts boost [--amount <sats>]
Options:
--amount (optional) — Amount in satoshis to boostView your Pillar wallet balance and Zest position. Opens the position page in the browser.
bun run pillar/pillar.ts position
Create a new Pillar smart wallet. Opens the Pillar website to complete registration.
bun run pillar/pillar.ts create-wallet [--referral <wallet-address>]
Options:
--referral (optional) — Referral wallet addressGet your Pillar referral link to invite friends.
bun run pillar/pillar.ts invite
Invite a DCA partner by email or wallet address.
bun run pillar/pillar.ts dca-invite --partner <email-or-address>
Options:
--partner (required) — Partner's email address or Stacks wallet addressView your DCA partners and weekly status.
bun run pillar/pillar.ts dca-partners
View the DCA streak leaderboard.
bun run pillar/pillar.ts dca-leaderboard
Check your DCA schedule status.
bun run pillar/pillar.ts dca-status
bun run pillar/pillar-direct.ts <subcommand> [options]
All direct operations are mainnet-only. Gas is sponsored by the Pillar backend.
Generate a new secp256k1 signing keypair. Returns the compressed public key.
bun run pillar/pillar-direct.ts key-generate [--smart-wallet <contract-id>]
Options:
--smart-wallet (optional) — Smart wallet contract ID (default: "pending")Unlock a signing key using the auto-derived password.
bun run pillar/pillar-direct.ts key-unlock [--key-id <id>]
Options:
--key-id (optional) — Key ID to unlock (unlocks first stored key if omitted)Lock the signing key, clearing sensitive data from memory.
bun run pillar/pillar-direct.ts key-lock
Show signing key info: pubkey, smart wallet, lock status, and all stored keys.
bun run pillar/pillar-direct.ts key-info
Create or increase a leveraged sBTC position (up to 1.5x). Agent-signed, no browser needed.
bun run pillar/pillar-direct.ts direct-boost --sbtc-amount <sats> --aeusdc-to-borrow <amount> --min-sbtc-from-swap <sats>
Options:
--sbtc-amount (required) — sBTC amount in sats to supply as collateral--aeusdc-to-borrow (required) — aeUSDC amount to borrow (6 decimals)--min-sbtc-from-swap (required) — Min sBTC from swap in sats (slippage protection)Close or reduce your leveraged sBTC position. Agent-signed, no browser needed.
bun run pillar/pillar-direct.ts direct-unwind --sbtc-to-swap <sats> --sbtc-to-withdraw <sats> --min-aeusdc-from-swap <amount>
Options:
--sbtc-to-swap (required) — sBTC to swap to aeUSDC for repayment (sats)--sbtc-to-withdraw (required) — sBTC to withdraw after repayment (sats)--min-aeusdc-from-swap (required) — Min aeUSDC from swap (6 decimals, slippage protection)Earn yield by supplying sBTC to Zest. No leverage, no liquidation risk. Agent-signed.
bun run pillar/pillar-direct.ts direct-supply --sbtc-amount <sats>
Options:
--sbtc-amount (required) — sBTC amount in sats to supplySend sBTC from your Pillar smart wallet. Agent-signed, no browser needed.
bun run pillar/pillar-direct.ts direct-send --to <recipient> --amount <sats> [--recipient-type bns|wallet|address]
Options:
--to (required) — Recipient: BNS name, Pillar wallet name, or Stacks address--amount (required) — Amount in satoshis--recipient-type (optional) — bns (default), wallet, or addressConfigure auto-compound. Agent-signed, no browser needed.
bun run pillar/pillar-direct.ts direct-auto-compound --enabled true|false --min-sbtc <sats> --trigger <sats>
Options:
--enabled (required) — Enable (true) or disable (false) auto-compound--min-sbtc (required) — Minimum sBTC to keep in wallet (sats)--trigger (required) — Amount above minimum that triggers auto-compound (sats)View your Pillar smart wallet balances and Zest position. No signing needed.
bun run pillar/pillar-direct.ts direct-position
Withdraw sBTC collateral from Zest. Agent-signed, no browser needed.
bun run pillar/pillar-direct.ts direct-withdraw-collateral --sbtc-amount <sats>
Options:
--sbtc-amount (required) — sBTC amount in sats to withdrawAdd a backup admin address. Agent-signed, no browser needed.
bun run pillar/pillar-direct.ts direct-add-admin --new-admin <SP...>
Options:
--new-admin (required) — Stacks address to add as backup adminCreate a new Pillar smart wallet for agent direct operations. Generates keypair, unlocks it, and deploys.
bun run pillar/pillar-direct.ts direct-create-wallet --wallet-name <name> [--referred-by <contract-id>]
Options:
--wallet-name (required) — Wallet name (3-20 chars, lowercase letters, numbers, hyphens)--referred-by (optional) — Contract address of referring walletInvite a DCA partner. Uses wallet address from signing key session.
bun run pillar/pillar-direct.ts direct-dca-invite --partner <email-or-address>
Options:
--partner (required) — Partner's email or Stacks wallet addressView your DCA partners and weekly status.
bun run pillar/pillar-direct.ts direct-dca-partners
View the DCA streak leaderboard.
bun run pillar/pillar-direct.ts direct-dca-leaderboard
Check your DCA schedule status.
bun run pillar/pillar-direct.ts direct-dca-status
Get a boost quote (leverage, LTV, swap details) before executing.
bun run pillar/pillar-direct.ts direct-quote --sbtc-amount <sats>
Options:
--sbtc-amount (required) — sBTC amount in sats to boostResolve a recipient (BNS name, wallet name, or address) before sending.
bun run pillar/pillar-direct.ts direct-resolve-recipient --to <recipient> [--recipient-type bns|wallet|address]
Options:
--to (required) — Recipient to resolve--recipient-type (optional) — bns (default), wallet, or addressStack STX via Fast Pool or Stacking DAO. Agent-signed, no browser needed.
bun run pillar/pillar-direct.ts direct-stack-stx --stx-amount <microStx> --pool fast-pool|stacking-dao
Options:
--stx-amount (required) — Amount of STX in micro-STX (1 STX = 1,000,000)--pool (required) — fast-pool or stacking-daoRevoke Fast Pool STX delegation. Agent-signed, no browser needed.
bun run pillar/pillar-direct.ts direct-revoke-fast-pool
Check stacking status. No signing needed — reads on-chain data.
bun run pillar/pillar-direct.ts direct-stacking-status
pillar.ts connect firstdirect-create-wallet to create one or key-generate for an existing walletPILLAR_POLL_TIMEOUT_MS env var)~/.aibtc/pillar-session.json; signing keys at ~/.aibtc/signing-keys/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.