Back to Skills

dbs-restore

把上次诊断的状态拉出来,接着用。配合 dbs-save 使用。 触发方式:/dbs-restore、/续上、「接着上次」「之前的结论」「上次诊断到哪了」 Restore the most recent diagnosis snapshot saved by dbs-save. Trigger: /dbs-restore, "continue from last time", "where did we leave off"

6,305stars821forksUpdated 6/8/2026

Security Assessment

Safe(100/100)
Security Score100/100

About dbs-restore

dbs-restore is a state recovery skill for continuing a previously saved diagnosis workflow. It retrieves the most recent diagnosis archive saved by dbs-save and presents the key state back to the user so they can resume from where they left off. Its purpose is not to perform diagnosis itself, but to restore context, summarize prior progress, and prevent users from having to restate earlier findings, rejected directions, pending hypotheses, or recommended next steps.

dbs-restore supports command-based and natural-language triggers, including /dbs-restore, /dbs-restore with an archive number, /dbs-restore list, project-specific restoration with --slug, and phrases such as continuing from last time. It locates archives by project, using the current directory name as the default project identifier, and sorts archive files by timestamp in the filename rather than file modification time. It handles missing archives by showing recently active projects when available, delegates list mode to the dbs-save list behavior, and presents restored state in a compact user-facing Markdown summary.

This skill is intended for users working through multi-step diagnostic processes who need continuity across conversations or sessions. It is especially useful when a user has previously saved diagnostic progress and wants to resume without restarting. It is also designed for dbskill-based workflows where diagnosis, saving, restoration, and routing to later skills are separated. The main target users are people who repeatedly run structured diagnosis tasks and need reliable context recovery across projects.

FAQ

How do I restore the latest diagnosis archive?

Use /dbs-restore, or say something equivalent such as "continue from last time". The skill restores the latest archive for the current project.

Can I restore a specific archive instead of the latest one?

Yes. Use /dbs-restore <number>, where the number refers to an archive listed for the current project.

Can I restore an archive from another project?

Yes. Use /dbs-restore --slug <project-name> to restore the latest archive from a different project.

Does this skill perform diagnosis after restoring the archive?

No. dbs-restore only retrieves and presents the saved state. It waits for the user to decide how to continue before routing to another skill.

What happens if no archive exists for the current project?

If other projects have archives, it lists up to three recently active projects and suggests restoring one by project name. If no saved diagnosis records exist at all, it tells the user to run a diagnosis skill and save it first.

Install dbs-restore

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill