cleanup-git-worktrees
A maintainer skill in the LobeHub repository for auditing and removing stale Git worktrees and local branches.
スキルの内容
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.
できること
- Classify Git worktrees as deletable or protected
- Check pull request state for each branch
- Remove approved worktrees and branches
- Prove squash-merged branches landed
概要
- 公開元
- LobeHub
- ツール
- GitHub
インストール
プロジェクトのドキュメントに、確認できるインストール手順がありません。 プロジェクトの手順を見る
含まれるファイル
- agents/openai.yaml
- scripts/cleanup.sh
MCPサーバーやスキルは、お使いのコンピューターでコードを実行したり、データを操作したりできます。インストールする前にソースを確認してください。
このスキルには、エージェントが実行する可能性のあるスクリプトが含まれています。
詳細
出典
- スキルファイル(SKILL.md)github.com/lobehub/lobehub · 根拠となる項目:スクリプトを含む2026年11月17日
- GitHubリポジトリgithub.com/lobehub/lobehub · 根拠となる項目:公開元, 活動状況2026年11月11日
- スキルファイル(SKILL.md)github.com/lobehub/lobehub · 根拠となる項目:ライセンス2026年11月10日
- リポジトリ内のフォルダ(cleanup-git-worktrees)github.com/lobehub/lobehub · 根拠となる項目:スクリプトを含む2026年11月10日