2 min lesson
Create a review-comment automation
Create one review-comment draft with /automate, inspect every generated field and test its action and no-action cases.
Check your understanding
Complete the practice "Draft a review-comment automation with /automate".
Outcome: A tested package fix opens one draft pull request. A question, out-of-scope request or failed reproduction stops without one.
Draft a review-comment automation with /automate
/automate, draft review, first-run check
SayInline review comments on acme/web often request small UI fixes. I want a draft that handles those comments without opening pull requests for questions or failed reproductions.
DoIn a local Agent session, run /automate and describe the repository, trigger, decision rules and required test in plain language.
SeeCursor proposes the automation's trigger, instructions and tools from that description.
Type
Trigger: GitHub PR review commentDoOpen the generated configuration. Confirm the PR review comment trigger, acme/web repository and pull request behavior. This workflow needs no MCPModel Context Protocol. A standard that lets an AI agent pull in context from outside the repo, like Jira tickets or internal docs. Press Enter for the full definition. tool.
SeeThe draft now matches the source event, codebase and allowed actions.
Type
When an inline comment requests a change inside packages/ui, reproduce it, make the smallest safe fix and run pnpm test ui. Open one draft pull request only if the test passes. For a question, an out-of-scope request or a failed reproduction, record why and stop without changing code.SeeThe prompt separates a tested code change from cases that should stop without a pull request.
DoSave and activate the automation only for acme/web. Inspect the first qualifying change request and the first comment that should produce no code change.
SeeA tested package fix opens one draft pull request. A question, out-of-scope request or failed reproduction stops without one.
Learn more
Optional practice
Test yourself on Create a review-comment automation
QWhich result proves the generated automation draft is ready to activate?