Save Thread

nowledge-co/community/nowledge-mem-npx-skills/skills/save-thread

作者 nowledge-co1f4d7eb61466dbfc93ce8d7a0a806c4d4a196dd0无许可证收录于 2026年10月9日更新于 2026年10月9日

Deprecated compatibility skill. In generic npx skills environments this must degrade honestly to a resumable handoff, because real transcript-backed thread import is not guaranteed. Prefer save-handoff here, and use native connectors when you need actual session capture.

AI 生成的概览

已弃用的兼容技能,保存简洁的可续接交接摘要,而非导入真实会话记录。

功能
这个已弃用的兼容技能保留了旧的 save-thread 名称,但不会执行真正的、基于会话记录的线程导入。在通用技能环境中,它相当于 save-handoff 的别名,通过 nmem 命令行工具创建简洁的可续接交接摘要,并报告标题、摘要和线程 ID。它明确说明结果是交接摘要而非完整的原始会话,并在需要真实会话捕获时指向原生连接器。
适用场景
适用于通用 npx skills 环境,当你需要重启点、检查点或简洁的续接摘要,而不是完整会话捕获时使用。真实会话记录导入应改用该运行时专用的原生连接器。
运行要求
需要 nmem 命令行工具可用并可执行;该技能本身不附带脚本,仅为说明文档。真实会话记录导入还需要具备专用原生连接器的运行时以及本地会话文件。

Save Thread (Deprecated Compatibility)

Preserve the old skill name without pretending a generic skill runtime can always import the real session transcript.

Status

This skill name is deprecated and kept only for compatibility.

Use save-handoff for generic npx skills environments.

Why This Cannot Promise Real Thread Save

A shared skills package works across many agent runtimes. In many of them, a skill can influence prompting but cannot read the host agent's real session transcript through a stable programmatic API.

That means this package must not promise a lossless thread import when the runtime may not expose:

  • readable session files
  • a transcript/history API
  • a native importer surface wired for that specific agent

If we claimed real thread save here, users would believe later retrieval reflects the actual full session when it may only contain a summary.

What To Do Instead

In generic skill environments, treat save-thread as an alias for save-handoff:

  • save a concise resumable handoff with nmem t create
  • state clearly that this is a handoff summary, not a transcript-backed import
  • never present the result as the full original session

When Real Thread Save Is Feasible

Use a dedicated native connector when the runtime has a real transcript importer.

Examples include Nowledge connectors such as:

  • Gemini CLI
  • Claude Code

In those environments, nmem t save --from <runtime> can read local session files on the client machine and upload normalized thread messages to Mem.

When To Use Which Save Surface

Use save-handoff when:

  • you are in a generic npx skills environment
  • you want a restart point, checkpoint, or concise continuation summary
  • the runtime does not have a proven native thread importer

Use a native save-thread only when:

  • the agent has a dedicated Nowledge connector for that runtime
  • real transcript import is actually implemented for that runtime
  • you want the actual session captured for later search and inspection

Usage In Generic Skills Environments

Create a structured handoff instead of pretending to save the real thread:

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

Response Format

After successful save in a generic skills environment:

✓ Handoff savedTitle: {title}Summary: {content}Thread ID: {thread_id}

Always explain that this compatibility skill creates a resumable handoff, not a real transcript import.

Native Connector

These skills work in any agent via CLI. For auto-recall, auto-capture, and graph tools, check if your agent has a native Nowledge Mem connector — run the check-integration skill or see https://mem.nowledge.co/docs/integrations

来源与署名

来源:nowledge-co/community位于nowledge-mem-npx-skills/skills/save-thread提交1f4d7eb

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架