← 返回 Skills 市场
vincsta

dev-backup

作者 vincsta · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ 安全检测通过
128
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install dev-backup
功能描述
Create versioned snapshots of a workspace project during development to enable safe rollback before risky changes or upon user request.
使用说明 (SKILL.md)

dev-backup

Snapshot the current state of a named project for safe rollback.

Usage

Each project gets its own snapshot numbering. The project name is always the first argument.

# Backup any project
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
bash "$SCRIPT_DIR/dev-backup.sh" \x3Cproject-name> --project-dir /path/to/your/project

# Example: backup a "my-app" project
bash "$SCRIPT_DIR/dev-backup.sh" my-app --project-dir /home/user/projects/my-app

# No --project-dir? Uses the current working directory
cd /home/user/projects/my-app
bash "$SCRIPT_DIR/dev-backup.sh" my-app

Naming

Snapshots are named per project:

  • my-app-snapshot-1, my-app-snapshot-2, …
  • another-project-snapshot-1, another-project-snapshot-2, …

Each project tracks its own counter independently.

Excluded from snapshot

  • .git, node_modules, .vite, .cache, *.log, .env, backups/

Restore

To restore a snapshot:

cp -r \x3Cbackups-dir>/\x3Cproject-name>-snapshot-3/ \x3Cyour-project-dir>/

Or use the .latest symlink:

cp -r \x3Cbackups-dir>/.latest/ \x3Cyour-project-dir>/

Verification

After backup, confirm:

ls -la \x3Cbackups-dir>/

You should see the project-prefixed snapshot and .latest symlink.

安全使用建议
This skill appears coherent and limited to local backup actions. Before installing/running: (1) confirm the OUTPUT_DIR location so backups are not written somewhere unexpected; (2) ensure you have enough disk space for snapshots; (3) install rsync if you want the script's excludes to be applied — the tar fallback does not apply the exclude list (so sensitive files like .env may be copied if rsync is missing); (4) run as a normal user (not root) and review the snapshot directory after the first run; and (5) if you require exclusion of additional sensitive files, update the script accordingly. There are no network calls or credential requests in the skill.
功能分析
Type: OpenClaw Skill Name: dev-backup Version: 1.0.1 The skill is a legitimate utility for creating versioned snapshots of development projects. The shell script (scripts/dev-backup.sh) implements standard backup logic using rsync or tar and includes security-conscious exclusions for sensitive files like .env and .git. No evidence of data exfiltration, malicious execution, or harmful prompt injection was found.
能力评估
Purpose & Capability
The name/description match the provided SKILL.md and the included shell script: it creates numbered, local snapshots of a project. It does not request unrelated credentials or services. The script uses common system utilities (rsync, tar, du, ln, mkdir, rm); rsync is optional but reasonable for this task.
Instruction Scope
SKILL.md instructs running the included script and how to restore. The instructions are scoped to reading project files and writing backups to a local backups directory; there are no network calls, no external endpoints, and no instructions to read unrelated system files or secrets.
Install Mechanism
No install spec is provided (instruction-only plus a script file). Nothing is downloaded or extracted at install time. This lowers risk — the script runs only when invoked.
Credentials
The skill requires no credentials or config paths. The script accepts PROJECT_DIR and OUTPUT_DIR via arguments or environment, which is appropriate. It will create files under the chosen backups directory (filesystem write access), which is expected for a backup tool.
Persistence & Privilege
The skill is user-invocable, not forced-always, and does not request persistent agent privileges or modify other skills. It does create/modify files only in the specified output directory.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install dev-backup
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /dev-backup 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- Made usage examples and documentation more generic for broader applicability (e.g., replaced user-specific paths and project names with placeholders). - Improved clarity in usage instructions and examples for both backup and restore commands. - No changes to functionality; only documentation updates.
v1.0.0
- Initial release of dev-backup. - Create workspace snapshots per project with progressive numbering. - Supports project-specific excludes (e.g., .git, node_modules, .env). - Simple restore instructions with .latest symlink for quick access. - Designed for backups before risky changes or on user request.
元数据
Slug dev-backup
版本 1.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

dev-backup 是什么?

Create versioned snapshots of a workspace project during development to enable safe rollback before risky changes or upon user request. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 128 次。

如何安装 dev-backup?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install dev-backup」即可一键安装,无需额外配置。

dev-backup 是免费的吗?

是的,dev-backup 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

dev-backup 支持哪些平台?

dev-backup 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 dev-backup?

由 vincsta(@vincsta)开发并维护,当前版本 v1.0.1。

💬 留言讨论