Cleanup Worktree
Description
--- description: Remove a merged worktree and its branch after verifying it was merged into main argument-hint: <short-name> (the directory name under .worktrees/, without the type prefix) --- You are cleaning up the worktree `.worktrees/$ARGUMENTS` and its associated branch. This command must never remove unmerged work — verify first, remove second. ## Validation (do this first, in order) 1. Confirm `.worktrees/$ARGUMENTS` exists. If not, stop and tell the user nothing to clean. 2. Identify
Installation
Installs to ~/.claude/commands/lazynet-lazy-harness-cleanup-worktree.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/lazynet/lazy-harness/HEAD/.claude/commands/cleanup-worktree.md -o ~/.claude/commands/lazynet-lazy-harness-cleanup-worktree.md Restart Claude Code, or start a new session, for it to be picked up.
Full documentation available on GitHub
View Source RepositoryRelated Skills
Epic Sync
Sync epic issue bodies, labels, and local coordination snapshots from GitHub.
Git 使用 Git Worktrees
创建孤立的 Git worktrees,带有智能目录选择与安全验证。
Git Claude skills github
[Building agent skills blog](https://www.anthropic.com/engineering/equipping-agents-for-the-real-world-with-ag
Git #148
, [#161](https://github.com/affaan-m/everything-claude-code/pull/161))
Git GitHub MCP
| Token | Repos, issues, PRs, workflows |
Git GitHub MCP Server
Official first-party server to read repos, manage issues/PRs, and automate workflows.
Git