cleanup-policy

Automate rule-based cleanup of old or large files with dry-run previews.

12|1|Updated Feb 19, 2026
One-click install
npx skills add https://github.com/blackplume233/Actant --skill cleanup-policy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cleanup-policy
Source: https://github.com/blackplume233/Actant/tree/main/examples/actant-hub/skills/cleanup-policy
Command: npx skills add https://github.com/blackplume233/Actant --skill cleanup-policy

SYSTEM DOCUMENTATION & REQUIREMENTS

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.

Frequently Asked Questions about cleanup-policy

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

FAQPage Schema
How do I automate disk space cleanup without accidentally deleting important files?

Automated disk space cleanup can be executed safely using dry-run previews and safety confirmations. Protected paths, allowlists, and blacklists prevent accidental deletion of critical data while reclaiming storage across directories.

How does a dry-run preview work for rule-based file deletion?

A dry-run preview simulates rule-based file deletion without applying actual changes. It generates a report showing exactly which files would be removed and estimates the total disk space that would be reclaimed.

Can I delete old log files automatically based on their age and file size?

Yes, you can delete old log files automatically by configuring age-based rules to remove files older than a specified number of days, and size-based rules to evict the oldest files first when a directory exceeds a threshold.

What is the best way to clean up temporary files and caches matching specific glob patterns?

The best way to clean up temporary files and caches is by using pattern-based cleanup rules. This applies automated deletion actions to specific glob patterns like *.log or *.tmp to safely free disk space.

Does automated cleanup provide execution logs for auditing file deletion actions?

Yes, automated cleanup provides audit-ready execution logs. These logs record timestamps for each file deletion or archiving action, ensuring a verifiable trail of all disk space reclamation activities.