This kit configures a coding agent for infrastructure and delivery work: Terraform (or OpenTofu), AWS, containers, CI/CD pipelines, deployment and observability. The central idea is simple: the agent writes, reviews and plans; the human decides what reaches a real environment. Anything that creates, changes or destroys live infrastructure needs your explicit approval, given in this conversation, for that specific action.
- Read before you write. Inspect the existing modules, workflows and Dockerfiles and follow their conventions before proposing anything new.
- Plan before apply. For infrastructure, produce a plan (
terraform plan, a change set, a dry run) and show it. Do not runapply,destroy,deploy,kubectl apply, stack updates or any command that mutates a live environment unless the user has said so for that exact command and target. - State the target every time: account, region, workspace or environment, and cluster. If you cannot tell which one a command would hit, stop and ask.
- Never bypass an approval prompt. Do not use flags or settings whose purpose is to skip confirmation of a plan or a destructive change.
- Prefer the smallest change that solves the problem. Do not refactor unrelated modules inside an infrastructure change.
- Say what you did not verify. If you could not run a plan or a linter, say so plainly.
- Do not read, print or copy credential files, tokens,
.envfiles, state files or private keys. If a task seems to need one, ask the user to supply the non-secret part. - Never write a secret into code, a workflow, a Dockerfile layer, a variable default or a commit. Reference a secret store or a CI secret by name instead.
- Treat Terraform state as sensitive: it can contain secret values. Do not paste it into output or commit it.
- Use short-lived credentials and role assumption in pipelines (for example OIDC) rather than long-lived access keys, and keep IAM policies least-privilege with no wildcard actions or resources unless justified in a comment.
- Run
terraform fmtandterraform validateafter every edit. Addtflintor similar only if the project already uses it. - Pin provider and module versions. Keep one logical stack per directory with remote state and locking; do not change backend configuration without asking.
- Inputs get types, descriptions and validation; outputs are documented. Mark sensitive
values
sensitive = true. - Tag every taggable resource consistently (owner, environment, cost centre).
- When a plan shows a destroy or a replacement, call it out first and explain why before
anything else. Resources holding data (databases, buckets, volumes) need an explicit
note about deletion protection, backups and
prevent_destroy. - Prefer managed policies you can read over copied snippets; explain each IAM permission you grant.
- Pin base image tags (digest where practical), use multi-stage builds, run as a non-root
user, and keep build context small with a
.dockerignore. - No secrets in build args or layers. Add a
HEALTHCHECKor a documented readiness endpoint for long-running services.
- Pin third-party actions to a full commit SHA or a reviewed version. Give each job the
minimum
permissions. - Separate build, test and deploy stages. Deploys to shared environments go behind a manual approval or protected environment; the agent edits the pipeline, it does not trigger production runs.
- Cache dependencies, fail fast, and keep workflow files readable. Reuse workflows instead of copying them.
- Before any risky change, write the rollback procedure and the blast radius. Prefer gradual rollouts (canary, blue-green) over big-bang changes.
- Every service you touch should have logs, key metrics and at least one actionable alarm. Alerts say what is wrong and link to a runbook step.
- After a deploy the user performs, propose verification steps (health checks, dashboards, error rates) and what would trigger a rollback.
- Formatters, validators and linters were run, or you said they were not.
- A plan or dry-run output is shown for any infrastructure change.
- Destroys, replacements, IAM changes and cost impact are listed.
- Rollback steps are written for anything that could break production.
- You list exactly which commands the user still needs to run themselves.
- terrashark — reviewing or writing Terraform to avoid hallucinated resources and blast-radius mistakes.
- terraform-module-library — building reusable, versioned Terraform modules.
- iam — writing least-privilege IAM policies and debugging AWS permission errors.
- cloudwatch — AWS logs, metrics, alarms and dashboards.
- ln-92-container-engineer — building and hardening container images.
- github-actions-templates — creating GitHub Actions workflows.
- deployment-pipeline-design — multi-stage pipelines, approval gates and rollout strategies.
- secrets-management — storing, injecting and rotating secrets in CI/CD and cloud.
- vibe-rollback-plan — writing a rollback plan before a risky change.
- vibe-safe-deploy — pre-flight checks and post-deploy verification, prepared for the user to approve.
- observability-and-instrumentation — logging, metrics and tracing in application code.
- cost-optimization — cloud cost review, rightsizing and tagging.
/plan-review— summarise a plan and flag destroys, replacements and risk./deploy-checklist— checklist, verification and rollback plan; then wait for approval./cost-check— describe cost drivers and cheaper options without changing anything.
infra-reviewer— read-only review of infrastructure, container and pipeline changes.incident-triager— read-only diagnosis of failing deploys, pipelines or services.
Agents that support scoped rules load these automatically. If yours does not, read the matching file before editing files it covers:
.agents/rules/terraform-safety.md— for**/*.tf,**/*.tfvars,**/*.tftest.hcl: Applies when editing Terraform or OpenTofu files: format, validate, plan, and never apply..agents/rules/pipeline-changes.md— for.github/workflows/**/*.yml,.github/workflows/**/*.yaml,.gitlab-ci.yml: Applies when editing CI/CD workflow files: pin versions, least-privilege tokens, gated deploys..agents/rules/container-hygiene.md— for**/Dockerfile*,**/docker-compose*.yml,**/compose*.yaml: Applies when editing Dockerfiles and compose files: small, pinned, non-root images.