bankofai-guide

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

BankOfAI 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
bankofai-guide
onboarding, post-install setup, or equivalent request after running
npx skills add BofAI/skills
.
Steps:
  1. Announce that skills installation is complete.
  2. Run
    npm install -g @bankofai/agent-wallet
    to install the Agent Wallet CLI.
  3. Run
    agent-wallet list
    silently to check wallet state.
  4. Inform the user that a wallet is needed for transfers and trading, and ask whether they want to set one up now or later.
  5. User confirms → proceed to Section B.
  6. User skips → acknowledge and end.

触发条件: 用户消息提到
bankofai-guide
入门、安装后设置,或在运行
npx skills add BofAI/skills
后提出的等价请求。
步骤:
  1. 告知用户技能安装已完成。
  2. 运行
    npm install -g @bankofai/agent-wallet
    安装Agent Wallet CLI。
  3. 静默运行
    agent-wallet list
    检查钱包状态。
  4. 告知用户转账和交易需要使用钱包,询问用户是现在设置还是稍后设置。
  5. 用户确认 → 跳转至章节B
  6. 用户跳过 → 告知已收到选择,结束流程。

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:
  1. Run
    agent-wallet list
    .
触发条件: 用户请求创建AgentWallet、从章节A跳转,或从章节C跳转。
步骤:
  1. 运行
    agent-wallet list

If wallets already exist

若已存在钱包

  1. Run
    agent-wallet resolve-address
    (omit wallet-id to use active wallet) to get EVM + TRON addresses.
  2. Display both addresses clearly.
  3. 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.
  1. 运行
    agent-wallet resolve-address
    (省略钱包ID以使用活跃钱包)获取EVM + TRON地址。
  2. 清晰展示两个地址。
  3. 询问用户是否已有余额或需要先充值:
    • 无余额/不确定 → 引导用户将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

快速设置路径

  1. Locate the
    agent-wallet
    skill directory (the folder containing the
    agent-wallet
    SKILL.md), then run
    node <agent-wallet-skill-dir>/scripts/generate-password.js
    and capture the output as
    <generated-password>
    .
  2. Run:
    bash
    agent-wallet start local_secure --override --save-runtime-secrets -g -w default_local_secure -p '<generated-password>'
  3. Run
    agent-wallet resolve-address default_local_secure -p '<generated-password>'
    to get the addresses.
  4. Display EVM and TRON addresses clearly. Note that the EVM address works across all EVM-compatible chains (Ethereum, BSC, Base, Polygon, Arbitrum, etc.).
  5. 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.json
    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.
  6. 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.
  1. 找到
    agent-wallet
    技能目录(包含
    agent-wallet
    的SKILL.md文件的文件夹),运行
    node <agent-wallet-skill-dir>/scripts/generate-password.js
    ,将输出内容保存为
    <generated-password>
  2. 运行:
    bash
    agent-wallet start local_secure --override --save-runtime-secrets -g -w default_local_secure -p '<generated-password>'
  3. 运行
    agent-wallet resolve-address default_local_secure -p '<generated-password>'
    获取地址。
  4. 清晰展示EVM和TRON地址,说明EVM地址适用于所有EVM兼容链(Ethereum、BSC、Base、Polygon、Arbitrum等)。
  5. 向用户展示生成的密码,解释该密码用于加密存储在本地的钱包私钥——签署交易、解析地址或执行任何钱包操作都需要用到该密码。告知用户为了方便使用,密码已自动保存到
    ~/.agent-wallet/runtime_secrets.json
    ,但用户也应牢记或安全存储该密码——如果运行时机密被删除,密码是恢复钱包访问权限的唯一方式。
  6. 引导用户将USDT(TRC20)充值到展示的地址,告知用户充值后可返回进行转账或兑换操作。

Detailed setup path

详细设置路径

Hand off to the
agent-wallet
skill and follow its full 4-step workflow (list → choose wallet type → collect options → execute).

跳转至
agent-wallet
技能,遵循其完整的4步工作流程(列出选项→选择钱包类型→收集配置项→执行)。

Section 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:
  1. Run
    agent-wallet list
    .
  2. Wallets exist → return control to the calling skill and continue the original operation.
  3. 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.
  4. User confirms → proceed to Section B.
  5. User declines → acknowledge and stop the original operation.
用途: 其他签名类技能在执行任何链上操作前调用,只读查询请勿触发本章节流程。
步骤:
  1. 运行
    agent-wallet list
  2. 存在钱包 → 将控制权交还给调用的技能,继续执行原有操作。
  3. 无钱包 → 告知用户该操作需要钱包,设置仅需1-2分钟,询问用户是否现在创建。
  4. 用户确认 → 跳转至章节B
  5. 用户拒绝 → 告知已收到选择,停止原有操作。