[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A4HA2YXRHGVF74ZX561G3Z":3,"skill-same:01M7A4HA2YXRHGVF74ZX561G3Z":150},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":45,"repositoryHtmlUrl":46,"repositoryHomepageUrl":6,"ownerHtmlUrl":47,"ownerBlogUrl":6,"ownerDescription":48,"updatedAt":49,"install":50,"resources":63},"01M7A4HA2YXRHGVF74ZX561G3Z","cloudformation-cfn-lint-operator",null,"Operates CloudFormation template linting and validation with production defaults: cfn-lint integration (rule-based static analysis), template pre-deploy validation (validate-template), ChangeSet creation before update (exact resource change preview), drift detection trigger (detect-stack-drift), stack policy enforcement (prevent accidental resource deletion), nested stack validation, resource import validation, macro expansion, SAM transform validation (AWS::Serverless transforms), cost estimation (infracost integration), template security scanning (cfn-nag for IAM wildcard and unencrypted resources), IaC pipeline integration (CodePipeline + cfn-lint gate), template version control, rollback template archive. Emits an OPERATION_COMPLETED checklist with verification commands. Use when validating a CloudFormation. Triggers: cfn lint, cloudformation validate template, changeset create, drift detection, cfn-nag security scan, sam transform validation, cloudformation stack policy, nested stack validation.","jhkchan\u002Faws-agent-skills","jhkchan","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1083902?v=4","01M7A2SVQYP9GQTPTDXP5JKYQ4","Jacky Chan","01M7A2SVS117YWCTZABB75HZR1",4,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudformation-cfn-lint-operator\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: cloudformation-cfn-lint-operator\ndescription: 'Operates CloudFormation template linting and validation with production defaults: cfn-lint integration (rule-based static analysis), template pre-deploy validation (validate-template), ChangeSet creation before update (exact resource change preview), drift detection trigger (detect-stack-drift), stack policy enforcement (prevent accidental resource deletion), nested stack validation, resource import validation, macro expansion, SAM transform validation (AWS::Serverless transforms), cost estimation (infracost integration), template security scanning (cfn-nag for IAM wildcard and unencrypted resources), IaC pipeline integration (CodePipeline + cfn-lint gate), template version control, rollback template archive. Emits an OPERATION_COMPLETED checklist with verification commands. Use when validating a CloudFormation. Triggers: cfn lint, cloudformation validate template, changeset create, drift detection, cfn-nag security scan, sam transform validation, cloudformation stack policy, nested stack validation.'\nlicense: Apache-2.0\ncompatibility: 'Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). For live operations: AWS CLI v2 with CloudFormation access, cfn-lint (pip install cfn-lint), cfn-nag (gem install cfn-nag). Works with Terraform tflint (parallel pattern) and CDK cdk-nag.'\nmetadata:\n  domain: aws-cloudops\n  complexity: high\n  requires_llm: 'true'\n  phase: '2'\n  supports_pipeline: 'true'\n  entry_point: 'false'\n  family: DevTools\n  task_type: operate\n  skill_class: capability\n  lifecycle_status: active\n  verdict_shape: OPERATION_COMPLETED | REVIEW_REQUIRED\n  version: 0.1.0\n  author: Jacky Chan — AWS Community Builder\n  tags: aws, cloudformation, cfn-lint, cfn-nag, cloudops, operate, devtools, linting, validation, security\n  dependencies: aws-orchestrator\n  keywords: aws, cloudformation, cfn-lint, cfn-nag, linting, validation, cloudops, operate, changeset, drift detection, stack policy, security scanning, sam, nested stacks, macro\n  when_to_use: Invoke when the user wants to validate a CloudFormation template (cfn-lint, validate-template), create a ChangeSet before updating a stack, detect stack drift, enforce a stack policy, scan a template for security anti-patterns (cfn-nag), validate SAM transforms or nested stacks, integrate CloudFormation linting into a CI\u002FCD pipeline, or archive a rollback template. Do NOT invoke for Terraform validation (use tflint), AWS CDK synthesis (use cdk synth), or general AWS resource auditing.\n---\n\n# CloudFormation cfn-lint Operator\n\nAn AWS CloudOps agent skill that operates CloudFormation template\nlinting and validation with correct defaults. The skill walks the\noperator through cfn-lint static analysis, pre-deploy template\nvalidation, ChangeSet creation (exact resource change preview),\ndrift detection, stack policy enforcement, cfn-nag security scanning,\nSAM transform validation, nested stack checks, IaC pipeline\nintegration, and rollback template archival, captures validation\ndecisions, explains why each default matters, and emits an\nOPERATION_COMPLETED checklist with copy-pasteable verification\ncommands.\n\n## Activation keywords\n\ncfn lint, CloudFormation validate template, changeset create, drift\ndetection, cfn-nag security scan, SAM transform validation,\nCloudFormation stack policy, nested stack validation.\n\n## STRICT output contract\n\nWhen this skill is invoked with a CloudFormation linting or\nvalidation request (validate a template, create a ChangeSet, detect\ndrift, scan with cfn-nag, validate SAM\u002Fnested stacks, or a partial\noperation), the agent MUST respond with the OPERATION_COMPLETED\nchecklist defined in the \"Output format\" section using the literal\nall-caps labels `CFN_LINT:`, `VERDICT:`, `CHECKLIST:`, and\n`VERIFICATION_COMMANDS:`. Do NOT preface the checklist with prose,\nheadings, or disclaimers — emit the block as the first lines of the\nresponse. This contract is what assertion-based evals and downstream\nvalidation pipelines rely on; deviating from the literal labels\nbreaks automation silently.\n\nIf any issue requires human review (e.g., cfn-nag finds security\nfindings, drift is detected, ChangeSet shows destructive changes),\nthe verdict is `REVIEW_REQUIRED` with a specific issue citation in\nthe checklist (marked `[!]`), and `OPERATION_COMPLETED` MUST NOT\nalso appear.\n\n## Quick navigation\n\n| Section | When to read |\n|---|---|\n| Prerequisites | Always — verify before operating |\n| Step 1 — cfn-lint static analysis | Core linting |\n| Step 2 — Pre-deploy validation (validate-template) | Syntax validation |\n| Step 3 — ChangeSet creation before update | Resource change preview |\n| Step 4 — Drift detection | Configuration drift |\n| Step 5 — Stack policy enforcement | Resource protection |\n| Step 6 — cfn-nag security scanning | Security anti-patterns |\n| Step 7 — SAM transform validation | Serverless templates |\n| Step 8 — Nested stack validation | Multi-stack templates |\n| Step 9 — Resource import validation | Import existing resources |\n| Step 10 — Macro expansion validation | Custom transforms |\n| Step 11 — IaC pipeline integration (CodePipeline) | CI\u002FCD gating |\n| Step 12 — Rollback template archive | Version control |\n| Step 13 — Recent features | Latest |\n| NEVER do these things | Review before signing off |\n| Output format | The literal checklist template |\n| references\u002Flinting-and-validation.md | cfn-lint + validate-template detail |\n| references\u002Fsecurity-and-changesets.md | cfn-nag + ChangeSet detail |\n\n## Mindset\n\n**One-line takeaway:** cfn-lint catches structural and logical errors\nin CloudFormation templates before deployment. validate-template\nchecks syntax against the CloudFormation API. ChangeSet shows the\nexact resource changes an update will make. cfn-nag catches security\nanti-patterns (wildcard IAM, unencrypted S3, public access). Each\ntool catches a different class of issue — together they form a\ndefense-in-depth validation pipeline.\n\nThree misconceptions dominate CloudFormation validation misdesign at\noperation time:\n\nMisconception detail — \"validate-template is enough\" (what it catches and misses): [Linting and validation](references\u002Flinting-and-validation.md).\n\nMisconception detail — \"update without a ChangeSet\" (replacement downtime) and \"cfn-nag is optional\" (security anti-patterns): [Security and changesets](references\u002Fsecurity-and-changesets.md).\n\n## Configuration dependency graph (novel heuristic)\n\nCloudFormation validation operations are NOT independent. cfn-lint\nruns on the template file (no AWS API needed). validate-template\ncalls the CloudFormation API. ChangeSet requires an existing stack.\nDrift detection requires an existing stack. Use this graph to\nsequence operations.\n\n| Operation | Hard dependencies | Silent failure \u002F immutability | Enables downstream |\n|---|---|---|---|\n| cfn-lint | Template file; cfn-lint installed | runs offline; structural\u002Flogical errors only | clean template |\n| validate-template | Template file; AWS credentials | checks syntax only; NOT logic or security | syntax-valid template |\n| cfn-nag | Template file; cfn-nag installed | runs offline; security anti-patterns only | security-clean template |\n| ChangeSet | Stack exists; template syntax-valid | shows changes but does NOT apply; execute separately | change preview before update |\n| Drift detection | Stack exists; not CREATE_IN_PROGRESS | async; results may take minutes | drift status |\n| Stack policy | Stack exists; policy JSON valid | prevents UPDATE but NOT DELETE | resource protection |\n| SAM transform | `Transform: AWS::Serverless`; SAM CLI | expand before linting; cfn-lint has partial SAM support | expanded template |\n| Nested stacks | Parent references children; children exist | each child validated independently | validated multi-stack |\n| Resource import | Stack exists; `DeletionPolicy: Retain` | not all types support import | managed resource |\n| Macro expansion | Macro Lambda exists; `Transform: MacroName` | output invisible without `getTemplateSummary` | expanded template |\n| Rollback archive | Template file; version control | snapshot, not live rollback | rollback capability |\n\n**The cfn-lint-before-validate row is the one a baseline model\nmisses.** A naive model runs validate-template and deploys. The\ncorrect heuristic runs cfn-lint FIRST (catches structural errors\noffline, fast), then validate-template (catches API-level issues),\nthen cfn-nag (catches security issues), then creates a ChangeSet\n(catches deployment-time issues). This sequence is the defense-in-\ndepth validation pipeline.\n\n**Cross-dependency gotchas:**\n- cfn-lint and validate-template catch DIFFERENT issue classes.\n  cfn-lint catches structural\u002Flogical issues; validate-template\n  checks syntax against the API. Both are needed.\n- ChangeSet shows what WILL change but does NOT apply changes.\n- SAM templates must be transformed (`sam translate`) before cfn-lint\n  can fully analyze them.\n- Drift detection is asynchronous — `detect-stack-drift` starts it;\n  `describe-stack-drift-detection-status` returns the result.\n- Stack policies prevent UPDATE but NOT DELETE operations. Use\n  `DeletionPolicy: Retain` for deletion protection.\n\n## Expert heuristic: the four-layer validation pipeline\n\nA baseline model says \"run validate-template.\" The correct heuristic\nuses four layers, each catching a different class of issue:\n\n```text\nLayer 1: cfn-lint (offline, structural\u002Flogical)\n  Catches: circular deps, invalid refs, type mismatches. Speed: seconds.\n\nLayer 2: validate-template (API call, syntax)\n  Catches: invalid properties, malformed syntax. Misses: logic, security.\n\nLayer 3: cfn-nag (offline, security)\n  Catches: wildcard IAM, unencrypted S3\u002FRDS, public SG ingress.\n\nLayer 4: ChangeSet (API call, deployment preview)\n  Catches: resource replacement, deletion, immutable property changes.\n```\n\n**Key implication:** each layer catches what the others miss. The\nfull pipeline (cfn-lint → validate-template → cfn-nag → ChangeSet) is\nthe defense-in-depth approach.\n\nFull heuristic (Action and Replacement field semantics, stateful-resource data-loss implication): [Security and changesets](references\u002Fsecurity-and-changesets.md).\n\nFull severity ladder (CRITICAL \u002F WARNING \u002F VIOLATION and verdict effect): [Security and changesets](references\u002Fsecurity-and-changesets.md).\n\n## Prerequisites (verify before operating)\n\nBefore emitting operation commands, verify these prerequisites. If\nany are missing, the operation cannot proceed.\n\n| Prerequisite | Why it matters | How to verify |\n|---|---|---|\n| Template file exists | Linting requires a local file | `ls template.yaml` |\n| cfn-lint installed | Static analysis tool | `cfn-lint --version` |\n| cfn-nag installed | Security scanning tool | `cfn_nag --version` |\n| AWS credentials configured | validate-template and ChangeSet need API access | `aws sts get-caller-identity` |\n| Stack exists (for ChangeSet\u002Fdrift) | ChangeSet and drift detection operate on existing stacks | `aws cloudformation describe-stacks --stack-name \u003Cname>` |\n| Stack name identified | Operations target a specific stack | Confirm stack name |\n| SAM CLI installed (for SAM templates) | SAM transform expansion | `sam --version` |\n\nIf any prerequisite is missing, note it in the checklist. If\ncfn-lint or cfn-nag is missing, note that security\u002Fstructural\nscanning is skipped (and the verdict should be REVIEW_REQUIRED if\nthe template has not been previously scanned).\n\n## Step 1 — cfn-lint static analysis\n\ncfn-lint checks templates for structural and logical errors. It runs\noffline (no AWS API calls needed).\n\n```bash\ncfn-lint template.yaml                        # basic run\ncfn-lint template.yaml --format json          # JSON output for pipelines\ncfn-lint template.yaml --include-checks I     # include informational checks\n```\n\n**Catches:** invalid `Ref` targets, circular dependencies, invalid\nproperty types, missing required properties, hardcoded credentials.\n**Does NOT catch:** security anti-patterns (use cfn-nag), API syntax\n(use validate-template), deployment issues (use ChangeSet).\n\n## Step 2 — Pre-deploy validation (validate-template)\n\n`validate-template` calls the CloudFormation API to check syntax and\nresource property compliance.\n\n```bash\naws cloudformation validate-template --template-body file:\u002F\u002Ftemplate.yaml --region us-east-1\n```\n\n**Catches:** malformed YAML\u002FJSON, invalid resource type names,\ninvalid property names, template size violations (max 460,800 bytes).\n**Does NOT catch:** logical errors, security anti-patterns, resource\nreplacement\u002Fdeletion.\n\n**Common mistake:** relying on validate-template alone. Always pair\nwith cfn-lint (structural) and cfn-nag (security).\n\n## Step 3 — ChangeSet creation before update\n\nA ChangeSet shows the EXACT resource changes an update will make.\nCreate, review, then execute (or delete if changes are unexpected).\n\n```bash\nCHANGESET_NAME=\"update-$(date +%Y%m%d%H%M%S)\"\naws cloudformation create-change-set --stack-name my-stack \\\n  --change-set-name \"$CHANGESET_NAME\" --template-body file:\u002F\u002Ftemplate-updated.yaml \\\n  --capabilities CAPABILITY_NAMED_IAM --region us-east-1\n\naws cloudformation wait change-set-create-complete --change-set-name \"$CHANGESET_NAME\" --stack-name my-stack --region us-east-1\n\naws cloudformation describe-change-set --change-set-name \"$CHANGESET_NAME\" --stack-name my-stack \\\n  --query 'Changes[*].{Action:ResourceChange.Action,Resource:ResourceChange.LogicalResourceId,Replacement:ResourceChange.Replacement}' \\\n  --region us-east-1 --output table\n```\n\n| Action | Replacement | Risk |\n|---|---|---|\n| Add | N\u002FA | Low — safe to execute |\n| Modify | False | Low — in-place update |\n| Modify | Conditional | Medium — review changed properties |\n| Modify | True | HIGH — resource replaced (downtime\u002Fdata loss risk) |\n| Remove | N\u002FA | HIGH — resource deleted |\n\n```bash\naws cloudformation execute-change-set --change-set-name \"$CHANGESET_NAME\" --stack-name my-stack --region us-east-1\n# Or delete if unacceptable:\naws cloudformation delete-change-set --change-set-name \"$CHANGESET_NAME\" --stack-name my-stack --region us-east-1\n```\n\n## Step 4 — Drift detection\n\nDrift detection checks whether the stack's actual configuration\ndiffers from the template.\n\n```bash\nDETECTION_ID=$(aws cloudformation detect-stack-drift --stack-name my-stack \\\n  --query 'StackDriftDetectionId' --output text --region us-east-1)\naws cloudformation describe-stack-drift-detection-status --stack-drift-detection-id \"$DETECTION_ID\" --region us-east-1\naws cloudformation describe-stack-resource-drifts --stack-name my-stack \\\n  --stack-resource-drift-status-filters MODIFIED DELETED --region us-east-1 --output table\n```\n\n`IN_SYNC` = no drift. `DRIFTED` = resources modified outside\nCloudFormation (console, CLI, Auto Scaling). Review and reconcile.\n\n## Step 5 — Stack policy enforcement\n\nA stack policy prevents accidental updates to specific resources.\n\n```bash\naws cloudformation set-stack-policy --stack-name my-stack --stack-policy-body file:\u002F\u002Fstack-policy.json --region us-east-1\n```\n\n```json\n{\n  \"Statement\": [\n    { \"Effect\": \"Deny\", \"Action\": \"Update:*\", \"Principal\": \"*\", \"Resource\": \"*\",\n      \"Condition\": { \"StringEquals\": { \"ResourceType\": [\"AWS::RDS::DBInstance\", \"AWS::S3::Bucket\"] } } },\n    { \"Effect\": \"Allow\", \"Action\": \"Update:*\", \"Principal\": \"*\", \"Resource\": \"*\" }\n  ]\n}\n```\n\n**Critical:** stack policies prevent UPDATE but NOT DELETE. Use\n`DeletionPolicy: Retain` for deletion protection.\n\n## Step 6 — cfn-nag security scanning\n\ncfn-nag scans templates for security anti-patterns. Runs offline.\n\n```bash\ncfn_nag_scan --input-path template.yaml\ncfn_nag_scan --input-path template.yaml --output-format json\n```\n\n**Common CRITICAL findings:** IAM `Resource: \"*\"` (F1), IAM\n`Action: \"*\"` (F2), S3 without encryption (W41), SG ingress\n`0.0.0.0\u002F0` to SSH port 22 (F1000), RDS public access (W40), RDS\nwithout encryption (W73).\n\nCRITICAL findings set verdict to REVIEW_REQUIRED. Suppress false\npositives via metadata:\n\n```yaml\nMyBucket:\n  Type: AWS::S3::Bucket\n  Metadata:\n    cfn_nag:\n      rules_to_suppress:\n        - id: W41\n          reason: \"Log bucket — encryption at org level\"\n```\n\n## Step 7 — SAM transform validation\n\nSAM templates use `Transform: AWS::Serverless-2016-10-31`. Always\nexpand before linting for full coverage.\n\n```bash\nsam translate --template-file template-sam.yaml --output-file template-expanded.yaml\ncfn-lint template-expanded.yaml\ncfn_nag_scan --input-path template-expanded.yaml\naws cloudformation validate-template --template-body file:\u002F\u002Ftemplate-expanded.yaml --region us-east-1\n```\n\n**Common SAM issues:** missing `CodeUri`\u002F`InlineCode`, deprecated\n`Runtime`, missing `Handler`, invalid `Globals` properties.\n\n## Step 8 — Nested stack validation\n\nEach child template must be linted independently — parent-level\ncfn-lint does NOT recurse into nested stacks.\n\n```bash\n# Validate the parent template\ncfn-lint parent-template.yaml\naws cloudformation validate-template \\\n  --template-body file:\u002F\u002Fparent-template.yaml \\\n  --region us-east-1\n\n# Validate each child template\ncfn-lint child-network.yaml\ncfn-lint child-database.yaml\ncfn-lint child-application.yaml\n\n# Validate each child with validate-template\naws cloudformation validate-template --template-body file:\u002F\u002Fchild-network.yaml --region us-east-1\naws cloudformation validate-template --template-body file:\u002F\u002Fchild-database.yaml --region us-east-1\naws cloudformation validate-template --template-body file:\u002F\u002Fchild-application.yaml --region us-east-1\n```\n\n**Common nested stack issues:**\n- Parent passes parameters that the child template does not expect.\n- Parent expects outputs that the child does not export.\n- Child template URL points to a non-existent S3 object.\n- Circular dependencies between nested stacks (not allowed).\n\n## Step 9 — Resource import and macro validation\n\nResource-import change-set commands and macro get-template-summary inspection: [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n## Step 10 — IaC pipeline integration (CodePipeline + cfn-lint)\n\nIntegrate validation into a CodePipeline CI\u002FCD pipeline as a quality\ngate. The pipeline runs cfn-lint, cfn-nag, and creates a ChangeSet\nbefore manual approval and execution.\n\nPipeline gating logic sequence and the CodePipeline Build-stage YAML: [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n## Step 11 — Rollback template archive\n\nArchive the current template before deploying a new version. This\nenables rollback by deploying the archived template.\n\nArchive-and-rollback command listing (get-template to S3, update-stack rollback): [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\n## Step 13 — Recent features\n\nRecent features (resource-spec coverage, CloudFormation Hooks, IAM analysis, drift detection, nested-stack ChangeSets, SAM CLI integration): [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n## NEVER do these things\n\n1. **NEVER rely on validate-template alone.** validate-template\n   checks syntax but NOT logic or security. Always pair with\n   cfn-lint (structural) and cfn-nag (security).\n\n2. **NEVER update a stack without reviewing the ChangeSet.** The\n   ChangeSet shows exactly what will change. Without reviewing it,\n   you may accidentally replace or delete resources, causing\n   downtime or data loss.\n\n3. **NEVER ignore cfn-nag CRITICAL findings.** CRITICAL findings\n   (wildcard IAM, unencrypted resources, public access) are security\n   vulnerabilities. Resolve them before deployment or suppress with\n   documented justification.\n\n4. **NEVER confuse Replacement: True with Replacement: False.**\n   `Replacement: True` means the resource is deleted and recreated.\n   For stateful resources (RDS, EC2, EFS), this causes data loss\n   unless there is a backup and retention policy.\n\n5. **NEVER assume stack policies prevent deletion.** Stack policies\n   only prevent UPDATE operations. Stack deletion ignores policies.\n   Use `DeletionPolicy: Retain` for deletion protection.\n\n6. **NEVER skip drift detection before updating.** If a stack has\n   drifted (out-of-band changes), updating from the template may\n   overwrite manual changes. Always detect drift before updating.\n\n7. **NEVER lint only the parent template for nested stacks.** Each\n   child template must be linted independently. Parent-level cfn-lint\n   does NOT recurse into nested stack templates.\n\n8. **NEVER deploy SAM templates without expanding the transform.**\n   cfn-lint has partial SAM support. Always expand with `sam\n   translate` first, then lint the expanded CloudFormation template.\n\n9. **NEVER ignore macro-expanded content.** Macros transform template\n   content at deployment time. The pre-macro template may pass cfn-\n   lint, but the post-macro output may be invalid. Use\n   `get-template-summary` to inspect the expanded template.\n\n10. **NEVER forget to archive the template before updating.** Always\n    archive the current template (via `get-template` to S3) before\n    deploying a new version. This enables rollback if the update\n    fails or causes issues.\n\n## Output format\n\n```text\nCFN_LINT: \u003Ctemplate-file> → \u003Cstack-name>\nVERDICT: OPERATION_COMPLETED | REVIEW_REQUIRED\nCHECKLIST:\n  [✓|✗] Template file: \u003Cfile>\n  [✓|!] cfn-lint: PASSED (\u003Cerrors> errors, \u003Cwarnings> warnings) | FAILED (\u003Ccount> errors)\n  [✓|!] validate-template: PASSED | FAILED (\u003Cissue>)\n  [✓|!] cfn-nag: PASSED (\u003Ccritical> critical, \u003Cwarnings> warnings) | CRITICAL FINDINGS (\u003Ccount>)\n  [✓|!] ChangeSet: \u003Cchange-set-name> — \u003Cadd> Add, \u003Cmodify> Modify, \u003Cremove> Remove | REPLACEMENT REQUIRED\n  [✓|!] Drift detection: IN_SYNC | DRIFTED (\u003Ccount> resources drifted)\n  [✓|!] Stack policy: Enforced (\u003Cprotected-resource-types>) | Not set\n  [✓|!] SAM transform: Expanded and validated | N\u002FA (not a SAM template)\n  [✓|!] Nested stacks: Validated (\u003Ccount> child templates) | N\u002FA (no nested stacks)\n  [✓|!] Rollback archive: Archived to \u003Cs3-uri> | Not archived\n  [✓|!] Pipeline gate: cfn-lint + cfn-nag + ChangeSet review | Not integrated\n  [✓] Tags: \u003Ckey=value list>\nVERIFICATION_COMMANDS:\n  cfn-lint \u003Ctemplate-file>\n  cfn_nag_scan --input-path \u003Ctemplate-file>\n  aws cloudformation describe-change-set --change-set-name \u003Cchange-set-name> --stack-name \u003Cstack-name> --region \u003Cregion>\n```\n\n### Worked example — template validation with cfn-lint, cfn-nag, and ChangeSet\n\n```text\nCFN_LINT: template.yaml → my-app-stack\nVERDICT: OPERATION_COMPLETED\nCHECKLIST:\n  [✓] Template file: template.yaml\n  [✓] cfn-lint: PASSED (0 errors, 2 warnings)\n  [✓] validate-template: PASSED\n  [✓] cfn-nag: PASSED (0 critical, 3 warnings)\n  [✓] ChangeSet: update-20260805 — 1 Add, 2 Modify, 0 Remove\n  [✓] Drift detection: IN_SYNC\n  [✓] Stack policy: Enforced (AWS::RDS::DBInstance, AWS::S3::Bucket)\n  [✓] SAM transform: N\u002FA (not a SAM template)\n  [✓] Nested stacks: N\u002FA (no nested stacks)\n  [✓] Rollback archive: Archived to s3:\u002F\u002Fmy-cfn-archive\u002Ftemplates\u002Ftemplate-20260805.yaml\n  [✓] Pipeline gate: cfn-lint + cfn-nag + ChangeSet review\n  [✓] Tags: Environment=production, Application=my-app\nVERIFICATION_COMMANDS:\n  cfn-lint template.yaml\n  cfn_nag_scan --input-path template.yaml\n  aws cloudformation describe-change-set --change-set-name update-20260805 --stack-name my-app-stack --region us-east-1\n```\n\nFull REVIEW_REQUIRED worked example (F1 wildcard IAM + F1000 public SSH ingress): [Worked examples](references\u002Fworked-examples.md).\n\n## Error handling\n\nSymptom-to-fix mappings (cfn-lint errors, validate failure, CRITICAL findings, Replacement: True, DRIFTED, rollback): [Error handling](references\u002Ferror-handling.md).\n\n## References (load on demand)\n\n- [Linting and validation](references\u002Flinting-and-validation.md) — cfn-lint\u002Fvalidate-template detail, \"validate-template is enough\" misconception\n- [Security and changesets](references\u002Fsecurity-and-changesets.md) — cfn-nag\u002FChangeSet detail, ChangeSet-reading and severity heuristics, misconception detail\n- [Advanced patterns](references\u002Fadvanced-patterns.md) — resource import and macro validation, CodePipeline gating, recent features\n- [Worked examples](references\u002Fworked-examples.md) — REVIEW_REQUIRED (cfn-nag CRITICAL findings) worked example\n- [Error handling](references\u002Ferror-handling.md) — tool-failure, drift, and rollback symptom mappings\n- [Diagnostic commands](references\u002Fdiagnostic-commands.md) — rollback template archive commands\n\n## Domain\n\nAWS CloudOps \u002F CloudFormation Template Linting, Validation, and\nSecurity Scanning Operations.\n\n## AWS documentation\n\n- **CloudFormation User Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSCloudFormation\u002Flatest\u002FUserGuide\u002FWelcome.html\n- **validate-template** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSCloudFormation\u002Flatest\u002FUserGuide\u002Fusing-cfn-validate-template.html\n- **ChangeSets** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSCloudFormation\u002Flatest\u002FUserGuide\u002Fusing-cfn-updating-stacks-changesets.html\n- **Drift detection** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSCloudFormation\u002Flatest\u002FUserGuide\u002Fusing-cfn-stack-drift.html\n- **Stack policies** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSCloudFormation\u002Flatest\u002FUserGuide\u002Fprotect-stack-resources.html\n- **Resource import** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSCloudFormation\u002Flatest\u002FUserGuide\u002Fresource-import.html\n- **Macros** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSCloudFormation\u002Flatest\u002FUserGuide\u002Ftemplate-macros.html\n- **cfn-lint (GitHub)** — https:\u002F\u002Fgithub.com\u002Faws-cloudformation\u002Fcfn-lint\n- **cfn-nag (GitHub)** — https:\u002F\u002Fgithub.com\u002Fstelligent\u002Fcfn_nag\n- **SAM CLI** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fserverless-application-model\u002Flatest\u002Fdeveloperguide\u002Fwhat-is-sam.html\n","# CloudFormation cfn-lint Operator\n\nAn AWS CloudOps agent skill that operates CloudFormation template\nlinting and validation with correct defaults. The skill walks the\noperator through cfn-lint static analysis, pre-deploy template\nvalidation, ChangeSet creation (exact resource change preview),\ndrift detection, stack policy enforcement, cfn-nag security scanning,\nSAM transform validation, nested stack checks, IaC pipeline\nintegration, and rollback template archival, captures validation\ndecisions, explains why each default matters, and emits an\nOPERATION_COMPLETED checklist with copy-pasteable verification\ncommands.\n\n## Activation keywords\n\ncfn lint, CloudFormation validate template, changeset create, drift\ndetection, cfn-nag security scan, SAM transform validation,\nCloudFormation stack policy, nested stack validation.\n\n## STRICT output contract\n\nWhen this skill is invoked with a CloudFormation linting or\nvalidation request (validate a template, create a ChangeSet, detect\ndrift, scan with cfn-nag, validate SAM\u002Fnested stacks, or a partial\noperation), the agent MUST respond with the OPERATION_COMPLETED\nchecklist defined in the \"Output format\" section using the literal\nall-caps labels `CFN_LINT:`, `VERDICT:`, `CHECKLIST:`, and\n`VERIFICATION_COMMANDS:`. Do NOT preface the checklist with prose,\nheadings, or disclaimers — emit the block as the first lines of the\nresponse. This contract is what assertion-based evals and downstream\nvalidation pipelines rely on; deviating from the literal labels\nbreaks automation silently.\n\nIf any issue requires human review (e.g., cfn-nag finds security\nfindings, drift is detected, ChangeSet shows destructive changes),\nthe verdict is `REVIEW_REQUIRED` with a specific issue citation in\nthe checklist (marked `[!]`), and `OPERATION_COMPLETED` MUST NOT\nalso appear.\n\n## Quick navigation\n\n| Section | When to read |\n|---|---|\n| Prerequisites | Always — verify before operating |\n| Step 1 — cfn-lint static analysis | Core linting |\n| Step 2 — Pre-deploy validation (validate-template) | Syntax validation |\n| Step 3 — ChangeSet creation before update | Resource change preview |\n| Step 4 — Drift detection | Configuration drift |\n| Step 5 — Stack policy enforcement | Resource protection |\n| Step 6 — cfn-nag security scanning | Security anti-patterns |\n| Step 7 — SAM transform validation | Serverless templates |\n| Step 8 — Nested stack validation | Multi-stack templates |\n| Step 9 — Resource import validation | Import existing resources |\n| Step 10 — Macro expansion validation | Custom transforms |\n| Step 11 — IaC pipeline integration (CodePipeline) | CI\u002FCD gating |\n| Step 12 — Rollback template archive | Version control |\n| Step 13 — Recent features | Latest |\n| NEVER do these things | Review before signing off |\n| Output format | The literal checklist template |\n| references\u002Flinting-and-validation.md | cfn-lint + validate-template detail |\n| references\u002Fsecurity-and-changesets.md | cfn-nag + ChangeSet detail |\n\n## Mindset\n\n**One-line takeaway:** cfn-lint catches structural and logical errors\nin CloudFormation templates before deployment. validate-template\nchecks syntax against the CloudFormation API. ChangeSet shows the\nexact resource changes an update will make. cfn-nag catches security\nanti-patterns (wildcard IAM, unencrypted S3, public access). Each\ntool catches a different class of issue — together they form a\ndefense-in-depth validation pipeline.\n\nThree misconceptions dominate CloudFormation validation misdesign at\noperation time:\n\nMisconception detail — \"validate-template is enough\" (what it catches and misses): [Linting and validation](references\u002Flinting-and-validation.md).\n\nMisconception detail — \"update without a ChangeSet\" (replacement downtime) and \"cfn-nag is optional\" (security anti-patterns): [Security and changesets](references\u002Fsecurity-and-changesets.md).\n\n## Configuration dependency graph (novel heuristic)\n\nCloudFormation validation operations are NOT independent. cfn-lint\nruns on the template file (no AWS API needed). validate-template\ncalls the CloudFormation API. ChangeSet requires an existing stack.\nDrift detection requires an existing stack. Use this graph to\nsequence operations.\n\n| Operation | Hard dependencies | Silent failure \u002F immutability | Enables downstream |\n|---|---|---|---|\n| cfn-lint | Template file; cfn-lint installed | runs offline; structural\u002Flogical errors only | clean template |\n| validate-template | Template file; AWS credentials | checks syntax only; NOT logic or security | syntax-valid template |\n| cfn-nag | Template file; cfn-nag installed | runs offline; security anti-patterns only | security-clean template |\n| ChangeSet | Stack exists; template syntax-valid | shows changes but does NOT apply; execute separately | change preview before update |\n| Drift detection | Stack exists; not CREATE_IN_PROGRESS | async; results may take minutes | drift status |\n| Stack policy | Stack exists; policy JSON valid | prevents UPDATE but NOT DELETE | resource protection |\n| SAM transform | `Transform: AWS::Serverless`; SAM CLI | expand before linting; cfn-lint has partial SAM support | expanded template |\n| Nested stacks | Parent references children; children exist | each child validated independently | validated multi-stack |\n| Resource import | Stack exists; `DeletionPolicy: Retain` | not all types support import | managed resource |\n| Macro expansion | Macro Lambda exists; `Transform: MacroName` | output invisible without `getTemplateSummary` | expanded template |\n| Rollback archive | Template file; version control | snapshot, not live rollback | rollback capability |\n\n**The cfn-lint-before-validate row is the one a baseline model\nmisses.** A naive model runs validate-template and deploys. The\ncorrect heuristic runs cfn-lint FIRST (catches structural errors\noffline, fast), then validate-template (catches API-level issues),\nthen cfn-nag (catches security issues), then creates a ChangeSet\n(catches deployment-time issues). This sequence is the defense-in-\ndepth validation pipeline.\n\n**Cross-dependency gotchas:**\n- cfn-lint and validate-template catch DIFFERENT issue classes.\n  cfn-lint catches structural\u002Flogical issues; validate-template\n  checks syntax against the API. Both are needed.\n- ChangeSet shows what WILL change but does NOT apply changes.\n- SAM templates must be transformed (`sam translate`) before cfn-lint\n  can fully analyze them.\n- Drift detection is asynchronous — `detect-stack-drift` starts it;\n  `describe-stack-drift-detection-status` returns the result.\n- Stack policies prevent UPDATE but NOT DELETE operations. Use\n  `DeletionPolicy: Retain` for deletion protection.\n\n## Expert heuristic: the four-layer validation pipeline\n\nA baseline model says \"run validate-template.\" The correct heuristic\nuses four layers, each catching a different class of issue:\n\n```text\nLayer 1: cfn-lint (offline, structural\u002Flogical)\n  Catches: circular deps, invalid refs, type mismatches. Speed: seconds.\n\nLayer 2: validate-template (API call, syntax)\n  Catches: invalid properties, malformed syntax. Misses: logic, security.\n\nLayer 3: cfn-nag (offline, security)\n  Catches: wildcard IAM, unencrypted S3\u002FRDS, public SG ingress.\n\nLayer 4: ChangeSet (API call, deployment preview)\n  Catches: resource replacement, deletion, immutable property changes.\n```\n\n**Key implication:** each layer catches what the others miss. The\nfull pipeline (cfn-lint → validate-template → cfn-nag → ChangeSet) is\nthe defense-in-depth approach.\n\nFull heuristic (Action and Replacement field semantics, stateful-resource data-loss implication): [Security and changesets](references\u002Fsecurity-and-changesets.md).\n\nFull severity ladder (CRITICAL \u002F WARNING \u002F VIOLATION and verdict effect): [Security and changesets](references\u002Fsecurity-and-changesets.md).\n\n## Prerequisites (verify before operating)\n\nBefore emitting operation commands, verify these prerequisites. If\nany are missing, the operation cannot proceed.\n\n| Prerequisite | Why it matters | How to verify |\n|---|---|---|\n| Template file exists | Linting requires a local file | `ls template.yaml` |\n| cfn-lint installed | Static analysis tool | `cfn-lint --version` |\n| cfn-nag installed | Security scanning tool | `cfn_nag --version` |\n| AWS credentials configured | validate-template and ChangeSet need API access | `aws sts get-caller-identity` |\n| Stack exists (for ChangeSet\u002Fdrift) | ChangeSet and drift detection operate on existing stacks | `aws cloudformation describe-stacks --stack-name \u003Cname>` |\n| Stack name identified | Operations target a specific stack | Confirm stack name |\n| SAM CLI installed (for SAM templates) | SAM transform expansion | `sam --version` |\n\nIf any prerequisite is missing, note it in the checklist. If\ncfn-lint or cfn-nag is missing, note that security\u002Fstructural\nscanning is skipped (and the verdict should be REVIEW_REQUIRED if\nthe template has not been previously scanned).\n\n## Step 1 — cfn-lint static analysis\n\ncfn-lint checks templates for structural and logical errors. It runs\noffline (no AWS API calls needed).\n\n```bash\ncfn-lint template.yaml                        # basic run\ncfn-lint template.yaml --format json          # JSON output for pipelines\ncfn-lint template.yaml --include-checks I     # include informational checks\n```\n\n**Catches:** invalid `Ref` targets, circular dependencies, invalid\nproperty types, missing required properties, hardcoded credentials.\n**Does NOT catch:** security anti-patterns (use cfn-nag), API syntax\n(use validate-template), deployment issues (use ChangeSet).\n\n## Step 2 — Pre-deploy validation (validate-template)\n\n`validate-template` calls the CloudFormation API to check syntax and\nresource property compliance.\n\n```bash\naws cloudformation validate-template --template-body file:\u002F\u002Ftemplate.yaml --region us-east-1\n```\n\n**Catches:** malformed YAML\u002FJSON, invalid resource type names,\ninvalid property names, template size violations (max 460,800 bytes).\n**Does NOT catch:** logical errors, security anti-patterns, resource\nreplacement\u002Fdeletion.\n\n**Common mistake:** relying on validate-template alone. Always pair\nwith cfn-lint (structural) and cfn-nag (security).\n\n## Step 3 — ChangeSet creation before update\n\nA ChangeSet shows the EXACT resource changes an update will make.\nCreate, review, then execute (or delete if changes are unexpected).\n\n```bash\nCHANGESET_NAME=\"update-$(date +%Y%m%d%H%M%S)\"\naws cloudformation create-change-set --stack-name my-stack \\\n  --change-set-name \"$CHANGESET_NAME\" --template-body file:\u002F\u002Ftemplate-updated.yaml \\\n  --capabilities CAPABILITY_NAMED_IAM --region us-east-1\n\naws cloudformation wait change-set-create-complete --change-set-name \"$CHANGESET_NAME\" --stack-name my-stack --region us-east-1\n\naws cloudformation describe-change-set --change-set-name \"$CHANGESET_NAME\" --stack-name my-stack \\\n  --query 'Changes[*].{Action:ResourceChange.Action,Resource:ResourceChange.LogicalResourceId,Replacement:ResourceChange.Replacement}' \\\n  --region us-east-1 --output table\n```\n\n| Action | Replacement | Risk |\n|---|---|---|\n| Add | N\u002FA | Low — safe to execute |\n| Modify | False | Low — in-place update |\n| Modify | Conditional | Medium — review changed properties |\n| Modify | True | HIGH — resource replaced (downtime\u002Fdata loss risk) |\n| Remove | N\u002FA | HIGH — resource deleted |\n\n```bash\naws cloudformation execute-change-set --change-set-name \"$CHANGESET_NAME\" --stack-name my-stack --region us-east-1\n# Or delete if unacceptable:\naws cloudformation delete-change-set --change-set-name \"$CHANGESET_NAME\" --stack-name my-stack --region us-east-1\n```\n\n## Step 4 — Drift detection\n\nDrift detection checks whether the stack's actual configuration\ndiffers from the template.\n\n```bash\nDETECTION_ID=$(aws cloudformation detect-stack-drift --stack-name my-stack \\\n  --query 'StackDriftDetectionId' --output text --region us-east-1)\naws cloudformation describe-stack-drift-detection-status --stack-drift-detection-id \"$DETECTION_ID\" --region us-east-1\naws cloudformation describe-stack-resource-drifts --stack-name my-stack \\\n  --stack-resource-drift-status-filters MODIFIED DELETED --region us-east-1 --output table\n```\n\n`IN_SYNC` = no drift. `DRIFTED` = resources modified outside\nCloudFormation (console, CLI, Auto Scaling). Review and reconcile.\n\n## Step 5 — Stack policy enforcement\n\nA stack policy prevents accidental updates to specific resources.\n\n```bash\naws cloudformation set-stack-policy --stack-name my-stack --stack-policy-body file:\u002F\u002Fstack-policy.json --region us-east-1\n```\n\n```json\n{\n  \"Statement\": [\n    { \"Effect\": \"Deny\", \"Action\": \"Update:*\", \"Principal\": \"*\", \"Resource\": \"*\",\n      \"Condition\": { \"StringEquals\": { \"ResourceType\": [\"AWS::RDS::DBInstance\", \"AWS::S3::Bucket\"] } } },\n    { \"Effect\": \"Allow\", \"Action\": \"Update:*\", \"Principal\": \"*\", \"Resource\": \"*\" }\n  ]\n}\n```\n\n**Critical:** stack policies prevent UPDATE but NOT DELETE. Use\n`DeletionPolicy: Retain` for deletion protection.\n\n## Step 6 — cfn-nag security scanning\n\ncfn-nag scans templates for security anti-patterns. Runs offline.\n\n```bash\ncfn_nag_scan --input-path template.yaml\ncfn_nag_scan --input-path template.yaml --output-format json\n```\n\n**Common CRITICAL findings:** IAM `Resource: \"*\"` (F1), IAM\n`Action: \"*\"` (F2), S3 without encryption (W41), SG ingress\n`0.0.0.0\u002F0` to SSH port 22 (F1000), RDS public access (W40), RDS\nwithout encryption (W73).\n\nCRITICAL findings set verdict to REVIEW_REQUIRED. Suppress false\npositives via metadata:\n\n```yaml\nMyBucket:\n  Type: AWS::S3::Bucket\n  Metadata:\n    cfn_nag:\n      rules_to_suppress:\n        - id: W41\n          reason: \"Log bucket — encryption at org level\"\n```\n\n## Step 7 — SAM transform validation\n\nSAM templates use `Transform: AWS::Serverless-2016-10-31`. Always\nexpand before linting for full coverage.\n\n```bash\nsam translate --template-file template-sam.yaml --output-file template-expanded.yaml\ncfn-lint template-expanded.yaml\ncfn_nag_scan --input-path template-expanded.yaml\naws cloudformation validate-template --template-body file:\u002F\u002Ftemplate-expanded.yaml --region us-east-1\n```\n\n**Common SAM issues:** missing `CodeUri`\u002F`InlineCode`, deprecated\n`Runtime`, missing `Handler`, invalid `Globals` properties.\n\n## Step 8 — Nested stack validation\n\nEach child template must be linted independently — parent-level\ncfn-lint does NOT recurse into nested stacks.\n\n```bash\n# Validate the parent template\ncfn-lint parent-template.yaml\naws cloudformation validate-template \\\n  --template-body file:\u002F\u002Fparent-template.yaml \\\n  --region us-east-1\n\n# Validate each child template\ncfn-lint child-network.yaml\ncfn-lint child-database.yaml\ncfn-lint child-application.yaml\n\n# Validate each child with validate-template\naws cloudformation validate-template --template-body file:\u002F\u002Fchild-network.yaml --region us-east-1\naws cloudformation validate-template --template-body file:\u002F\u002Fchild-database.yaml --region us-east-1\naws cloudformation validate-template --template-body file:\u002F\u002Fchild-application.yaml --region us-east-1\n```\n\n**Common nested stack issues:**\n- Parent passes parameters that the child template does not expect.\n- Parent expects outputs that the child does not export.\n- Child template URL points to a non-existent S3 object.\n- Circular dependencies between nested stacks (not allowed).\n\n## Step 9 — Resource import and macro validation\n\nResource-import change-set commands and macro get-template-summary inspection: [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n## Step 10 — IaC pipeline integration (CodePipeline + cfn-lint)\n\nIntegrate validation into a CodePipeline CI\u002FCD pipeline as a quality\ngate. The pipeline runs cfn-lint, cfn-nag, and creates a ChangeSet\nbefore manual approval and execution.\n\nPipeline gating logic sequence and the CodePipeline Build-stage YAML: [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n## Step 11 — Rollback template archive\n\nArchive the current template before deploying a new version. This\nenables rollback by deploying the archived template.\n\nArchive-and-rollback command listing (get-template to S3, update-stack rollback): [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\n## Step 13 — Recent features\n\nRecent features (resource-spec coverage, CloudFormation Hooks, IAM analysis, drift detection, nested-stack ChangeSets, SAM CLI integration): [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n## NEVER do these things\n\n1. **NEVER rely on validate-template alone.** validate-template\n   checks syntax but NOT logic or security. Always pair with\n   cfn-lint (structural) and cfn-nag (security).\n\n2. **NEVER update a stack without reviewing the ChangeSet.** The\n   ChangeSet shows exactly what will change. Without reviewing it,\n   you may accidentally replace or delete resources, causing\n   downtime or data loss.\n\n3. **NEVER ignore cfn-nag CRITICAL findings.** CRITICAL findings\n   (wildcard IAM, unencrypted resources, public access) are security\n   vulnerabilities. Resolve them before deployment or suppress with\n   documented justification.\n\n4. **NEVER confuse Replacement: True with Replacement: False.**\n   `Replacement: True` means the resource is deleted and recreated.\n   For stateful resources (RDS, EC2, EFS), this causes data loss\n   unless there is a backup and retention policy.\n\n5. **NEVER assume stack policies prevent deletion.** Stack policies\n   only prevent UPDATE operations. Stack deletion ignores policies.\n   Use `DeletionPolicy: Retain` for deletion protection.\n\n6. **NEVER skip drift detection before updating.** If a stack has\n   drifted (out-of-band changes), updating from the template may\n   overwrite manual changes. Always detect drift before updating.\n\n7. **NEVER lint only the parent template for nested stacks.** Each\n   child template must be linted independently. Parent-level cfn-lint\n   does NOT recurse into nested stack templates.\n\n8. **NEVER deploy SAM templates without expanding the transform.**\n   cfn-lint has partial SAM support. Always expand with `sam\n   translate` first, then lint the expanded CloudFormation template.\n\n9. **NEVER ignore macro-expanded content.** Macros transform template\n   content at deployment time. The pre-macro template may pass cfn-\n   lint, but the post-macro output may be invalid. Use\n   `get-template-summary` to inspect the expanded template.\n\n10. **NEVER forget to archive the template before updating.** Always\n    archive the current template (via `get-template` to S3) before\n    deploying a new version. This enables rollback if the update\n    fails or causes issues.\n\n## Output format\n\n```text\nCFN_LINT: \u003Ctemplate-file> → \u003Cstack-name>\nVERDICT: OPERATION_COMPLETED | REVIEW_REQUIRED\nCHECKLIST:\n  [✓|✗] Template file: \u003Cfile>\n  [✓|!] cfn-lint: PASSED (\u003Cerrors> errors, \u003Cwarnings> warnings) | FAILED (\u003Ccount> errors)\n  [✓|!] validate-template: PASSED | FAILED (\u003Cissue>)\n  [✓|!] cfn-nag: PASSED (\u003Ccritical> critical, \u003Cwarnings> warnings) | CRITICAL FINDINGS (\u003Ccount>)\n  [✓|!] ChangeSet: \u003Cchange-set-name> — \u003Cadd> Add, \u003Cmodify> Modify, \u003Cremove> Remove | REPLACEMENT REQUIRED\n  [✓|!] Drift detection: IN_SYNC | DRIFTED (\u003Ccount> resources drifted)\n  [✓|!] Stack policy: Enforced (\u003Cprotected-resource-types>) | Not set\n  [✓|!] SAM transform: Expanded and validated | N\u002FA (not a SAM template)\n  [✓|!] Nested stacks: Validated (\u003Ccount> child templates) | N\u002FA (no nested stacks)\n  [✓|!] Rollback archive: Archived to \u003Cs3-uri> | Not archived\n  [✓|!] Pipeline gate: cfn-lint + cfn-nag + ChangeSet review | Not integrated\n  [✓] Tags: \u003Ckey=value list>\nVERIFICATION_COMMANDS:\n  cfn-lint \u003Ctemplate-file>\n  cfn_nag_scan --input-path \u003Ctemplate-file>\n  aws cloudformation describe-change-set --change-set-name \u003Cchange-set-name> --stack-name \u003Cstack-name> --region \u003Cregion>\n```\n\n### Worked example — template validation with cfn-lint, cfn-nag, and ChangeSet\n\n```text\nCFN_LINT: template.yaml → my-app-stack\nVERDICT: OPERATION_COMPLETED\nCHECKLIST:\n  [✓] Template file: template.yaml\n  [✓] cfn-lint: PASSED (0 errors, 2 warnings)\n  [✓] validate-template: PASSED\n  [✓] cfn-nag: PASSED (0 critical, 3 warnings)\n  [✓] ChangeSet: update-20260805 — 1 Add, 2 Modify, 0 Remove\n  [✓] Drift detection: IN_SYNC\n  [✓] Stack policy: Enforced (AWS::RDS::DBInstance, AWS::S3::Bucket)\n  [✓] SAM transform: N\u002FA (not a SAM template)\n  [✓] Nested stacks: N\u002FA (no nested stacks)\n  [✓] Rollback archive: Archived to s3:\u002F\u002Fmy-cfn-archive\u002Ftemplates\u002Ftemplate-20260805.yaml\n  [✓] Pipeline gate: cfn-lint + cfn-nag + ChangeSet review\n  [✓] Tags: Environment=production, Application=my-app\nVERIFICATION_COMMANDS:\n  cfn-lint template.yaml\n  cfn_nag_scan --input-path template.yaml\n  aws cloudformation describe-change-set --change-set-name update-20260805 --stack-name my-app-stack --region us-east-1\n```\n\nFull REVIEW_REQUIRED worked example (F1 wildcard IAM + F1000 public SSH ingress): [Worked examples](references\u002Fworked-examples.md).\n\n## Error handling\n\nSymptom-to-fix mappings (cfn-lint errors, validate failure, CRITICAL findings, Replacement: True, DRIFTED, rollback): [Error handling](references\u002Ferror-handling.md).\n\n## References (load on demand)\n\n- [Linting and validation](references\u002Flinting-and-validation.md) — cfn-lint\u002Fvalidate-template detail, \"validate-template is enough\" misconception\n- [Security and changesets](references\u002Fsecurity-and-changesets.md) — cfn-nag\u002FChangeSet detail, ChangeSet-reading and severity heuristics, misconception detail\n- [Advanced patterns](references\u002Fadvanced-patterns.md) — resource import and macro validation, CodePipeline gating, recent features\n- [Worked examples](references\u002Fworked-examples.md) — REVIEW_REQUIRED (cfn-nag CRITICAL findings) worked example\n- [Error handling](references\u002Ferror-handling.md) — tool-failure, drift, and rollback symptom mappings\n- [Diagnostic commands](references\u002Fdiagnostic-commands.md) — rollback template archive commands\n\n## Domain\n\nAWS CloudOps \u002F CloudFormation Template Linting, Validation, and\nSecurity Scanning Operations.\n\n## AWS documentation\n\n- **CloudFormation User Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSCloudFormation\u002Flatest\u002FUserGuide\u002FWelcome.html\n- **validate-template** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSCloudFormation\u002Flatest\u002FUserGuide\u002Fusing-cfn-validate-template.html\n- **ChangeSets** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSCloudFormation\u002Flatest\u002FUserGuide\u002Fusing-cfn-updating-stacks-changesets.html\n- **Drift detection** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSCloudFormation\u002Flatest\u002FUserGuide\u002Fusing-cfn-stack-drift.html\n- **Stack policies** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSCloudFormation\u002Flatest\u002FUserGuide\u002Fprotect-stack-resources.html\n- **Resource import** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSCloudFormation\u002Flatest\u002FUserGuide\u002Fresource-import.html\n- **Macros** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSCloudFormation\u002Flatest\u002FUserGuide\u002Ftemplate-macros.html\n- **cfn-lint (GitHub)** — https:\u002F\u002Fgithub.com\u002Faws-cloudformation\u002Fcfn-lint\n- **cfn-nag (GitHub)** — https:\u002F\u002Fgithub.com\u002Fstelligent\u002Fcfn_nag\n- **SAM CLI** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fserverless-application-model\u002Flatest\u002Fdeveloperguide\u002Fwhat-is-sam.html\n",{"name":5,"license":15,"metadata":24,"description":7,"compatibility":41},{"tags":25,"phase":26,"author":27,"domain":28,"family":29,"version":30,"keywords":31,"task_type":32,"complexity":33,"entry_point":34,"skill_class":35,"when_to_use":36,"dependencies":37,"requires_llm":38,"verdict_shape":39,"lifecycle_status":40,"supports_pipeline":38},"aws, cloudformation, cfn-lint, cfn-nag, cloudops, operate, devtools, linting, validation, security","2","Jacky Chan — AWS Community Builder","aws-cloudops","DevTools","0.1.0","aws, cloudformation, cfn-lint, cfn-nag, linting, validation, cloudops, operate, changeset, drift detection, stack policy, security scanning, sam, nested stacks, macro","operate","high","false","capability","Invoke when the user wants to validate a CloudFormation template (cfn-lint, validate-template), create a ChangeSet before updating a stack, detect stack drift, enforce a stack policy, scan a template for security anti-patterns (cfn-nag), validate SAM transforms or nested stacks, integrate CloudFormation linting into a CI\u002FCD pipeline, or archive a rollback template. Do NOT invoke for Terraform validation (use tflint), AWS CDK synthesis (use cdk synth), or general AWS resource auditing.","aws-orchestrator","true","OPERATION_COMPLETED | REVIEW_REQUIRED","active","Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). For live operations: AWS CLI v2 with CloudFormation access, cfn-lint (pip install cfn-lint), cfn-nag (gem install cfn-nag). Works with Terraform tflint (parallel pattern) and CDK cdk-nag.","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Fcloudformation-cfn-lint-operator",0,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills","https:\u002F\u002Fgithub.com\u002Fjhkchan","CTO & Co-Founder @Beever-AI  & @votee. CAISP. AWS Community Builder. Organizer@GDGCloudHK. MongoDB Champion. Technopreneur + Infornographer.","2026-09-24 08:54:10",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add jhkchan\u002Faws-agent-skills --skill cloudformation-cfn-lint-operator",{"tool":56,"command":57},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill cloudformation-cfn-lint-operator",{"tool":59,"command":60},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill cloudformation-cfn-lint-operator","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudformation-cfn-lint-operator\u002FSKILL.md",true,[64,70,74,78,82,86,90,94,98,102,106,110,114,118,122,126,130,134,138,142,146],{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"eval\u002Ftest-cases.yaml","REFERENCE","参考文档",4927,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudformation-cfn-lint-operator\u002Feval\u002Ftest-cases.yaml",{"path":71,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":72,"sourceHtmlUrl":73},"evals\u002Fbaselines\u002Fcfn-lint-changeset-clean.md",620,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudformation-cfn-lint-operator\u002Fevals\u002Fbaselines\u002Fcfn-lint-changeset-clean.md",{"path":75,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":76,"sourceHtmlUrl":77},"evals\u002Fbaselines\u002Fcfn-nag-critical-findings.md",647,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudformation-cfn-lint-operator\u002Fevals\u002Fbaselines\u002Fcfn-nag-critical-findings.md",{"path":79,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":80,"sourceHtmlUrl":81},"evals\u002Fbaselines\u002Fdrift-detection-stack-policy.md",633,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudformation-cfn-lint-operator\u002Fevals\u002Fbaselines\u002Fdrift-detection-stack-policy.md",{"path":83,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":84,"sourceHtmlUrl":85},"evals\u002Fbaselines\u002Fnested-stack-validation.md",659,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudformation-cfn-lint-operator\u002Fevals\u002Fbaselines\u002Fnested-stack-validation.md",{"path":87,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":88,"sourceHtmlUrl":89},"evals\u002Fbaselines\u002Fsam-transform-validation.md",545,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudformation-cfn-lint-operator\u002Fevals\u002Fbaselines\u002Fsam-transform-validation.md",{"path":91,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":92,"sourceHtmlUrl":93},"evals\u002Feval_config.yaml",1821,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudformation-cfn-lint-operator\u002Fevals\u002Feval_config.yaml",{"path":95,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":96,"sourceHtmlUrl":97},"evals\u002Fevals.json",9342,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudformation-cfn-lint-operator\u002Fevals\u002Fevals.json",{"path":99,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":100,"sourceHtmlUrl":101},"evals\u002Fprompts\u002Fcfn-lint-changeset-clean.md",513,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudformation-cfn-lint-operator\u002Fevals\u002Fprompts\u002Fcfn-lint-changeset-clean.md",{"path":103,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":104,"sourceHtmlUrl":105},"evals\u002Fprompts\u002Fcfn-nag-critical-findings.md",455,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudformation-cfn-lint-operator\u002Fevals\u002Fprompts\u002Fcfn-nag-critical-findings.md",{"path":107,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":108,"sourceHtmlUrl":109},"evals\u002Fprompts\u002Fdrift-detection-stack-policy.md",403,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudformation-cfn-lint-operator\u002Fevals\u002Fprompts\u002Fdrift-detection-stack-policy.md",{"path":111,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":112,"sourceHtmlUrl":113},"evals\u002Fprompts\u002Fnested-stack-validation.md",428,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudformation-cfn-lint-operator\u002Fevals\u002Fprompts\u002Fnested-stack-validation.md",{"path":115,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":116,"sourceHtmlUrl":117},"evals\u002Fprompts\u002Fsam-transform-validation.md",457,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudformation-cfn-lint-operator\u002Fevals\u002Fprompts\u002Fsam-transform-validation.md",{"path":119,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":120,"sourceHtmlUrl":121},"examples\u002FREADME.md",5892,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudformation-cfn-lint-operator\u002Fexamples\u002FREADME.md",{"path":123,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":124,"sourceHtmlUrl":125},"references\u002Fadvanced-patterns.md",3549,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudformation-cfn-lint-operator\u002Freferences\u002Fadvanced-patterns.md",{"path":127,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":128,"sourceHtmlUrl":129},"references\u002Fdiagnostic-commands.md",663,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudformation-cfn-lint-operator\u002Freferences\u002Fdiagnostic-commands.md",{"path":131,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":132,"sourceHtmlUrl":133},"references\u002Ferror-handling.md",1157,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudformation-cfn-lint-operator\u002Freferences\u002Ferror-handling.md",{"path":135,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":136,"sourceHtmlUrl":137},"references\u002Flinting-and-validation.md",9024,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudformation-cfn-lint-operator\u002Freferences\u002Flinting-and-validation.md",{"path":139,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":140,"sourceHtmlUrl":141},"references\u002Fsecurity-and-changesets.md",10685,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudformation-cfn-lint-operator\u002Freferences\u002Fsecurity-and-changesets.md",{"path":143,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":144,"sourceHtmlUrl":145},"references\u002Fworked-examples.md",830,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudformation-cfn-lint-operator\u002Freferences\u002Fworked-examples.md",{"path":147,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":148,"sourceHtmlUrl":149},"skill.usf.yaml",4700,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudformation-cfn-lint-operator\u002Fskill.usf.yaml",[151,158,165,172,179,186],{"skillNo":152,"name":153,"nameZh":6,"description":154,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":155,"categories":156,"keywords":157,"publishedAt":19},"01M7ADVD60X4PCAPKSE58P9NDC","xray-tracing-deployer","Deploys AWS X-Ray distributed tracing with production-grade configuration: X-Ray daemon deployment (EC2 systemd, ECS sidecar, EKS DaemonSet, Lambda built-in), SDK instrumentation (Java, Python, Node.js, Go, .NET) with annotations and metadata, sampling rules (default reservoir + rate vs custom rules with URL \u002F method \u002F service-name predicates), service map generation, trace query and retrieval, groups and insights, CloudWatch ServiceLens integration, IAM permissions (PutTraceSegments, GetSamplingRules), and latest features (Lambda Powertools tracing, OpenTelemetry \u002F ADOT Collector support, W3C trace context). Emits a READY_TO_DEPLOY checklist with every configuration item verified. Use when enabling X-Ray on a new application, adding tracing to ECS \u002F EKS \u002F Lambda, validating a sampling configuration, or generating daemon deployment CLI and IaC templates. Triggers: X-Ray, distributed tracing, X-Ray daemon, sampling rules, service map, X-Ray SDK, OpenTelemetry, ADOT, Lambda Powertools, CloudWatch ServiceLens.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxray-tracing-deployer\u002FSKILL.md",[],[],{"skillNo":159,"name":160,"nameZh":6,"description":161,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":162,"categories":163,"keywords":164,"publishedAt":19},"01M7ADTVJ7DCBM9CB1FY51GH7J","wellarchitected-workload-auditor","Audits AWS Well-Architected Tool workloads for review staleness, per-pillar high-risk issue counts, milestone tracking gaps, and remediation plan completeness. Emits a deterministic verdict (STALE_REVIEW | HIGH_RISK | CONFIG_GAP | OK) per workload with per-pillar risk breakdown, milestone trend analysis, and specific remediation. Use when reviewing Well-Architected workloads, checking WA review freshness, auditing high-risk issues per pillar, validating milestone coverage, or tracking remediation plans.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwellarchitected-workload-auditor\u002FSKILL.md",[],[],{"skillNo":166,"name":167,"nameZh":6,"description":168,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":169,"categories":170,"keywords":171,"publishedAt":19},"01M7ADT59G6FTTNZYHT2QRPNNP","wellarchitected-review-operator","Operates AWS Well-Architected Tool reviews end-to-end — creates workloads, runs pillar reviews (operational excellence, security, reliability, performance, cost optimization, sustainability, Prosperity), answers questions with risk-tier rationale, generates reports and improvement plans, creates milestones, and integrates with Trusted Advisor and Well-Architected Labs. Runs deterministic pre-checks (workload existence, lens availability, pillar coverage), emits the exact update-answer \u002F get-consolidated-report CLI behind a CONFIRM gate, and verifies risk-tier transitions. Emits READY | BLOCKED | COMPLETED. Use when creating a workload, answering pillar questions, generating an improvement plan, creating a milestone, or integrating with Trusted Advisor. Triggers: well-architected tool, well architected review, workload review, pillar, operational excellence, security, reliability, performance, cost optimization, sustainability, prosperity, improvement plan, milestone, trusted advisor.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwellarchitected-review-operator\u002FSKILL.md",[],[],{"skillNo":173,"name":174,"nameZh":6,"description":175,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":176,"categories":177,"keywords":178,"publishedAt":19},"01M7ADSH5JA9QHNPPHQCD7EVA7","wafv2-web-acl-deployer","Provisions AWS WAFv2 Web ACLs with correct production defaults: scope selection (CLOUDFRONT vs REGIONAL), managed rule groups (AWSManagedRulesCommonRuleSet, SQLiRuleSet, LinuxRuleSet, WindowsRuleSet, IPReputationList, BotControlRuleSet, AmazonIpReputationList, ATP), custom rules (byte match, IP set, regex pattern, geo match, size constraint, rate-based), rule priority ordering, logging destinations (Kinesis Firehose, CloudWatch Logs, S3), resource association (ALB, API Gateway, CloudFront), rate-based rules with aggregate keys (IP, forwarded IP), Challenge and CAPTCHA actions, and account takeover prevention. Emits a READY_TO_DEPLOY checklist. Use when creating a Web ACL, attaching managed rules, configuring rate limiting, enabling WAF logging, associating a Web ACL with an ALB\u002FAPI Gateway\u002FCloudFront, or configuring CAPTCHA\u002FChallenge actions. Triggers: create WAF Web ACL, WAFv2, managed rule groups, WAF rate limiting, WAF logging, WAF CAPTCHA, WAF Challenge action, bot control, ATP managed rules.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwafv2-web-acl-deployer\u002FSKILL.md",[],[],{"skillNo":180,"name":181,"nameZh":6,"description":182,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":183,"categories":184,"keywords":185,"publishedAt":19},"01M7ADRYFAT8R73FBNCHRC573X","wafv2-web-acl-auditor","Audits AWS WAFv2 Web ACL configurations to determine whether the ACL provides effective protection: default-action posture (Allow vs Block), managed-rule-group coverage gaps, rule effectiveness (BLOCK vs COUNT, shadow\u002Fbypass rules, stale exclusions), rate-based rule correctness, logging and visibility configuration, and text-transformation bypass vectors. Emits a deterministic verdict per Web ACL. Use when reviewing a WAFv2 Web ACL for security posture, checking managed-rule coverage, validating rate-limit configuration, auditing WAF logging, or hardening a WAF before production deployment. Triggers: WAF, WAFv2, Web ACL, managed rule group, AWSManagedRules, rate-based rule, CAPTCHA, Challenge, OverrideAction, Count mode, forwarded IP, Bot Control, ATP, text transformation, WAF logging, WAF visibility, OWASP, SQLi, XSS, RFI.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwafv2-web-acl-auditor\u002FSKILL.md",[],[],{"skillNo":187,"name":188,"nameZh":6,"description":189,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":190,"categories":191,"keywords":192,"publishedAt":19},"01M7ADR8W7G72JX4KFGN03QK8Q","waf-rule-deployer","Provisions AWS WAFv2 rule sets with production defaults: Web ACL creation (CloudFront scope in us-east-1 vs Regional scope), rule groups (managed vs custom) with capacity planning in WCU (Web ACL Capacity Units, 1500 default per ACL), managed rule groups (AWSManagedRulesCommonRuleSet, AWSManagedRulesSQLiRuleSet, AWSManagedRulesAmazonIpReputationList, AWSManagedRulesLinuxRuleSet, AWSManagedRulesWindowsRuleSet, AWSManagedRulesUnixRuleSet), custom rules (byte-match, regex pattern set, geo-match, rate-based), IP set and regex pattern set resources, rule priority ordering (lowest number evaluated first), action types (allow, block, count, CAPTCHA, Challenge), bot control managed rule group, account takeover. Triggers: create WAF rule, WAF managed rule group, WAF custom rule, WAF byte match, WAF geo match, WAF rate based rule, WAF IP set, WAF regex pattern set, WAF WCU budget, WAF CloudFront ACL, WAF logging Kinesis Firehose, WAF bot control, WAF ATP, WAF label matching, WAF Challenge action, WAF CAPTCHA.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwaf-rule-deployer\u002FSKILL.md",[],[]]