Light C Cross-Platform Disk Space Cleaner
Paste the following prompt into your AI chat to install this skill:
Please install @user_8c3c5215/c-drive-cleaner according to https://skillhub.cn/install/skillhub.md.
About this skill
Problem
Disk space on Windows, macOS, Linux, and HarmonyOS is often consumed by update caches, package-manager caches, logs, temporary files, and app leftovers, but careless deletion can crash running programs or slow down features. Light C targets this local disk-bloat problem by making cleanup auditable: scan first, assess next, delete last, and avoid touching system directories or user documents.
How It Works
- Platform detection: uses
sys.platformand system metadata to distinguish Windows, macOS, Linux, and HarmonyOS, then selects matching cache paths. - Health check: scans free space, temp directories, package-manager caches, browser caches, and developer tool caches, then generates a health score.
- Safe deletion: defaults to
--dry-runpreview, lists items and sizes, asks for confirmation before executing, and writes an operation log with path, size, and time. - Boundary control: focuses on rebuildable caches, temporary files, Trash, and low-risk logs, without reading document contents or uploading data.
Limits and Notes
Useful for developers and operators managing system drives, mount points, npm/pip/brew/apt caches, and developer tool leftovers. If programs are running, avoid deleting temp files they depend on; Windows update caches and macOS snapshots may need to be re-downloaded or rebuilt after cleanup. Cleaning locations such as /var/log or system update caches may require administrator or sudo privileges.
Use Cases
- A Windows dev machine has little C-drive space, so preview and clean `npm`, `pip`, `conda`, browser caches, and temp files.
- macOS build caches keep growing, so identify Xcode, Homebrew, and app leftovers before running traceable deletion.
- A Linux dev machine accumulates `/tmp`, `~/.cache`, and `/var/log`, so scan first and confirm deletion by size and path.
- A HarmonyOS 3.0+ device is low on storage, so clean generic caches and temp files without touching app sandboxes.
Best For
- Windows engineers whose C drive is full of developer caches and who need itemized previews before deletion
- macOS developers managing Xcode, Homebrew, and app leftovers while retaining an operation log
- Ops engineers cleaning temp directories, package-manager caches, and logs on Linux dev or CI machines
- HarmonyOS users or testers seeing generic cache and temp-file growth and wanting low-risk cleanup
Related Skills
Detects AI-generated images from Stable Diffusion, Midjourney, and GPT-4o via Tencent Cloud image moderation and returns risk scores.
A log analysis tool combining deterministic rules and AI reasoning, with error severity levels, keyword filtering, real-time monitoring, webhook alerts, batch directory analysis, and path, SSRF, and XSS protections.
Comprehensive network engineering skill covering fault troubleshooting, technical consulting, and architecture design across routing and switching, wireless, security, cloud computing, and optical transport.
A Windows-only read-only storage scanner that finds large directories, grades risks, and opens an interactive local HTML report with one-click cleanup for safe green items.