bankofai-guide
Onboarding guide for BofAI skills — handles post-install setup, AgentWallet creation, and wallet guard when no wallet is configured.
适合你,如果刚安装 BofAI 技能,需要设置 AgentWallet 并启用保护。
npx oh-my-skill add bofai/skills/bankofai-guidecurl -fsSL https://oh-my-skill.com/install.sh | bash -s -- bofai/skills/bankofai-guidenpx oh-my-skill verify bofai/skills/bankofai-guide怎么用
商店整理自技能原文 · 版本 39919d1 · 表述以原文为准装上后,Claude会在你安装新技能时引导创建AgentWallet钱包;在其他技能需要链上操作但未配置钱包时,先提示创建钱包。
安装新技能(如运行npx skills add后)、主动要求创建钱包,或进行转账、交易等需要钱包的操作时触发。
技能原文 SKILL.md
BankOfAI Guide Skill
This skill handles three onboarding flows. Jump directly to the relevant section based on context.
Section A — Post-Install Onboarding (Flow 1)
Trigger: User message mentions bankofai-guide onboarding, post-install setup, or equivalent request after running npx skills add BofAI/skills.
Steps:
- Announce that skills installation is complete.
- Run
npm install -g @bankofai/agent-walletto install the Agent Wallet CLI. - Run
agent-wallet listsilently to check wallet state. - Inform the user that a wallet is needed for transfers and trading, and ask whether they want to set one up now or later.
- User confirms → proceed to Section B.
- User skips → acknowledge and end.
Section B — Wallet Creation / Display (Flow 2)
Trigger: User requests to create an AgentWallet, jumped from Section A, or jumped from Section C.
Steps:
- Run
agent-wallet list.
If wallets already exist
- Run
agent-wallet resolve-address(omit wallet-id to use active wallet) to get EVM + TRON addresses. - Display both addresses clearly.
- Ask the user whether they already have balance or need to deposit first:
- No balance / unsure → guide the user to deposit USDT (TRC20) to the displayed address, and let them know they can come back for transfers or swaps after depositing.
- Has balance → let the user know they can transfer tokens or swap on SunSwap, and ask what they want to do.
If no wallets exist
Present two options:
- Quick setup (strongly recommended): fully automated, takes about 10 seconds
- Detailed setup: step-by-step configuration (wallet type selection, custom password, etc.)
Quick setup path
- Locate the
agent-walletskill directory (the folder containing theagent-walletSKILL.md), then runnode <agent-wallet-skill-dir>/scripts/generate-password.jsand capture the output as<generated-password>. - Run: ```bash agent-wallet start local_secure --override --save-runtime-secrets -g -w default_local_secure -p '<generated-password>' ```
- Run
agent-wallet resolve-address default_local_secure -p '<generated-password>'to get the addresses. - Display EVM and TRON addresses clearly. Note that the EVM address works across all EVM-compatible chains (Ethereum, BSC, Base, Polygon, Arbitrum, etc.).
- Show the generated password to the user. Explain that this password encrypts the wallet's private key stored locally — it is required to sign transactions, resolve addresses, or perform any wallet operation. Inform them that the password has been auto-saved to
~/.agent-wallet/runtime_secrets.jsonfor convenience, but they should also memorize or securely store the password — if runtime secrets are deleted, the password is the only way to restore access to the wallet. - Guide the user to deposit USDT (TRC20) to the displayed address, and let them know they can come back for transfers or swaps after depositing.
Detailed setup path
Hand off to the agent-wallet skill and follow its full 4-step workflow (list → choose wallet type → collect options → execute).
Section C — Wallet Guard (Flow 3)
Purpose: Called by other signing skills before any on-chain operation. Do not trigger this section for read-only queries.
Steps:
- Run
agent-wallet list. - Wallets exist → return control to the calling skill and continue the original operation.
- No wallets → inform the user that this operation requires a wallet and it only takes a minute or two to set up. Ask if they want to create one now.
- User confirms → proceed to Section B.
- User declines → acknowledge and stop the original operation.