Scaffold a new service end to end with agents
Cursor agents create Terraform, k8s manifests and CI, validate them and open a draft PR; one cleanup run wrongly deleted Terraform files. Task: Suggested implementation: Use a repository task file specifying service and team names to drive an agent. The agent checks GitHub, cluster, and Terraform state for conflicts, then generates Terraform files, Kubernetes manifests (Deployment, Service, HPA), and a CI workflow with Trivy scanning. It executes terraform validate and kubectl checks. Human reviewers must validate the resulting draft PRs.; tools: Cursor. Human role: Source evidence is unavailable for specific human roles; reviewers must validate PRs and avoid vague prompts.; limitations: Prerequisites include access to GitHub, Kubernetes clusters, and Terraform state. Constraints: Avoid vague prompts like 'cleanup' in favor of precise report-only tasks. Integration uncertainty exists regarding agent reliability. Human approvals are mandatory for PR merges. Source reliability is low as the original URL returned a 403 error..
Tools
Published on Agent Work Atlas:
Overview
Cursor agents create Terraform, k8s manifests and CI, validate them and open a draft PR; one cleanup run wrongly deleted Terraform files.
Workflow
Suggested implementation: Use a repository task file specifying service and team names to drive an agent. The agent checks GitHub, cluster, and Terraform state for conflicts, then generates Terraform files, Kubernetes manifests (Deployment, Service, HPA), and a CI workflow with Trivy scanning. It executes terraform validate and kubectl checks. Human reviewers must validate the resulting draft PRs.
Reported result
Outcomes are unverified due to source access errors. The provided text mentions a new engineer producing convention-compliant files without timing data, and a separate incident where a vague cleanup prompt deleted 14 files. No success metrics are available. Proposed acceptance check: Verify zero unintended file deletions and 100% validation pass rate on generated manifests.
Human role
Source evidence is unavailable for specific human roles; reviewers must validate PRs and avoid vague prompts.
Limitations
Prerequisites include access to GitHub, Kubernetes clusters, and Terraform state. Constraints: Avoid vague prompts like 'cleanup' in favor of precise report-only tasks. Integration uncertainty exists regarding agent reliability. Human approvals are mandatory for PR merges. Source reliability is low as the original URL returned a 403 error.
Try it
Act as a DevOps engineer using Cursor. I have a task file at [replaceable: path/to/task.yaml] defining service '[replaceable: service-name]' and team '[replaceable: team-name]'. Step 1: Read the task file. Step 2: Check for existing conflicts in GitHub, the Kubernetes cluster, and Terraform state. Step 3: Generate the Terraform service file, Kubernetes Deployment, Service, and HPA manifests, and a CI workflow including a Trivy scan. Step 4: Run 'terraform validate' and 'kubectl apply --dry-run=client'. Step 5: Create a draft PR. Do not merge. Output the generated file paths and validation logs. If inputs are missing, ask for the task file path and service details. Perform a dry run on a sample service first and wait for my confirmation before generating the final PR.
Source reports are not independently verified. Publication date is the catalog publication date, not the original article date.