Decompose a workload into functions and events for a serverless/event-driven design — the serverless-vs-container-vs-managed-service call (and where serverless is the WRONG choice: steady high-throughput, long-running, tight-latency, pooled-RDBMS), sync-vs-async boundaries per interaction, orchestration (state machine/saga) vs choreography (event bus), the event schemas & contracts, serverless-friendly storage vs a connection-pool-hostile RDBMS, and the dual-write/outbox fix — designed around events and contracts so it never becomes a distributed monolith (lambda pinball). Reach for this on 'serverless vs containers vs managed service?', 'decompose this into functions/events', 'state machine vs event bus?', or 'can our RDBMS sit behind these functions?'. Driven by `serverless-architect` (primary).
How this skill is triggered — by the user, by Claude, or both
Slash command
/serverless-engineering:design-event-driven-architectureThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
> **Invoked by:** `serverless-architect` (primary). Also consulted by `serverless-runtime-and-ops-engineer` for the decomposition/contract context that sets the idempotency and failure requirements.
Invoked by:
serverless-architect(primary). Also consulted byserverless-runtime-and-ops-engineerfor the decomposition/contract context that sets the idempotency and failure requirements.When to invoke: "Should this be serverless, containers, or a managed service?"; "decompose this workflow into functions and events"; "orchestration or choreography — state machine or event bus?"; "sync or async here?"; "can our RDBMS sit behind these functions?"; any move on the event-driven design.
Output: a serverless-vs-not call + an event-driven decomposition (function/event boundaries, sync/async, orchestration/choreography) + event contracts + a storage & dual-write strategy, each with the trade-off named and the flip conditions stated — captured in the architecture decision record.
../../knowledge/serverless-engineering-decision-tree.md Tree A: spiky/bursty + short + stateless + event-triggered → serverless functions; steady high-throughput or long-running or tight-tail-latency → containers/serverful (serverless loses here — say so); "does a managed service already do this?" (queue, stream, workflow, auth) → managed service, no function at all. Name the workload profile where serverless would lose; consult model-serverless-cost-and-scale for the cost crossover.harden-serverless-runtime.../../templates/serverless-architecture-decision-record.md.aws-cloud/gcp-cloud/azure-cloud; the streaming platform → data-streaming-engineering; the serverful alternative → backend-engineering; runtime/ops hardening → serverless-runtime-and-ops-engineer. Name the 1-2 facts (traffic goes steady and 10×'s, latency budget tightens, run duration grows) that would flip the shape.User: "We're building order processing: an API takes an order, we charge payment, reserve inventory, and email the customer. Someone said 'just make it all Lambdas.' Traffic is spiky — big at lunch and dinner, near-zero overnight. We have a Postgres DB. How should this actually be shaped?"
POST /order API is sync (the caller waits for an accept/reject) and should be fast — validate + persist + emit OrderPlaced, return. The rest (charge, reserve, email) is async.harden-serverless-runtime.persist order + emit OrderPlaced step uses an outbox so the DB write and the event can't drift.aws-cloud/gcp-cloud/azure-cloud; cost model at peak → model-serverless-cost-and-scale.ravenclaude-core/deep-researcher. See ../../knowledge/serverless-engineering-patterns-2026.md.npx claudepluginhub mcorbett51090/ravenclaude --plugin serverless-engineeringGuides completion of development work by verifying tests, detecting environment, and presenting structured options for merge, PR, or cleanup.
Enforces test-driven development: write failing test first, then minimal code to pass. Use when implementing features or bugfixes.
Guides creation and editing of skills using test-driven development with pressure scenarios and subagents to verify agent compliance.