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 从公开仓库中收录这些内容。

举报或申请下架