Save Thread

nowledge-co/community/nowledge-mem-copilot-cli-plugin/skills/save-thread

作者 nowledge-co1f4d7eb61466dbfc93ce8d7a0a806c4d4a196dd0無授權條款收錄於 2026年10月9日更新於 2026年10月9日

Save a summary of the Copilot CLI session on explicit user request. Copilot lifecycle hooks already capture full transcripts automatically — this skill creates a concise summary thread.

AI 產生的概覽

在使用者明確要求時,將 Copilot CLI 工作階段的簡要摘要儲存為 nmem 執行緒。

功能
此技能指示代理依據目前的 Copilot CLI 對話撰寫簡要摘要,並使用 nmem 命令列工具將其儲存為執行緒。內容涵蓋何時儲存、含標題與來源標記的具體命令格式,以及包含執行緒 ID 的簡短確認回覆。它也說明自動生命週期擷取、摘要執行緒與蒸餾記憶之間的差異。
適用情境
當使用者明確要求儲存、設定檢查點或記錄目前工作階段時使用。它適用於隨需摘要儲存,而非自動擷取完整對話。
執行需求
需要 PATH 中可用的 nmem CLI(nmem-cli)以及可連線的 nmem 伺服器;建議透過 pip 或 Arch Linux 套件管理員安裝。不附帶指令碼,僅為指示文件。

Save Thread

When to Save

Only when user explicitly says: "Save this session" | "Checkpoint this" | "Record conversation"

Lifecycle hooks capture full session transcripts automatically after responses, before compaction, and at session end. This skill is for on-demand summary saves.

Tool Usage

Create a summary thread via nmem t create:

bash
nmem t create "A concise summary of this session: what was discussed, what was built, and key decisions made" \  --title "Copilot CLI: <short title from first user message>" \  -s copilot-cli

Important: Write the summary yourself from the current conversation context. Do NOT try to invoke the stop hook script directly — it requires hook payload from Copilot CLI internals.

Thread vs Memory

Automatic lifecycle capture stores real session messages. This skill stores a concise summary thread. Memory stores distilled insights. They are different purposes, and a valuable session can use more than one.

Response

text
✓ Thread savedSummary: {summary}Thread ID: {thread_id from nmem output}

Troubleshooting

If nmem is not in PATH: pip install nmem-cli, or on Arch Linux yay -S nmem-cli / paru -S nmem-cli

Run nmem status to check server connection.

來源與署名

來源:nowledge-co/community位於nowledge-mem-copilot-cli-plugin/skills/save-thread提交1f4d7eb

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架