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
Use PR chat history to finish related repo work
A Cursor Projects user fed a cloud PR chat into the project sidebar so the main agent could use it as live context and finish the related issue.
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.
Build Ansible with Cursor and keep lessons in CLAUDE.md
They used Cursor and Claude to write most Ansible code, while saving lessons and plans to files so the work could continue after compaction.
Move a CMS site to code and Markdown
Use Cursor agents to export CMS content, convert it to Markdown, and refactor the site in parallel.
Use Devin for one integration, one migration, and a review
Answer.AI tested Devin on three coding tasks, but the migration stalled and the security pass mixed valid findings with mistakes.
Use parallel agents for a Solid-to-React rewrite
Cursor split an internal Solid-to-React migration across many agents so the codebase could be updated in parallel.