RedHat File Operations
/install axodus-file-operations
SKILL: file-operations
Purpose
Perform safe, auditable file operations (read/write/update/delete/move/copy) in an MCP-enabled environment with path validation and backups.
When to Use
- Any task requires editing files on disk.
- You need to ensure changes are safe and reversible.
- You must avoid accidental overwrites or destructive operations.
Inputs
operation(required, enum:read|write|update|delete|move|copy).paths(required, object):source(optional, string)target(optional, string)targets(optional, string[])
content(optional, string): for write/update.backup(optional, boolean, default:truefor overwrite/delete).constraints(optional, string[]): e.g., “only within workspaceâ€.
Steps
- Resolve absolute paths and normalize.
- Validate scope:
- operation stays inside the intended workspace root(s)
- block path traversal/suspicious targets
- Preflight:
- confirm existence for read/update/delete
- confirm non-existence (or allow overwrite explicitly) for write/move
- If overwrite/delete and
backup=true, create a backup copy (timestamped). - Execute the operation with explicit reporting (what changed).
- Post-validate:
- file exists where expected
- content/diff matches expectation
Validation
- Operation is reversible when possible (backup exists for destructive actions).
- The final target path is verified before execution.
- The operation result is explicitly reported (not silent).
Output
operation: "\x3Coperation>"
affected: ["\x3Cpath>"]
backup_paths: ["\x3Cpath>"]
result: "success|blocked|failed"
notes: ["..."]
Safety Rules
- Never delete or overwrite recursively without explicit user confirmation.
- Never operate on computed paths without printing the resolved final paths first.
- Prefer patch-based updates over full-file rewrites when possible.
Example
Update a config file:
operation:updatepaths:{ target: "apps/api/.env.example" }- Validation: backup created; diff is minimal; file still parses.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install axodus-file-operations - After installation, invoke the skill by name or use
/axodus-file-operations - Provide required inputs per the skill's parameter spec and get structured output
What is RedHat File Operations?
Perform safe, auditable file operations with path validation and backups. It is an AI Agent Skill for Claude Code / OpenClaw, with 73 downloads so far.
How do I install RedHat File Operations?
Run "/install axodus-file-operations" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is RedHat File Operations free?
Yes, RedHat File Operations is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does RedHat File Operations support?
RedHat File Operations is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created RedHat File Operations?
It is built and maintained by Mauricio Z. (@mzfshark); the current version is v1.0.0.