Skip to content
Skills Library
DevOps & cloud · Review & audit

infrastructure-change

/infrastructure-change

Use when editing infrastructure as code, a deploy script, the cloud resource inventory or a production safety gate, or before running any command that plans, applies or deploys against a real environment. Routes to the infrastructure guardrail, the identity-lock pattern and the credential-free checks that must follow every edit.

Licence
Apache-2.0
Last repository change
06.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 06.11.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What it does and when to use it

Use when editing infrastructure as code, a deploy script, the cloud resource inventory or a production safety gate, or before running any command that plans, applies or deploys against a real environment. Routes to the infrastructure guardrail, the identity-lock pattern and the credential-free checks that must follow every edit.

Original author description

Use when editing infrastructure as code, a deploy script, the cloud resource inventory or a production safety gate, or before running any command that plans, applies or deploys against a real environment. Routes to the infrastructure guardrail, the identity-lock pattern and the credential-free checks that must follow every edit.

How it works

  1. Required context
  2. The rules that bite
  3. Verify
  4. Escalate when
Original SKILL.md headings · 64 lines, 490 words
SKILL.md preview
---
name: infrastructure-change
description: Use when editing infrastructure as code, a deploy script, the cloud resource inventory or a production safety gate, or before running any command that plans, applies or deploys against a real environment. Routes to the infrastructure guardrail, the identity-lock pattern and the credential-free checks that must follow every edit.
---

# Infrastructure change

## Required context

1. `.agents/guardrails/infrastructure.md`: the rules and the reasons behind them.
2. `examples/terraform-safety-gates/README.md`: defence in depth for infrastructure (identity
   lock, native preconditions, resource guards), with
   `examples/terraform-safety-gates/preflight-identity-lock.sh` and
   `examples/terraform-safety-gates/safety.tf` as the working shape.
3. `.agents/guardrails/data-handling.md` and `.agents/rules/credential-surface.md`: state files,
   variables files and deployment config are secrets.
4. `.agents/policy/model-policy.md` and `.agents/policy/approval-matrix.yml` before any production
   or destructive action.

## The rules that bite

- **Run the credential-free checks after every edit**: formatting check and per-layer validation
  (for terraform, `terraform fmt -check -recursive` and `terraform validate`). They catch most
  mistakes and need no access to anything real.
- **The identity lock runs before every plan or apply.** A preflight asserts the active cloud
  identity and target project match the declared target and refuses otherwise, because the most
  expensive infrastructure mistake is a correct change applied to the wrong account. Native
  preconditions and `prevent_destroy` on stateful resources are the second and third layers.
  Never remove or loosen any of them to get unblocked.
- **Single-source every environment value.** Region, project and account come from one declared
  source; a divergent literal is a bug waiting for the next change to the source.
- **Every environment layer moves together.** A new variable or secret reference the application
  reads goes into every environment layer. Layers are often shaped differently, so port by
  meaning, not verbatim, and confirm each validates.
- **Know what rolls a revision.** If the service's lifecycle ignores the image, `apply` changes
  config only and a deploy ships code; a deploy without a needed prior `apply` runs new code on old
  config.
- **Deploy state has one writer.** Rollout state goes through the one library that owns its path;
  a manual deploy that bypasses it breaks the next traffic shift.
- **Production is always an escalation.** Production goes through the confirm-gated path only,
  never a multi-environment list that happens to include it, and never while another deploy runs.
- **A plan that destroys or replaces a stateful resource stops the change** until the work item
  says so and the operator approves.
- **State and variables files are secrets**: never committed, never pasted, never read for
  convenience.

## Verify

```bash
terraform fmt -check -recursive      # formatting, no credentials needed
terraform validate                   # per layer, after init with no backend
make test-gates                      # includes the identity-lock example's own suite
make verify
```

The infrastructure area's `verify` command in `.agents/areas.json` is the declared proof for a
work item; quote it exactly. Reviewers: `infra-change-reviewer`, and `security-data-reviewer` for
the credential surface.

## Escalate when

- Anything would plan or apply against production, or deploy anywhere real.
- A plan shows destroy or replace of a database, bucket, disk or key.
- The identity lock, a precondition or a destroy guard needs to change.
- A new provider, module source or dependency is added.
- Credentials, state or deployment config would need to be read. An approval covers one action,
  once; it never carries to the next apply.

Versions

The database has no other skills named infrastructure-change.

Database snapshot: 13.11.2026 · package version 7f64b3c978f3 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 95devops
    Use when setting up CI/CD pipelines, deploying applications, managing cloud infrastructure (AWS, GCP, Azure), implementing monitoring, containerizing services, or automating deployments with infrastructure as code.
  • 90cloud-infrastructure
    Designs and runs cloud infrastructure — environments, infrastructure as code, networking and isolation, scaling, and cost. Use this to design a cloud environment, control infrastructure spend, set up environment separation, plan for scale or region failure, or review…
  • 87iac-apply
    Actually APPLY an Infrastructure-as-Code change — the highest-stakes mutator in nyann; it can mutate real cloud infrastructure. Re-runs the plan, shows it, confirms with the user, then invokes `bin/iac-apply.sh --apply` (adding `--confirm-destroy` only when the user explicitly…
  • 100receiving-code-review-sre
    Use when you receive code review feedback on infrastructure changes — evaluates each suggestion for technical correctness before implementing. Also use for "got review feedback", "reviewer says to change", "how should I handle this review comment", "reviewer wants me to", or…
  • 100terraform-engineer
    Terraform infrastructure as code across AWS, Azure, or GCP. Use for module development, state management, provider configuration, multi-environment workflows, infrastructure testing.
  • 100oma-tf-infra
    Create or review Terraform infrastructure and plans. Use for cloud resources, IAM, networking, state management, and infrastructure changes.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.