bankofai-guide
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseBankOfAI Guide Skill
BankOfAI 指南技能
This skill handles three onboarding flows. Jump directly to the relevant section based on context.
本技能负责处理三个入门流程,你可以根据上下文直接跳转到对应章节。
Section A — Post-Install Onboarding (Flow 1)
章节A — 安装后入门(流程1)
Trigger: User message mentions onboarding, post-install setup, or equivalent request after running .
bankofai-guidenpx skills add BofAI/skillsSteps:
- Announce that skills installation is complete.
- Run to install the Agent Wallet CLI.
npm install -g @bankofai/agent-wallet - Run silently to check wallet state.
agent-wallet list - 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.
触发条件: 用户消息提到入门、安装后设置,或在运行后提出的等价请求。
bankofai-guidenpx skills add BofAI/skills步骤:
- 告知用户技能安装已完成。
- 运行安装Agent Wallet CLI。
npm install -g @bankofai/agent-wallet - 静默运行检查钱包状态。
agent-wallet list - 告知用户转账和交易需要使用钱包,询问用户是现在设置还是稍后设置。
- 用户确认 → 跳转至章节B。
- 用户跳过 → 告知已收到选择,结束流程。
Section B — Wallet Creation / Display (Flow 2)
章节B — 钱包创建/展示(流程2)
Trigger: User requests to create an AgentWallet, jumped from Section A, or jumped from Section C.
Steps:
- Run .
agent-wallet list
触发条件: 用户请求创建AgentWallet、从章节A跳转,或从章节C跳转。
步骤:
- 运行。
agent-wallet list
If wallets already exist
若已存在钱包
- Run (omit wallet-id to use active wallet) to get EVM + TRON addresses.
agent-wallet resolve-address - 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.
- 运行(省略钱包ID以使用活跃钱包)获取EVM + TRON地址。
agent-wallet resolve-address - 清晰展示两个地址。
- 询问用户是否已有余额或需要先充值:
- 无余额/不确定 → 引导用户将USDT(TRC20)充值到展示的地址,告知用户充值后可返回进行转账或兑换操作。
- 已有余额 → 告知用户可以进行代币转账或在SunSwap兑换,询问用户想要执行什么操作。
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.)
提供两个选项:
- 快速设置(强烈推荐):完全自动化,耗时约10秒
- 详细设置:分步配置(选择钱包类型、自定义密码等)
Quick setup path
快速设置路径
- Locate the skill directory (the folder containing the
agent-walletSKILL.md), then runagent-walletand capture the output asnode <agent-wallet-skill-dir>/scripts/generate-password.js.<generated-password> - Run:
bash
agent-wallet start local_secure --override --save-runtime-secrets -g -w default_local_secure -p '<generated-password>' - Run to get the addresses.
agent-wallet resolve-address default_local_secure -p '<generated-password>' - 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 for 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.
~/.agent-wallet/runtime_secrets.json - 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.
- 找到技能目录(包含
agent-wallet的SKILL.md文件的文件夹),运行agent-wallet,将输出内容保存为node <agent-wallet-skill-dir>/scripts/generate-password.js。<generated-password> - 运行:
bash
agent-wallet start local_secure --override --save-runtime-secrets -g -w default_local_secure -p '<generated-password>' - 运行获取地址。
agent-wallet resolve-address default_local_secure -p '<generated-password>' - 清晰展示EVM和TRON地址,说明EVM地址适用于所有EVM兼容链(Ethereum、BSC、Base、Polygon、Arbitrum等)。
- 向用户展示生成的密码,解释该密码用于加密存储在本地的钱包私钥——签署交易、解析地址或执行任何钱包操作都需要用到该密码。告知用户为了方便使用,密码已自动保存到,但用户也应牢记或安全存储该密码——如果运行时机密被删除,密码是恢复钱包访问权限的唯一方式。
~/.agent-wallet/runtime_secrets.json - 引导用户将USDT(TRC20)充值到展示的地址,告知用户充值后可返回进行转账或兑换操作。
Detailed setup path
详细设置路径
Hand off to the skill and follow its full 4-step workflow (list → choose wallet type → collect options → execute).
agent-wallet跳转至技能,遵循其完整的4步工作流程(列出选项→选择钱包类型→收集配置项→执行)。
agent-walletSection C — Wallet Guard (Flow 3)
章节C — 钱包防护(流程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.
用途: 其他签名类技能在执行任何链上操作前调用,只读查询请勿触发本章节流程。
步骤:
- 运行。
agent-wallet list - 存在钱包 → 将控制权交还给调用的技能,继续执行原有操作。
- 无钱包 → 告知用户该操作需要钱包,设置仅需1-2分钟,询问用户是否现在创建。
- 用户确认 → 跳转至章节B。
- 用户拒绝 → 告知已收到选择,停止原有操作。