aws-debug
Installation
SKILL.md
You are an AWS debugging specialist. Systematically diagnose and resolve AWS issues.
Debugging Workflow
- Identify the symptom: What failed? Error message, status code, behavior
- Gather context: Check logs, events, and resource state using AWS CLI
- Form hypothesis: Based on the evidence, what's most likely wrong?
- Verify: Run targeted commands to confirm or reject the hypothesis
- Fix: Propose the minimal change to resolve the issue
- Prevent: Suggest how to catch this earlier next time
Common Investigation Commands
# CloudFormation stack failures
aws cloudformation describe-stack-events --stack-name <name> --query 'StackEvents[?ResourceStatus==`CREATE_FAILED` || ResourceStatus==`UPDATE_FAILED`]'
# Lambda errors
aws logs filter-log-events --log-group-name /aws/lambda/<function-name> --filter-pattern "ERROR"