htmlgraph:cleanup

Remove merged Git worktrees and associated branches after parallel execution.

3|3|Updated Dec 16, 2025
One-click install
npx skills add https://github.com/shakestzd/htmlgraph --skill htmlgraph-cleanup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: htmlgraph:cleanup
Source: https://github.com/shakestzd/htmlgraph/tree/main/packages/claude-plugin/skills/cleanup
Command: npx skills add https://github.com/shakestzd/htmlgraph --skill htmlgraph-cleanup

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the cleanup of Git worktrees and branches, ensuring a tidy repository after parallel execution of tasks.

Core Features & Use Cases

  • Worktree Management: Removes merged and optionally unmerged Git worktrees.
  • Branch Cleanup: Facilitates the removal of associated branches.
  • Workflow Integration: Designed to be activated after parallel jobs complete, ensuring resources are released.
  • Use Case: After running multiple feature development branches in parallel, use this skill to automatically remove the completed worktrees and their corresponding branches.

Quick Start

Run the command to clean up all merged Git worktrees.

Frequently Asked Questions about htmlgraph:cleanup

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

FAQPage Schema
How do I clean up git worktrees and branches after parallel execution?

To clean up git worktrees after parallel execution, you can automate the removal of merged worktrees and their corresponding branches to keep your repository tidy. This process ensures resources are released once parallel jobs complete.

What is the best way to remove unmerged git worktrees?

The best way to remove unmerged git worktrees is to use a force-removal option that clears all worktrees, including those with remaining work. This approach differs from standard cleanup, which only targets merged worktrees and branches.

How do I remove a specific task worktree and its associated branch?

To remove a specific task worktree and its associated branch, you can target individual worktrees for deletion instead of clearing the entire repository. This allows for selective cleanup of completed feature development branches.

Can I check worktree status and merge remaining work before cleanup?

Yes, you can check worktree status and merge remaining work before cleanup. The process includes steps for verifying your repository state and integrating any outstanding changes before removing worktrees and branches.

Does git worktree cleanup work for repositories with many parallel feature branches?

Yes, git worktree cleanup works for repositories with many parallel feature branches. It is specifically designed to be activated after parallel jobs complete, automatically removing completed worktrees and branches to manage repository resources efficiently.