Reroll your Claude Code buddy (companion) to get a specific species, rarity, or shiny variant. Use when the user says "reroll buddy", "change my buddy", "I want a shiny buddy", "give me a legendary dragon", "/buddy-reroll", or any request to customize their Claude Code companion pet.
Reroll the Claude Code /buddy companion by brute-forcing the internal SALT constant to find a seed that produces the desired buddy for the user's account.
Buddy generation is deterministic: hash(userId + SALT) seeds a PRNG that decides species, rarity, shiny, etc. Changing SALT changes the outcome. The script tries up to 500k SALT values to find matches.
· ✦ × ◉ @ °If the user didn't specify, ask which attributes matter to them (species, rarity, shiny, etc.). Not all combinations are findable within 500k iterations — rarer combos (e.g. legendary + shiny + specific species) may have 0-3 results.
Run the bundled script with the user's criteria:
node <skill-dir>/scripts/buddy_reroll.mjs --species dragon --rarity legendary --shiny --max-results 10
Flags: --species X, --rarity X, --shiny, --eye X, --hat X, --max-results N, --show-current
The script auto-detects the user's userId from their Claude config. Output is JSON.
Show a table of matching buddies with salt, rarity, species, eye, hat, shiny, and stats. Let the user pick one.
Run with --apply <salt> to patch cli.js and clear the old companion:
node <skill-dir>/scripts/buddy_reroll.mjs --species dragon --shiny --apply "friend-2026-1578"
This will:
cli.js (auto-detected via which claude)companion field from the user's Claude configTell the user to restart Claude Code and run /buddy to hatch their new companion.
Warn: upgrading Claude Code (npm update) will reset the SALT — they'll need to reroll again.