Save Thread

nowledge-co/community/nowledge-mem-step-code/skills/save-thread

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

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

AI 產生的概覽

產生結構化的工作階段交接摘要,方便後續工作階段快速接續。

功能
此技能會引導代理為一次工作階段撰寫精簡的檢查點記錄,並透過 nmem 命令列工具儲存為可搜尋的執行緒。交接內容採用固定結構,涵蓋目標、決策、檔案、結果、風險與後續步驟。它也說明何時應儲存人工整理的交接記錄,而非依賴自動逐字稿同步,以及執行緒與蒸餾後記憶之間的差異。
適用情境
適用於使用者要求儲存、設定檢查點或記錄工作階段時,工作階段結束時有需要延續的重要脈絡時,或複雜的多步驟工作將在後續工作階段接續時。它不用於例行的逐字稿同步。
執行需求
需要 Nowledge Mem Step Code 套件中的 nmem 命令列工具,以及對應服務的存取權限。不含指令碼,僅為說明性指示。

Save Thread

The Nowledge Mem Step Code package automatically syncs completed Step Code 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-step-code/skills/save-thread提交1f4d7eb

授權條款: 無授權條款

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

檢舉或申請下架