← Back to Skills Marketplace
275
Downloads
0
Stars
2
Active Installs
1
Versions
Install in OpenClaw
/install safe-edit
Description
安全配置修改辅助技能 - 在修改重要配置文件前自动设置回滚,支持多平台(Linux/macOS/FreeBSD/Windows)
Usage Guidance
This skill largely does what it says — it backs up files and schedules a 15-minute rollback — but before installing or enabling it, consider:
- The provided script writes under /root/.openclaw (backups, logs, scripts) and may need root or equivalent permissions to operate on system config files; ensure you are comfortable granting that level of access.
- If the host lacks the 'at' command the script will try to run apt-get/yum to install it; that implies network package installs and elevated privileges. If you do not want automatic package installs, run or inspect the script manually and install dependencies yourself.
- The script generates rollback scripts and scheduled tasks (at jobs, schtasks, or background sleep processes). Review the generated rollback script content (it copies backups over targets) so you know exactly what will be executed later.
- The skill metadata does not declare these filesystem/scheduler requirements — treat that as an omission. Prefer running the script in a controlled environment first (non-production) and review/modify paths (BACKUP_DIR, ROLLBACK_SCRIPT) before allowing the agent to invoke it on critical targets.
If you want to proceed safely: manually install and audit safe-edit.sh, create a non-root backup directory and adjust BACKUP_DIR/ROLLBACK_SCRIPT, and confirm the host's package/install behavior so the script will not perform unexpected installs.
Capability Analysis
Type: OpenClaw Skill
Name: safe-edit
Version: 1.0.0
The 'safe-edit' skill is a utility designed to provide a safety net when modifying configuration files by creating backups and scheduling automatic rollbacks. It uses standard system tools like 'at' (Linux/macOS), 'schtasks' (Windows), and background subshells to restore files if a change is not confirmed within 15 minutes. While the script (safe-edit.sh) requires high privileges to access /root/ paths and potentially install the 'at' package, its logic is transparently aligned with its stated purpose and contains no evidence of data exfiltration, backdoors, or malicious intent.
Capability Assessment
Purpose & Capability
The name/description (safe-edit = backup + delayed rollback for config edits) match the provided shell script and SKILL.md: the script creates backups, schedules a 15-minute rollback, and supports cancel/confirm operations across platforms. The functionality implemented is coherent with the stated purpose.
Instruction Scope
The SKILL.md instructs the agent to run safe-edit start/confirm/cancel on target files and to recommend safe-edit for any config edits — that is consistent with the script. The instructions do not ask the agent to read unrelated secrets or contact external endpoints. However the policy to 'always recommend' safe-edit for any config change gives the agent broad discretion to frequently schedule operations and create artifacts on the host.
Install Mechanism
There is no install spec (instruction-only) which limits remote code fetch risks. The provided shell script will attempt to call package managers (apt-get/yum) to install at if missing — this implies network package installation may occur at runtime if at is absent. That is expected for the feature, but it is an implicit side-effect not declared in metadata.
Credentials
The skill metadata declares no required env/config access, yet the script uses and writes to system paths (/root/.openclaw/backups, /root/.openclaw/scripts, /root/.openclaw/logs) and may create scheduled tasks (at, schtasks) and rollback scripts. Running these operations typically requires elevated filesystem and scheduler permissions. The mismatch between claimed 'no required config paths' and actual writes under /root is a proportionality concern that users should be aware of.
Persistence & Privilege
The skill does not set always:true and is user-invocable (normal). The script persists artifacts (backup files, rollback scripts, at jobs, scheduled tasks, background sleep PIDs) on disk and in system scheduler, which is necessary for rollback but means the skill creates persistent state and scheduled actions on the host. This behavior is expected but worth auditing before use.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install safe-edit - After installation, invoke the skill by name or use
/safe-edit - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
safe-edit v1.0.0
Provides an automatic rollback mechanism before editing critical configuration files.
- Automatically backs up target configuration files before modification.
- Sets a timed (15-minute) automatic rollback to prevent accidental misconfiguration.
- Allows immediate confirmation to cancel rollback or manual rollback if needed.
- Supports multiple platforms: Linux, macOS, FreeBSD, Windows.
- CLI tool and clear usage guidance included to ensure safe operations with configs.
Metadata
Frequently Asked Questions
What is Safe Edit?
安全配置修改辅助技能 - 在修改重要配置文件前自动设置回滚,支持多平台(Linux/macOS/FreeBSD/Windows). It is an AI Agent Skill for Claude Code / OpenClaw, with 275 downloads so far.
How do I install Safe Edit?
Run "/install safe-edit" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Safe Edit free?
Yes, Safe Edit is completely free (open-source). You can download, install and use it at no cost.
Which platforms does Safe Edit support?
Safe Edit is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Safe Edit?
It is built and maintained by ijevin (@ijevin); the current version is v1.0.0.
More Skills