A first-pass code reviewer that catches style, security, and obvious logic issues before a human even opens the PR.
A GitHub webhook fires the workflow on every PR open or sync. n8n pulls the diff, sends it to an LLM with a curated review prompt, and posts the structured response back as a PR comment. Slack gets a one-line summary in the team channel.
The bot leaves comments on specific lines, not a wall of text at the bottom.
Tune the prompt to match team taste — strict for prod, light-touch for experiments.
Repo Settings → Webhooks → add the n8n endpoint, enable Pull Request events, set the secret token.
The workflow uses the OpenAI node by default but swaps cleanly to Claude — change the credential and model name.
Update the Slack node to point at the channel that should get the digest.