agentleFS
shinzoxDshinzoxD/knackbox/skills/coding/cloudformation-review/SKILL.md

cloudformation-review

Skill0 starsChanged 5 months agoApache-2.0View on GitHub

Review AWS CloudFormation and SAM templates for deployment safety,

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Treat every stack update as a production change.

    line 17
  2. Very specific:

    Read references/review-checklist.md for full template or change-set reviews, especially when stateful resources, IAM, nested stacks, …

    line 40
  3. Distinctive:

    Never invent change-set output, current stack state, parameter values, or AWS defaults.

    line 82
  4. Very specific:

    Do not call validate-template a safety check.

    line 84
  5. Very specific:

    Prefer expand/migrate/contract changes over destructive in-place migrations.

    line 89
  6. Very specific:

    Do not recommend Retain without assigning follow-up ownership and cleanup.

    line 90

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

CloudFormation Review

Treat every stack update as a production change. Base the verdict on a change set and deployment context when available; a template alone cannot prove what CloudFormation will replace or delete in an existing stack.

For Terraform or OpenTofu plans, use terraform-review. For Pulumi programs or previews, use pulumi-review.

Workflow

  1. Establish the account, Region, partition, stack, environment, parameters, capabilities, and deployment command. Mark assumptions that affect risk.
  2. Inventory resources, nested stacks, exports/imports, transforms, macros, custom resources, and stateful or externally shared dependencies.
  3. Inspect the change set. Separate creates, in-place updates, replacements, removals, imports, and condition-driven changes. Trace replacement chains.
  4. Review data protection, identity, network exposure, secrets, dependency ordering, quotas, rollback behavior, and observability.
  5. Propose the smallest reversible deployment sequence and explicit gates.
  6. End with a verdict: safe to execute, safe with conditions, or do not execute. State what evidence could change the verdict.

Detailed checks

Read references/review-checklist.md for full template or change-set reviews, especially when stateful resources, IAM, nested stacks, StackSets, SAM/macros, or custom resources are present. Use only the sections relevant to the change.

Severity tags

  • [blocking] likely data loss, destructive replacement without recovery, privilege escalation, exposed sensitive service, or unbounded custom code
  • [important] rollback gap, broad access, hidden drift, fragile dependency, missing alarm, or material operability risk
  • [nit] readability, naming, duplication, or maintainability issue with low deployment risk

Output format

## CloudFormation review

**Target:** <account / Region / stack / environment or unknown>
**Evidence:** <template, parameters, change set, events, lint output>
**Verdict:** <safe to execute | safe with conditions | do not execute>

### Change summary
- Create: ...
- Update: ...
- Replace/delete: ...

### Findings
1. [blocking] **<finding>** — <resource/logical ID and consequence>
   **Action:** <specific remediation or gate>

### Deployment plan
1. <precondition or backup>
2. <change-set execution step>
3. <verification and rollback trigger>

### Missing evidence
- <item that prevents a stronger verdict>

Rules

  1. Never invent change-set output, current stack state, parameter values, or AWS defaults. Ask for them or mark the conclusion conditional.
  2. Do not call validate-template a safety check; it does not evaluate live replacements, permissions, quotas, or runtime behavior.
  3. Name logical IDs and properties in findings so the review is actionable.
  4. Distinguish stack rollback from rollback of external actions performed by a macro or custom resource.
  5. Prefer expand/migrate/contract changes over destructive in-place migrations.
  6. Do not recommend Retain without assigning follow-up ownership and cleanup.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.