cleanup-policy

Community

Safe, rule-based cleanup that frees disk space.

Authorblackplume233
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Rule-based automated cleanup execution engine; supports dry-run preview and safety confirmation.

Core Features & Use Cases

  • Age-based cleanup: Delete files older than a configurable number of days (e.g., logs older than 7 days)
  • Size-based cleanup: Delete when a directory exceeds a size threshold; evict oldest first
  • Pattern-based cleanup: Apply rules to glob patterns (e.g., *.log, *.tmp)
  • Dry-Run Mode: Preview changes without applying and show estimated space reclaimed
  • Safety Checklist: Protected paths, minimum free space guard, allowlists/blacklists
  • Execution Logging: Audit-ready logs with timestamps for each action

Quick Start

Target a directory and run the cleanup in dry-run mode to preview what would be removed.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: cleanup-policy
Download link: https://github.com/blackplume233/Actant/archive/main.zip#cleanup-policy

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.