A Claude Code skill for inspecting, re-rolling, and switching your Claude Code Buddy.
Claude Code has a hidden Buddy system. This project helps you:
- inspect the Buddy tied to a
userID - search for Buddies matching your preferences
- switch to a selected Buddy more safely
Supported filters include species, rarity, shiny status, eyes, hats, and minimum stats.
Yes, other people can clone or download this repository and use it.
It is not fully "download and magically works" though. Users still need:
- Claude Code with skill support
- Node.js in
PATH - to register the skill in
~/.claude/settings.json - a compatible environment for Buddy switching
Important:
- The reroll and check functions can still be used as a script.
- Automatic Buddy switching is intentionally conservative and is meant for compatible non-official or proxy-based setups.
- If the environment looks official or unclear, the skill should stop rather than modify
~/.claude.json.
- Claude Code with skill support
- Node.js 18+ recommended
- Access to
~/.claude.json - A compatible setup if you want to actually switch the Buddy automatically
git clone https://github.com/crisxuan/buddy-reroll.git ~/.claude/skills/buddy-rerollThen add this to ~/.claude/settings.json:
{
"skills": [
{
"name": "buddy-reroll",
"type": "file",
"filePath": "~/.claude/skills/buddy-reroll/SKILL.md"
}
]
}If you already have a skills array, add the object above to the existing array.
Restart Claude Code after saving the settings file.
Clone the repository anywhere you want:
git clone https://github.com/crisxuan/buddy-reroll.git /path/to/buddy-rerollThen point filePath at that local SKILL.md:
{
"skills": [
{
"name": "buddy-reroll",
"type": "file",
"filePath": "/path/to/buddy-reroll/SKILL.md"
}
]
}If ~ does not expand correctly in your environment, use an absolute path instead.
After the skill is installed, you can simply ask Claude Code things like:
换 Claude Buddy刷 Claude 宠物查看当前 buddyreroll buddyfind a legendary dragon buddyshow me my current buddyget me a shiny capybara
This is the easiest way to use the project. The skill should:
- check whether your environment looks compatible
- interpret your request
- run the search script
- show matching results
- ask for confirmation before applying a change
If you prefer a more explicit setup flow:
- clone the repository
- add the
skillsentry in~/.claude/settings.json - restart Claude Code
- ask for what you want in plain language
Example requests:
给我找一个 legendary dragon buddy帮我刷一个 shiny capybara看看我当前的 Claude Buddy
You can use the bundled script even without going through skill triggering.
Examples:
node ~/.claude/skills/buddy-reroll/scripts/buddy-reroll.js --check <userID>
node ~/.claude/skills/buddy-reroll/scripts/buddy-reroll.js --species dragon --rarity legendary
node ~/.claude/skills/buddy-reroll/scripts/buddy-reroll.js --species cat --rarity epic --count 3
node ~/.claude/skills/buddy-reroll/scripts/buddy-reroll.js --species capybara --shiny --jsonIf you installed the repo somewhere else, replace the path with your actual local path.
If you do not want the skill to modify anything automatically, you can still use it to:
- inspect your current Buddy
- inspect a known
userID - search for candidate Buddies
This is useful if you want to manually review the output first.
node scripts/buddy-reroll.js [options]Options:
--species <name>--rarity <name>--eye <char>--hat <name>--shiny--min-stats [value]--max <number>--count <number>--check <uid>--json
duck, goose, blob, cat, dragon, octopus, owl, penguin, turtle, snail, ghost, axolotl, capybara, cactus, robot, rabbit, mushroom, chonk
common, uncommon, rare, epic, legendary
none, crown, tophat, propeller, halo, wizard, beanie, tinyduck
·, ✦, ×, ◉, @, °
- The project should back up
~/.claude.jsonbefore applying a Buddy change. - It should only replace the
userIDfield when applying a selected result. - It should validate that the updated file is still valid JSON.
- It should stop if the environment looks official or ambiguous.
This is intentional. Refusing to modify an unclear setup is safer than risking account or config breakage.
.
├── README.md
├── SKILL.md
└── scripts/
└── buddy-reroll.js
MIT