AI & Integration v1.0.1

plakar-restore-workflows

Teaches the agent how to list, inspect, diff, and restore Plakar snapshots. Invoke when the user says "undo",...

misterflop 更新于 2026-03-16 1 浏览
下载 SKILL

技能说明

Teaches the agent how to list, inspect, diff, and restore Plakar snapshots. Invoke when the user says "undo", "rollback", "restore", or "revert".

使用场景

This skill covers restore operations only. Triggering snapshots is handled automatically by the openclaw-plugin-plakar plugin — you do not need to run plakar backup manually.

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/plakar-restore-workflows
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

4 个文件 · 15 kB
SKILL.md text/markdown
---
slug: plakar-backup
name: Plakar Restore Workflows
tags:
  - backup
  - filesystem
  - resilience
description: >
  Teaches the agent how to list, inspect, diff, and restore Plakar snapshots.
  Invoke when the user says "undo", "rollback", "restore", or "revert".
---

# Plakar Restore Workflows

This skill covers **restore operations only**. Triggering snapshots is handled
automatically by the openclaw-plugin-plakar plugin — you do not need to run
`plakar backup` manually.

## When to offer restore

Offer to restore from a Plakar snapshot when the user says anything like:
- "undo that", "roll back", "revert to before", "restore my files"
- "something went wrong, can we go back"
- "the last tool call broke things"

## Prerequisites

- `plakar` must be in `$PATH`
- The store path is available in plugin config as `plakar.store`
- Always pass `-no-agent` to avoid requiring a running plakar agent daemon

## CLI syntax (v1.0.6+)

All commands use the form:
```
plakar -no-agent at <store> <command> [options]
```

## List all snapshots

```bash
plakar -no-agent at <store> ls
```

Output: snapshot ID, timestamp, size, path. Present the list to the user and
ask which snapshot to restore from.

## Inspect a snapshot's contents

```bash
plakar -no-agent at <store> ls <snapshotID>
plakar -no-agent at <store> ls -recursive <snapshotID>:/path
```

Use this to confirm the snapshot contains the expected state before restoring.

## Diff two snapshots

```bash
plakar -no-agent at <store> diff <snapshotID1> <snapshotID2>
plakar -no-agent at <store> diff -highlight <snapshotID1>:/file <snapshotID2>:/file
```

Use this to show the user what changed between two points in time.

## Restore a snapshot

Restore all files to the original paths:
```bash
plakar -no-agent at <store> restore <snapshotID>
```

Restore to a specific directory:
```bash
plakar -no-agent at <store> restore -to /tmp/restore-here <snapshotID>
```

Restore a specific path within a snapshot:
```bash
plakar -no-agent at <store> restore -to /tmp/restore-here <snapshotID>:/path/to/file
```

**Always confirm with the user** before running a restore — it overwrites live files.

## Example agent interaction

> User: "The last edit broke my config file, can you undo it?"

1. Run `plakar -no-agent at <store> ls` and show the most recent snapshots
2. Ask: "Should I restore from snapshot `<id>` taken at `<timestamp>`?"
3. On confirmation: `plakar -no-agent at <store> restore -to <original-path> <id>`
4. Confirm the restore completed and invite the user to verify the file

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。