ClawSkills logoClawSkills

Clawd Modifier

修改 Clawd,即 Claude Code 的吉祥物。当用户想要在其 Claude Code CLI 中自定义 Clawd 的外观时使用此技能,包括更改颜色(蓝色 C

介绍

# Clawd Modifier

通过修改颜色和 ASCII 艺术来自定义 Claude Code 吉祥物的外观。

## 快速参考

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

**Clawd 颜色**: - 主体: `rgb(215,119,87)` / `ansi:redBright` - 背景: `rgb(0,0,0)` / `ansi:black`

**小型 Clawd** (提示词): ``` ▐▛███▜▌ ▝▜█████▛▘ ▘▘ ▝▝ ```

## 工作流

### 更改 Clawd 的颜色

使用 `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 ```

### 添加手臂或修改艺术字

使用 `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 ```

### 提取当前的 Clawd

使用 `scripts/extract_clawd.py` 查看当前状态:

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

### 手动修改

对于脚本未涵盖的自定义更改,直接编辑 cli.js:

1. 备份: `cp cli.js cli.js.bak` 2. 使用 grep 查找模式 3. 使用 sed 或文本编辑器进行替换 4. 运行 `claude` 进行测试

模式示例: ```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 ```

## 资源

- **Unicode 参考**: 请参阅 `references/unicode-blocks.md` 了解块字符 - **技术细节**: 请参阅 `references/clawd-anatomy.md` 了解渲染内部机制 - **设计图库**: 请参阅 `assets/clawd-variants.txt` 获取灵感

## 注意事项

- 更改会被 `npm update` 覆盖 - 修改前务必创建备份 - 更改后使用 `claude --version` 进行测试 - 某些终端的 Unicode 支持有限

更多产品