onboarding
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseOnboarding Skill
入职Skill
Automates first-hour setup for AIBTC agents with practical, idempotent steps and explicit safety defaults.
为AIBTC Agent自动化首小时设置流程,采用幂等性步骤与明确的安全默认配置。
Usage
使用方法
bash
bun run onboarding/onboarding.ts <subcommand> [options]bash
bun run onboarding/onboarding.ts <subcommand> [options]Subcommands
子命令
doctor
doctor
Run onboarding diagnostics and return actionable next steps.
Checks include:
- wallet presence + lock status
- AIBTC registration verification ()
/api/verify/<stxAddress> - heartbeat endpoint reachability ()
/api/heartbeat?address=<btcAddress> - optional community step target ()
https://www.moltbook.com/m/aibtc
bash
bun run onboarding/onboarding.ts doctor运行入职诊断并返回可执行的后续步骤。
检查内容包括:
- 钱包存在性及锁定状态
- AIBTC注册验证()
/api/verify/<stxAddress> - 心跳端点可达性()
/api/heartbeat?address=<btcAddress> - 可选社区步骤目标()
https://www.moltbook.com/m/aibtc
bash
bun run onboarding/onboarding.ts doctorinstall-packs
install-packs
Preview or install curated skill packs.
Packs:
- : wallet, settings, signing, query, credentials
core - : x402, bns
builder - : bitflow, defi (mainnet write-capable)
finance - : core + builder + finance
all
Preview only:
bash
bun run onboarding/onboarding.ts install-packs --pack coreExecute install:
bash
bun run onboarding/onboarding.ts install-packs --pack builder --run预览或安装精选技能包。
技能包包括:
- :钱包、设置、签名、查询、凭证
core - :x402、bns
builder - :bitflow、defi(支持主网写入)
finance - :core + builder + finance
all
仅预览:
bash
bun run onboarding/onboarding.ts install-packs --pack core执行安装:
bash
bun run onboarding/onboarding.ts install-packs --pack builder --runrun
run
Execute the first-hour onboarding flow with optional registration and heartbeat check-in.
bash
bun run onboarding/onboarding.ts run \
--wallet-password <password> \
--pack core \
--install \
--register \
--check-inOptions:
- (optional) — auto-unlock wallet when needed (less secure: process args)
--wallet-password - (optional) — environment variable name that stores wallet password (default:
--wallet-password-env)AIBTC_WALLET_PASSWORD - (flag) — attempt AIBTC registration if not registered
--register - (flag) — submit heartbeat check-in after diagnostics
--check-in - (optional) —
--pack(default:core | builder | finance | all, invalid values error)core - (flag) — install selected pack(s)
--install - (flag) — skip optional Moltbook
--skip-communityrecommendation/aibtc
执行首小时入职流程,可选包含注册和心跳签到步骤。
bash
bun run onboarding/onboarding.ts run \
--wallet-password <password> \
--pack core \
--install \
--register \
--check-in选项:
- (可选):必要时自动解锁钱包(安全性较低:参数明文传递)
--wallet-password - (可选):存储钱包密码的环境变量名称(默认:
--wallet-password-env)AIBTC_WALLET_PASSWORD - (标志):若未注册则尝试完成AIBTC注册
--register - (标志):诊断完成后提交心跳签到
--check-in - (可选):
--pack(默认:core | builder | finance | all,无效值将触发错误)core - (标志):安装所选技能包
--install - (标志):跳过可选的Moltbook
--skip-community推荐步骤/aibtc
Safety + Best Practices
安全与最佳实践
- Wallet unlock is explicit and never inferred.
- Prefer env-based password input () over CLI arg to reduce secret exposure in process listings.
--wallet-password-env - Finance pack is optional and never auto-enabled by default.
- Community step is non-blocking (safe skip if unavailable).
- Output is JSON with step-by-step status to support autonomous loops.
- 钱包解锁为显式操作,绝不会自动推断。
- 优先使用基于环境变量的密码输入方式()而非CLI参数,以减少进程列表中的密钥暴露风险。
--wallet-password-env - Finance技能包为可选配置,默认不会自动启用。
- 社区步骤为非阻塞式(若不可用可安全跳过)。
- 输出为JSON格式,包含分步状态,支持自主循环执行。
Suggested First Run
推荐首次运行流程
bash
undefinedbash
undefined1) Inspect current state
1) 检查当前状态
bun run onboarding/onboarding.ts doctor
bun run onboarding/onboarding.ts doctor
2) Install safe defaults
2) 安装安全默认配置
bun run onboarding/onboarding.ts install-packs --pack core --run
bun run onboarding/onboarding.ts install-packs --pack core --run
3) Complete bootstrap
3) 完成引导流程
bun run onboarding/onboarding.ts run --wallet-password <password> --register --check-in
undefinedbun run onboarding/onboarding.ts run --wallet-password <password> --register --check-in
undefined