Save Thread

nowledge-co/community/nowledge-mem-pi-package/skills/save-thread

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

Create a structured handoff summary when the user asks for a checkpoint. Pi transcript sync is automatic; this skill adds a concise continuation record.

AI 產生的概覽

為工作階段建立結構化的交接摘要,方便日後的工作階段快速接續。

功能
引導代理把工作階段整理成結構化的交接記錄,涵蓋目標、決策、檔案、結果、風險與下一步。它說明如何透過 nmem 命令列工具,以標題、內容與來源把該摘要提交為一則 thread。它也說明 thread 與 memory 的差異:前者保留工作階段結構,後者提煉單一洞察。
適用情境
當使用者要求儲存、設定檢查點或記錄工作階段時使用,也適用於工作階段結束時有需要傳遞給日後工作階段的重要脈絡。它針對會被接續的複雜多步驟工作,而非例行的對話紀錄同步。
執行需求
需要 Nowledge Mem Pi 套件,以及用來建立 thread 的 nmem 命令列工具。此技能未附帶指令碼,只有說明文件。

Save Thread

The Nowledge Mem Pi package automatically syncs completed Pi conversations as searchable threads. This skill creates a structured handoff summary when the user wants a concise checkpoint for a future session.

When to Use

  • User asks to save the session: "save this", "checkpoint", "record what we did"
  • Session ending with important context that should carry forward
  • Complex multi-step work that a future session will resume

Do not use this as routine transcript sync. Use it only when a curated handoff would help a future session resume quickly.

Usage

bash
nmem --json t create \  -t "Session Handoff - <topic>" \  -c "Goal: ... Decisions: ... Files: ... Risks: ... Next: ..." \  -s generic-agent

Content Format

Structure the content as a clear handoff. Include only what a future session needs to continue:

Goal: What the session set out to accomplishDecisions: Key choices made and their rationaleFiles: Important files created or modifiedOutcome: What was achievedRisks: Known risks, open questions, or things that could breakNext: Concrete steps for the next session

Example

bash
nmem --json t create \  -t "Session Handoff - Auth Migration to OAuth2" \  -c "Goal: Migrate session auth from JWT to OAuth2 with PKCE.Decisions: Chose Authorization Code flow with PKCE over Implicit for security. Using passport-oauth2 library.Files: src/auth/oauth2.ts (new), src/auth/middleware.ts (updated), tests/auth.test.ts (updated).Outcome: Core flow working, token refresh implemented, tests passing.Risks: Token refresh not tested under clock skew; CSRF state parameter still missing.Next: Add CSRF state parameter, update API docs, deploy to staging." \  -s generic-agent

Thread vs Memory

A thread preserves session structure: goals, sequence, context. A memory distills a single insight or decision. They serve different purposes. Use both when appropriate: save the thread for continuity, distill key decisions as standalone memories.

Links

來源與署名

來源:nowledge-co/community位於nowledge-mem-pi-package/skills/save-thread提交1f4d7eb

授權條款: 無授權條款

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

檢舉或申請下架