/git-plugin:git-fix-pr [pr-number] [--auto-fix] [--push]from git-plugin
Reproduces failing PR checks locally, applies fixes, and pushes corrections to the branch. Use when CI is red or asked to fix lint/test/type failures.
Ships in git-plugin. 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.
| Use this skill when... | Use the alternative when... |
|---|---|
| Fixing failing CI checks on an existing PR (lint, type, test) | Use git-pr-feedback to address reviewer comments rather than CI failures |
| Reproducing red GitHub Actions runs locally before pushing corrections | Use github-actions-plugin:gh-workflow-monitoring to passively watch a run rather than fix it |
| Auto-applying lint/format/type fixes and pushing them to the PR branch | Use git-conflicts when the failure is a merge conflict, not a check |
| Diagnosing why a pull request is red after a push | Use git-triage to sweep many PRs at once instead of fixing one |
git remote -vgit branch --show-currentgit status --porcelain=v2 --branchgit diff --cached --numstatgit diff --numstatgit log --format='%h %s' --max-count=5Parse these parameters from the command (all optional):
$1: PR number (if not provided, detect from current branch)--auto-fix: Automatically apply fixes for common issues--push: Push fixes to the branch after committingAnalyze and fix failing PR checks.
gh pr checks <pr-number> or mcp__github__pull_request_readBased on failure type:
Linting errors: Run appropriate linters/formatters
# Python
uv run ruff check --fix .
uv run ruff format .
# JavaScript/TypeScript
npm run lint -- --fix
Type errors: Fix type annotations or implementations
Test failures: Fix failing tests or implementation bugs
This section replaces Steps 5–6 when both hold:
reusable-auto-resolve-conflicts.yml (grep -l reusable-auto-resolve-conflicts .github/workflows/*), andrenovate/* or dependabot/*.Why: when such a PR starts to conflict with main, that workflow does not resolve it. It runs gh pr close --delete-branch on those branch patterns by design, because the bot will recreate the PR. The recreated PR carries only the bot's change, so a fix pushed to the bot branch is lost and the check fails again. The workflow's other skipped patterns (release-please, version-tracking, config-sync branches) have their own regeneration paths and are out of scope here.
main under a name outside those patterns (for example chore/deps-<topic>), cherry-pick the bot's commits (git log origin/main..origin/<bot-branch>; a fresh Renovate branch holds only its own), commit the fix on top, and open that branch as the PR. Once it merges, main has the update and the bot has nothing left to propose. Close the bot PR by hand, or let auto-resolve close it when it conflicts.uv lock --upgrade for uv) with the version CI pins: the version: input of the setup action (astral-sh/setup-uv, oven-sh/setup-bun, …) in .github/workflows/, not the locally installed one. Commit the failure fix in the same commit, because either change alone can leave the check red, then re-run the failing check. As a sanity check, not a threshold, compare per-file sizes from git diff --stat origin/main with the bot PR's file list; a large gap points to a different resolver version or a moved base.packageRules entry to renovate.json with allowedVersions (stay below the failing release) or enabled: false (stop updates), plus a description saying why. Without it, the bot proposes the same bump on its next run.For a bot PR that matches Bot dependency PRs, follow that section instead of Steps 5–6.
git add -ugit commit -m "fix: resolve CI failures"git push| Check Type | Common Fixes |
|---|---|
| Linting | Run formatter, fix import order |
| Types | Add type annotations, fix mismatches |
| Tests | Fix assertions, update snapshots |
| Build | Fix imports, resolve dependencies |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub laurigates/claude-plugins --plugin git-plugin52 skills in this plugin
/deadbranchdeadbranch CLI for stale-branch cleanup — dry-run preview, TUI or non-interactive delete, protects main/develop/WIP. Use when asked to clean up branches, prune branches, or remove stale branches./external-pr-trustAuthorship as a precondition of merging — bot vs stranger classification, what a merge executes, the merge-guard hook. Use when bulk-merging PRs, or when a merge is denied for a non-self author./gh-cli-agenticgh CLI commands with JSON output for agents. Use when querying PRs, issues, runs, or repo metadata; inspecting PR checks; fetching failed CI logs; or mapping a github.com URL to an API call.Other plugins' skills for the same job