home/productivity/restore-prompt

Restore.prompt

GPTClaudeDeepSeek··1,099 copies·updated 2026-07-14
restore-prompt.prompt
---
mode: 'agent'
description: 'Caveman: restore a Markdown file from its .original.md backup (byte-identical) and remove the backup.'
__caveman: true
---

<!-- caveman:command — managed by modules/caveman/bin/install-commands -->

Restore the file the user names in this prompt to the byte-identical
content of its `.original.md` backup, then remove the backup.

Steps:

1. Ask the user for the target path if they did not provide one.
2. Verify both the target file and `<target>.original.md` exist.
3. Run `modules/caveman/bin/understudy-compress --restore <path>` from
   the project root (fall back to `scripts/understudy-compress --restore`
   for legacy layouts).
4. Confirm the file is back to the pre-compression content and that the
   backup file has been removed.
5. Do **not** stage or commit. The user reviews the diff first.

If no backup exists, stop and tell the user: there is nothing to restore
because the file was never compressed (or the backup has already been
consumed by a previous `--restore`).

when to use it

Community prompt sourced from the open-source GitHub repo erniker/understudy (MIT). A "Restore.prompt" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

productivitycommunitydeveloper

source

erniker/understudy · MIT