AI Agent Hub
Back to skills
🔒

Light C: C-Drive Space Cleanup Expert

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-tools according to https://skillhub.cn/install/skillhub.md.

About this skill

The Problem It Solves

Windows C drive issues are often not a lack of capacity, but space consumed by temp directories, browser caches, Windows Update leftovers, and large files. Manually locating these files is slow and risks deleting important files. This skill breaks C drive cleanup into three executable actions: analyze usage, clean safely, and repair suspected system file corruption.

How It Works and Where It Applies

  • Space analysis: run analyze_space.ps1 to report total C drive capacity, used/free space, top-level directory usage, files over 100MB, and common high-usage locations.
  • Temporary cleanup: run clean_temp_files.ps1, which by default cleans user temp, system temp, Prefetch, Recycle Bin, browser caches, and DNS caches only when older than 7 days; use -DryRun to preview; Windows Update cache must be explicitly enabled.
  • System repair: run repair_system_files.ps1, which executes DISM component store cleanup, health checks, image scan/restore, then SFC /scannow.

Boundaries: it is for local Windows 10/11 maintenance, not antivirus, backup, or professional disk recovery. Repair requires administrator rights and a stable network connection; do not manually delete pagefile.sys; hiberfil.sys can be removed with powercfg -h off, but hibernation will be disabled. Prefer analysis first, then preview, then execute.

Use Cases

  • After a C drive alert, identify large files and top-level directories before choosing what to clean.
  • When browser caches, system temp folders, and Recycle Bin grow, preview and remove stale caches safely.
  • When system errors or slow startup suggest Windows image corruption, run DISM and SFC repairs.
  • During monthly Windows endpoint maintenance, check freed space and recommend further migration actions.

Best For

  • IT operations engineers handling Windows endpoint alerts
  • Systems engineers cleaning local Windows development environments
  • Help desk support resolving slow machines and low disk space tickets
  • System administrators maintaining Windows endpoint baselines