kaizen-cleanup

Identify stale Kaizen worktrees, branches, Docker images, and cases for safe cleanup.

Updated Mar 16, 2026
One-click install
npx skills add https://github.com/Garsson-io/kaizen --skill kaizen-cleanup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kaizen-cleanup
Source: https://github.com/Garsson-io/kaizen/tree/main/.agents/skills/kaizen-cleanup
Command: npx skills add https://github.com/Garsson-io/kaizen --skill kaizen-cleanup

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill analyzes Kaizen worktrees, branches, Docker images, and stale cases to reclaim disk space safely.

Core Features & Use Cases

  • Comprehensive inventory: lists worktrees, branches, cases, and Docker resources with staleness indicators.
  • Safe cleanup workflow: supports analysis, dry-run previews, and guarded removal when criteria are met.
  • Use Case: when a project accumulates many worktrees and images, run this to identify candidates and perform a guided cleanup.

Quick Start

Run the kaizen-cleanup skill to analyze worktrees and safely remove stale items after a dry-run confirmation.

Frequently Asked Questions about kaizen-cleanup

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

FAQPage Schema
How do I safely cleanup stale git worktrees and Docker images to free disk space?

To safely cleanup stale git worktrees and Docker images, you can run an analysis to identify removable items, preview the deletion in a dry-run, and execute the removal once all safety criteria and preflight checks are met.

What is the best way to analyze disk space usage across multiple development worktrees?

Analyzing disk space across multiple worktrees involves generating a comprehensive inventory of worktrees, branches, cases, and Docker resources, highlighting which ones are stale and safe to remove.

Does the worktree cleanup process require a lock-file or a git prune step?

Yes, the worktree cleanup process relies on lock-file presence and executes a Git worktree prune operation to ensure safe removal and prevent data corruption.

Can I preview worktree and Docker image cleanup before permanently deleting files?

Yes, you can preview worktree and Docker image cleanup by running a dry-run, which shows exactly which stale items will be removed before any actual disk space is reclaimed.

When should I not use an automated cleanup for git worktrees?

You should not use automated cleanup if the preflight health check fails, or if the required lock-file is absent, as the system enforces these criteria to ensure safe operation.

Do I need Kaizen installed as a plugin to analyze and remove stale worktrees?

Yes, this analysis and cleanup workflow is applicable in development environments where Kaizen is installed as a plugin, such as within Claude Code setups.