/api-gateway
Build, manage, and operate APIs with Amazon API Gateway (REST, HTTP, and WebSocket). Triggers on phrases like: API Gateway, REST API, HTTP API, WebSocket API, custom domain, Lambda authorizer, usage plan, throttling, CORS, VPC link, private API. Also covers troubleshooting API
$ npx -y skills add awslabs/agent-plugins --skill api-gateway --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/api-gateway
Context preview
The summary Claude sees to decide when to auto-load this skill.
Build, manage, and operate APIs with Amazon API Gateway (REST, HTTP, and WebSocket). Triggers on phrases like: API Gateway, REST API, HTTP API, WebSocket API, custom domain, Lambda authorizer, usage plan, throttling, CORS, VPC link, private API. Also covers troubleshooting API
SKILL.md
api-gateway.SKILL.mdname: api-gateway
description: >
Build, manage, and operate APIs with Amazon API Gateway (REST, HTTP, and WebSocket).
Triggers on phrases like: API Gateway, REST API, HTTP API, WebSocket API, custom domain, Lambda authorizer, usage plan, throttling, CORS, VPC link, private API.
Also covers troubleshooting API Gateway errors (4xx, 5xx, timeout, CORS failures) and IaC templates containing API Gateway resources.
For general REST API design unrelated to AWS, do not trigger.
metadata:
tags: [api-gateway, serverless, aws, rest-api, http-api, websocket]
Amazon API Gateway Development
Expert guidance for building, managing, governing, and operating APIs with Amazon API Gateway. Covers REST APIs (v1), HTTP APIs (v2), and WebSocket APIs.
How to Use This Skill
When answering API Gateway questions:
1. Read the relevant reference file(s) before responding, do not rely solely on this summary 2. For tasks spanning multiple concerns (e.g., "private API with mTLS and custom domain"), read all relevant references 3. When the user needs IaC templates, consult `references/sam-cloudformation.md` or `references/sam-service-integrations.md` and provide complete, working SAM/CloudFormation YAML 4. Always mention relevant pitfalls and limits that affect the user's design
Quick Decision: Which API Type?
Choose the right API type first. This decision affects every downstream choice.
**REST API** is the full-featured API management platform for enterprises. It provides the governance, security, monetization, and operational controls that organizations need to build, publish, and manage APIs at scale, including usage plans with per-consumer throttling and quotas, API keys, request validation, WAF integration, resource policies, caching, canary deployments, and private endpoints.
**HTTP API** is the lightweight, low-cost proxy optimized for simpler API workloads. It offers ~70% lower cost and lower latency but trades away the API management features. Choose HTTP API when you need a fast, lightweight proxy to Lambda or HTTP backends and don't require the enterprise controls above.
| Factor | REST API (v1) | HTTP API (v2) | WebSocket API | | ------------------------- | -------------------------------------- | ---------------------------------------------- | ------------------------------ | | **Positioning** | **Full API management** | **Low-cost proxy** | **Real-time bidirectional** | | Cost | Higher | ~70% cheaper | Per-message pricing | | Latency | Higher | Lower | Persistent connection | | Max timeout | 50ms-29s (up to 300s Regional/Private) | 30s hard limit | 29s | | Payload | 10 MB | 10 MB | 128 KB message / 32 KB frame | | **API Management** | | | | | Usage plans/API keys | Yes | No | No | | Request validation | Yes (JSON Schema draft 4) | No | No | | Caching | Yes (0.5-237 GB) | No | No | | Custom gateway responses | Yes | No | No | | VTL mapping templates | Yes | No (parameter mapping only) | Yes | | **Security & Governance** | | | | | WAF | Yes | No (use CloudFront + WAF) | No | | Resource policies | Yes | No | No | | Private endpoints | Yes | No | No | | mTLS | Yes (Regional custom domain only) | Yes (Regional custom domain only) | Via CloudFront viewer mTLS | | **Auth** | | | | | Lambda authorizer | Yes (TOKEN + REQUEST) | Yes (REQUEST only, simple + IAM policy format) | Yes (REQUEST on $connect only) | | JWT authorizer | No (use Cognito authorizer) | Yes (native) | No | | Cognito authorizer | Yes (native) | Use JWT authorizer | No | | **Operations** | | | | | Canary deployments | Yes | No | No | | Response streaming | Yes | No | No | | X-Ray tracing | Yes
Read more
name: api-gateway description: > Build, manage, and operate APIs with Amazon API Gateway (REST, HTTP, and WebSocket). Triggers on phrases like: API Gateway, REST API, HTTP API, WebSocket API, custom domain, Lambda authorizer, usage plan, throttling, CORS, VPC link, private API. Also covers troubleshooting API Gateway errors (4xx, 5xx, timeout, CORS failures) and IaC templates containing API Gateway resources. For general REST API design unrelated to AWS, do not trigger. metadata: tags: [api-gateway, serverless, aws, rest-api, http-api, websocket]
Amazon API Gateway Development
Expert guidance for building, managing, governing, and operating APIs with Amazon API Gateway. Covers REST APIs (v1), HTTP APIs (v2), and WebSocket APIs.
How to Use This Skill
When answering API Gateway questions:
1. Read the relevant reference file(s) before responding, do not rely solely on this summary 2. For tasks spanning multiple concerns (e.g., "private API with mTLS and custom domain"), read all relevant references 3. When the user needs IaC templates, consult `references/sam-cloudformation.md` or `references/sam-service-integrations.md` and provide complete, working SAM/CloudFormation YAML 4. Always mention relevant pitfalls and limits that affect the user's design
Quick Decision: Which API Type?
Choose the right API type first. This decision affects every downstream choice.
**REST API** is the full-featured API management platform for enterprises. It provides the governance, security, monetization, and operational controls that organizations need to build, publish, and manage APIs at scale, including usage plans with per-consumer throttling and quotas, API keys, request validation, WAF integration, resource policies, caching, canary deployments, and private endpoints.
**HTTP API** is the lightweight, low-cost proxy optimized for simpler API workloads. It offers ~70% lower cost and lower latency but trades away the API management features. Choose HTTP API when you need a fast, lightweight proxy to Lambda or HTTP backends and don't require the enterprise controls above.
| Factor | REST API (v1) | HTTP API (v2) | WebSocket API | | ------------------------- | -------------------------------------- | ---------------------------------------------- | ------------------------------ | | **Positioning** | **Full API management** | **Low-cost proxy** | **Real-time bidirectional** | | Cost | Higher | ~70% cheaper | Per-message pricing | | Latency | Higher | Lower | Persistent connection | | Max timeout | 50ms-29s (up to 300s Regional/Private) | 30s hard limit | 29s | | Payload | 10 MB | 10 MB | 128 KB message / 32 KB frame | | **API Management** | | | | | Usage plans/API keys | Yes | No | No | | Request validation | Yes (JSON Schema draft 4) | No | No | | Caching | Yes (0.5-237 GB) | No | No | | Custom gateway responses | Yes | No | No | | VTL mapping templates | Yes | No (parameter mapping only) | Yes | | **Security & Governance** | | | | | WAF | Yes | No (use CloudFront + WAF) | No | | Resource policies | Yes | No | No | | Private endpoints | Yes | No | No | | mTLS | Yes (Regional custom domain only) | Yes (Regional custom domain only) | Via CloudFront viewer mTLS | | **Auth** | | | | | Lambda authorizer | Yes (TOKEN + REQUEST) | Yes (REQUEST only, simple + IAM policy format) | Yes (REQUEST on $connect only) | | JWT authorizer | No (use Cognito authorizer) | Yes (native) | No | | Cognito authorizer | Yes (native) | Use JWT authorizer | No | | **Operations** | | | | | Canary deployments | Yes | No | No | | Response streaming | Yes | No | No | | X-Ray tracing | Yes
Read this in other languages: 日本語 Generative AI can make mistakes. You should consider reviewing all output and costs generated by your chosen AI model and agentic coding assistant. See AWS Responsible AI Policy.
Other skills on agent-plugins.
- /amazon-location-service
Integrates Amazon Location Service APIs for AWS applications. Use this skill when users want to add maps (interactive MapLibre or static images); geocode addresses to coordinates or reverse geocode coordinates to addresses; calculate routes, travel times, or service areas; find
Open skill - /amplify-workflow
Build and deploy full-stack web and mobile apps with AWS Amplify Gen2
Open skill - /aws-lambda-durable-functions
Build resilient, long-running, multi-step applications with AWS Lambda durable functions with automatic state persistence, retry logic, and orchestration for long-running executions. Covers the critical replay model, step operations, wait/callback patterns, error handling with
Open skill - /aws-lambda-managed-instances
Evaluate, configure, and migrate workloads to AWS Lambda Managed Instances (LMI). Triggers on: Lambda Managed Instances, LMI, capacity provider, multi-concurrency Lambda, dedicated instance Lambda, EC2-backed Lambda, cold start elimination, Graviton Lambda, instance type for
Open skill - /aws-lambda-microvms
Build, run, debug, and operate applications on AWS Lambda MicroVMs — Firecracker-isolated, snapshot-resumable serverless compute environments that run inside a container with up to 8-hour lifetimes. Triggers on: Lambda MicroVMs, Firecracker isolation, snapshot-resumable compute,
Open skill - /aws-lambda
Design, build, deploy, test, and debug serverless applications with AWS Lambda. Triggers on phrases like: Lambda function, event source, serverless application, API Gateway, EventBridge, Step Functions, serverless API, event-driven architecture, Lambda trigger. For deploying
Open skill

