| name | cf-lint |
| description | Validate a CloudFormation template against best practices and common errors. Use before deploying stacks or during PR review of CF changes. |
| user-invokable | true |
| context | fork |
| allowed-tools | Read, Grep, Glob, Bash |
| argument-hint | [path to CloudFormation template] |
CloudFormation Lint
Validate a CloudFormation template against best practices.
Input
$ARGUMENTS = path to a CloudFormation YAML template.
Process
1. Read the Template
Parse the template and identify all sections (Parameters, Resources, Outputs, etc.).
2. Structural Checks
3. Security Checks
4. Reliability Checks
5. Best Practice Checks
6. Run cfn-lint (if available)
cfn-lint $ARGUMENTS — report any findings.
Output
For each finding:
- Category: Structure / Security / Reliability / Best Practice
- Severity: Error / Warning / Info
- Location: Resource logical ID or line reference
- Issue: What's wrong
- Fix: How to fix it