Skip to main content
subagent GitHub Copilot official · GitHub

aws-serverless-architect — GitHub Copilot subagent: setup and use

Guides AWS serverless architecture design using Lambda, API Gateway, and DynamoDB. Useful when you need ready IaC templates and event-driven patterns.

Install into GitHub Copilot · Manually: put the files in place All methods and platforms ↓
.github/agents/aws-serverless-architect.agent.md
Open on GitHub

What aws-serverless-architect does

The subagent consults on event-driven architectures across AWS managed services. It fetches official guidelines from docs.aws.amazon.com/lambda/ and serverlessland.com before suggesting a layout. It provides event flow diagrams, least-privilege IAM policies, and infrastructure code in AWS CDK (TypeScript), SAM, or Terraform.

Under the hood, the subagent reads project files, runs tasks, and searches code. It sizes Lambda memory from 128MB to 10GB and optimizes costs using arm64 Graviton2 instances. State stays outside compute in DynamoDB or S3. Observability comes configured with CloudWatch metrics and X-Ray tracing.

This agent suits teams building on EventBridge, SQS, and Step Functions. It enforces decoupled components. If your stack runs on static virtual machines without serverless AWS services, skip it.

What it helps with

  • Design asynchronous event flows across API Gateway, SQS, and Lambda
  • Generate Infrastructure as Code snippets for AWS CDK, SAM, and Terraform
  • Configure DynamoDB single-table designs and global secondary indexes
  • Mitigate Lambda cold starts using Provisioned Concurrency and arm64 runtimes

Example prompts for the agent

  • Design an order processing workflow with EventBridge, Step Functions, and DynamoDB using AWS CDK in TypeScript.
  • Create a Lambda function on arm64 with an SQS dead-letter queue and least-privilege IAM permissions.
  • Recommend memory sizing and timeout configurations for processing incoming S3 files.

How to install aws-serverless-architect

Manually: put the files in place

.github/agents/aws-serverless-architect.agent.md

From the same set554

The whole set →
git-commit official github This skill reviews Git changes, stages related files, and creates Conventional Commits. Use it when you want an agent to make one commit or split work into separate commits. GitHub Copilot 47,165installs excalidraw-diagram-generator official github Turn a plain-language description into an Excalidraw diagram. Useful for mapping processes, system structure, and relationships between entities. GitHub Copilot 31,639installs multi-stage-dockerfile official github This skill guides GitHub Copilot in writing multi-stage Dockerfiles for different languages and frameworks. Use it when the final runtime image should contain fewer build dependencies. GitHub Copilot 29,688installs documentation-writer official github Skill that turns the agent into a technical writer following the Diátaxis framework: tutorials, how-to guides, reference, and explanation. Proposes structure before writing. GitHub Copilot 27,757installs prd official github Turns a feature idea into a structured PRD with user stories, technical requirements, and risks. Use it when planning a software feature or an AI-powered one. GitHub Copilot 24,035installs refactor official github This skill reshapes existing code without changing its external behavior. Use it for gradual cleanup of large functions, duplication, weak types, and code smells. GitHub Copilot 22,321installs java-springboot official github Gives GitHub Copilot Spring Boot development practices, from project layout to tests and security. Use it when writing or reviewing Java application code. GitHub Copilot 21,272installs create-readme official github This skill reviews a project and creates a structured README.md. Use it when the repository needs clear documentation based on its actual files and code. GitHub Copilot 19,081installs

Similar

rails-expert VoltAgent Community Tailors Rails architecture to version 7.x or 8.x based on Gemfile.lock. Handles Hotwire, Solid Queue jobs, database migrations, and test suites. Claude Code 199installs dotnet-framework-4.8-expert VoltAgent Community Maintains and modernizes legacy enterprise apps on .NET Framework 4.8. It handles Web Forms, WCF services, and Windows integrations without breaking existing systems. Claude Code 187installs elixir-expert VoltAgent Community Reviews an Elixir project and helps implement changes using OTP, Phoenix, and Ecto. Use it when you need to reason about process architecture, fault handling, or tests. Claude Code 167installs fullstack-developer VoltAgent Community This subagent carries a feature across the database, API, and frontend layers. Use it when one change needs a consistent end-to-end implementation. Claude Code 18,117installs python-pro VoltAgent Community A subagent for type-safe Python code across web APIs, system utilities, and complex applications. Use it when async patterns and broad type coverage matter. Claude Code 11,689installs python-pro Seth Hobson A subagent for modern Python 3.12+ development, async code, testing, APIs, and performance work. Use it when a project needs deeper Python guidance. Claude Code CX Codex Cursor 11,689installs typescript-pro VoltAgent Community This subagent handles advanced TypeScript patterns, complex generics, and type safety across frontend and backend code. Use it for type-heavy project work. Claude Code 9,602installs ai-engineer Seth Hobson This subagent designs LLM applications, RAG systems, and AI agents. Use it when a project needs vector search, model orchestration, or multimodal AI. Claude Code CX Codex Cursor 7,687installs

Questions about aws-serverless-architect

How do I install aws-serverless-architect?

Place the definition file into your agent directory, such as .claude/agents/aws-serverless-architect.md or .cursor/agents/aws-serverless-architect.md. Copilot or your IDE will detect the instructions.

What does aws-serverless-architect do?

It provides architecture recommendations for AWS serverless systems. The agent details function specifications, IAM policies, and monitoring setups for services like Lambda and DynamoDB.

Which Infrastructure as Code tools does this subagent support?

The instructions prioritize AWS CDK with TypeScript for complex applications, along with AWS SAM and Terraform for simpler deployments.

Source text

aws-serverless-architect.agent.md · MIT
---
description: "Provide expert AWS Serverless Architect guidance focusing on event-driven architectures, Lambda, API Gateway, and serverless best practices."
name: aws-serverless-architect
tools: [execute/getTerminalOutput, execute/runTask, execute/createAndRunTask, execute/runInTerminal, execute/runTests, execute/testFailure, read/problems, read/readFile, read/terminalSelection, read/terminalLastCommand, read/getTaskOutput, edit/editFiles, search, web/fetch, web/githubRepo]
---

# AWS Serverless Architect mode instructions

You are in AWS Serverless Architect mode. Your task is to provide expert guidance for building serverless applications on AWS using Lambda, API Gateway, EventBridge, SQS, SNS, Step Functions, DynamoDB, and other managed services.

## Core Responsibilities

**Always fetch AWS Serverless documentation** from `https://docs.aws.amazon.com/lambda/`, `https://serverlessland.com/`, and the AWS Serverless Application Lens before providing recommendations.

**Serverless Design Principles**:
- **Event-driven**: Design around events and asynchronous processing
- **Function per purpose**: Single responsibility per Lambda function
- **Stateless compute**: Externalize state to DynamoDB, S3, ElastiCache
- **Managed services over infrastructure**: Prefer AWS managed services
- **Security at every layer**: Least-privilege IAM, VPC when needed, encryption at rest and in transit
- **Observability built-in**: Structured logging, distributed tracing with X-Ray, custom CloudWatch metrics

## Architectural Approach

1. **Event Source Mapping**: Identify and design appropriate event sources (API Gateway, SQS, SNS, EventBridge, S3, DynamoDB Streams, Kinesis)
2. **Function Design**:
   - Right-size memory allocation (128MB–10GB) based on CPU and memory needs
   - Optimize cold starts with Provisioned Concurrency for latency-sensitive paths
   - Use Lambda Layers for shared dependencies
   - Implement proper error handling with Dead Letter Queues (DLQ)
3. **Orchestration vs Choreography**: Use Step Functions for complex workflows, EventBridge for loose coupling
4. **Data Patterns**: DynamoDB single-table design, S3 for large objects, Aurora Serverless for relational needs
5. **Cost Optimization**: Pay-per-invocation model, optimize duration with efficient code, use ARM/Graviton2 (`arm64`) architecture

## Ask Before Assuming

When critical requirements are unclear, ask about:
- Expected invocation rate and concurrency requirements
- Latency requirements (synchronous vs asynchronous acceptable?)
- Data access patterns for DynamoDB table design
- Integration with existing VPC resources
- Compliance requirements affecting data residency

## Response Structure

- **Event Flow Diagram**: Describe the event-driven flow between services
- **Function Specifications**: Memory, timeout, runtime, concurrency settings
- **IAM Policy**: Least-privilege permissions required
- **Infrastructure as Code**: Provide SAM, CDK (TypeScript), or Terraform snippets
- **Observability Setup**: CloudWatch alarms, X-Ray tracing, structured log format
- **Cost Estimate**: Rough monthly cost based on invocation patterns

## Key Service Guidance

- **Lambda**: Runtime selection, handler design, environment variables for config, Secrets Manager for secrets
- **API Gateway**: REST vs HTTP API (prefer HTTP API for cost/performance), request validation, usage plans
- **EventBridge**: Event schema registry, cross-account event buses, archiving and replay
- **SQS**: Standard vs FIFO, visibility timeout, batch size, DLQ configuration
- **Step Functions**: Standard vs Express workflows, error handling, parallel execution
- **DynamoDB**: On-demand vs provisioned, GSIs, DAX for caching, TTL for expiry
- **SAM/CDK**: Prefer AWS CDK (TypeScript) for complex applications, SAM for simpler functions

Always provide working code examples and IaC templates. Prioritize the serverless-first approach and recommend managed services to minimize operational overhead.

© github · MIT · github/awesome-copilot

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor