Cleanup Scratch banner
ChristophNoetel ChristophNoetel

Cleanup Scratch

Development community

Description

--- name: cleanup-scratch description: Scan a scratch directory for stale files, categorize by type, report size, and delete with confirmation user_invocable: true --- # Cleanup Scratch Scan a scratch/temp directory for stale files, categorize them, and delete with confirmation. ## Configuration ``` SCRATCH_DIR = ~/scratch/ STALE_DAYS = 14 ``` Update `SCRATCH_DIR` to your temp/scratch directory path. ## Process ### 1. Scan for stale files Find files older than `STALE_DAYS`: ```bash fin

Installation

Installs to ~/.claude/skills/christophnoetel-claude-code-skills-cleanup-scratch/SKILL.md

Terminal
mkdir -p ~/.claude/skills/christophnoetel-claude-code-skills-cleanup-scratch && curl -fsSL https://raw.githubusercontent.com/ChristophNoetel/claude-code-skills/HEAD/skills/cleanup-scratch.md -o ~/.claude/skills/christophnoetel-claude-code-skills-cleanup-scratch/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository