aws-serverless-patterns

aws-serverless-patterns is a skill for Claude Code, Codex from seandkendall/kiro-config. It costs 43 tokens per session (2,883 once invoked), scanned A, original, Apache-2.0.

A collection of patterns for building serverless applications on Amazon Web Services (AWS), where cloud services run code and manage infrastructure for you. It covers Lambda, API Gateway, DynamoDB, Step Functions, EventBridge, and related backend code.

In plain words
What is it for?
Use it when building or reviewing Lambda functions, serverless APIs, event-driven workflows, DynamoDB-backed services, or infrastructure defined with AWS CDK.
Why use it?
It gives you established structures for common AWS serverless components instead of requiring each backend to be designed from scratch. It also points to AWS documentation when service details are uncertain.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when building or reviewing Lambda functions, serverless APIs, event-driven workflows, DynamoDB-backed services, or infrastructure defined with AWS CDK.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/seandkendall/kiro-config/aws-serverless-patterns
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 seandkendall/kiro-config --skill aws-serverless-patterns
Clone the repo
git clone --depth 1 https://github.com/seandkendall/kiro-config

Made for: Claude Code, Codex.

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 aws-serverless-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/seandkendall/kiro-config/aws-serverless-patterns/github.svg)](https://agentmods.dev/skills/seandkendall/kiro-config/aws-serverless-patterns)
Your own site
<a href="https://agentmods.dev/skills/seandkendall/kiro-config/aws-serverless-patterns"><img src="https://agentmods.dev/badge/skills/seandkendall/kiro-config/aws-serverless-patterns/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for aws-serverless-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/seandkendall/kiro-config/aws-serverless-patterns"><img src="https://agentmods.dev/badge/skills/seandkendall/kiro-config/aws-serverless-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,883 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.
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.00043 $0.02883
Opus 5.5 $0.00017 $0.01153
Sonnet 5.5 $0.00009 $0.00577
Haiku 4.5 $0.00004 $0.00288

Measured today against content hash 5e8b499a14fd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

aws-serverless-patterns 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 today.

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/aws-serverless-patterns/SKILL.md · 150 lines

How it starts

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

AWS Serverless Patterns

When uncertain about an AWS API parameter, IAM action, or service quota, resolve and call the AWS docs-search tool (search_documentation) from the aws-mcp-server MCP server — see steering/aws-agent-toolkit.md → "Resolving the correct tool name" if the literal tool name doesn't resolve on first try. If unsure which MCP tool covers your task, see skills/mcp-tool-discovery/SKILL.md for the discovery flow.

Lambda Function Template

from aws_lambda_powertools import Logger, Tracer, Metrics
from aws_lambda_powertools.utilities.typing import LambdaContext

logger = Logger()
tracer = Tracer()
metrics = Metrics()

@logger.inject_lambda_context
@tracer.capture_lambda_handler
@metrics.log_metrics
def lambda_handler(event: dict, context: LambdaContext) -> dict:
    logger.info("Processing request", extra={"request_id": context.aws_request_id})
    metrics.add_metric(name="RequestProcessed", unit="Count", value=1)
    return {"statusCode": 200, "body": json.dumps({"status": "success"})}

CDK Lambda Pattern

from aws_cdk.aws_lambda_python_alpha import PythonFunction
from aws_cdk.aws_lambda import Runtime, Tracing

PythonFunction(self, 'MyFunction',
    runtime=Runtime.PYTHON_3_14,
    entry='cdk-backend/lambda/functions/my_function',
    index='my_function.py',
    tracing=Tracing.ACTIVE,
    memory_size=512,
    timeout=Duration.seconds(30),
)

DynamoDB Single-Table Pattern

  • PK: ENTITY#id (e.g., USER#123, ORDER#456)
  • SK: METADATA for base item, RELATION#id for relationships
  • GSI1PK/GSI1SK for secondary access patterns
  • Always use on-demand billing for variable workloads
  • Enable point-in-time recovery

API Gateway Pattern

  • REST API with Cognito authorizer
  • Request validation models at gateway level
  • Defense in depth: validate again in Lambda with pydantic
  • CORS: explicit origins, never * in production
  • Set CORS headers on every Lambda response, not just the OPTIONS preflight — if the frontend calls the API cross-origin (no CloudFront routing to API Gateway), a real 4xx/5xx from application code still needs Access-Control-Allow-Origin etc. on it or the browser reports it as a CORS failure regardless of the actual status code.
  • A Lambda that throws during cold start (missing import, bad env var, etc.) returns a headerless 502 with no CORS headers at all — this looks exactly like a CORS error in the browser console but isn't one. If a request that used to work suddenly "fails with CORS" after a deploy, check CloudWatch logs for the function first (Runtime.ImportModuleError, unhandled exception in module-scope code) before touching CORS configuration — CORS headers can't be attached to a response the runtime never got a chance to send.

Read the full file on GitHub · 150 lines

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. today First seen · 150 lines · 43 tokens per session scan A 5e8b499a14fd

Subscribe to this mod's changes

aws-serverless-patterns is a skill published in the GitHub repository seandkendall/kiro-config (8 stars, last pushed yesterday), licensed Apache-2.0. It adds 43 tokens to every session and 2,883 once invoked, about $0.0002 per session on Opus 5.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-10-27.

Related

Other skills, from other repositories

aws-architecture

AWS architecture decisions, serverless patterns, event-driven design, service boundaries and Well-Architected Framework. Use when designing system architecture or making infrastructure tradeoffs.

eliecer2000/kiro-bootstrap · 36 tokens

aws-api

AWS API design, implementation and integration patterns. Use when creating or modifying API Gateway endpoints, OpenAPI contracts, authentication, error handling or event integrations.

eliecer2000/kiro-bootstrap · 33 tokens

sandy-cli

Run TypeScript scripts in sandboxed microVMs or Docker containers with AWS SDK access via IMDS, through the sandy CLI. Use when investigating AWS resources, running read-only queries, or executing TypeScript automation that needs AWS credentials via shell commands.

jamestelfer/sandy · 54 tokens

eks-ingress-migration

Assess a live EKS cluster's NGINX/Ingress estate and plan migration to Gateway API, the AWS Load Balancer Controller (ALB Ingress), or AWS Transform (ATX). Discovers ingress controllers and routes, scores migration difficulty 0–100 with a separate re-architecture gate, and generates per-cluster reports plus…

aws-samples/sample-apex-skills · 164 tokens

aws-cdk

AWS CDK infrastructure development in TypeScript. Use when creating stacks, constructs, L2/L3 patterns, CDK testing, synth/deploy pipelines or organizing IaC code.

eliecer2000/kiro-bootstrap · 40 tokens

aws-lambda-typescript

AWS Lambda development with TypeScript. Use when writing Lambda handlers, bundling with esbuild, using AWS SDK v3/Powertools, strict typing or optimizing Node.js Lambda performance.

eliecer2000/kiro-bootstrap · 43 tokens