/git-workflows:troubleshoot-rebasefrom git-workflows
Diagnose and recover from git rebase failures
Ships in git-workflows. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Diagnose and recover from rebase failures. Invoke when standard rebase error handling cannot resolve the issue.
Check: pwd, git status, git branch --show-current, git worktree list, gh pr view.
For PR-branch sync, follow the Git Town rule.
Use /refresh-repo to fast-forward a local default branch.
Branches have diverged. First, confirm your current branch: git branch --show-current.
If this is a PR branch and the push was rejected, sync it using the rule above,
then retry: git push --force-with-lease origin HEAD.
If you are on the default branch and it is behind origin, run /refresh-repo
to fast-forward it, then retry your operation.
If the rebase fails because its parent moved, follow the Git Town rule above.
GH013 error about PR/status checks. This is NOT a block if commits are from approved PR.
Causes: CI not passing, reviews not approved, merge conflict.
Fix order: Follow the Git Town rule above for PR-branch sync, wait for checks, then continue through the canonical PR-readiness gate.
Check: gh pr view <branch> --json checks,reviews,statusCheckRollup
Nested .git directory found. Fix: git rm --cached <folder-name> or add to .gitignore.
Identify: git status, git diff --name-only --diff-filter=U
Resolve: edit files, git add <file>, then git rebase --continue (or --abort).
The default branch moved between operations. Run /refresh-repo to fast-forward
the local default branch, then retry.
Fix: git push --force-with-lease origin <branch>
git rebase --abort && git status
Before retrying:
git status.git/rebase-{merge,apply} doesn't existgh pr view <branch> --json stateIf unresolved: check git reflog, review git log -10 --oneline, ask user.
DO NOT: Use --force (use --force-with-lease), use gh pr merge, run git rebase -i.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jacobpevans-ai/claude-code-plugins --plugin git-workflows5 skills in this plugin
/git-workflow-standardsUse for branch hygiene, merge conflict resolution, and worktree cleanup./pre-commit-architectureUse when adding/editing .pre-commit-config.yaml, wiring pre-commit hooks into a repo, or scaffolding a new repo's lint/hook setup. Covers the canonical nix-devenv/dryvist-.github architecture, profiles, and consumer patterns./troubleshoot-precommitTroubleshoot pre-commit hook failures and auto-fixes