File Manager Secure for Openclaw

A security-first file management skill for AI agents that provides a recoverable alternative to dangerous terminal commands.

houssameddinemaatallah
v1.0.0
Mar 31, 2026
0
840
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install file-manager-secure

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-manager-secure 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 Manager Secure?

File Manager Secure is a robust safety layer designed to protect your file system during AI-driven operations. Unlike standard shell commands that offer no undo mechanism, this tool introduces professional-grade data loss prevention for Openclaw Skills. It ensures that every move, copy, or deletion is validated against strict security protocols before execution.

The core value lies in its multi-layered protection strategy, which includes path sanitization to prevent directory traversal attacks and a mandatory dry-run mode. By shifting from permanent deletion to a managed trash system, developers can leverage AI agents for complex file manipulations without the risk of accidental data destruction.

File Manager Secure Use Cases

  • Performing bulk file reorganization across workspace directories with pre-execution previews.
  • Safe deletion of temporary logs and files with a 30-day recovery window.
  • Preventing AI agents from accessing sensitive system directories, SSH keys, or environment credentials.
  • Auditing file system changes through comprehensive operation logging.

How File Manager Secure Works

  1. The skill intercepts the file command and performs path sanitization to check for forbidden patterns.
  2. It generates a detailed operation plan as a dry-run preview for the user or agent to review.
  3. For high-impact or bulk operations, it calculates total size and file count to trigger mandatory confirmation.
  4. It executes the file operation, moving deleted items to a versioned trash directory instead of permanent removal.
  5. The lifecycle concludes with an audit log entry and verification of the final file state.

File Manager Secure Setup

To integrate this safety layer into your Openclaw Skills environment, ensure the scripts are properly linked:

# Grant execution permissions to the core Python scripts
chmod +x scripts/*.py

# The default workspace is set to ~/.openclaw/workspace
# You can modify ALLOWED_DIRS in path_validator.py for custom paths

File Manager Secure Data Schema & Taxonomy

Component Details
Workspace The primary root for all operations (~/.openclaw/workspace)
.trash Managed directory storing deleted files with timestamped metadata
Audit Logs JSON-formatted logs tracking every successful and failed file operation
Forbidden Patterns Regex-based list blocking access to .env, .ssh, and system directories

File Manager Secure Advanced Features

  • Automatic 30-day rotation for the recovery trash to manage disk space.
  • Intelligent duplicate file detection during directory analysis.
  • Metadata preservation during move and copy operations to maintain file integrity.
  • Bulk protection logic that enforces size limits and file count thresholds.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*