cleanup-git-worktrees
A maintainer skill in the LobeHub repository for auditing and removing stale Git worktrees and local branches.
What the skill teaches
A maintainer skill in the LobeHub repository for auditing and removing stale Git worktrees and local branches. A bundled shell script fetches and prunes the remote, looks up each branch's pull request state with the GitHub CLI and classifies every worktree as deletable, needing manual review or protected, ignoring noise and scratch files. The agent shows one grouped table and deletes only after a single explicit approval, passing exact branch names; the script re-checks each target and refuses ones that are not candidates or are in use. It explains how to prove squash or rebase merges, never removes main, canary or the current worktree, and audits again afterwards.
Capabilities
- Classify Git worktrees as deletable or protected
- Check pull request state for each branch
- Remove approved worktrees and branches
- Prove squash-merged branches landed
About
- Publisher
- LobeHub
- Tool
- GitHub
Install
The project doesn't document install steps that we could confirm. See the project's own instructions
What's inside
- agents/openai.yaml
- scripts/cleanup.sh
MCP servers and skills can run code on your computer and act on your data. Review the source before installing.
This skill includes scripts that your agent may run.
Details
| Fact | Value | Source |
|---|---|---|
| Type | Skill | |
| Tool | GitHub | |
| Publisher | LobeHub | source |
| Official status | Not stated in its documentation | |
| Needs an API key or sign-in | Not stated in its documentation | |
| Includes scripts | Yes | source |
| Platforms | Not stated in its documentation | |
| AI clients | Not stated in its documentation | |
| Licence | NOASSERTION | source |
| Pricing | Not stated in its documentation | |
| Activity | Last commit Nov 11, 202684,974 GitHub starsDownload data not available (not on npm or PyPI) | source |
| Links | Repository Website |
Sources
- Skill file (SKILL.md)github.com/lobehub/lobehub · Backs: Includes scriptsNov 17, 2026
- GitHub repositorygithub.com/lobehub/lobehub · Backs: Publisher, ActivityNov 11, 2026
- Skill file (SKILL.md)github.com/lobehub/lobehub · Backs: LicenceNov 10, 2026
- Folder in the repository (cleanup-git-worktrees)github.com/lobehub/lobehub · Backs: Includes scriptsNov 10, 2026