用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/chnlich/charlie-bot --skill claude-version命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Placement and admission policy for content that enters LLM context; its chapters currently govern the memory store (admission whitelist, the three proof questions, entry form and labeling, canon change rules). Reload in full before touching memory content.
Must invoke when presenting a file to the user. The CharlieBot server has a built-in file browser that serves any file on the host filesystem.
Genre style packs for code, READMEs, commits and PRs, bug reports, article shares, and coordination messages. Load the matching genre file at its writing moment. General prose rules live in the master prompt's Writing Style section.
基于 SOC 职业分类
正在显示 SKILL.md
| name | claude-version |
| description | Manage Claude Code CLI versions across official installer and npm global installs. |
| version | 1.0.0 |
Manage Claude Code CLI versions — install, switch, rollback, list.
| Method | How it works | Version switch |
|---|---|---|
Official installer (curl -fsSL https://claude.ai/install.sh | sh) | Standalone binary at ~/.local/share/claude/versions/<ver>, symlinked from ~/.local/bin/claude | Re-point the symlink |
npm global (npm i -g @anthropic-ai/claude-code) | Lives in the active Node prefix ($(npm prefix -g)/bin/claude) | npm i -g @anthropic-ai/claude-code@<ver> |
Detect which method is in use:
which claude # ~/.local/bin/claude → official installer
# ~/.nvm/.../bin/claude → npm global
file $(readlink -f $(which claude)) # ELF = binary install, script/symlink = npm
| Path | Purpose |
|---|---|
~/.local/bin/claude | Symlink → active version |
~/.local/share/claude/versions/<ver> | Binary (≥ ~2.1.80) or wrapper script |
~/.local/share/claude/versions/<ver>-node/ | Unpacked npm package (for older Node-based versions) |
ls ~/.local/share/claude/versions/ # installed versions
readlink ~/.local/bin/claude # active version
claude --version
ln -sf ~/.local/share/claude/versions/<VERSION> ~/.local/bin/claude
Recent versions (≥ ~2.1.80) are standalone ELF binaries. Older versions are Node.js packages and need a wrapper. Requires Node ≥ 18.
# 1. Download & extract
npm pack @anthropic-ai/claude-code@<VERSION> --pack-destination /tmp/
mkdir -p ~/.local/share/claude/versions/<VERSION>-node
tar xzf /tmp/anthropic-ai-claude-code-<VERSION>.tgz -C /tmp
cp -r /tmp/package/* ~/.local/share/claude/versions/<VERSION>-node/
# 2. Create wrapper script
cat > ~/.local/share/claude/versions/<VERSION> << 'EOF'
#!/bin/bash
exec "$HOME/.nvm/versions/node/$(ls "$HOME/.nvm/versions/node" | sort -V | tail -1)/bin/node" \
"$HOME/.local/share/claude/versions/<VERSION>-node/cli.js" "$@"
EOF
chmod +x ~/.local/share/claude/versions/<VERSION>
# 3. Activate
ln -sf ~/.local/share/claude/versions/<VERSION> ~/.local/bin/claude
claude --version
Each binary release is ~220 MB. Remove old ones with:
rm ~/.local/share/claude/versions/<OLD>
rm -rf ~/.local/share/claude/versions/<OLD>-node # if Node-based
npm i -g @anthropic-ai/claude-code@<VERSION>
claude --version
Same command with the older version number.
npm view @anthropic-ai/claude-code versions --json | tail -20
$PATH order determines which claude binary wins.