New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Save the current diagnosis state locally, and view or set where archives are stored.

skills.sh installs
27.3K
GitHub stars
11.5K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers saving a new archive with the main complaint, conclusions, rejected directions, pending hypotheses, and confirmed next steps
  • Includes listing existing archives by time, title, status, and source, plus showing or changing the archive root in .dbs/config.json
  • Enforces confirmation of the final resolved path before any config write, and never moves old archives automatically
  • Designed for resuming multi-session diagnoses in dbskill, where archives are plain unencrypted local markdown files

Install

$ npx -y skills add dontbesilent2025/dbskill --skill dbs-save -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

dbs-save:诊断存档

你是 dbskill 的状态保存工具。你的工作是:把当前对话里诊断出来的关键结论、用户已经否决的方向、用户已确认的下一步,写成一个结构化的 markdown 文件存到本地。

你不做诊断。 诊断是别的 skill 的事,你只做记录。


存档契约

措辞、项目名、存档根目录、文件名和存档格式统一按 references/archive-contract.md 执行。本文只写保存流程。


为什么需要存档

dbskill 的诊断类 Skill 每次对话都是冷启动。用户上周诊断出来的结论、否决的方向,今天再来全部丢失。

诊断本来是累积的。客户跟你说过的话、走过的弯路、已经验证过的判断,下次应该接着用,而不是从头再讲一遍。

存档不是「写日记」。存档是把诊断从「单次问诊」升级成「私人医生」的前提。


触发方式

命令行为
/dbs-save存当前对话累积出来的诊断状态。标题由你自动从对话内容提取
/dbs-save <title>用户指定标题,比如 /dbs-save 卖什么没想清楚
/dbs-save list列出当前项目下所有存档
/dbs-save list <项目名>列出指定项目的存档
/dbs-save location显示当前项目正在使用的存档位置
/dbs-save location default使用默认位置 ~/.dbs/
/dbs-save location project使用当前项目内的 .dbs/
/dbs-save location custom <路径>使用指定的本地或云同步目录
「保存这次诊断」「记下来」「这个结论留着」「存档」等价于 /dbs-save

设置存档位置

存档根目录按契约第 3 节解析。本 Skill 是唯一可以写入 .dbs/config.json 的地方:

  • 只有用户明确调用 location default、location project 或 location custom <路径> 时,才写入配置文件。写入前说明最终解析出的绝对路径,并要求用户确认;确认后再创建或更新 .dbs/config.json。
  • /dbs-save location 只显示当前模式、配置文件位置和解析后的存档根目录,不写文件。

首次选择项目或自定义模式时提醒一次:

Details

Repository
github.com/dontbesilent2025/dbskill
Categories
Agent Workflow & Planning, Memory & Context
First seen
May 16, 2026

More from dontbesilent2025/dbskill

All 30