faas
Deep workflow for serverless workloads—event sources, IAM, cold start/latency, limits, observability, security, cost, and deployment patterns (functions, containers, step functions). Use when designing or debugging Lambda/Cloud Functions/Azure Functions/edge workers.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/clawkk/faasServerless (Deep Workflow)
Serverless shifts complexity to permissions, quotas, observability, and state at the edges. Guide the user to explicit trade-offs: simplicity vs cold starts, synchronous vs async, and least privilege IAM that is still operable.
When to Offer This Workflow
Trigger conditions:
- Choosing between containers vs functions, or decomposing a service into functions
- Cold starts, timeouts, memory sizing, or concurrency throttling
- “Works locally, fails in Lambda”—IAM, VPC, DNS, or env differences
- Cost spikes, recursive invocation, or DLQ backlogs
Initial offer:
Use six stages: (1) workload fit & constraints, (2) triggers & contract, (3) IAM & networking, (4) runtime performance, (5) observability & ops, (6) cost & governance. Confirm cloud and language/runtime.
Stage 1: Workload Fit & Constraints
Goal: Decide if functions are appropriate and what boundaries look like.
Fit Criteria (heuristics)
- Good: event-driven, spiky traffic, small well-defined units, short execution, state externalized
- Hard: long CPU-heavy jobs, large in-memory state, strict low-latency p99 without provisioned concurrency, complex socket protocols
Clarify
- SLAs: sync API vs async pipeline
- Payload limits, execution time cap, tmp storage
- Stateful needs: DB, queue, cache, workflow engine
Exit condition: Clear yes/no/partial with escape hatch (container, batch, ECS/Fargate, Step Functions).
Stage 2: Triggers & Contract
Goal: Define inputs, idempotency, retry semantics, and output side effects.
Map
- Triggers: HTTP, queue, schedule, object storage, streams, webhooks
- At-least-once delivery → idempotent handlers and dedupe keys
- Partial failure in batch: what gets retried vs poison messages
Design
- Event schema versioning; backward-compatible consumers
- DLQ or failed-letter path with replay procedure
Exit condition: Written contract: success criteria, retry policy, dead-letter ownership.
Stage 3: IAM & Networking
Goal: Least privilege that is debuggable; correct VPC when needed.
IAM
- One role per function family; resource-scoped policies
- Avoid
*actions on*resources except where cloud forces it—then narrow ASAP - Cross-account and KMS decrypt permissions explicit
Networking
- Public vs VPC-attached functions (cold start + ENI trade-offs)
- Egress for third-party APIs: NAT costs and security groups / NACLs
- Private API Gateway / internal ALB patterns if applicable
Exit condition: IAM policy review with least privilege checklist; network path diagram for dependencies.
Stage 4: Runtime Performance
Goal: Meet latency and throughput within platform limits.
Tactics
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-clawkk-faas": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
data-move
Deep data migration workflow—scope, mapping, validation, batching and ordering, dual-write and cutover, rollback, and reconciliation. Use when moving tenants, bulk backfills, or changing stores without losing trust in data correctness.
data-model
Deep data modeling workflow—grain, facts and dimensions, keys, slowly changing dimensions, normalization trade-offs, and analytics query patterns. Use when designing warehouse/analytics models or reviewing star/snowflake schemas.
guard
Deep AI safety guardrails workflow—policy definition, input/output filtering, monitoring, escalation, and false-positive handling. Use when reducing harmful outputs, misuse, or policy violations in LLM products.
prompts
Deep prompt engineering workflow—task spec, constraints, examples, evaluation sets, iteration protocol, regression testing, and safety alignment. Use when improving LLM outputs, shipping prompt changes, or building reusable prompt templates.
cost-opt
Cloud cost review: rightsizing, reservations, waste. Use when reducing infra spend.