cloud-native-serverless-orchestration
Use when the user asks about AWS Step Functions, Amazon States Language (ASL) state machines, orchestrating Lambdas, Standard vs Express workflows…
от j4flmao★ 47 звёзд на GitHub
Установить cloud-native-serverless-orchestration в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Serverless Orchestration with AWS Step Functions
Purpose
Move workflow state, retries, branching, and compensation out of Lambda code into a declarative state machine. Functions stay small and stateless; Step Functions records every transition, so failures are visible and recoverable.
Agent Protocol
Trigger
"step functions", "state machine", "amazon states language", "ASL", "orchestrate lambdas", "express workflow", "distributed map", "saga", "retry catch workflow".
Input Context
- Steps, their side effects, and which are idempotent.
- Duration and volume (executions/s), need for exactly-once vs at-least-once.
- Human approval or external callbacks.
Output Artifact
ASL definition (JSON) plus IaC wiring. No file unless requested.
Response Format
Workflow type: {Standard|Express (sync|async)} (why)
States: {list}
Error handling: {Retry policies, Catch targets, compensation}
Integrations: {optimized service integrations / Lambda tasks}
Completion Criteria
- Every Task has Retry for transient errors and Catch for terminal ones.
- Workflow type chosen from duration/volume/semantics table.
- Compensating steps defined for any multi-step side effect (saga).
Standard vs Express
| Standard | Express | |
|---|---|---|
| Max duration | 1 year | 5 minutes |
| Execution semantics | Exactly-once per state transition | At-least-once (async) / at-most-once (sync) |
| Pricing | Per state transition | Per request + duration/memory |
| History | Visual execution history, 90 days | CloudWatch Logs only |
Callback (.waitForTaskToken) and .sync job patterns |
Supported | Not supported |
| Fit | Business processes, human approval, long jobs | High-volume event processing, IoT, streaming transforms |
State Types
Task, Choice, Parallel, Map (inline or Distributed mode for up to 10,000 parallel child executions over S3 data), Wait, Pass, Succeed, Fail.
Since late 2024, state machines can set "QueryLanguage": "JSONata" and use Arguments/Output with JSONata expressions instead of JSONPath (InputPath, Parameters, ResultSelector, ResultPath, OutputPath). Pick one per state machine for readability.
Order Saga Example (JSONPath)
{
"Comment": "Order saga with compensation",
"StartAt": "ReserveInventory",
"States": {
"ReserveInventory": {
"Type": "Task",
"Resource": "arn:aws:states:::lambda:invoke",
"Parameters": { "FunctionName": "${ReserveFn}", "Payload.$": "$" },
"ResultSelector": { "reservationId.$": "$.Payload.reservationId" },
"ResultPath": "$.inventory",
"Retry": [{
"ErrorEquals": ["Lambda.ServiceException", "Lambda.TooManyRequestsException", "States.Timeout"],
"IntervalSeconds": 2, "MaxAttempts": 3, "BackoffRate": 2.0, "JitterStrategy": "FULL"
}],
"Catch": [{ "ErrorEquals": ["States.ALL"], "ResultPath": "$.error", "Next": "OrderFailed" }],
"Next": "ChargePayment"
},
"ChargePayment": {
"Type": "Task",
"Resource": "arn:aws:states:::lambda:invoke",
"Parameters": { "FunctionName": "${ChargeFn}", "Payload.$": "$" },
"ResultPath": "$.payment",
"Retry": [{ "ErrorEquals": ["Lambda.TooManyRequestsException"], "MaxAttempts": 3, "BackoffRate": 2.0 }],
"Catch": [{ "ErrorEquals": ["States.ALL"], "ResultPath": "$.error", "Next": "ReleaseInventory" }],
"Next": "RecordOrder"
},
"RecordOrder": {
"Type": "Task",
"Resource": "arn:aws:states:::dynamodb:putItem",
"Parameters": {
"TableName": "${OrdersTable}",
"Item": { "pk": { "S.$": "$.orderId" }, "status": { "S": "CONFIRMED" } }
},
"ResultPath": null,
"End": true
},
"ReleaseInventory": {
"Type": "Task",
"Resource": "arn:aws:states:::lambda:invoke",
"Parameters": { "FunctionName": "${ReleaseFn}", "Payload.$": "$" },
"ResultPath": null,
"Retry": [{ "ErrorEquals": ["States.ALL"], "MaxAttempts": 5, "BackoffRate": 2.0 }],
"Next": "OrderFailed"
},
"OrderFailed": { "Type": "Fail", "Error": "OrderFailed", "Cause": "See execution history" }
}
}
Notes:
RecordOrdercalls DynamoDB directly (optimized integration) — no Lambda needed for simple service calls.ResultPath: nulldiscards a task's result and keeps the input.- Retry
IntervalSecondsdefault 1,MaxAttemptsdefault 3,BackoffRatedefault 2.0;MaxDelaySecondscaps backoff. - There is no built-in dead-letter queue: route failures with
Catchto a state that sends to SQS/SNS, and alarm onExecutionsFailed.
Integration Patterns
| Suffix | Behaviour | Example |
|---|---|---|
| (none) Request-Response | Call API, continue immediately | arn:aws:states:::sns:publish |
.sync |
Start job and wait for completion | arn:aws:states:::ecs:runTask.sync, glue:startJobRun.sync |
.waitForTaskToken |
Pause until SendTaskSuccess/Failure with the token |
Human approval email, third-p |
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл cloud-native-serverless-orchestration?
Use when the user asks about AWS Step Functions, Amazon States Language (ASL) state machines, orchestrating Lambdas, Standard vs Express workflows, Distributed Map, Retry/Catch, or a saga with Step Functions. Produces valid ASL with error handling and direct service integrations. Not for Azure Durable Functions (use cloud-native-azure-functions) or Airflow (use data-airflow-dbt-orchestration).
Как установить скилл cloud-native-serverless-orchestration?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл cloud-native-serverless-orchestration запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…