api-gateway

api-gateway is a skill for Claude Code from itsmostafa/aws-agent-skills. It costs 38 tokens per session (2,288 once invoked), scanned A, original, MIT.

Guidance for using Amazon API Gateway, an AWS service that receives web requests and connects them to backend code or services. It covers REST and HTTP APIs, which are ways for applications to communicate over the web.

In plain words
What is it for?
Use it when creating APIs, connecting them to Lambda functions or other services, configuring authorization, setting up development and production stages, limiting request rates, or troubleshooting failures.
Why use it?
It helps you create and manage the connection between an application and its backend without working out every API setting from scratch. It also addresses access control, deployment environments, request limits, and API problems.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the aws-agent-skills plugin — 18 skills shipped together

Good fit Use it when creating APIs, connecting them to Lambda functions or other services, configuring authorization, setting up development and production stages, limiting request rates, or troubleshooting failures.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/itsmostafa/aws-agent-skills/api-gateway
About the project

AWS Agent Skills is a collection of local instructions that help coding agents reason about AWS cloud services and engineering tasks. It supports agents working with areas such as identity, compute, storage, serverless, databases, networking, and security. The catalogue contains 18 service-focused skills and one plugin for using these capabilities with coding agents.

itsmostafa/aws-agent-skills · 1,150 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add itsmostafa/aws-agent-skills --skill api-gateway
Clone the repo
git clone --depth 1 https://github.com/itsmostafa/aws-agent-skills

Made for: Claude Code.

Or install aws-agent-skills, the plugin that ships this one along with the rest of its 18 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for api-gateway

README.md
[![agentmods](https://agentmods.dev/badge/skills/itsmostafa/aws-agent-skills/api-gateway.svg)](https://agentmods.dev/skills/itsmostafa/aws-agent-skills/api-gateway)
Your own site
<a href="https://agentmods.dev/skills/itsmostafa/aws-agent-skills/api-gateway"><img src="https://agentmods.dev/badge/skills/itsmostafa/aws-agent-skills/api-gateway.svg" alt="Measured on agentmods" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,288 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00038 $0.02288
Opus 5 $0.00019 $0.01144
Sonnet 5 $0.00008 $0.00458
Haiku 4.5 $0.00004 $0.00229

Measured 7d ago against content hash 943d1aa977a7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

api-gateway scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/api-gateway/SKILL.md · 344 lines

How it starts

The opening of the file, as written. The whole thing — 344 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AWS API Gateway

Amazon API Gateway is a fully managed service for creating, publishing, and securing APIs at any scale. Supports REST APIs, HTTP APIs, and WebSocket APIs.

Table of Contents

Core Concepts

API Types

Type Description Use Case
HTTP API Low-latency, cost-effective Simple APIs, Lambda proxy
REST API Full-featured, more control Complex APIs, transformation
WebSocket API Bidirectional communication Real-time apps, chat

Key Components

  • Resources: URL paths (/users, /orders/{id})
  • Methods: HTTP verbs (GET, POST, PUT, DELETE)
  • Integrations: Backend connections (Lambda, HTTP, AWS services)
  • Stages: Deployment environments (dev, prod)

Integration Types

Type Description
Lambda Proxy Pass-through to Lambda (recommended)
Lambda Custom Transform request/response
HTTP Proxy Pass-through to HTTP endpoint
AWS Service Direct integration with AWS services
Mock Return static response

Common Patterns

Create HTTP API with Lambda

AWS CLI:

# Create HTTP API
aws apigatewayv2 create-api \
  --name my-api \
  --protocol-type HTTP \
  --target arn:aws:lambda:us-east-1:123456789012:function:MyFunction

# Get API endpoint
aws apigatewayv2 get-api --api-id abc123 --query 'ApiEndpoint'

SAM Template:

AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31

Resources:
  MyApi:
    Type: AWS::Serverless::HttpApi
    Properties:
      StageName: prod

  MyFunction:
    Type: AWS::Serverless::Function
    Properties:
      Handler: app.handler
      Runtime: python3.12
      Events:
        ApiEvent:
          Type: HttpApi
          Properties:
            ApiId: !Ref MyApi
            Path: /items
            Method: GET

Read the full file on GitHub · 344 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 344 lines · 38 tokens per session scan A 943d1aa977a7

Subscribe to this mod's changes

api-gateway is a skill published in the GitHub repository itsmostafa/aws-agent-skills (1,150 stars, last pushed 6d ago), licensed MIT. It adds 38 tokens to every session and 2,288 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.