aws-lambda
Skill13 starsChanged 25 days agoMITView on GitHub
Verification Tier: code_example_tested | Last Verified: 2026-11-18 Official Docs: https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html
- Installs packages
4 other projects use a version of this.
Adopted by
Most recently taken up by
- Azure/git-apetheir own version, first seen Oct 20, 2026
- awslabs/agent-pluginstheir own version, first seen Oct 13, 2026
- conjure-3301/skillstheir own version, first seen Aug 17, 2026
- openrec0n/cloaktheir own version, first seen Feb 5, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- awslabs/agent-plugins★ 953same name
- Azure/git-ape★ 282same name
- openrec0n/cloak★ 8same name
- conjure-3301/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository140 other files it gives its agents.
- algoliaSkill
- anthropic-mcpSkill
- anthropicSkill
- argo-cdSkill
- auth0Skill
- aws-bedrockSkill
- aws-dynamodbSkill
- aws-s3Skill
- azure-blob-storageSkill
- azure-openaiSkill
- better-authSkill
- better-sqlite3Skill
- biomeSkill
- braintreeSkill
- bullmqSkill
- caddySkill
- chromadbSkill
- clerkSkill
- cloudflare-d1Skill
- cloudflare-r2Skill
- cloudflareSkill
- cloudflare-workersSkill
- cloudinarySkill
- cohereSkill
- convexSkill
- datadogSkill
- deepgramSkill
- deepseekSkill
- deno-deploySkill
- digitaloceanSkill
- discordSkill
- dockerSkill
- drizzleSkill
- elevenlabsSkill
- eslintSkill
- expressSkill
- fastapiSkill
- firebaseSkill
- flySkill
- geminiSkill
- github-actionsSkill
- githubSkill
- gitSkill
- google-cloud-runSkill
- google-cloud-storageSkill
- google-maps-platformSkill
- grafanaSkill
- groqSkill
- helmSkill
- honoSkill
- inngestSkill
- jaegerSkill
- jwtSkill
- kafkaSkill
- kubernetesSkill
- langchainSkill
- langfuseSkill
- langgraphSkill
- lemon-squeezySkill
- linearSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 30
Never log raw Authorization headers or secret values to CloudWatch Logs.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AWS Lambda Handler Patterns Skill
Verification Tier:
code_example_tested| Last Verified: 2026-11-18
Official Docs: https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html
Overview
AWS Lambda runs event-driven serverless functions triggered by API Gateway, SQS, EventBridge, DynamoDB Streams, and S3. Production reliability depends on idempotent handlers, partial batch failure reporting, execution-context reuse, and strict timeout budgets.
Installation
npm install -D @types/aws-lambdaAuthentication
Rely exclusively on the Lambda Function IAM Execution Role (temporary STS credentials injected into the runtime environment). Never store static AWS access keys in Lambda environment variables.
Core Concepts
- Execution Environment Reuse: Initialize SDK clients and database pools outside the exported
handlerso warm invocations reuse TCP/TLS connections. - SQS Partial Batch Failures: Enable
FunctionResponseTypes: ["ReportBatchItemFailures"]on the SQS Event Source Mapping and return{ batchItemFailures: [{ itemIdentifier: record.messageId }] }. Without this, throwing an error re-queues the ENTIRE batch and re-processes already-succeeded messages! - Timeout Guarding: Set outbound HTTP/DB timeouts below
context.getRemainingTimeInMillis() - 1000so you can log clean diagnostics before Lambda hard-kills the process.
Error Handling & Rate Limits
- Configure an SQS Dead-Letter Queue (DLQ) with
maxReceiveCount(e.g., 3–5) to isolate poison-pill messages. - Set
VisibilityTimeouton the source SQS queue to at least 6x the Lambda function timeout. - Configure Reserved Concurrency on downstream-sensitive functions to avoid exhausting relational DB connection pools.
Security Best Practices
- Apply least-privilege IAM policies scoped to exact queue/table/bucket ARNs.
- Validate all API Gateway / EventBridge event payloads at runtime (e.g., with
zod). - Never log raw
Authorizationheaders or secret values to CloudWatch Logs.
AI Pitfalls
- Throwing on a single bad SQS message without
ReportBatchItemFailures, causing infinite reprocessing of healthy records in the same batch. - Opening a fresh database/SDK connection inside
handler()on every invocation. - Setting SQS
VisibilityTimeoutshorter than Lambda timeout, causing duplicate concurrent execution.
Production Checklist
- SDK/DB clients initialized at module scope outside
handler - SQS handlers return
SQSBatchResponsewithbatchItemFailures - SQS
VisibilityTimeout >= 6 * LambdaTimeoutand DLQ configured - Outbound requests use timeouts bounded by remaining Lambda execution time
References
Related skills
aws-bedrock— works well withaws-s3— works well withaws-dynamodb— works well with
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

