AI Agent Hub
Back to skills
Light C Cross-Platform Disk Space Cleaner icon

Light C Cross-Platform Disk Space Cleaner

IT Ops & Security Updated 2026.08.30

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.platform and 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-run preview, 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