Delegating to AWS Agent

Delegate AWS queries to a sub-agent for EC2, S3, IAM, ECS, and Lambda.

34|5|Updated Oct 15, 2025
One-click install
npx skills add https://github.com/ryancnelson/deli-gator --skill delegating-to-aws-agent
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Delegating to AWS Agent
Source: https://github.com/ryancnelson/deli-gator/tree/main/examples/3-cloud-infrastructure/skills/delegating-to-cloud-agent
Command: npx skills add https://github.com/ryancnelson/deli-gator --skill delegating-to-aws-agent

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires aws-cli, bash-my-aws.

What problem does it solve?

This Skill prevents your main AI assistant from getting bogged down with complex AWS CLI and API details, which bloats context, increases costs, and reduces focus. It delegates specialized AWS queries to a sub-agent, ensuring your primary AI remains efficient and cost-effective.

Core Features & Use Cases

  • EC2 Instance Management: List EC2 instances by state or name, and manage their lifecycle (start/stop).
  • S3 Bucket & Object Listing: Easily list S3 buckets and their contents.
  • IAM Key Management: View IAM access keys for specific users.
  • ECS Deployment Control: Initiate new ECS service deployments with confirmation for destructive operations.
  • Use Case: When a user asks to "show me running EC2 instances", this Skill automatically delegates the task to a specialized sub-agent, which executes the necessary cloud-ec2-list command and returns a formatted list, without exposing complex AWS CLI details to the main AI.

Quick Start

Example: Delegating an AWS query

Task( subagent_type: "general-purpose", description: "Query AWS infrastructure", prompt: "<full agent instructions from AGENT-INSTRUCTIONS.md>

USER REQUEST: List all running EC2 instances

Return clean, formatted results ready to show the user." )

Frequently Asked Questions about Delegating to AWS Agent

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate AWS infrastructure queries without bogging down my main AI?

Delegating to AWS Agent offloads EC2, S3, IAM, and ECS queries to a specialized sub-agent, keeping your primary AI focused and reducing context bloat. The sub-agent executes AWS CLI commands and returns formatted results without exposing raw credentials or complex details to your main workflow.

Can I list EC2 instances, S3 buckets, and IAM keys through a single delegation interface?

Yes. This Skill delegates AWS infrastructure queries—including EC2 instance listing by state, S3 bucket and object enumeration, IAM access key inspection, and ECS deployment control—to a task-based sub-agent that handles the AWS CLI details and returns clean, formatted output.

What AWS services and operations does this delegation Skill support?

The Skill delegates queries for EC2 lifecycle management (list, start, stop), S3 bucket and object listing, IAM key viewing, ECS service deployments, Lambda, and other AWS services. It recognizes AWS intents, executes appropriate commands, and requires confirmation for destructive operations.

How does delegation reduce AI costs when managing AWS infrastructure?

By routing AWS CLI and API complexity to a sub-agent, the main AI avoids context inflation from verbose command details and API responses. This reduces token consumption per query and keeps the primary assistant efficient while specialized AWS operations run independently.

Do I need AWS CLI and bash-my-aws installed to use this delegation Skill?

Yes. This Skill requires aws-cli and bash-my-aws as dependencies. These tools enable the sub-agent to execute AWS queries and retrieve infrastructure data; they must be available in your environment before delegation tasks run.

What happens when I delegate a destructive AWS operation like stopping an EC2 instance?

The Skill requires explicit confirmation before executing destructive operations. The sub-agent presents the intended action, waits for approval, and proceeds only after you confirm—preventing accidental infrastructure changes.