ctx-view-stop
停止由 /ctx-view 啟動的背景 Web Viewer 服務
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
停止由 /ctx-view 啟動的背景 Web Viewer 服務
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | ctx-view-stop |
| description | 停止由 /ctx-view 啟動的背景 Web Viewer 服務 |
| user_invocable | true |
停止由 /ctx-view 啟動的背景 ctx-viewer 服務。會做雙重驗證(PID 存活 + /api/ping 服務身份)以避免誤殺其他程序。
直接執行以下命令(不要改寫、不要傳入 PID 等任何參數):
python3 "$HOME/.claude-company/plugins/marketplaces/forge/plugins/ctx-save/skills/ctx-view-stop/scripts/ctx-view-stop.py"
執行完成後,將命令輸出完整呈現給使用者。
~/.cache/ctx-viewer/viewer.pid。不存在 → 印「ℹ Viewer 未執行中」退出 0。os.kill(pid, 0)。已死 → 清理 stale PID file 後退出 0。/api/ping 必須回 service == "ctx-viewer"。否則拒絕停止並以非 0 退出。| 退出碼 | 情況 |
|---|---|
| 0 | 成功停止、或本就未執行、或已 stale |
| 2 | PID 非本服務,拒絕操作 |
| 3 | 無法發送訊號(權限不足等) |
| 130 | 被使用者中斷(Ctrl+C) |
/ctx-viewThis skill should be used when the user asks to "save context", "ctx save", "保存上下文", "儲存對話重點", "context snapshot", or wants to preserve important conversation information before automatic compaction. Also triggered by "restore context", "ctx restore", "載入上下文", "ctx list", "ctx clean", "ctx search".
切換 ctx-save 自動觸發模式與閾值(off / assist / auto)— 手機遠端操作首選
啟動 ctx-save SQLite 記錄的 Web 視覺化介面(背景執行,自動開瀏覽器)
分析 git diff 並產出 Conventional Commits 格式的 Commit Message。當使用者提到「diff-summary」、「分析 diff」、「產生 commit message」、「寫 commit」、「變更摘要」、「code change summary」時觸發此 Skill。