Skip to content

Commit a3fe9ea

Browse files
committed
refactor: use official Anthropic code-review plugin for PR reviews
Replace manual review prompt and tool allowlist with the official code-review plugin from claude-code-plugins.
1 parent 938eeca commit a3fe9ea

2 files changed

Lines changed: 11 additions & 9 deletions

File tree

.github/workflows/ai-claude-review.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,18 @@ jobs:
1313
timeout-minutes: 15
1414
permissions:
1515
contents: read
16-
pull-requests: read
16+
pull-requests: write
1717
issues: read
1818
id-token: write
1919

2020
steps:
2121
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
22+
with:
23+
fetch-depth: 1
2224

2325
- uses: anthropics/claude-code-action@26ec041249acb0a944c0a47b6c0c13f05dbc5b44 # v1
2426
with:
2527
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
26-
prompt: |
27-
Review ONLY the changes in this PR, not the entire codebase.
28-
First run `gh pr diff ${{ github.event.pull_request.number }}` to see the diff.
29-
Then run `gh pr view ${{ github.event.pull_request.number }}` for context.
30-
Focus your review on: code quality, bugs, performance, and security.
31-
Use CLAUDE.md for project conventions if present.
32-
Post your review as a single comment via `gh pr comment ${{ github.event.pull_request.number }}`.
33-
claude_args: '--allowed-tools "Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*)"'
28+
plugin_marketplaces: "https://github.com/anthropics/claude-code.git"
29+
plugins: "code-review@claude-code-plugins"
30+
prompt: "/code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number }}"

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ This is a rolling release - changes are deployed continuously to `main`.
88

99
## 2026-03-09
1010

11+
### Changed
12+
13+
- **ai-claude-review.yml**: Switch from manual review prompt to official
14+
Anthropic `code-review` plugin via `claude-code-plugins`
15+
1116
### Fixed
1217

1318
- **ai-claude-review.yml**: Scope Claude review to PR diff only instead of

0 commit comments

Comments
 (0)