arch-wsl-cleanup

Reclaim disk space on Arch Linux WSL installations with guided cleanup.

Updated Mar 24, 2026
One-click install
npx skills add https://github.com/CNife/skills --skill arch-wsl-cleanup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: arch-wsl-cleanup
Source: https://github.com/CNife/skills/tree/main/.archive/arch-wsl-cleanup
Command: npx skills add https://github.com/CNife/skills --skill arch-wsl-cleanup

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill helps you recover disk space on Arch Linux running under WSL by combining safe cache cleanup, orphaned package removal, log pruning, and targeted large-file discovery into one guided workflow.

Core Features & Use Cases

  • Layered Cleanup: Clears package manager caches, language-tool caches, and old logs before considering deeper cleanup.
  • Package Review with Guardrails: Summarizes installed package size and manual package lists so you can confirm removals instead of deleting anything automatically.
  • WSL-Aware Scanning: Uses filesystem-limited disk scans to avoid counting mounted Windows partitions and to find the biggest directories on the Linux side.
  • Example Use Case: Use it when an Arch WSL install is growing too large and you want a safe, step-by-step way to free space without breaking the system.

Quick Start

Ask the assistant to help you clean up an Arch Linux WSL environment, inspect what is using disk space, and guide you through safe cleanup and VHDX compaction.

Frequently Asked Questions about arch-wsl-cleanup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I safely reclaim disk space on Arch Linux running under WSL?

You can reclaim disk space on Arch WSL by following a layered cleanup sequence: clearing package and language-tool caches, pruning old logs, removing orphaned packages with confirmation, and scanning for large files using du -x to avoid mounted Windows partitions.

What is the best way to clean up oversized package caches in Arch WSL?

Cleaning oversized package caches in Arch WSL involves a layered approach that clears package manager and language-tool caches first, then summarizes installed package sizes for user-confirmed removal before proceeding to deeper filesystem scans.

Why does my Arch WSL filesystem scan include mounted Windows partitions?

Filesystem scans in Arch WSL include mounted Windows partitions because standard du commands traverse all mounts; this skill applies du -x filesystem-limited scanning to restrict results to the Linux filesystem and avoid counting Windows drives.

Can I automatically remove packages to free space in Arch WSL?

You cannot automatically remove packages to free space in Arch WSL with this approach; it summarizes installed package sizes and manual package lists for explicit user confirmation before removal, preventing accidental system breakage.

Do I need to compact the VHDX after cleaning up Arch WSL?

You do need to compact the VHDX after cleaning up Arch WSL; this skill provides manual VHDX compaction guidance to execute after trim operations, ensuring reclaimed storage space is actually released from the virtual disk file.