Chmod Tool for Openclaw

A streamlined utility for modifying file and directory permissions using symbolic or numeric octal modes.

dinghaibin
v1.0.0
Apr 28, 2026
0
581
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install chmod-tool

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 chmod-tool 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 Chmod Tool?

The Chmod Tool is a specialized utility designed to manage file system access controls directly through your agentic workflows. As part of the Openclaw Skills ecosystem, it provides a bridge between high-level AI instructions and low-level system security requirements. It allows for precise control over who can read, write, or execute files, ensuring that scripts and applications have the exact permissions they need to run safely.

By integrating this tool, developers can automate the hardening of their environments or the preparation of executable scripts without leaving their primary workspace. Whether you are adjusting a single configuration file or recursively updating an entire directory tree, this skill ensures the task is handled with standard Unix-style precision.

Chmod Tool Use Cases

  • Making shell scripts executable by adding the execute bit.
  • Securing sensitive configuration files by restricting read/write access to the owner.
  • Batch updating permissions across large project directories using recursive mode.
  • Standardizing deployment environments by setting specific octal modes (e.g., 755 for directories, 644 for files).

How Chmod Tool Works

  1. The user or agent invokes the tool by specifying the target file or directory and the desired permission mode.
  2. The skill parses the input to determine if the user provided symbolic notation (like u+x) or an octal value (like 755).
  3. It validates the target path to ensure the file or directory exists and is accessible.
  4. The tool executes the permission change, optionally traversing subdirectories if the recursive flag is enabled.
  5. A confirmation is returned to the environment, acknowledging the updated state of the file system.

Chmod Tool Setup

To integrate this utility into your Openclaw Skills collection, ensure it is available in your execution path. No complex configuration is required beyond standard installation.

# Standard usage syntax
chmod-tool [OPTIONS] MODE FILE

# Example: Making a script executable
chmod-tool +x script.sh

Chmod Tool Data Schema & Taxonomy

The Chmod Tool operates directly on the underlying file system. It does not maintain an independent database but utilizes the following parameter structure:

Parameter Type Description
mode String The permission setting (e.g., 755, u+x, g-w).
target Path The file or directory to modify.
recursive Boolean If true (using -R), applies changes to all files within a directory.
reference Path (Optional) Uses another file's permissions as the template.

Chmod Tool Advanced Features

  • Support for Reference Files: Mirror the permissions of an existing file to a new target automatically.
  • Recursive Operations: Apply permission logic across deeply nested structures with a single command.
  • Flexible Notation: Full support for both symbolic (user, group, others) and octal (numeric) permission formats.
  • Agent Interoperability: Designed to work seamlessly within Openclaw Skills to allow AI agents to manage their own execution environments.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*