Prune Worktrees
Description
--- allowed-tools: Bash, Read description: Remove git worktrees whose PR has merged, to recover disk (dry-run first) --- # /prune-worktrees — Reclaim Disk from Merged Worktrees `/mnt/projects` fills up because each worktree carries ~15-26G of build artifacts. This removes worktrees whose branch's PR has already merged. Squash-merge aware: because PRs land as squash commits, `git branch --merged` can't see them, so merged-ness is matched against `gh pr list --state merged` head branches (the c
Installation
Installs to ~/.claude/commands/saasy-solutions-mockforge-prune-worktrees.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/SaaSy-Solutions/mockforge/HEAD/.claude/commands/prune-worktrees.md -o ~/.claude/commands/saasy-solutions-mockforge-prune-worktrees.md Restart Claude Code, or start a new session, for it to be picked up.
Full documentation available on GitHub
View Source RepositoryRelated Skills
使用 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 mcp-server-github
GitHub API integration for repos, issues, PRs.
Git