Claude Code /buddy 宠物重置工具。通过暴力搜索算法生成指定条件的宠物并写入配置,让用户获得理想的金色传说/闪光/特定属性宠物。 Trigger: reroll buddy pet, 重置宠物, 刷宠物, legendary pet, golden pet, shiny capybara, buddy reroll.
Claude Code /buddy 宠物重置工具。通过暴力搜索找到指定条件的宠物 UID,写入配置实现宠物重刷。
Claude Code 使用 userID(存储在 ~/.claude.json)结合 Mulberry32 PRNG 算法生成宠物。使用 Bun.hash() 哈希 userID 作为种子,同一个 userID 总是产生相同的宠物。
通过暴力搜索随机 userID,找到产生目标宠物的那个,再写回配置即可。
bun 运行,Node.js 的 FNV-1a 哈希结果与 Claude Code 不兼容!# 搜索传说级金色卡皮巴拉(闪光)
bun buddy-reroll.js --species capybara --rarity legendary --shiny
# 搜索传说级神龙(闪光)
bun buddy-reroll.js --species dragon --rarity legendary --shiny
# 搜索指定属性下限
bun buddy-reroll.js --species duck --rarity epic --min-stats 80
# 检查已知 UID 对应的宠物
bun buddy-reroll.js --check <uid>
搜索结果中的 uid 即为新的 userID。Skill 会自动将其写入 ~/.claude.json 的 userID 字段,并删除 companion 字段强制重置。
重启 Claude Code 后输入 /buddy 即可看到新宠物。
| 参数 | 说明 | 示例 |
|---|---|---|
--species | 目标物种 | capybara, dragon, duck, cat 等 |
--rarity | 最低品质 | common, uncommon, rare, epic, legendary |
--shiny | 要求闪光 | 出现概率 1% |
--eye | 指定眼睛样式 | · ✦ × ◉ @ ° |
--hat | 指定帽子 | none, crown, tophat, propeller, halo, wizard, beanie, tinyduck |
--min-stats | 所有属性下限 | 默认 90 |
--count | 返回结果数量 | 默认 3 |
--max | 最大搜索次数 | 默认 5000 万 |
--check | 查看指定 UID 的宠物 | bun buddy-reroll.js --check <uid> |
duck, goose, blob, cat, dragon, octopus, owl, penguin,
turtle, snail, ghost, axolotl, capybara, cactus,
robot, rabbit, mushroom, chonk
| 品质 | 概率 |
|---|---|
| common | 60% |
| uncommon | 25% |
| rare | 10% |
| epic | 4% |
| legendary | 1% |
每只宠物有 5 个属性,属性值受品质下限约束:
| 品质 | 属性下限 | 峰值属性上限 |
|---|---|---|
| common | 5 | 95 |
| uncommon | 15 | 95 |
| rare | 25 | 100 |
| epic | 35 | 100 |
| legendary | 50 | 100 |
bun buddy-reroll.js [参数] 进行搜索uid~/.claude.json:
userID 替换为新 uidcompanion 字段(如果存在)/buddy