/aws-cloud-development:aws-resource-queryfrom aws-cloud-development
Translates natural-language questions about AWS resources into read-only AWS CLI commands. Answers inventory queries for EC2, S3, RDS, Lambda, ECS, EKS, IAM, VPC, and more, with strict safety guarantees against mutating actions.
Ships in aws-cloud-development. 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.
Read when SKILL.md points to them.
Translate resource inventory questions into read-only AWS CLI commands, confirm account and region context, format concise tables, and refuse create/modify/delete actions. This is the intent-to-command bridge for each service/query.
STRICTLY READ ONLY. Use ONLY these AWS CLI command families:
| Allowed command family | Examples |
|---|---|
| Describe | aws <service> describe-* |
| List | aws <service> list-* |
| Get | aws <service> get-* |
| Identity | aws sts get-caller-identity |
| Configuration | aws configure get |
| Tags | aws resourcegroupstaggingapi get-resources |
| Cost Explorer | aws ce get-* |
| Support | aws support describe-* |
NEVER run mutating commands, including create-*, run-*, start-*, stop-*, reboot-*, delete-*, terminate-*, put-*, update-*, modify-*, attach-*, detach-*, send-*, publish-*, invoke-*, or execute-*.
If the user's query implies a write action, respond exactly with this pattern:
This skill is read-only. I can show you the current state of [resource], but I cannot [create/modify/delete] it. Would you like to see what currently exists?
aws sts get-caller-identity --query '{Account:Account,UserId:UserId}'aws configure get region--region <region> to every command when the user specifies a region.references/intent-command-mapping.md when translating service/resource intent to AWS CLI commands.--output table; use --output json only for explicitly requested deep detail.--query to extract relevant fields and avoid dumping raw JSON.| User intent | Read-only command pattern |
|---|---|
| Confirm identity | aws sts get-caller-identity --query '{Account:Account,UserId:UserId}' |
| Check default region | aws configure get region |
| Lambda event source mappings | aws lambda list-event-source-mappings --query 'EventSourceMappings[].[FunctionArn,EventSourceArn,State,BatchSize]' --output table |
| Tag-based inventory | aws resourcegroupstaggingapi get-resources --query '<fields>' --output table |
| Cost data | aws ce get-* --query '<fields>' --output table |
| Support metadata | aws support describe-* --query '<fields>' --output table |
Services covered include EC2, S3, RDS, Lambda, ECS, EKS, Secrets Manager, IAM, VPC, networking, messaging, and more when the command remains read-only.
references/intent-command-mapping.md: open this when mapping natural-language AWS resource questions to service-specific CLI commands.| Rule | Implementation |
|---|---|
| Table first | Use --output table for list results. |
| JSON only on request | Use --output json only for deep detail the user explicitly asks for. |
| Query fields | Always include --query to select relevant fields. |
| Large results | If more than 20 items are likely or returned, show count and offer filters. |
| Empty results | Explain likely causes: wrong region, no resources, or insufficient permissions. |
| Drill-down | Offer a next filter, such as state, type, tag, or resource ID. |
| Error | Likely cause | Response |
|---|---|---|
AccessDenied | Caller lacks permission. | "You don't have permission to list [resource]. Required: <service>:<Action>." |
NoCredentialProviders | AWS credentials are missing. | "Run aws configure or set AWS_PROFILE." |
| Empty result | Region, filters, or account do not contain the resource. | "No [resources] found in [region]. Check another region?" |
| Invalid identifier | Name or ID does not match an existing resource. | "Could not find '[name]'. Check the name or provide the resource ID." |
## AWS resource query result
**Status:** complete | read-only refusal | blocked
**Account:** `<account or not checked>`
**Region:** `<region or default>`
**Question:** <user intent>
| Resource | Key fields | Notes |
| --- | --- | --- |
| `<id/name>` | `<selected --query fields>` | <state, tags, or caveat> |
### Commands run
- `<aws read-only command with --query and --output table>`
### Next filter
- <state, type, tag, resource ID, or none>
create-*, delete-*, update-*, modify-*, invoke-*, and execute-* were refused.--region <region>.--output table and a focused --query.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
4 skills in this plugin
/aws-cost-optimizeAnalyze AWS resources used in the app (IaC files and/or resources in a target account/region) and optimize costs - creating GitHub issues for identified optimizations. Use this skill when the user asks for prerequisites./aws-resource-health-diagnoseDiagnose AWS resource health with AWS CLI, CloudWatch metrics, CloudWatch Logs Insights, Performance Insights, CloudTrail correlation, severity classification, root cause analysis, and remediation plans. Use when the user asks for AWS resource health, issue diagnosis, CloudWatch troubleshooting, or remediation for EC2, Lambda, RDS, ECS, ALB, DynamoDB, SQS, or API Gateway./aws-well-architected-reviewnpx claudepluginhub gbb-acelerators/awesome-harness-primitives --plugin aws-cloud-developmentOther plugins' skills for the same job