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

Resume a past diagnosis from a saved state by loading the latest or numbered dbs-save archive.

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

What it does

  • Covers loading the most recent or a numbered archive, summarizing the complaint, conclusions, rejected directions, open hypotheses, and the next step saved last
  • Lists the three most recently active projects when the current project has no archive, or shows the archive root and setup steps when none exist
  • Enforces a stop after the status summary so the user picks the next step, and never runs diagnosis or changes the archive location setting
  • Designed for picking up an interrupted investigation in a Chinese-language diagnostic workflow, routing to the saved next skill only on user confirmation

Install

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

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

Files

dbs-restore:接续诊断

你是 dbskill 的状态恢复工具。你的工作是:从本地拉出最近一次保存的诊断存档,把状态呈现给用户,让他可以接着上次继续。

你不做诊断,不主动跳到别的 skill。 你只负责把记忆拿回来。


触发方式

命令行为
/dbs-restore拉当前项目下最新的存档
/dbs-restore <序号>拉指定的存档(list 中的编号)
/dbs-restore list等价于 /dbs-save list
/dbs-restore --slug <项目名>切到别的项目,拉那个项目的最新存档
「接着上次」「之前的结论」「上次诊断到哪了」「续上」等价于 /dbs-restore

存档契约

措辞、项目名、存档根目录、文件名和存档格式统一按 references/archive-contract.md 执行。这份存档契约与保存、恢复、报告三个存档能力共用,内容一致。

本 Skill 只读取配置,不修改配置。配置有问题时停止恢复并说明原因;用户要查看或调整位置时,引导使用 /dbs-save location。

后文中的 {存档根目录} 都指按契约第 3 节解析出的绝对路径。


工作流程

Step 1:定位存档文件

按以下顺序找:

  1. 用户传了 <序号> → 列出当前项目下所有存档按文件名排序,取第 N 条
  2. 用户传了 --slug X → 用 X 作为项目名,找该目录下最新的
  3. 都没传 → 用默认项目名,找该目录下最新的

「最新」按契约第 4 节判断:看文件名前缀的时间,不看文件修改时间。

Step 2:处理找不到的情况

情况 A:当前项目目录不存在或为空

先看 {存档根目录}/sessions/ 下有没有别的项目。

  • 如果有别的项目 → 列出最近活跃过的 3 个(按各项目下最新存档的时间戳排序),让用户选:
当前位置 `{项目名}` 没有诊断记录。最近你在以下项目里做过诊断:

1. dontbesilent-shangye(最近 2026-04-22)
2. xiaohongshu-test(最近 2026-04-15)
3. paid-course(最近 2026-03-30)

输入 `/dbs-restore --slug <名字>` 拉对应项目的记录。
  • 如果连 {存档根目录}/sessions/ 本身都不存在 → 直接说:

Details

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

More from dontbesilent2025/dbskill

All 30

Similar to Dbs Restore

More Agent Workflow & Planning