Update Claude

update-claude Skill

cyanluna-git f0e9a5a 2 files · 2.0 KB Updated

File contents

update-claude Skill

Auto-Trigger

Invoke /update-claude automatically when the user says:

  • "webhook 클로드 버전 업데이트" / "서버 claude 업데이트" / "claude 업데이트"
  • "update claude" / "update claude version" / "서버 클로드 업그레이드"

Environment

Load credentials from .claude/skills/deploy/.env:

set -a
source "$(git rev-parse --show-toplevel)/.claude/skills/deploy/.env"
set +a

SSH="ssh -i $DEPLOY_SSH_KEY $DEPLOY_USER@$DEPLOY_HOST"

Procedure

Step 1 — Check current versions

# Local
claude --version

# Remote
$SSH "claude --version"

Report both versions. If already up-to-date, stop here.

Step 2 — Update on server

$SSH "sudo npm update -g @anthropic-ai/claude-code 2>&1"

Step 3 — Verify

$SSH "claude --version"

Success Report Format

Claude Code 업데이트 완료
- 이전: <old_version>
- 이후: <new_version>
- 서버: $DEPLOY_HOST

cyanluna-git/cpet.data/tree/main/.claude/skills/update-claude commit f0e9a5a316

Frequently asked questions

npx skillmds@latest add cyanluna-git/update-claude