aitask-cleanold

Archive old task and plan files into tar.gz archives, retaining the most recent file per directory.

6|1|Updated Feb 11, 2026
One-click install
npx skills add https://github.com/beyondeye/aitasks --skill aitask-cleanold
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aitask-cleanold
Source: https://github.com/beyondeye/aitasks/tree/main/.claude/skills/aitask-cleanold
Command: npx skills add https://github.com/beyondeye/aitasks --skill aitask-cleanold

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill helps manage disk space and maintain a clean project structure by automatically archiving old task and plan files.

Core Features & Use Cases

  • Automated Archiving: Compresses older task and plan files into tar.gz archives.
  • Selective Retention: Keeps the most recent file in each directory uncompressed.
  • Use Case: Regularly clean up your aitasks/archived/ and aiplans/archived/ directories to prevent them from growing too large, ensuring easy access to recent items while safely storing older ones.

Quick Start

Run the archive script to clean up old task and plan files.

Frequently Asked Questions about aitask-cleanold

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

FAQPage Schema
How do I automatically archive old AI tasks and plans to free up disk space?

You can automatically archive old AI tasks and plans by compressing them into tar.gz archives. This process retains only the most recent file in each directory uncompressed, ensuring proper file management and disk space optimization.

What is the best way to clean up archived task directories without losing recent files?

The best way to clean up archived task directories is selective retention archiving. It compresses older files into tar.gz archives while keeping the most recent file in each directory uncompressed for easy access.

How does the file compression mechanism handle parent and child task hierarchies?

The file compression mechanism manages parent and child task hierarchies within specified archived directories. It processes these structures during archiving to maintain organizational integrity while compressing older files into tar.gz format.

When do I need to compress old task and plan files into tar.gz archives?

You need to compress old task and plan files into tar.gz archives when your aitasks/archived/ and aiplans/archived/ directories grow too large. Regular cleanup prevents disk space bloat while safely storing older AI-generated items.

Can I run an archive script to clean up both task and plan files simultaneously?

Yes, you can run an archive script to clean up both task and plan files simultaneously. The script targets both aitasks/archived/ and aiplans/archived/ directories, compressing old files and retaining only the most recent ones.

What are the limitations of selective retention when archiving AI-generated files?

A limitation of selective retention is that only the most recent file in each directory remains uncompressed. All older AI-generated files are compressed into tar.gz archives, requiring extraction to access their full content again.