About w-git-repair
w-git-repair is a Git troubleshooting skill for handling local repository problems such as conflicts, detached HEAD, and upstream divergence. It favors minimal safe changes, confirmation before destructive actions, and rechecking repository state afterward.
Key features
- 01Inspect status, branches, and logs
- 02Propose minimal safe commands
- 03Require consent for destructive actions
- 04Recheck status and conflicts
- 05Avoid force-push and hook bypasses
Use cases
- 01Resolve local merge conflicts
- 02Recover from detached HEAD
- 03Address upstream divergence
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ blockmatic/ basilic-skills --skill w-git-repairAfter installing, type/w-git-repairin Claude Code to confirm it loaded.
Bundled filesreferences/git-publish.md
Details
From the project READMEHelp with conflicts, detached HEAD, upstream divergence, and similar local Git problems. Follow git publish. Do not rewrite published history unless the user asked.
- Inspect
git status,git branch -vv, and the relevant log. State the current problem in one sentence. - Propose the smallest safe commands. Explain what they change. Require explicit confirmation before commands that can discard local changes (
git reset --hard,git clean,git restore). Require an explicit user request before history-rewriting commands (git rebase,git commit --amendof a published commit). - After an authorized command, re-inspect status and remaining conflicts. Never force-push or bypass hooks.
Comments
Markdown supported