From 2ae78de35d7c340fbc5caf978c37af20e43148f4 Mon Sep 17 00:00:00 2001 From: Douglas Ezra Morrison Date: Sat, 29 Aug 2026 23:04:15 -0700 Subject: [PATCH 1/2] docs(pr-workflow): document Claude auto-fix PR capabilities Summarizes /autofix-pr (Claude Code on the web watches the PR and pushes fixes for CI failures/review comments, plus the Marketplace action) from https://code.claude.com/docs/en/commands#autofix-pr and https://github.com/marketplace/actions/pr-autofix-with-claude-code. Closes #118 --- chapters/pr-workflow-with-agents.qmd | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/chapters/pr-workflow-with-agents.qmd b/chapters/pr-workflow-with-agents.qmd index 6badd8d..9db3d2f 100644 --- a/chapters/pr-workflow-with-agents.qmd +++ b/chapters/pr-workflow-with-agents.qmd @@ -42,6 +42,21 @@ request moving toward a clean, mergeable state. {{< include ai-tools/reviewing-ai-generated-work.qmd >}} +# Auto-fix PRs with Claude Code {#sec-autofix-pr} + +[Claude Code's `/autofix-pr`](https://code.claude.com/docs/en/commands#autofix-pr) +watches the current branch's pull request from Claude Code on the web +and pushes fixes when CI fails or reviewers leave comments. +It detects the open PR from your checked-out branch via `gh pr view`; +to watch a different PR, check out its branch first. +By default it fixes every CI failure and review comment; +pass a prompt to scope it, for example `/autofix-pr only fix lint and type errors`. +It requires the `gh` CLI and access to Claude Code on the web, +and is available from v2.1.221 or later. +A Marketplace action at +[pr-autofix-with-claude-code](https://github.com/marketplace/actions/pr-autofix-with-claude-code) +offers the same capability as a GitHub Action. + # References {.unnumbered} ::: {#refs} From 4c257c50c8437742d76b7672e386894240594ad2 Mon Sep 17 00:00:00 2001 From: Douglas Ezra Morrison Date: Sat, 29 Aug 2026 23:08:55 -0700 Subject: [PATCH 2/2] fix(pr-workflow): remove unverified version claim for /autofix-pr The v2.1.221 claim is not in either cited source and is contradicted by the changelog (bug fix at v2.1.161). Remove it per review. Addresses review finding on PR #149. --- chapters/pr-workflow-with-agents.qmd | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/chapters/pr-workflow-with-agents.qmd b/chapters/pr-workflow-with-agents.qmd index 9db3d2f..e4be7e8 100644 --- a/chapters/pr-workflow-with-agents.qmd +++ b/chapters/pr-workflow-with-agents.qmd @@ -51,8 +51,7 @@ It detects the open PR from your checked-out branch via `gh pr view`; to watch a different PR, check out its branch first. By default it fixes every CI failure and review comment; pass a prompt to scope it, for example `/autofix-pr only fix lint and type errors`. -It requires the `gh` CLI and access to Claude Code on the web, -and is available from v2.1.221 or later. +It requires the `gh` CLI and access to Claude Code on the web. A Marketplace action at [pr-autofix-with-claude-code](https://github.com/marketplace/actions/pr-autofix-with-claude-code) offers the same capability as a GitHub Action.