Build a new service with checked Terraform and manifests
Cursor assembled a service’s infrastructure files, checked them, and opened a draft pull request for review.
- What they did
- They kept a task file in the repo and launched it with the service name and team name. The agent looked for conflicts in GitHub, the cluster, and Terraform state, then generated the Terraform service file, Kubernetes manifests for Deployment, Service, and HPA, and a CI job that ran Trivy. After that, it verified the work with `terraform validate` and a `kubectl` dry run, then created a draft PR with a checklist.
- How it went
- A new engineer ended up with files that matched the team’s conventions. In another pass, an overly broad cleanup request removed 14 files, including 3 Terraform files still managing state; a checkpoint rollback brought them back.
- Tips
- Use precise, report-only wording for anything that might delete or trim resources. Keep pull requests small and watch for details, since a reviewer missed a `cpu=10m` limit when they skimmed.
Try it yourself with Cursor
In this repository, use the task file to create a new service for [service name] and [team name]. Start by checking for conflicts in GitHub, the cluster, and Terraform state. Then generate the Terraform service file, Kubernetes Deployment, Service, and HPA, plus a CI job that runs Trivy. Validate the Terraform and do a Kubernetes dry run before you make any changes that could remove, overwrite, or clean up files or resources. Pause and show me a clear list of what will be created, changed, or deleted so I can approve it first. When everything looks right, open a draft pull request with a short review checklist.
Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.
Get 3 agent uses like this every morning
With the day's top AI news. Free, and one click to unsubscribe.
Related agent uses
Assign PRs and bug fixes across Cursor sub-agents
A Cursor coordinator tracked incoming pull requests and live bugs, sent sub-agents after each issue, and kept the user updated along the way.
Automate large service upgrades with self-checking agents
Brex used Cursor agents to let one engineer update 180 microservices to a newer Micronaut release in roughly a month.
Use Cursor to spot prototype gaps and draft a build plan
A founder used Cursor to inspect a trip-planning app, surface missing pieces, sketch screens, and then build a feature with parallel agents.
Use Cursor to inspect pod logs and fix compose files
A DevOps engineer used Cursor to read production pod logs through Kubernetes MCP and to repair a broken Docker Compose setup.
Turn a short ticket into a landing page
Cursor’s background agent made a pricing page from a brief spec, opened a PR, and let the developer review it before shipping.
Let Cursor draft a project app in a 24-hour loop
A developer let Cursor work for a full day on a project tracker, and it finished with a usable but unfinished result.