cleanup

Delete old auto-captured files and draft learnings by retention policy.

Updated Feb 24, 2026
One-click install
npx skills add https://github.com/goffity/dev-km --skill cleanup-goffity
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cleanup
Source: https://github.com/goffity/dev-km/tree/main/skills/cleanup
Command: npx skills add https://github.com/goffity/dev-km --skill cleanup-goffity

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill helps manage disk space and maintain organization by automatically cleaning up old, auto-captured files based on configurable retention policies.

Core Features & Use Cases

  • Automated Cleanup: Deletes old files from specified directories (docs/auto-captured/, docs/learnings/).
  • Configurable Retention: Set a custom number of days to keep files.
  • Archiving: Option to archive files before deletion for backup.
  • Use Case: Automatically clean up temporary AI-generated notes older than 30 days, ensuring your project directory stays tidy and only relevant knowledge is retained.

Quick Start

Run the cleanup skill to preview which files would be deleted with the default 30-day retention policy.

Frequently Asked Questions about cleanup

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

FAQPage Schema
How do I automate file cleanup for old auto-captured project files?

Automate file cleanup by running a script that deletes old files from specified project directories, such as docs/auto-captured/ and docs/learnings/, based on a configurable retention policy. You can preview which files would be deleted before executing the actual cleanup.

Can I archive files before deletion when applying a retention policy?

Yes, you can archive files before deletion when applying a retention policy. The cleanup process supports archiving files to a backup before permanently removing them from the target directories, ensuring your data is safely retained.

How do I free up disk space by deleting temporary AI-generated notes older than 30 days?

Free up disk space by configuring a retention policy to delete temporary AI-generated notes older than 30 days. The cleanup process targets file system paths within your project directory and removes outdated files automatically.

What is the best way to manage disk space and maintain organization in project directories?

The best way to manage disk space and maintain organization is to use an automated retention policy. This approach systematically cleans up old files from specified directories, ensuring your project stays tidy and only retains relevant knowledge.

Are there limitations on which file system paths the cleanup process can target?

The cleanup process operates specifically on file system paths within a project directory, such as docs/auto-captured/ and docs/learnings/. It is limited to these specified targets and does not clean paths outside the project scope.