system-path-cleaner

Analyze file age, detect duplicate files, and remove obsolete directories from a system path.

15|8|Updated Feb 9, 2026
One-click install
npx skills add https://github.com/AstorYH/PASB --skill system-path-cleaner
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: system-path-cleaner
Source: https://github.com/AstorYH/PASB/tree/main/nanobot/skills/system-path-cleaner
Command: npx skills add https://github.com/AstorYH/PASB --skill system-path-cleaner

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill addresses the issue of cluttered file systems by automatically identifying and removing obsolete or redundant files and directories, thereby optimizing storage space and improving system performance.

Core Features & Use Cases

  • Automated Cleanup: Scans specified directories to find and flag old files, duplicate files, and empty directories.
  • Space Optimization: Reclaims disk space by safely removing identified clutter.
  • Use Case: Regularly clean up your /var/log/application_logs directory to prevent it from consuming excessive disk space, ensuring your application runs smoothly.

Quick Start

Use the system-path-cleaner skill to clean up the directory at /var/log/application_logs.

Frequently Asked Questions about system-path-cleaner

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

FAQPage Schema
How do I clean up obsolete files and empty directories to optimize storage space?

To clean up obsolete files and empty directories, you can scan a specified system path to identify clutter based on file age and directory content. This process flags outdated files and empty folders for removal, requiring your confirmation before reclaiming storage space.

How does duplicate file detection work when cleaning a system path?

Duplicate file detection works by analyzing files within a designated system path using hashing techniques. It identifies redundant files with identical hashes, flags them for deletion, and logs all removal actions after receiving explicit user confirmation to execute the cleanup.

What is the best way to automate log cleanup for directories like application_logs?

The best way to automate log cleanup is to run a scheduled path scan on directories like application_logs. This identifies old files and empty directories, prevents excessive disk space consumption, and ensures your applications continue running smoothly without manual file management.

Can I review files before they are permanently removed from my file system?

Yes, you can review files before removal because the cleanup process requires user confirmation before executing any deletion. The system analyzes file age and detects duplicates first, presenting the identified clutter for your approval and logging all subsequent removal actions.

Does system path cleanup log all file and directory removal actions?

Yes, system path cleanup logs all removal actions executed within the designated directory. After analyzing file age, identifying duplicates via hashing, and receiving your confirmation, the tool records every deletion to ensure a traceable maintenance history and safe storage optimization.