aws-cli
Installation
SKILL.md
AWS CLI
Run AWS CLI commands safely and efficiently. Default to read-only operations. Always confirm identity, region, and blast radius before mutating anything.
Always Do First
Before any AWS CLI command, confirm three things:
- Identity —
aws sts get-caller-identity(account, principal) - Region — explicit
--region <r>orAWS_REGIONenv. Do not rely on default profile region for cross-account work. - Profile —
AWS_PROFILE=<name>if multiple. Show user which profile is active.
If aws sts get-caller-identity fails: stop. Do not retry blindly. Diagnose: missing creds, expired SSO session, wrong profile. See references/auth.md.
Output Filtering
The CLI returns large JSON. Always narrow output with --query (JMESPath) and --output.