Detected country: US
logo
Sign InBook a Demo
GuideRecipesDeveloper

Playbook Recipes

  • Data Ops recipes
    • Recipe: Data sync and ETL to a warehouse
    • Recipe: Scheduled reports and readouts
  • Engineering Ops recipes
    • Recipe: AI code review on pull requests with Cursor
    • Recipe: Incident response and on-call paging
    • Recipe: Triage new errors into tracked issues
  • Finance Ops recipes
    • Recipe: Invoice and expense processing
    • Recipe: Reconcile payments and payouts
  • Introduction
  • Marketing Ops recipes
    • Recipe: Campaign performance report
    • Recipe: Competitor monitoring digest
    • Recipe: Content and marketing operations
    • Recipe: Generate a content brief
  • RevOps recipes
    • Recipe: Automate new customer onboarding
    • Recipe: Enrich new leads automatically
    • Recipe: Route a deal review with an evaluation agent
    • Recipe: Score and route a lead with an evaluation agent
    • Recipe: Score, route, and follow up on leads
  • Support Ops recipes
    • Recipe: Auto-answer and deflect common tickets
    • Recipe: Catch a refund request with an evaluation agent
    • Recipe: Check the work before a reply
    • Recipe: CSAT follow-up after ticket resolution
    • Recipe: Escalate SLA breaches and priority tickets
    • Recipe: Triage a support email with an evaluation agent
    • Recipe: Triage and route support tickets
Loading…
logo

Powered by

Recipe: AI code review on pull requests with Cursor

TL;DR: When a pull request is opened, this playbook runs a Cursor-powered review of the diff, posts inline comments and a summary on the PR, and notifies the team in Slack. Trigger is a GitHub webhook; outputs are PR review comments and a Slack message.

Who this is for

Engineering teams that want a consistent first-pass review on every PR.

What you'll need

  • Connectors: GitHub, Cursor (first-party integration), Slack.
  • Secrets: GitHub token, Cursor API key, Slack token.
  • Trigger: Webhook on pull request opened/synchronized.

How to build it with Ask Ballet

  1. Open the Console on Home.
  2. Paste the prompt below; set repos and review focus.
  3. Review the plan and confirm.
  4. Connect GitHub, Cursor, and Slack, then add the PR webhook.
Build a playbook that triggers when a GitHub pull request is opened. Fetch the diff and
changed files, run a Cursor review focused on bugs, security, and missing tests, and
post a summary comment on the PR plus inline comments for specific issues. Add a label
"needs-changes" or "looks-good" based on the result, and post a short summary to
#code-reviews in Slack with the PR link and verdict.

What the playbook does

  1. Webhook trigger — receives the PR event.
  2. HTTP step (fetch diff) — gets the changed files and diff from GitHub.
  3. Code step (Cursor review) — runs the review and structures findings.
  4. HTTP step (comment + label) — posts PR comments and sets a label.
  5. HTTP step (Slack) — posts the verdict summary.

Variations and tips

  • Skip draft PRs and dependency-bump PRs with a filter in the trigger/Code step.
  • Keep the review advisory — require human approval before merge.
  • Route review findings that look like real bugs into Error triage.

Related articles

  • Error triage
  • How do first-party integrations (Cursor, Freshdesk) work?
  • How do I edit steps (Code and HTTP)?
  • What are Allow vs Ask permission modes?