ctx-view
啟動 ctx-save SQLite 記錄的 Web 視覺化介面(背景執行,自動開瀏覽器)
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
啟動 ctx-save SQLite 記錄的 Web 視覺化介面(背景執行,自動開瀏覽器)
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
This 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-view 啟動的背景 Web Viewer 服務
分析 git diff 並產出 Conventional Commits 格式的 Commit Message。當使用者提到「diff-summary」、「分析 diff」、「產生 commit message」、「寫 commit」、「變更摘要」、「code change summary」時觸發此 Skill。
Based on SOC occupation classification
| name | ctx-view |
| description | 啟動 ctx-save SQLite 記錄的 Web 視覺化介面(背景執行,自動開瀏覽器) |
| user_invocable | true |
啟動 ctx-save 儲存的 SQLite 記錄(.ctx-save/context.db)對應的 Web 視覺化介面。Server 以背景程序執行,啟動完成後自動開啟預設瀏覽器。
直接執行以下命令(不要改寫、不要增加額外參數):
python3 "$HOME/.claude-company/plugins/marketplaces/forge/plugins/ctx-save/skills/ctx-view/scripts/ctx-view-launcher.py"
執行完成後,將命令輸出(URL、PID、DB 路徑)完整呈現給使用者。
.ctx-save/context.db;找不到會印錯誤並以非 0 退出。/api/ping 驗證通過),印「♻ 重用既有 viewer」後開瀏覽器並退出。CTX_VIEW_PORT(預設 29898)起遞增探測,最多嘗試 10 個 port。衝突時會透過 lsof 提示占用者 PID/程序名。subprocess.Popen(start_new_session=True) 啟動 ctx-viewer.py,stdout/stderr 重導至 ~/.cache/ctx-viewer/viewer.log。/api/ping 最多 3 秒;通過後寫入 ~/.cache/ctx-viewer/viewer.pid。| 變數 | 預設 | 用途 |
|---|---|---|
CTX_VIEW_PORT | 29898 | 起始探測 port |
CTX_VIEW_NO_OPEN | 未設 | 設為 1 則不自動開啟瀏覽器 |
/ctx-view-stop/ctx-save~/.cache/ctx-viewer/viewer.log~/.cache/ctx-viewer/viewer.pid