clawd-modifier

TotalClaw 作者 totalclaw

修改 Clawd,克劳德代码吉祥物。当用户想要在 Claude Code CLI 中自定义 Clawd 的外观时,请使用此技能,包括更改颜色(蓝色 Clawd、绿色 Clawd、节日主题)、添加功能(手臂、帽子、配件)或创建自定义 ASCII 艺术变体。触发器包括“更改 Clawd 颜色”、“赋予 Clawd 手臂”、“自定义吉祥物”、“修改 Clawd”、“使 Clawd [颜色]”或任何个性化 Claude 代码终端吉祥物的请求。

安装 / 下载方式

TotalClaw CLI推荐
totalclaw install totalclaw:totalclaw~masonc15-clawd-modifier
cURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~masonc15-clawd-modifier/file -o masonc15-clawd-modifier.md
## 概述(中文)

修改 Clawd,克劳德代码吉祥物。当用户想要在 Claude Code CLI 中自定义 Clawd 的外观时,请使用此技能,包括更改颜色(蓝色 Clawd、绿色 Clawd、节日主题)、添加功能(手臂、帽子、配件)或创建自定义 ASCII 艺术变体。触发器包括“更改 Clawd 颜色”、“赋予 Clawd 手臂”、“自定义吉祥物”、“修改 Clawd”、“使 Clawd [颜色]”或任何个性化 Claude 代码终端吉祥物的请求。

## 原文

# Clawd Modifier

Customize the Claude Code mascot's appearance by modifying colors and ASCII art.

## Quick Reference

**CLI location**: `/opt/node22/lib/node_modules/@anthropic-ai/claude-code/cli.js`

**Clawd colors**:
- Body: `rgb(215,119,87)` / `ansi:redBright`
- Background: `rgb(0,0,0)` / `ansi:black`

**Small Clawd** (prompt):
```
 ▐▛███▜▌
▝▜█████▛▘
  ▘▘ ▝▝
```

## Workflows

### Change Clawd's Color

Use `scripts/patch_color.py`:

```bash
# List available colors
python scripts/patch_color.py --list

# Apply preset
python scripts/patch_color.py blue

# Custom RGB
python scripts/patch_color.py --rgb 100,200,150

# Restore original
python scripts/patch_color.py --restore
```

### Add Arms or Modify Art

Use `scripts/patch_art.py`:

```bash
# List variants
python scripts/patch_art.py --list

# Add arms
python scripts/patch_art.py --variant with-arms

# Individual modifications
python scripts/patch_art.py --add-left-arm
python scripts/patch_art.py --add-right-arm

# Restore original
python scripts/patch_art.py --restore
```

### Extract Current Clawd

Use `scripts/extract_clawd.py` to see current state:

```bash
python scripts/extract_clawd.py
```

### Manual Modifications

For custom changes not covered by scripts, edit cli.js directly:

1. Backup: `cp cli.js cli.js.bak`
2. Find patterns with grep
3. Use sed or text editor to replace
4. Test by running `claude`

Pattern examples:
```bash
# Find color definitions
grep -o 'clawd_body:"[^"]*"' cli.js | head -5

# Replace color
sed -i 's/rgb(215,119,87)/rgb(100,149,237)/g' cli.js
```

## Resources

- **Unicode reference**: See `references/unicode-blocks.md` for block characters
- **Technical details**: See `references/clawd-anatomy.md` for rendering internals
- **Design gallery**: See `assets/clawd-variants.txt` for inspiration

## Notes

- Changes are overwritten by `npm update`
- Always create backups before modifying
- Test with `claude --version` after changes
- Some terminals have limited Unicode support