pr-review template
GitHub pull_request webhook → Claude reviews the diff → inline review comments. References @declaragent/plugin-github for the review-posting tools.
Scaffold
declaragent init --template pr-review --provider anthropic
Canonical starter: templates/pr-review/.
Configure
- Install the
@declaragent/plugin-githubplugin (see the note below). - Create a GitHub App with
pull_request+contents:read+pull_requests:writescopes. - Point the app's webhook at
https://<your-host>/webhooks/github. - Copy the webhook secret + app private key into
.env.
Key points
- The plugin exposes a
ReviewPRtool that posts inline review comments via the GitHub API. - The template's skill prompt constrains the agent: one pass, no style-only nits, no demands the contributor opt out of via label.
- Rate limiting is the plugin's concern — inbound GitHub webhook storms are shed at the ingress.
[placeholder — landing 2026-Q2] The @declaragent/plugin-github package
is referenced but not yet published (pr-review is the driver for its
v1.0.1 release). declaragent run on this template will fail plugin
load until the package lands.
Related
- Reference → extensions — plugin catalog.
- CLI →
declaragent plugin install.