webup-statusline
Generate and install a custom Claude Code status line with selectable columns (model, context, effort level, git, dir, worktree,…
Reroll Claude Code /buddy companion to a target species and rarity, or rename/customize companion name and personality. Triggers on "reroll buddy", "change buddy", "legendary buddy", "new companion", "buddy hack", "rename buddy", "buddy name", "buddy personality", "换宠物", "重新抽",
$ npx -y skills add webup/skills-cc --skill webup-buddy-reroll --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/webup-buddy-rerollContext preview
The summary Claude sees to decide when to auto-load this skill.
Reroll Claude Code /buddy companion to a target species and rarity, or rename/customize companion name and personality. Triggers on "reroll buddy", "change buddy", "legendary buddy", "new companion", "buddy hack", "rename buddy", "buddy name", "buddy personality", "换宠物", "重新抽",
name: webup-buddy-reroll description: Reroll Claude Code /buddy companion to a target species and rarity, or rename/customize companion name and personality. Triggers on "reroll buddy", "change buddy", "legendary buddy", "new companion", "buddy hack", "rename buddy", "buddy name", "buddy personality", "换宠物", "重新抽", "传说宠物", "改名", "宠物名字", "バディ変更", "伝説バディ", "バディ名前", or similar.
Brute-force a new `/buddy` companion by finding a userID that hashes to the desired species and rarity.
Claude Code generates companions deterministically: `hash(userID + SALT)` → `mulberry32` PRNG → rarity, species, eyes, hat, shiny. Same userID = same companion, always.
To reroll: replace `userID` in `~/.claude.json`, clear `companion` field, restart.
**Critical**: Claude Code is Bun-bundled, so `Bun.hash()` (xxHash64) is the correct hash function. Node.js FNV-1a produces wrong results — the script MUST run under Bun.
**Important**: All scripts are located in the `scripts/` subdirectory of this skill.
**Agent Execution Instructions**: 1. Determine this SKILL.md file's directory path as `SKILL_DIR` 2. Script path = `${SKILL_DIR}/scripts/<script-name>.mjs` 3. Replace all `${SKILL_DIR}` in this document with the actual path
**Script Reference**: | Script | Purpose | |--------|---------| | `scripts/reroll.mjs` | Brute-force target species+rarity, optionally apply to config | | `scripts/oauth-setup.mjs` | OAuth config helper for Pro/Max subscribers (--check/--prepare/--verify/--restore) | | `scripts/rename.mjs` | Change companion name and/or personality (--name/--desc) |
# 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 --apply| Flag | Default | Description | |------|---------|-------------| | `--species <name>` | `dragon` | Target species (see list below) | | `--rarity <level>` | `legendary` | Minimum rarity: common / uncommon / rare / epic / legendary | | `--max <n>` | `1000000` | Max brute-force iterations | | `--apply` | off | Auto-write result to `~/.claude.json` and clear companion |
| | | | | | | |---|---|---|---|---|---| | duck | goose | blob | cat | dragon | octopus | | owl | penguin | turtle | snail | ghost | axolotl | | capybara | cactus | robot | rabbit | mushroom | chonk |
| Rarity | Stars | Chance | ~Iterations to find | |--------|-------|--------|---------------------| | common | ★ | 60% | ~30 | | uncommon | ★★ | 25% | ~72 | | rare | ★★★ | 10% | ~180 | | epic | ★★★★ | 4% | ~450 | | legendary | ★★★★★ | 1% | ~1800 |
This skill can be invoked with or without arguments:
The args string is free-form text. Use NLP to extract these fields:
1. **species** — match against the 18 known species names (duck, goose, blob, cat, dragon, octopus, owl, penguin, turtle, snail, ghost, axolotl, capybara, cactus, robot, rabbit, mushroom, chonk). Also recognize Chinese/Japanese equivalents (龙=dragon, 猫=cat, etc.). 2. **rarity** — match against the 5 tiers (common, uncommon, rare, epic, legendary) or equivalents (传说=legendary, 史诗=epic, etc.). 3. **name** — a short proper name for the companion (e.g. "沧海九粟", "Nimbus", "小火"). Look for patterns like "叫X", "名字X", "named X", "name X", or a standalone proper noun that isn't a species/rarity keyword. 4. **personality** — a description of the companion's vibe or character (e.g. "爱打盹的小龙", "sarcastic robot"). Look for patterns like "个性X", "性格X", "personality X", or descriptive phrases that aren't species/rarity/name.
All four fields are optional. Any combination is valid.
**Detect intent**:
0. **Detect account type**: Run the check script to see if `accountUuid` exists in `~/.claude.json`:
npx -y bun ${SKILL_DIR}/scripts/oauth-setup.mjs --check**Principle**: When logging in via `CLAUDE_CODE_OAUTH_TOKEN` env var, Claude Code does NOT write `accountUuid` to `~/.claude.json`. This makes `/buddy` fall back to `userID`, which can be freely replaced.
a. Tell user to open a **separate terminal** and run `claude setup-token` to get their OAuth token. Ask them to paste the token back here.
b. Once token is received, prepare the config (
Generate and install a custom Claude Code status line with selectable columns (model, context, effort level, git, dir, worktree,…