Install any skill in seconds. Free to start, no credit card required.
Get Started Free →You are an expert in AWS Lambda, Amazon's serverless compute service. You help developers build event-driven applications using Lambda functions triggered by API Gateway, S3 events, SQS queues, DynamoDB streams, and scheduled events — with support for Node.js, Python, Go, Rust, Java, and container images, automatic scaling from zero to thousands of concurrent executions, and pay-per-invocation pricing.
.claude/skills/terminalskills-aws-lambda/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-08 | ✗→✓ | ▲ Improved | 379% | 0% |
| case-02 | ✓→✓ | = Same ✓ | 64% | 0% |
| case-03 | ✓→✓ | = Same ✓ | 250% | 0% |
| case-04 | ✓→✓ | = Same ✓ | 177% | 0% |
| case-05 | ✓→✓ | = Same ✓ | 163% | 0% |
You are an expert in AWS Lambda, Amazon's serverless compute service. You help developers build event-driven applications using Lambda functions triggered by API Gateway, S3 events, SQS queues, DynamoDB streams, and scheduled events — with support for Node.js, Python, Go, Rust, Java, and container images, automatic scaling from zero to thousands of concurrent executions, and pay-per-invocation pricing.
typescript// handler.ts — API Gateway Lambda (Node.js/TypeScript) import { APIGatewayProxyHandlerV2 } from "aws-lambda"; export const handler: APIGatewayProxyHandlerV2 = async (event) => { const { httpMethod, pathParameters, body, queryStringParameters } = event; try { switch (httpMethod) { case "GET": { const id = pathParameters?.id; if (id) { const item = await db.get({ TableName: "users", Key: { id } }); return { statusCode: 200, body: JSON.stringify(item.Item) }; } const items = await db.scan({ TableName: "users" }); return { statusCode: 200, body: JSON.stringify(items.Items) }; } case "POST": { const data = JSON.parse(body || "{}"); await db.put({ TableName: "users", Item: { id: uuid(), ...data } }); return { statusCode: 201, body: JSON.stringify({ created: true }) }; } default: return { statusCode: 405, body: "Method not allowed" }; } } catch (error) { console.error(error); return { statusCode: 500, body: JSON.stringify({ error: "Internal error" }) }; } };
python# handler.py — S3 event trigger (Python) import json import boto3 from PIL import Image import io s3 = boto3.client("s3") def handler(event, context): """Process uploaded images: resize and create thumbnails. Triggered by S3 PutObject events on the uploads/ prefix. """ for record in event["Records"]: bucket = record["s3"]["bucket"]["name"] key = record["s3"]["object"]["key"] # Download original response = s3.get_object(Bucket=bucket, Key=key) image = Image.open(io.BytesIO(response["Body"].read())) # Create thumbnail image.thumbnail((300, 300)) buffer = io.BytesIO() image.save(buffer, format="JPEG", quality=85) buffer.seek(0) # Upload thumbnail thumb_key = key.replace("uploads/", "thumbnails/") s3.put_object( Bucket=bucket, Key=thumb_key, Body=buffer, ContentType="image/jpeg", ) return {"statusCode": 200, "processed": len(event["Records"])}
yaml# template.yaml — AWS SAM template AWSTemplateFormatVersion: "2010-09-09" Transform: AWS::Serverless-2016-10-31 Globals: Function: Runtime: nodejs20.x Timeout: 30 MemorySize: 256 Environment: Variables: TABLE_NAME: !Ref UsersTable Resources: ApiFunction: Type: AWS::Serverless::Function Properties: Handler: dist/handler.handler Events: GetUsers: Type: Api Properties: Path: /users Method: get CreateUser: Type: Api Properties: Path: /users Method: post Policies: - DynamoDBCrudPolicy: TableName: !Ref UsersTable ImageProcessor: Type: AWS::Serverless::Function Properties: Handler: handler.handler Runtime: python3.12 MemorySize: 1024 Timeout: 60 Events: S3Upload: Type: S3 Properties: Bucket: !Ref UploadsBucket Events: s3:ObjectCreated:* Filter: S3Key: Rules: - Name: prefix Value: uploads/ Policies: - S3CrudPolicy: BucketName: !Ref UploadsBucket UsersTable: Type: AWS::DynamoDB::Table Properties: TableName: users BillingMode: PAY_PER_REQUEST AttributeDefinitions: - AttributeName: id AttributeType: S KeySchema: - AttributeName: id KeyType: HASH UploadsBucket: Type: AWS::S3::Bucket
bash# Deploy with SAM sam build sam deploy --guided # First time sam deploy # Subsequent sam local start-api # Local development sam logs --tail --name ApiFunction # Stream logs
bash# SAM CLI brew install aws-sam-cli # Or: pip install aws-sam-cli # AWS CLI brew install awscli aws configure # Set credentials
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→fail | 12,624 | 11,306 | -10% | 1 | 1 | 0% | 2,915 | 3,962 | +36% | 0 | 0 | — |
case-02 | pass→pass | 12,618 | 26,784 | +112% | 1 | 1 | 0% | 2,573 | 4,209 | +64% | 0 | 0 | — |
case-03 | pass→pass | 3,399 | 3,255 | -4% | 1 | 1 | 0% | 598 | 2,095 | +250% | 0 | 0 | — |
case-04 | pass→pass | 6,420 | 5,944 | -7% | 1 | 1 | 0% | 951 | 2,637 | +177% | 0 | 0 | — |
case-05 | pass→pass | 4,545 | 5,014 | +10% | 1 | 1 | 0% | 940 | 2,469 | +163% | 0 | 0 | — |
case-06 | pass→pass | 5,823 | 4,967 | -15% | 1 | 1 | 0% | 1,179 | 2,481 | +110% | 0 | 0 | — |
case-07 | pass→pass | 3,418 | 3,505 | +3% | 1 | 1 | 0% | 572 | 2,048 | +258% | 0 | 0 | — |
case-08 | fail→pass | 2,880 | 4,040 | +40% | 1 | 1 | 0% | 471 | 2,254 | +379% | 0 | 0 | — |
case-09 | pass→pass | 2,860 | 3,299 | +15% | 1 | 1 | 0% | 500 | 2,019 | +304% | 0 | 0 | — |
case-10 | pass→pass | 7,057 | 7,479 | +6% | 1 | 1 | 0% | 1,279 | 2,960 | +131% | 0 | 0 | — |
case-11 | pass→pass | 6,125 | 7,203 | +18% | 1 | 1 | 0% | 991 | 2,778 | +180% | 0 | 0 | — |
case-12 | pass→pass | 8,845 | 11,805 | +33% | 1 | 1 | 0% | 1,479 | 3,660 | +147% | 0 | 0 | — |
case-13 | pass→pass | 6,176 | 8,329 | +35% | 1 | 1 | 0% | 1,014 | 3,059 | +202% | 0 | 0 | — |
case-14 | pass→pass | 4,759 | 8,372 | +76% | 1 | 1 | 0% | 776 | 2,985 | +285% | 0 | 0 | — |
case-15 | pass→pass | 4,497 | 8,599 | +91% | 1 | 1 | 0% | 806 | 3,116 | +287% | 0 | 0 | — |
case-16 | pass→pass | 6,975 | 9,267 | +33% | 1 | 1 | 0% | 1,253 | 3,254 | +160% | 0 | 0 | — |
case-17 | pass→pass | 8,188 | 11,264 | +38% | 1 | 1 | 0% | 1,537 | 3,547 | +131% | 0 | 0 | — |
case-18 | pass→pass | 11,847 | 10,708 | -10% | 1 | 1 | 0% | 2,290 | 3,749 | +64% | 0 | 0 | — |
case-19 | pass→pass | 3,714 | 3,624 | -2% | 1 | 1 | 0% | 620 | 2,175 | +251% | 0 | 0 | — |
case-20 | pass→pass | 9,312 | 10,088 | +8% | 1 | 1 | 0% | 1,736 | 3,636 | +109% | 0 | 0 | — |
case-21 | pass→pass | 8,319 | 6,306 | -24% | 1 | 1 | 0% | 1,697 | 2,845 | +68% | 0 | 0 | — |
case-22 | pass→pass | 14,356 | 12,435 | -13% | 1 | 1 | 0% | 2,881 | 4,060 | +41% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +5 percentage points is the difference between those two pass rates over the 22 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.