ai-worktree:teardown

Community

Safely teardown AI worktrees and sync main.

AuthordEitY719
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Cleanly teardown an AI worktree after work is done by removing the worktree, deleting its branch, and syncing the main repository to keep history clean and up to date.

Core Features & Use Cases

  • Teardown a specified AI worktree from the main repository, removing the worktree and its associated branch after validating context.
  • Ensure the main branch is up to date before branch deletion, with safe fallbacks for conflicts and non-merged branches.
  • Handle common edge cases (missing worktree path, inside a worktree, dirty or unpushed changes) with clear errors and optional force/keep-branch controls.

Quick Start

Run /ai-worktree:teardown <worktree-path> from the main repository to remove the specified worktree and its associated branch.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: ai-worktree:teardown
Download link: https://github.com/dEitY719/dotfiles/archive/main.zip#ai-worktree-teardown

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.