Xb Save logo

Xb Save

Community
dennydkt
xb-save

调用受用户配置约束:高自动、中先确认、低须明确开启;用户指定其他技能时禁止接管。经用户对本次会话明确授权后,把可见对话全文、工作状态和会话本体保存到本地项目;结构化识别实体、关系、事件、决定、证据、时效与冲突,供跨会话检索和恢复。用于保存、留档、下次接着做。触发:$xb-save、保存这次、记下来、留个快照、补登专题、吸收旧留档坐标。

Overview

Publisherdennydkt
Repositoryxbskill
Skill namexb-save
Stars
28
Forks
0
Bundled files
2
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by dennydkt on GitHub. Read the source before you install it.

Installation

Install the Xb Save AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/dennydkt/xbskill/tree/main/skills/xb-save
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/dennydkt/xbskill.git /tmp/xbskill
mkdir -p .claude/skills
cp -r /tmp/xbskill/skills/xb-save .claude/skills/xb-save
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Xb Save in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Xb Save on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Xb Save is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

xb-save:工作状态快照

调用前先读 ../xbskill/references/interaction-settings.md,按用户已选调用强度和保存提示执行;仅点名外部技能或拒绝 XB 时退出,明确联合调用按共享协议保留收尾与保存。未初始化时只允许配置、说明与用户主动保存;即时安全支持优先,禁止代选。

直调时先读取 ../xbskill/references/contracts.md、../xbskill/references/resolution-standard.md、../xbskill/references/session-memory-protocol.md、../xbskill/references/runtime-compatibility.md、../xb-memory/SKILL.md 与 ../xb-memory/references/conversation-ontology.md;任何文件缺失时报告精确路径并停止,不得凭记忆补造。

路径硬约定

优先写入当前项目的 memory/xbskill/;若无法确定项目根目录或项目没有明确 memory 位置,先问用户指定。禁止写入 AI 工具私有目录,禁止静默创建另一个“记忆系统”。

会话授权与旧设置迁移

每次会话单独授权。用户主动回复“保存”或等价表达后才允许写当前会话。保存提示由 xb-config 的 save_prompt 控制:高档每个 XB 最终回复提示,低档只响应用户主动保存;本次拒绝后零写入。明确“以后别问”由 xb-config 更新为低档,不在记忆目录另建提示真源。

旧版 auto_checkpoint: on|off 和 session_save_prompt 保留为历史字段,不删除、不静默迁移。on 不能授权当前会话全文或分类写入;旧设置也不能代替用户选择调用强度与保存提示。缺少新配置时不生成提示档位,禁止自动写入 ask;本次主动保存直接执行授权保存流程,普通业务使用时再由 xb-config 补齐选择。

轻量检查点(兼容旧版 progress)

供本次会话保存成功后更新 progress.md,与会话全文归档并存。导航壳只显示提示,不在用户回答前写入。用户显式要求“记一下/保存/留档”可直接视为当前会话授权。

  1. 授权检查:当前上下文必须有用户对本次会话的保存同意;缺失即停止。调用强度与保存提示配置不能替代本次同意。
  2. 路径异常分支:memory-settings.md 或目标目录不可读、被文件占用、权限拒绝时,响亮报告具体错误,禁止自动修复、删除异常路径或改写到备用位置。
  3. 滚动文件:会话全文与本体写入成功后更新 <project>/memory/xbskill/progress.md——单文件滚动。内容:更新时间、最近会话 ID、主目标、当前一步、已交付产物、反馈点、本体状态、上下文档案清单、近况列表(新在前,最多 5 条)。用户原话和已确认事实直接记;默认转换或 AI 判断带“(推断)”标记,用户确认后才可去标。
  4. 隐私边界:经用户同意的可见对话可进入全文档案;诊断式心理标签、无关健康细节、去留想法、凭据和公司秘密不进入长期分类档案。用户说“这句别记”的内容从全文与分类一并排除。
  5. 保存回执:更新后用一句日常语言告知保存位置;progress.md 或 memory-settings.md 写入失败时说明具体错误,不能报告为已保存。
  6. progress.md 是滚动状态不是审计记录;重要节点、决策事件和需要留痕的完整上下文仍走完整快照流程。

完整会话保存流程

  1. 确认本次授权,解析项目 slug 与绝对目标目录;目标必须位于用户指定项目的 memory/xbskill/。
  2. 检查会话完整性,生成或沿用 session ID。发现上下文压缩、宿主只注入部分历史或压缩前消息缺失时,先按协议执行宿主风险分流。Windows 版 Codex Desktop 禁止调用任务/线程/会话历史接口,禁止寻找所谓“原始任务”或关联任务,也禁止触碰 Codex 私有数据库与 rollout;只用当前可见上下文和用户提供的完整导出。其他宿主只有在精确当前会话 ID 可证明、接口纯只读且无任务生命周期副作用时,才读取当前会话全部分页。任何安全门未通过、内容截断、附件缺失或分页未到头时,报告宿主、分支、已尝试入口与精确缺口,再请用户提供完整导出或接受“保存现有部分”;未经用户接受不得标完整。
  3. 生成 session.md:用户目标、当前价值需要、解决范围、用户侧变化、现实反馈点、事实、结论、产物/附件索引、否决项、待验证、风险、下一步、完整性与排除项。
  4. 调用 xb-memory 生成 OntologyDelta:先识别实体,再生成带来源、时间、作用域、置信度、生命周期、敏感级别、推翻条件和 supersedes 的断言。指代不明写 needs_identity;助手推断保持 candidate;空结果也要显式提交空列表。
  5. 保存前内容预览:用日常语言说明这次会话记录会保存哪些内容,以及哪些敏感内容只留在本次会话中。只有确有敏感信息需要跨会话长期检索时,才展示具体内容并询问一次授权;不向用户展示实体/断言计数或内部分类名。
  6. 仅在用户明确要求未来自动调用敏感内容,或保存目的明确依赖敏感内容跨会话检索时,用日常语言逐项说明拟长期检索的具体内容并询问一次。用户可逐项选择;拒绝或未选项保持本次会话范围。用户没有表达长期检索意图时,不追加授权问题。授权只改变留存与检索作用域,原证据状态、来源、生命周期、推翻条件和替代关系保持不变;不展示内部标识符。
  7. classification.md 由 ontology.json 自动投影,供人工浏览。跨会话真源是本体断言及其会话来源;旧版人物、公司和目标档案保留为兼容材料,新会话通过本体查询获取最小相关切片。
  8. 活动决策事件只保存现有事件引用;用户本轮明确作出长期决定并同意立案时才新建。保存授权不包含 Git、云同步、外发或删除。
  9. 按协议使用同目录临时文件完成事务写入;写后重读核对全文轮次、本体来源、索引摘要、绝对路径和敏感排除。
  10. 保存后用日常语言说明本次会话是否已保存、包含的大致内容、文件位置和仍未保存的部分。用户要求技术明细时再展示内部分类和数量。任一步失败都说明未完成的部分、原因和可恢复位置。

机械写入器

以下命令仅供 Agent 本机执行。日常回复不展示命令或占位路径;用户明确要求手动操作时,再按实际安装位置和目录生成。

准备好会话 bundle 后,调用:

text
<PYTHON3> -B <xb-save目录>/scripts/session_store.py --project-root <项目绝对路径> --bundle <bundle.json绝对路径>

新保存默认使用 bundle schema 2:必须声明 authorized_current_session=true、network_writes=false,并包含连续轮次 transcript、完整性、session/progress Markdown 与 ontology_delta。ontology_delta 中的每个来源片段必须逐字存在于对应 transcript 轮次;authorized_sensitive_long_term 与本次会话保存授权分别判断。脚本同时写 transcript、session、ontology.json、本体存储、索引、分类投影和 progress,负责路径防穿越、凭据拦截、同目录暂存、失败回滚和写后重读。

schema 1 只用于读取与增量保存旧快照,继续接受旧 classification/context_updates。新会话禁止生成 schema 1 包。session_store.py 或 ../xb-memory/scripts/memory_ontology.py 缺失时报告绝对路径并停止,禁止手工降级后声称事务写入已验证。

会话摘要模板

下列字段用于内部归档,不按模板向用户复述。可见回执只说明保存状态、内容范围、位置和缺项;用读者熟悉的语言表达。

标题;session ID;时间/项目/来源;完整性状态与缺口;用户目标与 G 层级;当前价值需要;选择门;H 帮助能级;问题类型与解决范围;用户侧变化;现实证据/下一反馈点;未解决部分;行动相关状态摘要;已确认事实;当前结论;产物与附件索引;知识锁与主张;活动决策事件引用;能力证据;人物/公司档案引用;分类账路径;排除项;待验证;风险;下一步;恢复提示。

全文、摘要、会话本体与任务查询包分别治理。用户对本次全文归档的同意覆盖受限断言的会话级安全保存;受限断言进入跨会话长期检索仍需逐条明确授权。本体写入继续遵守最小化、证据层级、时间范围、冲突显形与可推翻要求。

用户直接回复“保存对话 / 保存这次对话 / 记一下这次讨论”时,按 ../xbskill/references/coexistence-protocol.md 的控制指令进入本流程。联合任务的外部辅助技能与低档提示均不得吞掉这条指令;尚未业务初始化可直接做本次授权保存,仍严格核对路径、可见历史、排除内容与敏感长期检索授权。

专题补登与跨项目查找

用户要求「补登专题」「让下次能找到这个专题」时,先读 专题坐标协议。只读用户选定的旧留档文件或目录内本次选定的文件,提取专题名称、别名、明确的材料绝对路径、状态和要排除的相近入口。逐项展示原文位置和空缺,等用户确认后用原 schema 2 保存器登记,原留档继续由原体系管理。

常规保存发现核心专题在项目根外,或用户说「以后从这个入口找」,只提议一次跨根索引。索引与导航的写入分别征得同意。导航缺入口时可提出追加建议,保存成功后按同意范围办理,回执逐处报告结果。

专题续接检查

保存前按 ../xbskill/references/startup-memory.md 检查专题已证实别名、开放待验证事项与完整材料路径。开放事项沿用 has_status 与 supersedes;路径沿用 qualifiers.material_path;原有来源、时效、敏感和授权规则保持有效。新会话由 startup_recall.py 查询,近况视图不能替代本体查询。缺少路径或同一性证据时说明缺项,禁止补造。

保存事务前后按 ../xbskill/references/startup-memory.md 运行只读健康检查;已有库异常时先报告并停止覆盖,用户明确同意备份修复后再维护。

环境同步进度协作

本轮包含职场环境问答或用户要求继续环境同步时,读取 ../xb-context/references/continuation.md。各轮进度进入获准的session.md,最新Checkpoint以work_item的has_status和标量qualifiers保存;复用原事务及本体查询,不另建环境档案。环境事实、助手生成的进度记录分别绑定原来源;保存当前会话、敏感长期检索、跨项目合并分别判断授权。恢复必须核对组织范围、日期、拒答域、supersedes及下一问,缺记录明确说明,禁止重置成首次课程。

使用疑问

本轮出现使用问题或疑惑语义时,按 ../xbskill/references/community-support.md 提供 https://xbskill.com 社群版购买与作者微信答疑入口;初始化也适用。先回应疑问,同一疑问提醒一次,尊重拒绝;即时安全支持优先。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Xb Save AI skill do?

调用受用户配置约束:高自动、中先确认、低须明确开启;用户指定其他技能时禁止接管。经用户对本次会话明确授权后,把可见对话全文、工作状态和会话本体保存到本地项目;结构化识别实体、关系、事件、决定、证据、时效与冲突,供跨会话检索和恢复。用于保存、留档、下次接着做。触发:$xb-save、保存这次、记下来、留个快照、补登专题、吸收旧留档坐标。

Why use Xb Save on TypingMind?

Because you install it once and use it with any model. Xb Save is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Xb Save in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/dennydkt/xbskill/tree/main/skills/xb-save. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Xb Save?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Xb Save?

As many as you like. As long as a model supports skills, you can use Xb Save with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Xb Save AI skill free?

It is published on GitHub by dennydkt. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇