cleanup

Remove logs, stale sessions, worktrees, build caches, and temporary files.

1|Updated Jun 26, 2025
One-click install
npx skills add https://github.com/intrale/platform --skill cleanup-intrale
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cleanup
Source: https://github.com/intrale/platform/tree/main/.claude/skills/cleanup
Command: npx skills add https://github.com/intrale/platform --skill cleanup-intrale

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill tackles the accumulation of digital "junk" in your workspace, freeing up disk space and improving system performance by safely removing logs, old sessions, and temporary files.

Core Features & Use Cases

  • Systematic Cleanup: Scans and removes various types of clutter including logs, stale sessions, empty worktrees, and build artifacts.
  • Configurable Modes: Offers dry-run, full cleanup, and targeted cleaning of specific categories like logs or sessions.
  • Use Case: Run a deep cleanup before a major code deployment to ensure a clean environment, removing old build caches and temporary files that could cause conflicts.

Quick Start

Run a full cleanup of your workspace to remove accumulated temporary files and logs.

Frequently Asked Questions about cleanup

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

FAQPage Schema
How do I safely clean up temporary files and logs in my workspace?

To safely clean up workspace clutter, this Skill performs systematic removal of logs, temporary files, and build caches using configurable dry-run modes. It securely clears artifacts without risking essential project data.

Can I do a dry-run before deleting build caches and temporary files?

Yes, you can execute a dry-run to preview the cleanup of build caches and temporary files before any deletion occurs. This mode scans the workspace to show exactly what artifacts will be removed, ensuring safe file management.

What is the best way to free up disk space from stale sessions and worktrees?

The best way to free up disk space from stale sessions and worktrees is to run a full deep scan cleanup. This process targets and removes empty worktrees and old session data to improve system performance.

Does workspace cleanup work with Git commands and Node.js scripts?

Yes, workspace cleanup utilizes Bash, Node.js scripts, and Git commands for safe file and process management. This combination allows systematic removal of workspace artifacts like worktrees and build caches.

When should I run a deep scan to remove build artifacts and logs?

You should run a deep scan to remove build artifacts and logs before a major code deployment. This ensures a clean environment by eliminating old build caches and temporary files that could cause deployment conflicts.