reconcile

Remove obsolete git worktrees and delete merged branches.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/lgtm-hq/claude-skills --skill reconcile-lgtm-hq
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: reconcile
Source: https://github.com/lgtm-hq/claude-skills/tree/main/skills/reconcile
Command: npx skills add https://github.com/lgtm-hq/claude-skills --skill reconcile-lgtm-hq

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps developers consolidate multiple git worktrees, clean up stale branches, and manage projects efficiently.

Core Features & Use Cases

  • Worktree Management: Identify and remove obsolete worktrees, preserving only active ones to optimize project structure.
  • Branch Cleanup: Detect merged branches and allow users to delete them to maintain a tidy repository.
  • Project Reconciliation: Reconcile project states across multiple clones and worktrees, simplifying project maintenance.
  • Use Case: When managing a complex repository with several feature branches and clones, use this Skill to clean up stale worktrees and branches, and ensure the main branch is up to date.

Quick Start

Use the reconcile skill to clean up outdated worktrees and delete merged branches in your current repository.

Frequently Asked Questions about reconcile

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

FAQPage Schema
How do I clean up stale git worktrees and merged branches in my repository?

To clean up stale git worktrees and merged branches, you need to identify obsolete worktrees and remove them while detecting merged branches for deletion. This process preserves only active worktrees to maintain a tidy repository structure.

What is the best way to manage multiple git worktrees and clones?

Managing multiple git worktrees and clones involves reconciling project states across all copies. You can consolidate multiple worktrees and clean up stale branches to reduce clutter, simplifying project maintenance and improving development efficiency.

Can I detect and delete merged git branches automatically?

Yes, you can detect merged git branches and delete them to maintain a tidy repository. The skill uses git CLI commands to identify branches that have been successfully merged, allowing you to remove them safely.

Does this branch management approach work with GitHub PR status?

Yes, this branch management approach integrates with GitHub PR status when available. By combining local git CLI commands with GitHub PR status, you can accurately determine which branches and worktrees are safe to remove during repository cleanup.

When should I use git worktree cleanup for my project?

You should use git worktree cleanup when managing a complex repository with several feature branches and clones. It helps remove obsolete worktrees, delete merged branches, and ensures the main branch is up to date to optimize project structure.