/aws-cli:aws-clifrom aws-cli
AWS CLI v2 mechanics for scripts and write commands: pagination (--no-paginate, --max-items), --output and --query, retries and timeouts, waiters, --cli-input-json skeletons, dry runs, client tokens. Use when writing or debugging an aws command or script, when output is truncated, before a create, update, delete or launch command, or when env keys vs profile precedence is in question. Not for read-only questions about what exists (aws-resource-query) or profiles, SSO and IAM (aws).
Ships in aws-cli. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill when the command itself is the problem: output shape, truncation, timeouts, retries, or a write that must be safe to run. For read-only inspection of live resources, defer to aws-resource-query. For credentials, profiles, SSO, and IAM, defer to aws.
aws --version. It must report aws-cli/2.. If it reports 1.x or nothing, the wrong binary is first on PATH; fix that before debugging anything else.run_script or get_presigned_url tools; read the aws-resource-query skill's references/aws-mcp.md before calling them.--region explicitly in every script and every write command.--dry-run (check with aws <service> <command> help), run it first. A DryRunOperation error means the request would have succeeded; it is the pass signal, not a failure.--client-token, give each logical request a unique token and reuse the same token when retrying it, so a retry does not create a second resource.--cli-read-timeout <seconds> (integer; 0 means no timeout).--no-paginate returns only the first page. Scripts that use it silently miss items.--max-items N caps output and prints a NextToken. Resume with --starting-token <token>; the token must be non-empty.--page-size N changes how many items each underlying API call fetches. It does not change the output.--starting-token, set --page-size equal to --max-items, or fetch all pages and slice locally.--output takes json, yaml, yaml-stream, text, table, or off. AWS_DEFAULT_OUTPUT sets the default; --output overrides it.--query takes a JMESPath expression applied to the response. Use --output text when the result feeds a shell pipeline.--output json for anything another program parses.--no-cli-pager disables the pager for one command.AWS_PAGER="" disables it for a shell or script. The cli_pager= setting in config does the same.--no-cli-pager beats cli_pager and AWS_PAGER, which beat PAGER.AWS_RETRY_MODE (legacy, standard, or adaptive) and AWS_MAX_ATTEMPTS, or the matching config keys retry_mode and max_attempts.adaptive is marked experimental in the docs. Do not use it in production scripts without saying so.aws <service> <command> --debug 2>&1 | grep -i retry. Do not write debug output to a file in the working directory, since it may contain session tokens.aws <service> wait <waiter-name> polls until a resource reaches a state, then exits 0. Waiter names are per service; list them with aws <service> wait help.aws ec2 wait instance-running polls every 15 seconds and exits 255 after 40 failed checks. Read the waiter's own help before assuming those numbers hold for another waiter.$? in scripts; don't treat the wait as done after an error.aws <service> <command> --generate-cli-skeleton input > req.json (default JSON) or yaml-input for YAML. output gives the output shape.--cli-input-json file://req.json or --cli-input-yaml file://req.yaml. The file:// path is relative to the current directory.UserName), not CLI flag names (--user-name). Generate the skeleton rather than guessing names.aws s3 do not support skeletons or input files.alias file under the CLI config folder (~/.aws/cli/alias, [toplevel] section). Write full commands in scripts so they run on any machine.--region beats AWS_REGION, which beats AWS_DEFAULT_REGION. Put --region on the command when a script must hit one region.--profile ignores env keys, but AWS_PROFILE does not, so env keys win. Unset AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and AWS_SESSION_TOKEN, then confirm with aws sts get-caller-identity --profile <p>. To test whether a variable is set without printing it: [ -n "${AWS_ACCESS_KEY_ID-}" ] && echo set.aws configure list and aws configure export-credentials are off-limits, since they can print key material. The aws skill has the rule.--cli-binary-format). Use fileb:// to send a file's raw bytes.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub adminhead/claude-plugins --plugin aws-cli