Remove Worktree Prompt
Description
--- model: claude-sonnet-4-5-20250929 description: Remove a git worktree, delete its branch, and stop its running services argument-hint: <branch-name> allowed-tools: Bash, Read, Glob, Grep --- # Purpose Remove an existing git worktree from the `trees/` directory AND delete the associated git branch. This includes stopping any running services on its ports, cleaning up processes, removing the worktree directory, and permanently deleting the branch. This ensures complete cleanup without orphane
Installation
Installs to ~/.claude/commands/alfredocarta-ai-agent-audit-trail-remove_worktree_prompt.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/alfredocarta/ai-agent-audit-trail/HEAD/.claude/commands/remove_worktree_prompt.md -o ~/.claude/commands/alfredocarta-ai-agent-audit-trail-remove_worktree_prompt.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