amazon-location-servic…
Integrates Amazon Location Service APIs for AWS applications. Use this skill when users want to add maps (interactive MapLibre or…
Build resilient, long-running, multi-step applications with AWS Lambda durable functions with automatic state persistence, retry logic, and orchestration for long-running executions. Covers the critical replay model, step operations, wait/callback patterns, error handling with
Claude Code
$ npx -y skills add awslabs/agent-plugins --skill aws-lambda-durable-functions --agent claude-code
Codex
$ npx skills add awslabs/agent-plugins --skill aws-lambda-durable-functions -a codex -y
Cursor
$ npx skills add awslabs/agent-plugins --skill aws-lambda-durable-functions -a cursor -y
Gemini CLI
$ npx skills add awslabs/agent-plugins --skill aws-lambda-durable-functions -a gemini-cli -y
GitHub Copilot
$ npx skills add awslabs/agent-plugins --skill aws-lambda-durable-functions -a github-copilot -y
OpenCode
$ npx skills add awslabs/agent-plugins --skill aws-lambda-durable-functions -a opencode -y
Windsurf
$ npx skills add awslabs/agent-plugins --skill aws-lambda-durable-functions -a windsurf -y
name: aws-lambda-durable-functions description: > Build resilient, long-running, multi-step applications with AWS Lambda durable functions with automatic state persistence, retry logic, and orchestration for long-running executions. Covers the critical replay model, step operations, wait/callback patterns, error handling with saga pattern, testing with LocalDurableTestRunner. Triggers on phrases like: lambda durable functions, workflow orchestration, state machines, retry/checkpoint patterns, long-running stateful Lambda functions, saga pattern, human-in-the-loop callbacks, and reliable serverless applications.
Build resilient multi-step applications and AI workflows that can execute for up to 1 year while maintaining reliable progress despite interruptions.
Before using AWS Lambda durable functions, verify:
1. **AWS CLI** is installed (2.33.22 or higher) and configured:
aws --version aws sts get-caller-identity
2. **Runtime environment** is ready:
3. **Deployment capability** exists (one of):
Default: TypeScript
Override syntax:
When not specified, ALWAYS use TypeScript
Default: CDK
Override syntax:
When not specified, ALWAYS use CDK
**For TypeScript/JavaScript:**
npm install @aws/durable-execution-sdk-js npm install --save-dev @aws/durable-execution-sdk-js-testing
**For Python:**
pip install aws-durable-execution-sdk-python pip install aws-durable-execution-sdk-python-testing
Load the appropriate reference file based on what the user is working on:
**TypeScript:**
import { withDurableExecution, DurableContext } from '@aws/durable-execution-sdk-js';
export const handler = withDurableExecution(async (event, context: DurableContext) => {
const result = await context.step('process', async () => processData(event));
return result;
});**Python:**
from aws_durable_execution_sdk_python import durable_execution, DurableContext
@durable_execution
def handler(event: dict, context: DurableContext) -> dict:
result = context.step(lambda _: process_data(event), name='process')
return result1. **All non-deterministic code MUST be in steps** (Date.now, Math.random, API calls) 2. **Cannot nest durable operations** - use `runInChildContext` to group operations 3. **Closure mutations are lost on replay** - return values from steps 4. **Side effects outside steps repeat** - use `context.logger` (replay-aware)
The Python SDK differs from TypeScript in several key areas:
Integrates Amazon Location Service APIs for AWS applications. Use this skill when users want to add maps (interactive MapLibre or…
Build and deploy full-stack web and mobile apps with AWS Amplify Gen2
Build, manage, and operate APIs with Amazon API Gateway (REST, HTTP, and WebSocket). Triggers on phrases like: API Gateway, REST…
Evaluate, configure, and migrate workloads to AWS Lambda Managed Instances (LMI). Triggers on: Lambda Managed Instances, LMI,…
Build, run, debug, and operate applications on AWS Lambda MicroVMs — Firecracker-isolated, snapshot-resumable serverless compute…
Design, build, deploy, test, and debug serverless applications with AWS Lambda. Triggers on phrases like: Lambda function, event…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.