← Back to Skills Marketplace
mzfshark

RedHat File Operations

by Mauricio Z. · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
73
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install axodus-file-operations
Description
Perform safe, auditable file operations with path validation and backups.
README (SKILL.md)

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: true for overwrite/delete).
  • constraints (optional, string[]): e.g., “only within workspace”.

Steps

  1. Resolve absolute paths and normalize.
  2. Validate scope:
    • operation stays inside the intended workspace root(s)
    • block path traversal/suspicious targets
  3. Preflight:
    • confirm existence for read/update/delete
    • confirm non-existence (or allow overwrite explicitly) for write/move
  4. If overwrite/delete and backup=true, create a backup copy (timestamped).
  5. Execute the operation with explicit reporting (what changed).
  6. 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: update
  • paths: { target: "apps/api/.env.example" }
  • Validation: backup created; diff is minimal; file still parses.
Usage Guidance
This skill appears coherent with its stated goal and does not request credentials or install code, but it performs potentially destructive file operations. Before installing or enabling it: (1) confirm what the platform supplies as the 'workspace root' and ensure the skill cannot escape that scope, (2) require explicit user confirmation for delete/recursive/overwrite actions and test on non-production data, (3) ensure backups created by the skill are stored where you expect and protected, (4) if you are uncomfortable with autonomous invocation, disable autonomous invocation or require manual invocation/approval in your agent policy, and (5) review audit/logging policies so all file changes are recorded. If you need more assurance, ask the maintainers to specify how workspace roots are determined and to provide an implementation review or sample run logs.
Capability Analysis
Type: OpenClaw Skill Name: axodus-file-operations Version: 1.0.0 The skill bundle defines a set of instructions for an AI agent to perform file operations with an emphasis on safety and auditability. The instructions in SKILL.md and file-operations.md explicitly mandate path validation, the blocking of path traversal, and the creation of backups for destructive operations. No malicious code, data exfiltration logic, or harmful prompt injection attempts were found in the provided files.
Capability Assessment
Purpose & Capability
Name, description, and runtime instructions are aligned: the skill describes reading/writing/updating/deleting/moving/copying files with path validation and backups and does not request unrelated binaries, env vars, or external services.
Instruction Scope
SKILL.md stays within the stated purpose and contains explicit safety rules (preflight checks, resolved path printing, backups). It does not instruct network transmission or credential access. One ambiguity: it refers to an 'MCP-enabled environment' and 'workspace root(s)' but does not declare how those roots are obtained or enforced — that platform integration detail is external to the skill and should be verified by the deployer.
Install Mechanism
Instruction-only skill with no install spec and no code files. Nothing is written to disk by the skill itself during installation.
Credentials
The skill declares no environment variables, credentials, or config-path requirements. It does not request broad secrets or unrelated access.
Persistence & Privilege
always:false (normal) and user-invocable:true. The skill can be invoked autonomously by the agent (disable-model-invocation:false) — this is platform default, but combined with file-editing capabilities it means you should confirm agent policies and prompting/confirmation behavior before allowing autonomous runs.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install axodus-file-operations
  3. After installation, invoke the skill by name or use /axodus-file-operations
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of file-operations skill. - Perform safe, auditable file operations: read, write, update, delete, move, and copy. - Path validation and scope checks prevent unauthorized file access. - Automatic backups for destructive actions (overwrite, delete) for easy recovery. - Detailed output reporting includes reverted changes and backup locations. - Enforces safety rules to avoid accidental data loss or unauthorized operations.
Metadata
Slug axodus-file-operations
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

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.

💬 Comments