---
title: "clean-closed-issue-worktrees"
description: "Safely audit and remove Git worktrees linked to closed GitHub or GitLab issues."
canonical: https://agentpluginsdirectory.com/plugins/clean-closed-issue-worktrees
last-updated: 2026-10-21
---

# clean-closed-issue-worktrees
Safely audit and remove Git worktrees linked to closed GitHub or GitLab issues.
- Slug: clean-closed-issue-worktrees
- Publisher: haoranyu
- Repository: https://github.com/haoranyu/clean-closed-issue-worktrees
- Manifest: plugin.json
- Version: 0.2.0
- License: MIT
- Category (editorial): productivity
- Skills: 1 (clean-closed-issue-worktrees)
- MCP servers: 0
- Stars: 3
- Repository created: 2026-08-27
- Repository last pushed: 2026-10-15
- Publisher type: User
- Listing: https://agentpluginsdirectory.com/plugins/clean-closed-issue-worktrees
- Schema: https://agent-plugins.org/schemas/1.0.0/plugin.schema.json

## What clean-closed-issue-worktrees does, in the publisher's words

A safety-first agent skill for auditing and removing Git worktrees associated with closed GitHub or GitLab issues.

It works with Git-registered worktrees regardless of editor, agent harness, or creator. Provider and live-task integrations stay in the agent layer, while a deterministic Python script owns local Git inspection, managed-root provenance, snapshot validation, backup refs, and removal.

Closed issues often leave behind worktrees containing dependency folders and build caches. Blind cleanup is dangerous: a clean git status can hide ignored local data, a detached HEAD can be the only ref to a commit, and an apparently idle worktree can still belong to an active agent task.

- Scan and classify every worktree without modifying Git state.
- Show exact paths, risks, issue state, and estimated reclaimable space.

From the project README, punctuation lightly normalized. Full text: https://raw.githubusercontent.com/haoranyu/clean-closed-issue-worktrees/HEAD/README.md

## Skills

- clean-closed-issue-worktrees: Safely audit and remove Git worktrees linked to closed GitHub or GitLab issues. Use when scanning worktrees, verifying issue/PR/MR state, estimating space savings, or cleaning completed work.

Descriptions come from the frontmatter of each SKILL.md, punctuation lightly normalized.
