webup-buddy-reroll
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseBuddy Reroll
伙伴重抽
Brute-force a new companion by finding a userID that hashes to the desired species and rarity.
/buddy通过暴力搜索 userID 来获取指定物种和稀有度的 伙伴。
/buddyブルートフォースで userID を探索し、指定した種族とレアリティの コンパニオンを取得します。
/buddy通过暴力搜索userID来获取哈希后对应指定物种和稀有度的新伙伴。
/buddyHow It Works / 原理 / 仕組み
工作原理
Claude Code generates companions deterministically: → PRNG → rarity, species, eyes, hat, shiny. Same userID = same companion, always.
hash(userID + SALT)mulberry32Claude Code 通过确定性算法生成伙伴: → PRNG → 稀有度、物种、眼睛、帽子、闪光。相同 userID 始终生成相同伙伴。
hash(userID + SALT)mulberry32Claude Code はコンパニオンを決定論的に生成します: → PRNG → レアリティ、種族、目、帽子、シャイニー。同じ userID は常に同じコンパニオンになります。
hash(userID + SALT)mulberry32To reroll: replace in , clear field, restart.
userID~/.claude.jsoncompanion重新抽取:替换 中的 ,清除 字段,重启即可。
~/.claude.jsonuserIDcompanionリロール方法: の を置換し、 フィールドをクリアして再起動。
~/.claude.jsonuserIDcompanionCritical: Claude Code is Bun-bundled, so (xxHash64) is the correct hash function. Node.js FNV-1a produces wrong results — the script MUST run under Bun.
Bun.hash()Claude Code通过确定性算法生成伙伴: → PRNG → 稀有度、物种、眼睛、帽子、闪光。相同userID始终会生成完全相同的伙伴。
hash(userID + SALT)mulberry32重抽方法:替换中的,清除字段,重启Claude Code即可。
~/.claude.jsonuserIDcompanion重要提示:Claude Code是使用Bun打包的,因此(xxHash64)是正确的哈希函数。使用Node.js的FNV-1a会生成错误结果,脚本必须在Bun环境下运行。
Bun.hash()Script Directory
脚本目录
Important: All scripts are located in the subdirectory of this skill.
scripts/Agent Execution Instructions:
- Determine this SKILL.md file's directory path as
SKILL_DIR - Script path =
${SKILL_DIR}/scripts/<script-name>.mjs - Replace all in this document with the actual path
${SKILL_DIR}
Script Reference:
| Script | Purpose |
|---|---|
| Brute-force target species+rarity, optionally apply to config |
注意:所有脚本都存放在本技能的子目录下。
scripts/Agent执行说明:
- 将本SKILL.md文件的目录路径设为
SKILL_DIR - 脚本路径 =
${SKILL_DIR}/scripts/<脚本名称>.mjs - 将本文档中所有替换为实际路径
${SKILL_DIR}
脚本参考:
| 脚本 | 用途 |
|---|---|
| 暴力搜索目标物种+稀有度的userID,可选择直接应用到配置 |
Prerequisites / 前提条件 / 前提条件
前提条件
-
Claude Code >= 2.1.89 — thesystem was introduced in this version. The script auto-checks and exits if the version is too old.
/buddy -
Bun — required for correct hashing. Useif not installed globally.
npx -y bun -
API users only — This skill does NOT work for Pro/Max Plan subscribers whoseis locked to their account. It only works for API users whose
userIDinuserIDcan be freely replaced.~/.claude.json -
Claude Code >= 2.1.89 —系统从此版本引入。脚本会自动检测版本,过低则退出。
/buddy -
Bun — 正确哈希所需。未全局安装时可用。
npx -y bun -
仅限 API 用户 — 本技能不适用于 Pro/Max 订阅用户(其绑定账户,无法替换)。仅适用于 API 用户,其
userID中的~/.claude.json可自由替换。userID -
Claude Code >= 2.1.89 —システムはこのバージョンで導入。スクリプトが自動でバージョンチェックします。
/buddy -
Bun — 正しいハッシュに必要。グローバル未インストールならを使用。
npx -y bun -
API ユーザー限定 — Pro/Max プランのサブスクライバーはがアカウントに紐付けられているため、このスキルは動作しません。
userIDの~/.claude.jsonを自由に変更できる API ユーザーのみ対象です。userID
- Claude Code >= 2.1.89 — 系统从该版本开始引入。脚本会自动检测版本,版本过低则自动退出。
/buddy - Bun — 生成正确哈希的必需依赖。如果没有全局安装,可使用运行。
npx -y bun - 仅限API用户 — 本技能不适用于Pro/Max订阅用户,这类用户的与账号绑定无法替换。仅适用于可自由修改
userID中~/.claude.json的API用户。userID
Usage
使用方法
bash
undefinedbash
undefinedDirect (if bun is installed globally)
直接运行(如果已全局安装bun)
bun ${SKILL_DIR}/scripts/reroll.mjs --species dragon --rarity legendary --apply
bun ${SKILL_DIR}/scripts/reroll.mjs --species dragon --rarity legendary --apply
Via npx (works even without global bun install)
通过npx运行(即使未全局安装bun也可使用)
npx -y bun ${SKILL_DIR}/scripts/reroll.mjs --species dragon --rarity legendary --apply
undefinednpx -y bun ${SKILL_DIR}/scripts/reroll.mjs --species dragon --rarity legendary --apply
undefinedOptions
可选参数
| Flag | Default | Description |
|---|---|---|
| | Target species (see list below) |
| | Minimum rarity: common / uncommon / rare / epic / legendary |
| | Max brute-force iterations |
| off | Auto-write result to |
| 参数 | 默认值 | 说明 |
|---|---|---|
| | 目标物种(可参考下方列表) |
| | 最低稀有度:common / uncommon / rare / epic / legendary |
| | 最大暴力搜索迭代次数 |
| 关闭 | 自动将结果写入 |
Species (18)
物种列表(共18种)
| duck | goose | blob | cat | dragon | octopus |
| owl | penguin | turtle | snail | ghost | axolotl |
| capybara | cactus | robot | rabbit | mushroom | chonk |
| duck | goose | blob | cat | dragon | octopus |
| owl | penguin | turtle | snail | ghost | axolotl |
| capybara | cactus | robot | rabbit | mushroom | chonk |
Rarity Tiers
稀有度等级
| Rarity | Stars | Chance | ~Iterations to find |
|---|---|---|---|
| common | ★ | 60% | ~30 |
| uncommon | ★★ | 25% | ~72 |
| rare | ★★★ | 10% | ~180 |
| epic | ★★★★ | 4% | ~450 |
| legendary | ★★★★★ | 1% | ~1800 |
| 稀有度 | 星级 | 概率 | 预期搜索迭代次数 |
|---|---|---|---|
| common | ★ | 60% | ~30 |
| uncommon | ★★ | 25% | ~72 |
| rare | ★★★ | 10% | ~180 |
| epic | ★★★★ | 4% | ~450 |
| legendary | ★★★★★ | 1% | ~1800 |
Invocation / 调用方式 / 呼び出し方法
调用方式
This skill can be invoked with or without arguments:
- No args (): Prompts the user to choose species and rarity interactively via
/webup-buddy-rerollbefore running.AskUserQuestion - With args (): Skips the prompt and locks the choice to the given species and rarity directly.
/webup-buddy-reroll dragon legendary
本技能支持有参数和无参数两种调用方式:
- 无参数 ():运行前通过
/webup-buddy-reroll交互式提示用户选择物种和稀有度。AskUserQuestion - 有参数 ():跳过提示,直接使用指定的物种和稀有度。
/webup-buddy-reroll dragon legendary
引数あり・なし両方で呼び出せます:
- 引数なし ():実行前に
/webup-buddy-rerollで種族とレアリティを対話的に選択。AskUserQuestion - 引数あり ():プロンプトをスキップし、指定した種族とレアリティで直接実行。
/webup-buddy-reroll dragon legendary
本技能支持带参数和不带参数两种调用方式:
- 无参数 ():运行前通过
/webup-buddy-reroll交互式提示用户选择物种和稀有度。AskUserQuestion - 带参数 ():跳过提示,直接使用指定的物种和稀有度运行。
/webup-buddy-reroll dragon legendary
Workflow
工作流程
-
If no args provided: Useto ask the user to pick a species AND a rarity in a single prompt (two questions):
AskUserQuestion- Species question: Present 4 popular options (dragon, cat, axolotl, capybara) as choices. Each option's should list the remaining species so the user knows what's available via "Other", e.g. the first option's description: "Or type any of: duck, goose, blob, octopus, owl, penguin, turtle, snail, ghost, cactus, robot, rabbit, mushroom, chonk".
description - Rarity question: Present all 5 tiers (legendary as first/recommended, then epic, rare, uncommon, common).
- Do NOT skip this step. Always ask even if the user mentioned a species — confirm their choice.
If args provided: Parseand<species>from the args. Skip the prompt and proceed directly.<rarity> - Species question: Present 4 popular options (dragon, cat, axolotl, capybara) as choices. Each option's
-
Run the script with:
--applybashnpx -y bun ${SKILL_DIR}/scripts/reroll.mjs --species <choice> --rarity <choice> --apply -
Tell user to restart Claude Code and runto hatch the new companion. 告知用户重启 Claude Code 并运行
/buddy来孵化新伙伴。 ユーザーに Claude Code を再起動して/buddyで新しいコンパニオンを孵化するよう伝える。/buddy
-
如果未提供参数:使用在同一次提示中向用户询问要选择的物种和稀有度(两个问题):
AskUserQuestion- 物种选择问题:提供4个热门选项(dragon、cat、axolotl、capybara)作为选择,每个选项的描述需要列出剩余可选物种,方便用户了解“其他”选项可输入的内容,例如第一个选项的描述可以是:“也可输入以下任意物种:duck, goose, blob, octopus, owl, penguin, turtle, snail, ghost, cactus, robot, rabbit, mushroom, chonk”。
- 稀有度选择问题:展示全部5个等级(传说级作为首选项/推荐项,然后依次是史诗、稀有、uncommon、普通)。
- 不要跳过此步骤,即使用户已经提到了想要的物种,也需要确认用户的选择。
如果提供了参数:从参数中解析和<species>,跳过提示直接进入下一步。<rarity> -
带参数运行脚本:
--applybashnpx -y bun ${SKILL_DIR}/scripts/reroll.mjs --species <用户选择的物种> --rarity <用户选择的稀有度> --apply -
告知用户重启Claude Code并运行即可孵化新伙伴。
/buddy
Manual Apply / 手动应用 / 手動適用
手动应用方法
If was not used:
--apply- Copy the output userID
- Edit : replace
~/.claude.jsonvalue, set"userID""companion": null - Restart Claude Code →
/buddy
未使用 时:
--apply- 复制输出的 userID
- 编辑 :替换
~/.claude.json值,设置"userID""companion": null - 重启 Claude Code →
/buddy
--apply- 出力された userID をコピー
- を編集:
~/.claude.jsonの値を置換、"userID"に設定"companion": null - Claude Code を再起動 →
/buddy
如果没有使用参数,可按以下步骤手动操作:
--apply- 复制脚本输出的userID
- 编辑:替换
~/.claude.json的值,设置"userID""companion": null - 重启Claude Code → 运行
/buddy
Notes / 备注 / 注意事項
注意事项
-
only affects telemetry bucketing and buddy seed — no impact on conversations, API keys, or local config
userID -
SALT is(Claude Code 2.1.89). Update the script if a future version changes it
friend-2026-401 -
1M iterations finds legendary in seconds on modern hardware
-
仅影响遥测分组和伙伴种子 — 不影响对话、API 密钥或本地配置
userID -
SALT 为(Claude Code 2.1.89)。若未来版本更改,需更新脚本
friend-2026-401 -
100 万次迭代在现代硬件上几秒即可找到传说级
-
はテレメトリのバケット分けとバディシードにのみ影響 — 会話、APIキー、ローカル設定には無関係
userID -
SALT は(Claude Code 2.1.89)。将来バージョンで変更された場合はスクリプトを更新
friend-2026-401 -
100万回の反復でもレジェンダリーは数秒で見つかります
- 仅影响遥测分组和伙伴生成种子,不会对对话、API密钥或本地配置产生任何影响
userID - SALT值为(适用于Claude Code 2.1.89版本),如果未来版本修改了该值,需要更新对应脚本
friend-2026-401 - 在现代硬件上,100万次迭代仅需几秒即可找到传说级伙伴