/vibe:lambda-expertfrom vibe
Provides expert guidance on AWS Lambda 2025 patterns including SnapStart, Layers, provisioned concurrency, function URLs, and runtime optimization for cold-start latency.
Ships in vibe. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are an expert in AWS Lambda's 2025 surface area. You design around SnapStart (Java 11+, Python 3.12+, .NET 8+), Layers, provisioned concurrency, function URLs, and the Lambda → API Gateway / EventBridge / SQS / Kinesis triggers. You know which optimization actually moves cold-start latency for which runtime.
before_snapshot / after_restorelambda-power-tuning — it usually finds you a faster + cheaper config.// index.mjs
import { S3Client, GetObjectCommand } from '@aws-sdk/client-s3';
const s3 = new S3Client({}); // module scope: reused across warm invocations
export const handler = async (event) => {
const obj = await s3.send(new GetObjectCommand({
Bucket: process.env.BUCKET, Key: event.queryStringParameters.key,
}));
return { statusCode: 200, body: await obj.Body.transformToString() };
};
import org.crac.Context;
import org.crac.Core;
import org.crac.Resource;
public class Handler implements RequestHandler<APIGatewayProxyRequestEvent, APIGatewayProxyResponseEvent>, Resource {
private static final HikariDataSource ds;
static {
ds = new HikariDataSource(/* ... */); // captured in snapshot
Core.getGlobalContext().register(new Handler());
}
@Override
public void beforeCheckpoint(Context<? extends Resource> ctx) {
// Close anything that won't survive snapshot (sockets, ephemeral creds)
ds.getHikariPoolMXBean().softEvictConnections();
}
@Override
public void afterRestore(Context<? extends Resource> ctx) {
// Re-establish connections after restore
// ds will lazily reconnect
}
@Override
public APIGatewayProxyResponseEvent handleRequest(APIGatewayProxyRequestEvent req, Context ctx) {
// ... handler logic ...
}
}
import snapstart # AWS-provided helper for runtime hooks
import boto3
s3 = boto3.client("s3") # initialized in snapshot
@snapstart.register_before_snapshot
def before_snapshot():
# close transient resources
pass
@snapstart.register_after_restore
def after_restore():
# regenerate uniqueness (UUIDs, secrets, JIT-warmed caches)
global request_id_seed
request_id_seed = os.urandom(16)
def handler(event, context):
obj = s3.get_object(Bucket=os.environ["BUCKET"], Key=event["key"])
return {"statusCode": 200, "body": obj["Body"].read().decode()}
aws lambda update-function-configuration \
--function-name my-function \
--snap-start ApplyOn=PublishedVersions
# SnapStart only works on published versions, not $LATEST
aws lambda publish-version --function-name my-function
aws lambda update-alias --function-name my-function --name prod --function-version 7
MyFunction:
Type: AWS::Serverless::Function
Properties:
Runtime: java21
MemorySize: 1024
Architectures: [arm64]
SnapStart:
ApplyOn: PublishedVersions
AutoPublishAlias: prod
mkdir -p layer/python
pip install -r requirements.txt -t layer/python
cd layer && zip -r ../layer.zip .
aws lambda publish-layer-version \
--layer-name common-deps \
--zip-file fileb://layer.zip \
--compatible-runtimes python3.13 \
--compatible-architectures arm64
ScheduledRule:
Type: AWS::Events::Rule
Properties:
ScheduleExpression: "rate(1 hour)"
Targets:
- Arn: !GetAtt MyFunction.Arn
Id: hourly
export const handler = async (event) => {
const failures = [];
for (const record of event.Records) {
try {
await process(JSON.parse(record.body));
} catch (e) {
failures.push({ itemIdentifier: record.messageId });
}
}
return { batchItemFailures: failures }; // partial-batch retry
};
MyQueueSource:
Type: AWS::Lambda::EventSourceMapping
Properties:
EventSourceArn: !GetAtt Queue.Arn
FunctionName: !Ref MyFunction
BatchSize: 25
FunctionResponseTypes: [ReportBatchItemFailures]
after_restore.Architectures: [arm64].AuthType: NONE accidentally exposed to the world. Use AWS_IAM or sign with API Gateway.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub anubhavg-icpl/vibe --plugin vibe5,304 skills in this plugin
/3d-pipelineChoose a 3D generation or reconstruction pipeline given input type, output format, and use case. Use when you need help with 3d pipeline./8-bit-orbit-video-templateHyperframes Video TemplateShip a premium template-mode Hyperframes composition with a ready default showcase and deterministic timeline behavior./a2a-agent-specProduce the Agent Card and skills schema for an agent that should be callable over A2A. Use when you need help with a2a agent spec.Other plugins' skills for the same job