File Backup Skill for Openclaw

An automated safeguard that creates temporary backups of critical files before any modifications occur, ensuring data integrity for Openclaw Skills.

jiaqi-guo-0114
v1.0.0
Mar 17, 2026
0
1.2k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install file-backup

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install file-backup using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is File Backup Skill?

The File Backup Skill is a proactive data protection utility designed for AI agents to prevent accidental data loss during file operations. It ensures that any significant changes to configuration files, core system documents, or sensitive user data are preceded by a timestamped backup. This skill acts as a safety net, allowing developers and users to verify modifications before the temporary restore points are removed.

By integrating this logic into your Openclaw Skills workflow, you mitigate the risk of corrupted configurations or broken core logic. The skill enforces a strict rule: no modification can take place without a successful backup, providing a robust layer of operational security for automated file editing and system maintenance tasks.

File Backup Skill Use Cases

  • Modifying critical application configurations like config.json or settings.yaml.
  • Updating core agent logic files such as SOUL.md, AGENTS.md, or MEMORY.md.
  • Editing sensitive user-specified documents where data integrity is paramount.
  • Testing experimental changes to codebase files without permanent risk.
  • Ensuring system stability when Openclaw Skills perform automated updates.

How File Backup Skill Works

  1. The agent detects an intent to modify a file designated as important or sensitive.
  2. A backup is created in the specified directory (defaulting to backups/) using a timestamped filename format like filename.date.bak.
  3. The agent performs the requested file modification or edit as directed.
  4. An active notification is sent to the user to review the changes and confirm they are correct.
  5. Upon receiving explicit user confirmation to delete backup, the temporary file is removed to clean up the workspace.

File Backup Skill Setup

To get started with this skill, ensure your project environment has a designated backup directory. You can manually create it or let the skill handle it during the first run.

# Create the default backup directory
mkdir -p backups

You can configure the Openclaw Skills environment to recognize specific sensitive files that should always trigger this workflow, such as core mechanism files or custom JSON configurations.

File Backup Skill Data Schema & Taxonomy

Item Description Format/Example
Backup Directory Location where temporary files are stored backups/
Filename Pattern Original name + date suffix + .bak extension config.json.2026-03-14.bak
Trigger Files Core files that automatically initiate a backup .json, .yaml, .md
Retention Policy Status of backup if not confirmed by user Persistent until explicit deletion
Metadata Internal tracking for Openclaw Skills Includes original path and timestamp

File Backup Skill Advanced Features

  • Custom trigger lists for user-specific sensitive documents and proprietary file types.
  • Support for core Openclaw Skills files including SOUL.md, MEMORY.md, and AGENTS.md.
  • Strict No-Backup, No-Modify policy enforcement to prevent any unauthorized or unsafe edits.
  • Active reminder system that prevents the agent from forgetting to clean up or verify changes.
  • Configurable backup paths to support different project structures and environment requirements.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*