Automation recipes
The prompts on Building with AI and Working with AI assume you are sitting there typing them. The same prompts run unattended, on a schedule, through Cursor Automations, a scheduled Claude Code session, or any agent runner that can reach the MCP server.
What changes when nobody is watching is the cost of a wrong answer. A recipe you run by hand gets read before you act on it. A recipe on a cron job acts first, so each one below ends in something a person reviews rather than something already applied.
How a recipe runs
- The agent reads your Schematic account over the MCP server.
- It picks the single highest-value item to work on, not every item it found.
- It gathers whatever else it needs, which for the code recipes means searching the repository.
- It produces one reviewable artifact: a pull request, or a written summary.
- You review and decide.
Before you start
You need the MCP server connected and authenticated, an agent runner that can execute on a schedule, and a Schematic account with enough history for the query to return something. Connect read-only for the recipes that only read, which is all of them below.
The recipes that open pull requests also need repository access and whatever your project requires to run its linter and tests.
Start by hand, then schedule
Run the prompt yourself first and read what comes back. You are checking whether the agent picked a sensible item and whether its reasoning holds, not whether it produced output.
Then add the guardrails your codebase needs. Every prompt below has a Rules block, and that block is where project-specific constraints go: the paths to leave alone, the review conventions, the tests that have to pass.
Only put it on a schedule once you have watched it produce something you would have approved anyway. Review every pull request before merging, on the schedule as much as by hand.
Sweep redundant flag checks
A flag that resolves the same way for every company is a branch your code no longer needs. It still costs a network call, it still reads as a live decision to anyone reviewing the file, and the cleanup never makes it onto a sprint.
This recipe ends in a pull request, which makes it the one to start with if you want to see the pattern work.
Catch entitlement drift
An override outlives the reason someone added it. A custom plan gets edited during a renewal. Neither leaves a trace anywhere a human reads on purpose, so the gap between what a customer bought and what they can currently reach only surfaces when someone goes looking.
This recipe reads and reports. It changes nothing, so it runs read-only.
Overrides are the usual culprit. See Company overrides for what they can change and Close custom deals for how negotiated terms get modeled.
Turn usage into a review queue
Working with AI covers the two questions here, which are who is pressing against a limit and who is barely using what they pay for. Asked once, they answer a question. Asked every week, they build a queue, and the queue is worth more than either answer because it shows you which direction an account is moving.
Tips
One item per run. An agent asked to fix everything produces a pull request nobody can review. The recipes above all pick a single item on purpose.
Give the agent your project’s context. Which paths are off limits, which flags are mid-rollout, how your team writes a pull request description. A recipe that works in one repository needs this part rewritten for the next.
Have it tell you when it found nothing. A run that reports “no drift this week” is a working run. Without that line you cannot tell a clean result from a broken job.
Keep the human review. Every recipe here ends in something a person approves. That is the design, not a limitation of the current tooling.
Where this fits
These recipes are scheduled reads with a human at the end. For automation that has to fire reliably on a specific event, use webhooks instead, which is the distinction drawn in Automate with webhooks and AI.