{"skill":{"slug":"openclaw-skill-git-manager","displayName":"Git Manager","summary":"Advanced Git operations support for bisecting regressions, cleaning up branches, managing stash workflows, and analyzing commit/history state. Use when users...","description":"---\nname: git-manager\ndescription: Advanced Git operations support for bisecting regressions, cleaning up branches, managing stash workflows, and analyzing commit/history state. Use when users ask for \"git bisect\", branch cleanup, stash recovery/organization, reflog or log analysis, or safe handling of destructive/history-rewriting commands.\n---\n\n# git-manager\n\n## Summary\n`git-manager` orchestrates advanced repository maintenance by combining bisecting, branch cleanup, stash handling, and log analysis into a cohesive guidance skill. It keeps teams safe by pairing every destructive recommendation with an explicit verification or rollback prompt before running commands that rewrite history.\n\n## Triggers\n- `git manager`\n- `bisect issue`\n- `cleanup branches`\n- `stash help`\n- `analyze git log`\n- `safe git ops`\n\n## Workflow\n1. **Assess repository health** – start with `git status`, review `git fetch --all`, and record the current branch/tag. Prompt the user: _\"Are we on the branch that should move forward, or is a temporary diagnostic branch mounted?\"_\n2. **Bisect troubleshooting** – when isolating regressions, run `git bisect start` with the known good/bad commits and iteratively test. After each reproduce attempt, ask for confirmation before `git bisect good/bad`. Offer the safety reminder: _\"Bisect rewrites HEAD; stash or commit open work first.\"_\n3. **Branch cleanup** – use `git branch --merged` versus `git branch --no-merged` to find stale branches. Recommend `git branch -d <branch>` for merged work and `git branch -D` only after re-confirming the target branch via a safety prompt to avoid deleting active work.\n4. **Stash management** – suggest `git stash list`/`git stash show` to catalogue hidden work. Encourage naming stashes with `git stash push -m \"description\"` and verify the exact entries before `git stash drop`/`pop`, reminding the user to keep a copy (`git stash branch <name>`) if they need extra safety.\n5. **Log analysis** – guide through `git log --oneline --graph --decorate`, `git reflog`, and `git log @{u}` to understand recent operations. Offer commands like `git show <commit>` for inspection and highlight the importance of reviewing commit messages before reverting or cherry-picking.\n6. **Safety prompts** – before destructive commands (e.g., `reset --hard`, `git clean -fd`, branch deletion, `rebase`, `push --force`), run the two-step destructive confirmation protocol: (1) display the current branch name and HEAD commit hash or tag, verify the target commit, and remind the user to take a backup action (tag, temporary branch, stash, export patch, etc.); (2) require an explicit textual `YES` reply before running the command. Always pair the recommendation with `git status`, `git log -1`, or a `git tag` snapshot so the user can see exactly what would change, and prefer `git push --force-with-lease` over `--force` unless the situation explicitly warrants the risk.\n\n## Deliverables\n- Provide step-by-step command sets for diagnostics (bisect, log review, stash recovery).\n- Keep a safety checklist in every response: check HEAD, stash status, remote tracking state, and backup plan (tag or branch) before rewriting history.\n- Offer follow-up summary: what was touched, what is stashed, and what commands to run next for cleanup.\n","topics":["Git","Log Analysis"],"tags":{"latest":"1.0.1"},"stats":{"comments":0,"downloads":793,"installsAllTime":30,"installsCurrent":4,"stars":0,"versions":2},"createdAt":1773105121692,"updatedAt":1778491796228},"latestVersion":{"version":"1.0.1","createdAt":1773105194902,"changelog":"Rename display name to Git Manager","license":"MIT-0"},"metadata":null,"owner":{"handle":"ppopen","userId":"s1776beyb8vpcscv8f3t21d54x885pdn","displayName":"pp","image":"https://avatars.githubusercontent.com/u/263042322?v=4"},"moderation":null}