file-cleaner
A specialized skill for safely cleaning up temporary files and directories. Use this when you need to remove temp files, clear caches, or delete logs to free up space or maintain hygiene. Restricted to 'temp/', 'logs/', and 'cache/' directories for safety.
Why use this skill?
Maintain a clean OpenClaw workspace with the file-cleaner skill. Safely automate the deletion of temporary files, logs, and cache while protecting your project data.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/autogame-17/file-cleanerWhat This Skill Does
The file-cleaner skill is a robust, security-first utility designed to maintain the health and cleanliness of your OpenClaw workspace. As automated agents perform tasks, they often generate secondary artifacts such as temporary experimental data, debugging logs, and transient cache files. If left unchecked, these files can accumulate, consuming valuable storage space and potentially cluttering the environment. This skill provides a surgical approach to file deletion, acting as a specialized garbage collector that adheres to strict path restrictions to ensure your primary project source code remains untouched.
Installation
To integrate this utility into your OpenClaw environment, use the ClawHub package manager. Run the following command in your terminal:
clawhub install openclaw/skills/skills/autogame-17/file-cleaner
Ensure that you have sufficient permissions in your workspace directory to execute node-based scripts before installation.
Use Cases
The file-cleaner is ideal for:
- Automated Hygiene: Running a cleanup routine at the end of a long-running data analysis loop to clear out temporary experiment folders.
- Log Rotation: Removing bloated or outdated log files that are no longer needed for debugging, helping you manage disk quotas.
- Cache Invalidation: Forcing an agent to clear cached resources to ensure that the next execution pulls fresh data or state.
Example Prompts
- "OpenClaw, please wipe the temp/experiment-alpha directory to free up space for our new model run."
- "I'm done debugging, can you remove all logs inside the logs/ folder to keep the workspace clean?"
- "Clear out the cache/v1 directory so we can start the next indexing process with a fresh environment."
Tips & Limitations
This skill features a mandatory safety layer. It is hard-coded to reject any command attempting to access directories outside of 'temp/', 'logs/', or 'cache/'. This prevents accidental deletion of project files. Always verify the path structure before sending a request. If the skill returns an error, it is likely because the target path falls outside the approved safety whitelist, protecting your sensitive project root and internal skills folders from deletion.
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-autogame-17-file-cleaner": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read, file-write
Related Skills
capability-evolver
A self-evolution engine for AI agents. Analyzes runtime history to identify improvements and applies protocol-constrained evolution.
feishu-voice-assistant
Sends voice messages (audio) to Feishu chats using Duby TTS.
security-sentinel
Scan the workspace for security vulnerabilities, exposed secrets, and misconfigurations.
prompt-optimizer
Evaluate, optimize, and enhance prompts using 58 proven prompting techniques. Use when user asks to improve, optimize, or analyze a prompt; when a prompt needs better clarity, specificity, or structure; or when generating prompt variations for different use cases. Covers quality assessment, targeted improvements, and automatic optimization across techniques like CoT, few-shot learning, role-play, and 50+ more.
Feishu Broadcast
Skill by autogame-17