promptgarten ๐ŸŒฑ
๐ŸŒ ES

Command reference ยท Claude Code

/autofix-pr

Starts a Claude Code web session that watches the current branch's pull request and automatically pushes fixes for CI failures or reviewer comments.

Detects the open PR via 'gh pr view'; a prompt can be passed to give different instructions (e.g. only lint/type errors). Requires the gh CLI and access to Claude Code on the web.

โœ… WHEN TO USE IT?

Let an open PR run unattended against CI failures

/autofix-pr only fix lint and type errors โ€” after pushing a PR, while working on something else

Have reviewer comments automatically turned into fixes

/autofix-pr address all review comments from the last review round

โ›” WHEN NOT TO?

Changes haven't been pushed as a PR yet

the command detects the PR via 'gh pr view' and needs Claude Code on the web access โ€” with no open PR it finds nothing

Better: commit/push normally and open a PR with gh pr create first, then run /autofix-pr

SOURCES