filesystem-access
安全的本地文件读/写/列表能力,默认只在 OpenClaw workspace 目录内工作。
Why use this skill?
Learn to use the OpenClaw filesystem-access skill for secure file reading, writing, and directory management within your workspace. Boost your agent's productivity.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/huanz/filesystem-accessWhat This Skill Does
The filesystem-access skill provides OpenClaw agents with controlled, secure, and robust capabilities to interact with the local filesystem. By restricting operations to the designated workspace directory, this skill ensures that agents can perform common file management tasks like reading logs, creating reports, writing configuration files, or listing directory contents without risking the integrity of the host system. It acts as the bridge between the agent's virtual intelligence and the physical data stored in your project environment.
Installation
To integrate this skill into your OpenClaw environment, execute the following command in your terminal:
clawhub install openclaw/skills/skills/huanz/filesystem-access
Ensure that your OpenClaw instance is updated to the latest version to maintain full compatibility with the workspace isolation protocols.
Use Cases
- Project Documentation: Automatically generate or update README.md and changelog files based on recent code commits.
- Log Analysis: Efficiently read and summarize application log files located within the logs directory to identify runtime errors.
- Configuration Management: Programmatically update .env or json config files to align with environment-specific requirements.
- Data Organization: Manage large data sets by listing directory contents, moving files into sub-folders, or cleaning up temporary cache files within the workspace.
Example Prompts
- "Please list all files in the current directory and identify any log files that have been updated in the last hour."
- "Read the content of config.json in the workspace, add a new parameter 'timeout' set to 30, and save it back to the file."
- "Create a new directory named 'reports' and generate a markdown summary of the recent project progress, saving it as 'reports/summary.md'."
Tips & Limitations
- Workspace Isolation: Always remember that this skill is sandboxed. You cannot access files outside the predefined workspace path. Attempting to navigate to system directories or parent directories outside the workspace will result in a permission error.
- Data Integrity: While the skill is safe, always verify critical changes. Avoid using the delete operation on important source files without a confirmed backup.
- Efficiency: When working with large files, consider reading segments rather than loading the entire file into memory to optimize performance.
- Security: This skill is designed for developer productivity. Do not use it to handle sensitive system credentials that should ideally be stored in environment variables or dedicated secret management services.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-huanz-filesystem-access": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read