Creator · itsmostafa
Last updated · Sep 2, 2026
AWS Lambda serverless functions for event-driven compute. Use when creating functions, configuring triggers, debugging invocations, optimizing cold starts, setting up event source mappings, or managing layers.
Sandbox only
Install targets
Codex install prompt
Install the "lambda" agent skill from https://github.com/itsmostafa/aws-agent-skills/tree/main/skills/lambda. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: AWS Lambda serverless functions for event-driven compute. Use when creating functions, configuring triggers, debugging invocations, optimizing cold starts, setting up event source mappings, or managing layers. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"itsmostafa-lambda","task":"Install lambda","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Deep research, source comparison, literature review, RAG, knowledge search, and reports.
Scenario
Research agents
I need my agent to research a topic, compare sources, and produce a concise report.
Agent fit
Claude Code + CLI + Codex
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add itsmostafa/aws-agent-skills --skill lambda
Maintenance
fresh
7d since push
Risk
Needs review
Permission surface may require sandboxing
GitHub quality
1.1K
77/100 Quality · 79/100 Trust
Coverage tags
Review notes
Permission surface may require sandboxing · Quality score needs review
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
StrongSolid option that is likely worth shortlisting for production workflows.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
1.1K GitHub stars
Repo activity
1.1K stars, 444 forks
Maintenance
7d since push
License
MIT
Install
npx skills add itsmostafa/aws-agent-skills --skill lambda
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add itsmostafa/aws-agent-skills --skill lambdaDo not use when
Alternative
1.9K Stars
npx skills add yanliudesign/mono-color-skill --skill mono-color
Alternative
61.0K Stars
npx skills add mvanhorn/last30days-skill -g
Alternative
38.4K Stars
npx skills add Imbad0202/academic-research-skills
Alternative
256.3K Stars
npx skills add mattpocock/skills --skill grill-me
Agent safety v2
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
medium
Skill may read or write project files, documents, generated artifacts, or local workspace state.
medium
Skill may inspect schemas, query databases, or work with persistent stores.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20lambda%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20lambda%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/itsmostafa-lambda/install
Agent should check
Copy prompt
Task: Use lambda in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20lambda%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/itsmostafa-lambda/install
Install command: npx skills add itsmostafa/aws-agent-skills --skill lambda
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/itsmostafa-lambda/install
LLM text format
/api/skills/itsmostafa-lambda/install?format=text
Find alternatives
/api/skills/search?q=lambda&limit=3
Agent prompt
Use lambda for this task. Review https://www.openagentskill.com/api/skills/itsmostafa-lambda/install, then install with: npx skills add itsmostafa/aws-agent-skills --skill lambdaRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/itsmostafa-lambda
LLM text
/api/registry/manifest/itsmostafa-lambda?format=text
Install alias
/api/registry/install/itsmostafa-lambda
Recommend
/api/registry/recommend?task=Use%20lambda%20in%20an%20agent%20workflow&limit=3
Agent fit
Coding agents
Use-case tags
Platforms
Claude Code
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Use this as a leading candidate, then validate the README and install path in your own agent stack.
Role in stack
Primary pick
Primary fit
Coding agents
Trust label
Production-ready
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
PASS1.1K GitHub stars
Stars/forks activity
PASS1.1K stars, 444 forks; issue activity unavailable in current metadata
Recent maintenance
PASS7d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
Solid option that is likely worth shortlisting for production workflows.
Workflow fit
Build and ship code
I need a coding agent that can understand a repository, edit code, and review pull requests.
Operate web apps
I need my agent to control a browser, fill forms, and verify web app workflows.
Investigate faster
I need my agent to research a topic, compare sources, and produce a concise report.
Workflow fit
Inspect, patch, and verify code
A workflow for software agents that inspect repositories, review pull requests, generate tests, and turn findings into shippable patches.
Operate and verify web apps
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Find, compare, and synthesize
A workflow for agents that gather sources, compare claims, summarize long material, and draft useful research briefs.
Alternative shortlist
Similar skills that may fit this task.
Generate original one-ink or controlled two-ink editorial images from any theme, sentence, article idea, object, or reference photo. Always use this skill when the user asks for 单色海报、双色印刷、单色调视觉、蓝色/绿色孔版印刷、risograph、网点照片、复古或当代编辑排版、zine poster, monochrome editorial poster, duotone print, or asks to use the mono-color style. It uses an adaptive white, gray, or pale-beige substrate, no more than two printing inks, active negative space, terse human language, and strong serif/grotesk/mono typography without making retro styling the default or copying a source composition, wording, logo, or artwork. Produce both the final generation prompt and the generated raster image unless the user explicitly asks for prompt only.
Research the last 30 days across Reddit, X, YouTube, Hacker News, Polymarket, GitHub, and the web, then synthesize a grounded brief for an AI agent.
Academic Research Skills for Claude Code: research → write → review → revise → finalize
A relentless interview to sharpen a plan or design.
--- name: lambda description: AWS Lambda serverless functions for event-driven compute. Use when creating functions, configuring triggers, debugging invocations, optimizing cold starts, setting up event source mappings, or managing layers. last_updated: "2026-01-07" doc_source: https://docs.aws.amazon.com/lambda/latest/dg/ ---
# AWS Lambda
AWS Lambda runs code without provisioning servers. You pay only for compute time consumed. Lambda automatically scales from a few requests per day to thousands per second.
## Table of Contents
- [Core Concepts](#core-concepts) - [Common Patterns](#common-patterns) - [CLI Reference](#cli-reference) - [Best Practices](#best-practices) - [Troubleshooting](#troubleshooting) - [References](#references)
## Core Concepts
### Function
Your code packaged with configuration. Includes runtime, handler, memory, timeout, and IAM role.
### Invocation Types
| Type | Description | Use Case | |------|-------------|----------| | **Synchronous** | Caller waits for response | API Gateway, direct invoke | | **Asynchronous** | Fire and forget | S3, SNS, EventBridge | | **Poll-based** | Lambda polls source | SQS, Kinesis, DynamoDB Streams |
### Execution Environment
Lambda creates execution environments to run your function. Components: - **Cold start**: New environment initialization - **Warm start**: Reusing existing environment - **Handler**: Entry point function - **Context**: Runtime information
### Layers
Reusable packages of libraries, dependencies, or custom runtimes (up to 5 per function).
## Common Patterns
### Create a Python Function
**AWS CLI:**
```bash # Create deployment package zip function.zip lambda_function.py
# Create function aws lambda create-function \ --function-name MyFunction \ --runtime python3.12 \ --role arn:aws:iam::123456789012:role/lambda-role \ --handler lambda_function.handler \ --zip-file fileb://function.zip \ --timeout 30 \ --memory-size 256
# Update function code aws lambda update-function-code \ --function-name MyFunction \ --zip-file fileb://function.zip ```
**boto3:**
```python import boto3 import zipfile import io
lambda_client = boto3.client('lambda')
# Create zip in memory zip_buffer = io.BytesIO() with zipfile.ZipFile(zip_buffer, 'w') as zf: zf.writestr('lambda_function.py', ''' def handler(event, context): return {"statusCode": 200, "body": "Hello"} ''') zip_buffer.seek(0)
# Create function lambda_client.create_function( FunctionName='MyFunction', Runtime='python3.12', Role='arn:aws:iam::123456789012:role/lambda-role', Handler='lambda_function.handler', Code={'ZipFile': zip_buffer.read()}, Timeout=30, MemorySize=256 ) ```
### Add S3 Trigger
```bash # Add permission for S3 to invoke Lambda aws lambda add-permission \ --function-name MyFunction \ --statement-id s3-trigger \ --action lambda:InvokeFunction \ --principal s3.amazonaws.com \ --source-arn arn:aws:s3:::my-bucket \ --source-account 123456789012
# Configure S3 notification (see S3 skill) ```
### Add SQS Event Source
```bash aws lambda create-event-source-mapping \ --function-name MyFunction \ --event-source-arn arn:aws:sqs:us-east-1:123456789012:my-queue \ --batch-size 10 \ --maximum-batching-window-in-seconds 5 ```
### Environment Variables
```bash aws lambda update-function-configuration \ --function-name MyFunction \ --environment "Variables={DB_HOST=mydb.cluster-xyz.us-east-1.rds.amazonaws.com,LOG_LEVEL=INFO}" ```
### Create and Attach Layer
```bash # Create layer zip -r layer.zip python/
aws lambda publish-layer-version \ --layer-name my-dependencies \ --compatible-runtimes python3.12 \ --zip-file fileb://layer.zip
# Attach to function aws lambda update-function-configuration \ --function-name MyFunction \ --layers arn:aws:lambda:us-east-1:123456789012:layer:my-dependencies:1 ```
### Invoke Function
```bash # Synchronous invoke aws lambda invoke \ --function-name MyFunction \ --payload '{"key": "value"}' \ response.json
# Asynchronous invoke aws lambda invoke \ --function-name MyFunction \ --invocation-type Event \ --payload '{"key": "value"}' \ response.json ```
## CLI Reference
### Function Management
| Command | Description | |---------|-------------| | `aws lambda create-function` | Create new function | | `aws lambda update-function-code` | Update function code | | `aws lambda update-function-configuration` | Update settings | | `aws lambda delete-function` | Delete function | | `aws lambda list-functions` | List all functions | | `aws lambda get-function` | Get function details |
### Invocation
| Command | Description | |---------|-------------| | `aws lambda invoke` | Invoke function | | `aws lambda invoke-async` | Async invoke (deprecated) |
### Event Sources
| Command | Description | |---------|-------------| | `aws lambda create-event-source-mapping` | Add event source | | `aws lambda list-event-source-mappings` | List mappings | | `aws lambda update-event-source-mapping` | Update mapping | | `aws lambda delete-event-source-mapping` | Remove mapping |
### Permissions
| Command | Description | |---------|-------------| | `aws lambda add-permission` | Add resource-based policy | | `aws lambda remove-permission` | Remove permission | | `aws lambda get-policy` | View resource policy |
## Best Practices
### Performance
- **Right-size memory**: More memory = more CPU = faster execution - **Minimize cold starts**: Keep functions warm, use Provisioned Concurrency - **Optimize package size**: Smaller packages deploy faster - **Use layers** for shared dependencies - **Initialize outside handler**: Reuse connections across invocations
```python # GOOD: Initialize outside handler import boto3 dynamodb = boto3.resource('dynamodb') table = dynamodb.Table('MyTable')
def handler(event, context): # Reuses existing connection return table.get_item(Key={'id': event['id']}) ```
### Security
- **Least privilege IAM roles** — only grant needed permissions - **Use Secrets Manager** for sensitive data - **Enable VPC** only if needed (adds latency) - **Encrypt environment variables** with KMS
### Cost Optimization
- **Set appropriate timeout** — don't use max 15 minutes unnecessarily - **Use ARM architecture** (Graviton2) for 34% better price/performance - **Batch process** where possible - **Use Reserved Concurrency** to limit costs
### Reliability
- **Configure DLQ** for async invocations - **Handle retries** — async events retry twice - **Make handlers idempotent** - **Use structured logging**
## Troubleshooting
### Timeout Errors
**Symptom:** `Task timed out after X seconds`
**Causes:** - Function takes longer than timeout - Network call to unreachable resource - VPC configuration issues
**Debug:**
```bash # Check function configuration aws lambda get-function-configuration \ --function-name MyFunction \ --query "Timeout"
# Increase timeout aws lambda update-function-configuration \ --function-name MyFunction \ --timeout 60 ```
### Out of Memory
**Symptom:** Function crashes with memory error
**Fix:**
```bash aws lambda update-function-configuration \ --function-name MyFunction \ --memory-size 512 ```
### Cold Start Latency
**Causes:** - Large deployment package - VPC configuration - Many dependencies to load
**Solutions:** - Use Provisioned Concurrency - Reduce package size - Use layers for dependencies - Consider Graviton2 (ARM)
```bash # Enable Provisioned Concurrency aws lambda put-provisioned-concurrency-config \ --function-name MyFunction \ --qualifier LIVE \ --provisioned-concurrent-executions 5 ```
### Permission Denied
**Symptom:** `AccessDeniedException`
**Debug:**
```bash # Check execution role aws lambda get-function-configuration \ --function-name MyFunction \ --query "Role"
# Check role policies aws iam list-attached-role-policies \ --role-name lambda-role ```
### VPC Connectivity Issues
**Symptom:** Cannot reach internet or AWS services
**Causes:** - No NAT Gateway for internet access - Missing VPC endpoint for AWS services - Security group blocking outbound
**Solutions:** - Add NAT Gateway for internet - Add VPC endpoints for AWS services - Check security group rules
## References
- [Lambda Developer Guide](https://docs.aws.amazon.com/lambda/latest/dg/) - [Lambda API Reference](https://docs.aws.amazon.com/lambda/latest/api/) - [Lambda CLI Reference](https://docs.aws.amazon.com/cli/latest/reference/lambda/) - [boto3 Lambda](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/lambda.html)
Source provenance
Decision snapshot
1,150 GitHub stars
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for lambda, ready for a manual X post.
lambda: AWS Lambda serverless functions for event-driven compute. Use when creating functions, config... 1.1K stars https://www.openagentskill.com/skills/itsmostafa-lambda?ref=x
Listing + install path for lambda: https://www.openagentskill.com/skills/itsmostafa-lambda?ref=x Install: npx skills add itsmostafa/aws-agent-skills --skill lambda
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to itsmostafa but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/itsmostafa-lambda?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/itsmostafa-lambda?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/itsmostafa-lambda/audit)
[](https://www.openagentskill.com/skills/itsmostafa-lambda?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)itsmostafa
@itsmostafa
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
mono-color
Generate original one-ink or controlled two-ink editorial images from any theme, sentence, article idea, object, or reference photo. Always use this skill when the user asks for 单色海报、双色印刷、单色调视觉、蓝色/绿色孔版印刷、risograph、网点照片、复古或当代编辑排版、zine poster, monochrome editorial poster, duotone print, or asks to use the mono-color style. It uses an adaptive white, gray, or pale-beige substrate, no more than two printing inks, active negative space, terse human language, and strong serif/grotesk/mono typography without making retro styling the default or copying a source composition, wording, logo, or artwork. Produce both the final generation prompt and the generated raster image unless the user explicitly asks for prompt only.
1.9K StarsLast30days Skill
Research the last 30 days across Reddit, X, YouTube, Hacker News, Polymarket, GitHub, and the web, then synthesize a grounded brief for an AI agent.
61.0K StarsAcademic Research Skills
Academic Research Skills for Claude Code: research → write → review → revise → finalize
38.4K Starsgrill-me
A relentless interview to sharpen a plan or design.
256.3K StarsPermission surface
shell or command execution, filesystem or document access
Agent outcomes
No agent outcome data yet
Docs
Usable metadata, review docs
Risk summary
Install readiness