triage
Use when reviewing git state across worktrees, stashes, and branches - helps decide what to clean up, resume, or address
Install
npx skills add https://github.com/technicalpickles/pickled-claude-plugins/tree/main/plugins/git/skills/triage
claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install technicalpickles-pickled-claude-plugins@llmmart
git clone https://github.com/technicalpickles/pickled-claude-plugins.git
The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole technicalpickles/pickled-claude-plugins collection as a plugin from our marketplace. Git is the plain clone.
Skill manifest
Git Triage
Inventory git work in progress (worktrees, stashes, local branches, uncommitted work) with enough context to decide what to resume, review, or clean up. The user can scope it to worktrees, stash, or branches; default is everything.
For each item, find
- Worktree: branch, associated PR (
gh pr list --head <branch> --state all) with state and a full URL, matching plan file underdocs/plans/, uncommitted changes summarized by what they appear to do (infer from the diff, don't just count files), and unpushed commit subjects. - Stash: age, source branch and whether it still exists, files touched.
- Branch: last commit age, PR and its state, whether the remote branch is gone. Judge "merged" by the PR state: squash merges don't show up in
git branch --merged.
Present
Group by worktrees, stashes, branches. Give every item a recommendation with its reason: resume (PR approved, needs a push), review (stash on a live branch, may be superseded), or safe to delete (PR merged, source branch gone, PR closed and remote deleted). End with a one-line count per group.
Act
Offer the cleanup choices: individual items, "all safe-to-delete items", or nothing. Never auto-delete. For a bulk cleanup, list exactly what will be deleted and confirm before deleting anything.
Related
git:checkoutto resume a worktree,git:inboxfor PRs awaiting your review,superpowers:finishing-a-development-branchafter finishing work.
Files (pickled-claude-plugins)
-
SKILL.md 1.6 KB
--- name: triage description: Use when reviewing git state across worktrees, stashes, and branches - helps decide what to clean up, resume, or address disable-model-invocation: true --- # Git Triage Inventory git work in progress (worktrees, stashes, local branches, uncommitted work) with enough context to decide what to resume, review, or clean up. The user can scope it to `worktrees`, `stash`, or `branches`; default is everything. ## For each item, find - **Worktree:** branch, associated PR (`gh pr list --head <branch> --state all`) with state and a full URL, matching plan file under `docs/plans/`, uncommitted changes summarized by what they appear to do (infer from the diff, don't just count files), and unpushed commit subjects. - **Stash:** age, source branch and whether it still exists, files touched. - **Branch:** last commit age, PR and its state, whether the remote branch is gone. Judge "merged" by the PR state: squash merges don't show up in `git branch --merged`. ## Present Group by worktrees, stashes, branches. Give every item a recommendation with its reason: resume (PR approved, needs a push), review (stash on a live branch, may be superseded), or safe to delete (PR merged, source branch gone, PR closed and remote deleted). End with a one-line count per group. ## Act Offer the cleanup choices: individual items, "all safe-to-delete items", or nothing. **Never auto-delete.** For a bulk cleanup, list exactly what will be deleted and confirm before deleting anything. ## Related - `git:checkout` to resume a worktree, `git:inbox` for PRs awaiting your review, `superpowers:finishing-a-development-branch` after finishing work.
Comments (0)
Sign in to join the conversation.
Reviews (0)
No reviews yet.
No comments yet.