A community-driven registry for Claude, Cursor, Windsurf, Cline & more. Not affiliated with Anthropic.
Are you the author? Sign in to claim
An example pipeline that uses dynamic pipelines and Claude Code to automatically review GitHub pull requests.
This example demonstrates an AI-powered code review pipeline built with Buildkite dynamic pipelines and Claude Code. Adding a label to a GitHub PR triggers an AI agent that reviews the pull request and posts feedback.
👉 See this example in action: buildkite/code-review-pipeline-example
buildkite-review label to a GitHub PRbuildkite-agent pipeline uploadThe core of the handler is short — read the webhook payload from build metadata, evaluate whether to act, and generate a step with the Buildkite SDK:
// 1. Read the webhook payload that Buildkite stored as build metadata
const payload = JSON.parse(
execSync("buildkite-agent meta-data get buildkite:webhook").toString(),
);
// 2. Evaluate the condition — right event, right label?
if (payload.action !== "labeled" || payload.label.name !== process.env.TRIGGER_ON_LABEL) {
process.exit(0);
}
// 3. Generate a step with the Buildkite SDK and pipe it into `pipeline upload`
const pipeline = new Pipeline();
pipeline.addStep({ label: ":mag: Review the PR", command: "scripts/claude.sh" });
execSync("buildkite-agent pipeline upload", { input: pipeline.toYAML() });
The real handler also validates the PR exists and posts an acknowledgement comment between steps 2 and 3 — see scripts/handler.ts.
The key Buildkite features at play:
buildkite-agent pipeline upload — adding steps to a running build based on runtime conditionsbuildkite-agent meta-data — reading webhook payloads stored as build metadata@buildkite/buildkite-sdk — programmatically generating pipeline YAML in TypeScriptLike the self-healing pipeline example, this pipeline has no fixed steps. The webhook payload determines whether anything runs at all, and what runs is generated programmatically at build time. This is a different flavour of the same dynamic pipelines pattern — instead of remediating a failure, it's performing an intelligent review.
To run this yourself, you'll need:
pull_request events with the labeled action to BuildkiteGITHUB_TOKEN and BUILDKITE_API_TOKENbuildkite-review label to any PROriginally built by Grant Colegate and Christian Nunciato as a demo for AWS re:Invent.
See LICENSE (MIT)
Run Claude Code as an MCP server so any agent can delegate coding tasks to it
Browser automation using accessibility snapshots instead of screenshots
MCP server integration for DaVinci Resolve Studio
A Jetbrains IDE IntelliJ plugin aimed to provide coding agents the ability to leverage intelliJ's indexing of the codeba