webup-buddy-reroll
Original:🇺🇸 English
Translated
1 scripts
Reroll Claude Code /buddy companion to a target species and rarity. Use when the user wants to change their buddy pet, get a legendary companion, reroll their buddy, or is unhappy with their current /buddy result. Triggers on "reroll buddy", "change buddy", "legendary buddy", "new companion", "buddy hack", "换宠物", "重新抽", "传说宠物", "バディ変更", "伝説バディ", or similar.
8installs
Sourcewebup/skills-cc
Added on
NPX Install
npx skill4agent add webup/skills-cc webup-buddy-rerollTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Buddy Reroll
Brute-force a new companion by finding a userID that hashes to the desired species and rarity.
/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()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 |
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
Usage
bash
# Direct (if bun is installed globally)
bun ${SKILL_DIR}/scripts/reroll.mjs --species dragon --rarity legendary --apply
# Via npx (works even without global bun install)
npx -y bun ${SKILL_DIR}/scripts/reroll.mjs --species dragon --rarity legendary --applyOptions
| Flag | Default | Description |
|---|---|---|
| | Target species (see list below) |
| | Minimum rarity: common / uncommon / rare / epic / legendary |
| | Max brute-force iterations |
| off | Auto-write result to |
Species (18)
| 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 |
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
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
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
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万回の反復でもレジェンダリーは数秒で見つかります