aws-lambda-python

aws-lambda-python is a skill for Claude Code, Codex from eliecer2000/kiro-bootstrap. It costs 36 tokens per session (2,241 once invoked), scanned A, original, MIT.

A guide to developing Python functions for AWS Lambda, Amazon’s service for running code without managing servers. It covers handlers, packaging layers, AWS SDK access, logging, error handling, testing, validation, and performance practices.

In plain words
What is it for?
Use it to structure Python Lambda projects, package dependencies, connect to AWS services such as S3 or DynamoDB, add logging and validation, and write tests.
Why use it?
It helps keep Lambda functions small and organized by separating event handling from business logic, data access, and models.

Skill for Claude CodeCodex

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

Good fit Use it to structure Python Lambda projects, package dependencies, connect to AWS services such as S3 or DynamoDB, add logging and validation, and write tests.

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

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-lambda-python

README.md
[![agentmods](https://agentmods.dev/badge/skills/eliecer2000/kiro-bootstrap/aws-lambda-python/github.svg)](https://agentmods.dev/skills/eliecer2000/kiro-bootstrap/aws-lambda-python)
Your own site
<a href="https://agentmods.dev/skills/eliecer2000/kiro-bootstrap/aws-lambda-python"><img src="https://agentmods.dev/badge/skills/eliecer2000/kiro-bootstrap/aws-lambda-python/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-lambda-python

Your own site · 80×15
<a href="https://agentmods.dev/skills/eliecer2000/kiro-bootstrap/aws-lambda-python"><img src="https://agentmods.dev/badge/skills/eliecer2000/kiro-bootstrap/aws-lambda-python.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,241 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.00036 $0.02241
Opus 5.5 $0.00014 $0.00896
Sonnet 5.5 $0.00007 $0.00448
Haiku 4.5 $0.00004 $0.00224

Measured 1mo ago against content hash 65dcb4c22901, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

aws-lambda-python 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 1mo 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/aws-lambda-python/SKILL.md · 286 lines

How it starts

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

AWS Lambda Python

Skill para desarrollo de funciones Lambda en Python: handlers, empaquetado, layers, AWS SDK (boto3), Powertools, logging estructurado, manejo de errores, testing y mejores prácticas de rendimiento.

Principios fundamentales

  • Un handler, una responsabilidad. Evitar Lambdas monolíticos.
  • Separar lógica de negocio del handler. El handler solo parsea el evento, invoca la lógica y formatea la respuesta.
  • Usar AWS Lambda Powertools para Python en todo proyecto: logging, tracing, metrics, validation, idempotency.
  • Tipado estricto con type hints y validación con Pydantic o Powertools Parser.
  • Inicializar clientes AWS fuera del handler (reutilización en warm starts).

Estructura de proyecto recomendada

functions/
├── mi_funcion/
│   ├── __init__.py
│   ├── handler.py          # Entry point del Lambda
│   ├── service.py          # Lógica de negocio
│   ├── repository.py       # Acceso a datos (DynamoDB, S3, etc.)
│   ├── models.py           # Pydantic models / dataclasses
│   └── exceptions.py       # Excepciones custom
├── shared/
│   ├── __init__.py
│   ├── middleware.py        # Middleware compartido
│   └── constants.py
├── tests/
│   ├── unit/
│   │   ├── test_service.py
│   │   └── test_handler.py
│   └── integration/
│       └── test_api.py
├── requirements.txt
└── pyproject.toml

Handler con Powertools (patrón recomendado)

from aws_lambda_powertools import Logger, Tracer, Metrics
from aws_lambda_powertools.event_handler import APIGatewayHttpResolver
from aws_lambda_powertools.logging import correlation_paths
from aws_lambda_powertools.metrics import MetricUnit
from aws_lambda_powertools.utilities.typing import LambdaContext
from aws_lambda_powertools.utilities.validation import validate

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

# Clientes AWS inicializados fuera del handler (warm start reuse)
import boto3
dynamodb = boto3.resource("dynamodb")
table = dynamodb.Table(os.environ["TABLE_NAME"])

@app.get("/items")
@tracer.capture_method
def list_items():
    items = table.query(
        KeyConditionExpression="PK = :pk",
        ExpressionAttributeValues={":pk": "ITEMS"},
    )
    return {"items": items.get("Items", [])}

@app.post("/items")
@tracer.capture_method
def create_item():
    body = app.current_event.json_body
    # Validar con Pydantic
    item = ItemCreate(**body)
    table.put_item(Item=item.to_dynamo())
    metrics.add_metric(name="ItemCreated", unit=MetricUnit.Count, value=1)
    return {"id": item.id}, 201

@logger.inject_lambda_context(correlation_id_path=correlation_paths.API_GATEWAY_HTTP)
@tracer.capture_lambda_handler
@metrics.log_metrics(capture_cold_start_metric=True)
def handler(event: dict, context: LambdaContext) -> dict:
    return app.resolve(event, context)

Read the full file on GitHub · 286 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. 1mo ago First seen · 286 lines · 36 tokens per session scan A 65dcb4c22901

Subscribe to this mod's changes

aws-lambda-python is a skill published in the GitHub repository eliecer2000/kiro-bootstrap (9 stars, last pushed 6mo ago), licensed MIT. It adds 36 tokens to every session and 2,241 once invoked, about $0.0001 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-08-31.

Related

Other skills, from other repositories

reinvent-stack-toolkit

Technical patterns and known-only-by-live-invocation pitfalls for the reinvent agent's fixed stack. Covers how to wire services correctly; says nothing about what to build. Read this BEFORE writing any code for a new project on this stack. Only fall back to live AWS docs search when a value here looks stale or the…

seandkendall/kiro-config · 77 tokens

hf-cloud-python-env-setup

Set up an isolated Python environment for SageMaker / AWS work, with the right Python version and current boto3. Use this skill whenever Python code will be executed for a SageMaker deployment, training job, or any AWS automation — including when about to run pip install, when about to invoke boto3, when creating or…

huggingface/skills · 128 tokens

agent-squad-python

Use when building or modifying a Python app that uses the agent-squad Python package — async multi-agent orchestration for Python 3.11+: orchestrator, agents (BedrockLLMAgent, AnthropicAgent, OpenAIAgent, SupervisorAgent, GroundedAgent, ChainAgent, and more), classifier routing (Bedrock, Anthropic, OpenAI), storage…

2FastLabs/agent-squad · 113 tokens

aws-sdk-python-usage

AWS SDK for Python (boto3/botocore) development patterns. You MUST use this skill when writing Python code that uses AWS services via boto3 or botocore. This includes creating service clients or resources, configuring sessions and credentials, handling errors with ClientError, using paginators and waiters, S3 file…

aws/agent-toolkit-for-aws · 120 tokens

azure-storage-blob-py

Client library for Azure Blob Storage — object storage for unstructured data.

benjaminasterA/antigravity-awesome-skills · 0 tokens

azure-storage-file-datalake-py

Hierarchical file system for big data analytics workloads.

benjaminasterA/antigravity-awesome-skills · 0 tokens