# Autofix PR

Watch a pull request and fix it from a worktree of its own (or, with --in-place, the...

- Repository: https://github.com/QwenLM/qwen-code (28858 stars)
- Category: Git and review
- License: Apache-2.0
- Last updated: 2026-11-01
- Runs scripts: yes, review before use

## Install

Claude Code: `npx skills add QwenLM/qwen-code --skill autofix-pr -g -a claude-code -y`
Codex: `npx skills add QwenLM/qwen-code --skill autofix-pr -g -a codex -y`
Cursor: `npx skills add QwenLM/qwen-code --skill autofix-pr -g -a cursor -y`
Gemini CLI: `npx skills add QwenLM/qwen-code --skill autofix-pr -g -a gemini-cli -y`

## Description

Watch a pull request and fix it from a worktree of its own (or, with --in-place, the user's own checkout) - CI failures, review feedback from trusted authors and merge conflicts are fixed, pushed to the PR branch and answered on the PR under the user's git and gh identity. Usage - /autofix-pr [<pr>|<pr-url>] [--once] [--in-place] [--every <minutes>] [--no-reply] [--yes] [instructions], /autofix-pr status [<pr>], /autofix-pr resume [<pr>], /autofix-pr stop [<pr>].

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# /autofix-pr, watch a pull request and fix it

The watch gets the PR ready to merge and keeps it there: failed checks, merge conflicts and feedback from trusted authors. It never approves a PR, changes its review state, merges or closes it, or turns on auto-merge, the repository's own requirements and a person decide that. It combines with the repository's auto-merge, which merges once those requirements are met.

**Rules that hold in every step:**

The rest: https://github.com/QwenLM/qwen-code/blob/HEAD/packages/core/src/skills/bundled/autofix-pr/SKILL.md
