chenhui-x/toolbox/gcp-hermes-update-safety
Claude Code and agent skill by chenhui-x/toolbox
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
GCP VM (instance-20260525-051751) 更新 Hermes 的安全流程。SSH 直跑 hermes update 会被断线打断、弄坏 venv(pydantic_core 消失)。必须用 systemd-run。也覆盖误触发 update 的识别与善后。
Install
npx vskill@latest install chenhui-x/toolbox/gcp-hermes-update-safetySKILL.md
GCP Hermes 更新安全流程
铁律
- 禁止直接 SSH 跑
hermes update。SSH 断线 = update 被杀 = venv 半坏 = 所有 agent run 报
No module named 'pydantic_core._pydantic_core'(2026-09-28 事故实录)。
- 必须放进 systemd transient unit 跑,断线不死。
- 经 gcloud ssh 的
--command传多行 heredoc 时引号极易被打散,可能意外触发本机或远端
update。给远端写文件一律用 gcloud compute scp 传本地文件,不用内联 heredoc。
标准更新流程
事故特征(识别旧伤)
- gateway active 但所有 agent run 报 pydantic_core 缺失
hermes pairing list打印 "an update is still running"(死锁标记)cat /root/.hermes/installs/*/source-completion-pending存在 = 上次 update 没跑完- 修复 = 按上面标准流程重跑 update + 重启 gateway
误触发 update 的善后(如被外层命令意外带起)
- 别杀正在跑的 update(杀了才留残局)。
ps aux | grep 'hermes update'确认它还活着。 - 等它自然结束,日志出现
✓ Update complete!即安全。 - 结束后验证:gateway active、pydantic 报错 0、
source-completion-pending不存在。 - 版本可能被顺手升上去(本次 d9f6a84 → gfc4dbe3 一线),属于无害升级,不用回滚。
其他注意
- 这台是 1GB 内存 VM:web UI 构建可能 node OOM("JavaScript heap out of memory"),
不致命,重跑 update 会过。
- 更新后若微信/消息异常,先查本机
platformsenabled(config.yaml)——本机只启用了
webhook + qqbot,微信问题别默认背到这台机器头上。
- gcloud 偶发 SSL 崩溃(compute.googleapis.com 连接被掐),等 10 秒重试即可。
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingcustom-skills/devops/gcp-hermes-update-safety/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/chenhui-x/toolbox/gcp-hermes-update-safety)