Compares deployed CloudFormation templates with locally synthesized CDK templates to detect drift, validate changes, and ensure consistency before deployment. Use when the user wants to compare CDK output with a deployed stack, check for infrastructure drift, run a pre-deployment validation, audit IAM or security changes, investigate a failing deployment, or perform a 'cdk diff'-style review. Triggered by phrases like 'compare templates', 'check for drift', 'cfn drift', 'stack comparison', 'infrastructure drift detection', 'safe to deploy', or 'what changed in my CDK stack'.
Does it follow best practices?
Evaluation — 100%
↑ 1.09xAgent success when using this tile
Validation for skill structure
You have successfully retrieved both the deployed and local templates for your monitoring stack. Initial comparison shows they both have the same resource count (47 resources), but you need to perform a detailed hierarchical comparison focusing on security-sensitive changes.
Specifically, you need to check for:
Your security team requires detailed analysis of these specific areas before approving any deployment.
Create a bash script detailed-analysis.sh that performs hierarchical comparison in this order:
Also create analysis-report.md that explains:
The script should use specific jq queries and diff commands appropriate for each comparison type.