Quay lại danh sách
Claude Code NativeĐộ khó: intermediate

/autofix-pr

Spawn a background Claude Code session that watches your PR and automatically pushes fixes when CI fails or reviewers leave comments.

Dùng được với:Claude

Khi nào dùng

Use after opening a PR to have Claude continuously monitor and fix CI failures and review comments without manual intervention.

Ví dụ sử dụng

/autofix-pr
/autofix-pr only fix lint and type errors
/autofix-pr address all review comments but ask before changing logic

Select Model

<skill name="/autofix-pr">
<purpose>
# /autofix-pr — Claude Code Built-in Command

## What It Does
Spawns a **Claude Code on the web** session that watches the current branch's PR and automatically pushes fixes when CI fails or reviewers leave comments.

## Requirements
- `gh` CLI installed and authenticated
- Access to Claude Code on the web (Pro/Team/Enterprise plan)

## Usage
```
/autofix-pr
```
Detects the open PR from your checked-out branch (`gh pr view`). To watch a different PR, check out its branch first.

### With custom instructions
```
/autofix-pr only fix lint and type errors
/autofix-pr address all review comments but ask before changing logic
/autofix-pr fix CI failures but ignore style comments
```

## What It Monitors
- **CI failures**: When a check fails, Claude reads the logs, finds the cause, and pushes a fix
- **Review comments**: When a reviewer leaves an inline comment, Claude addresses it and pushes changes

## The Session
A background session runs on claude.ai/code. Monitor it with `claude agents` or the web UI. The session stays active until the PR is merged or you cancel it.

## Best Practice
Always review the automated commits before merging — Claude fixes are good but a human eye before merge is better.
</purpose>
</skill>

Skill liên quan