clean-old-worktrees-global
A skill in the ClickHouse repository for freeing disk space by deleting unused git worktrees and old build folders across every checkout under the home folder or another root, including worktrees nested inside checkouts.
What the skill teaches
A skill in the ClickHouse repository for freeing disk space by deleting unused git worktrees and old build folders across every checkout under the home folder or another root, including worktrees nested inside checkouts. Anything untouched since a set age, one day by default, counts as unused. A bundled scan script lists candidates; the agent then reviews them, keeping main repositories, anything of unknown age, and worktrees with uncommitted work or commits that would be lost unless the user confirms. A bundled delete script removes the final list, skipping folders in use by a process or holding mount points, and can be rerun if it times out. The report covers what was deleted, kept and skipped, with disk usage before and after.
Capabilities
- Scan checkouts for stale worktrees and build folders
- Keep worktrees with unsaved or unpushed work
- Delete the reviewed list with safety checks
- Report disk usage before and after
About
- Publisher
- ClickHouse
- Tool
- File system
Install
The project doesn't document install steps that we could confirm. See the project's own instructions
What's inside
- delete.sh
- scan.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 | File system | |
| Publisher | ClickHouse | 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 | Apache-2.0 | source |
| Pricing | Not stated in its documentation | |
| Activity | Last commit Nov 11, 202650,877 GitHub starsDownload data not available (not on npm or PyPI) | source |
| Links | Repository Website |
More from ClickHouse
22 skills
- clickhouse-pr-description (Skill)
- continue-pr (Skill)
- good-prs (Skill)
- alloc-profile (Skill)
- bisect (Skill)
- close-flaky-issues (Skill)
Also listed under: File system
Sources
- Skill file (SKILL.md)github.com/ClickHouse/ClickHouse · Backs: Includes scriptsNov 10, 2026
- GitHub repositorygithub.com/ClickHouse/ClickHouse · Backs: PublisherNov 16, 2026
- GitHub repositorygithub.com/clickhouse/clickhouse · Backs: Activity, LicenceNov 11, 2026
- Folder in the repository (clean-old-worktrees-global)github.com/ClickHouse/ClickHouse · Backs: Includes scriptsNov 10, 2026