disk-hygiene

Audit disk usage and remove stale Git worktrees, node_modules, and Xcode DerivedData.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/marvelousempire/ai-skills-library --skill disk-hygiene-marvelousempire
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: disk-hygiene
Source: https://github.com/marvelousempire/ai-skills-library/tree/main/skills/engineering/disk-hygiene
Command: npx skills add https://github.com/marvelousempire/ai-skills-library --skill disk-hygiene-marvelousempire

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the process of reclaiming disk space by identifying and removing unnecessary files and worktrees.

Core Features & Use Cases

  • Audit Disk Usage: Identifies disk usage by files and directories.
  • Clean Stale Worktrees: Removes outdated and unneeded Git worktrees.
  • Remove Node_modules: Cleans up the node_modules directories in stale worktrees.
  • Clean DerivedData: Clears out Xcode DerivedData to free up space.
  • Use Case: If you're experiencing 'disk full' errors or if your disk usage is approaching 80%, running this Skill can help reclaim space.

Quick Start

Run the disk-hygiene skill to clean your disk space.

Frequently Asked Questions about disk-hygiene

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

FAQPage Schema
How do I reclaim disk space by cleaning stale Git worktrees?

You can reclaim disk space by automating the removal of outdated Git worktrees and their associated node_modules directories, which frees up significant storage on your machine.

What is the best way to clear Xcode DerivedData to free up disk space?

The best way to clear Xcode DerivedData is to run this Skill, which targets and deletes the DerivedData directories specifically to free up disk space required for builds and operations.

How do I audit disk usage to find unnecessary files and directories?

Auditing disk usage is handled automatically by the Skill, which identifies disk usage by files and directories to locate unnecessary files and worktrees before removing them.

Can I automate node_modules cleanup across multiple stale worktrees?

Yes, you can automate node_modules cleanup across stale worktrees; the Skill specifically targets and cleans up node_modules directories found within outdated Git worktrees to reclaim space.

When should I run a disk hygiene script to prevent disk full errors?

You should run a disk hygiene script when your disk usage approaches 80% or when experiencing disk full errors, ensuring development environments maintain critical space for builds.