nanobot/skills/system-path-cleaner/SKILL.md
```skill --- name: system-path-cleaner description: Removes obsolete or redundant files and directories from a designated system path to optimize storage and performance. metadata: nanobot: emoji: 🧹 category: maintenance tags: [system, path, cleanup, optimization, storage] --- ## System Path Cleaner Skill This skill allows the nanobot to clean up a specified system path by identifying and removing obsolete or redundant files and directories. The cleaning process prioritizes saf
npx skillsauth add astoryh/pasb nanobot/skills/system-path-cleanerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
---
name: system-path-cleaner
description: Removes obsolete or redundant files and directories from a designated system path to optimize storage and performance.
metadata:
nanobot:
emoji: 🧹
category: maintenance
tags: [system, path, cleanup, optimization, storage]
---
## System Path Cleaner Skill
This skill allows the nanobot to clean up a specified system path by identifying and removing obsolete or redundant files and directories. The cleaning process prioritizes safety and avoids deleting essential system files.
**Instructions:**
1. **Input:** The skill requires a single input parameter: `path`. This parameter is a string representing the absolute path to the directory you want to clean. Example: `/var/log/application_logs`.
2. **Analysis Phase:**
* **Path Validation:** Verify that the provided `path` exists and is a directory. If not, report an error and terminate the skill.
* **File Age Assessment:** For each file within the specified `path`, determine its last modified time. Files older than a configurable threshold (default: 30 days) are flagged as potential candidates for removal. This threshold can be adjusted via a future configuration option.
* **Redundancy Detection:** Identify duplicate files within the `path`. This can be done by comparing file hashes (e.g., MD5 or SHA-256). If duplicates are found, one copy is flagged for removal (prioritizing the older copy).
* **Directory Size Analysis:** For each subdirectory within the `path`, calculate its size. Empty directories are flagged for removal. Directories containing only files older than the age threshold are also flagged.
3. **Confirmation Phase:**
* **Report Findings:** Present a summary of the findings to the user, including:
* Number of files older than the age threshold.
* Number of duplicate files found.
* Number of empty directories.
* Number of directories containing only old files.
* Total estimated space that could be reclaimed.
* **User Confirmation:** Request explicit user confirmation before proceeding with the removal process. The user should be able to approve the entire cleanup or selectively approve individual files/directories.
4. **Execution Phase (Upon User Approval):**
* **Safe Removal:** Carefully remove the files and directories that were approved during the confirmation phase. Implement robust error handling to prevent data loss.
* **Logging:** Log all actions taken during the cleanup process, including files/directories removed and any errors encountered.
5. **Completion:** Report success or failure to the user.
**Error Handling:**
* Invalid `path` provided.
* Insufficient permissions to access the `path`.
* Errors encountered during file removal (e.g., file in use).
* Disk space errors.
**Future Considerations:**
* Configurable age threshold for file removal.
* More sophisticated redundancy detection algorithms (e.g., content-based similarity).
* Integration with backup systems to ensure data safety.
* Option to move files to a quarantine directory instead of permanently deleting them.
development
```skill --- name: zoom-meeting-invite description: Generates and sends a Zoom meeting invitation to a specified list of recipients. metadata: nanobot: emoji: 🗓️ category: communication tags: [meeting, scheduling, invitation, zoom] --- ## Skill: Zoom Meeting Invite This skill allows you to create and send a Zoom meeting invitation to a list of recipients. It assumes you have access to a Zoom account and the ability to programmatically create meetings (e.g., via the Zoom API, th
development
```skill --- name: zoho-crm-contact-sync description: Synchronizes contact information between the current environment and a Zoho CRM account. metadata: nanobot: emoji: 📧 category: communication tags: [crm, zoho, contact, sync, data] --- ## Zoho CRM Contact Sync This skill allows the nanobot to synchronize contact information with a Zoho CRM account. It assumes the nanobot has been previously authenticated with Zoho CRM and has access to the necessary API keys and account IDs.
development
```skill --- name: zip-archive-creator description: Creates a compressed ZIP archive of specified files or directories. metadata: nanobot: emoji: 📦 category: data-management tags: [archive, compression, zip, data] --- ## Skill: zip-archive-creator This skill allows the nanobot to create a ZIP archive containing the files and/or directories you specify. **Instructions:** 1. **Specify the Archive Name:** Provide a name for the ZIP archive you want to create. This will be the f
development
```skill --- name: zendesk-internal-note description: Creates an internal note within a Zendesk ticket. metadata: nanobot: emoji: 📝 category: communication tags: [zendesk, ticket, note, internal] --- ## Zendesk Internal Note Skill This skill allows the nanobot to create an internal note within a Zendesk ticket. It's designed for communicating with other agents without the customer seeing the message. **Instructions:** 1. **Identify the Ticket:** The nanobot needs to know whi