← 返回 Skills 市场
clawkk

Faas

作者 clawkk · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
138
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install faas
功能描述
Deep workflow for serverless workloads—event sources, IAM, cold start/latency, limits, observability, security, cost, and deployment patterns (functions, con...
使用说明 (SKILL.md)

Serverless (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

  • Memory tuning: CPU scales with memory on many clouds—profile
  • Provisioned concurrency / min instances for critical sync paths—cost trade-off
  • Connection reuse (HTTP, DB) outside handler global where safe
  • Cold start: trim dependencies, ARM Graviton if supported, lazy init discipline
  • Timeouts set below client expectations; avoid infinite hangs

Concurrency

  • Reserved concurrency vs account limits; avoid starving other functions

Exit condition: Load test or trace evidence for p95/p99; documented limits and mitigations.


Stage 5: Observability & Operations

Goal: Debuggable serverless—correlation across async hops.

Practices

  • Structured logging with request IDs; PII redaction
  • Tracing (X-Ray, OpenTelemetry) across queue → function → DB
  • Metrics: throttles, errors, duration, iterator age for streams
  • Alarms on error rate, DLQ depth, duration approaching timeout

Runbooks

  • Replay DLQ safely (idempotency!)
  • Blue/green or canary if using traffic shifting features

Exit condition: Dashboard + alerts + on-call steps for top failure modes.


Stage 6: Cost & Governance

Goal: Predictable spend and guardrails.

Levers

  • Right-size memory; eliminate unnecessary VPC; async where sync not needed
  • Recursive patterns and accidental infinite loops—billing alerts
  • Tagging for cost allocation; budgets and anomaly detection

Governance

  • Approved runtimes; dependency scanning; org-level deny policies for public buckets, etc.

Final Review Checklist

  • Workload fit validated; boundaries documented
  • Idempotency + DLQ + replay story clear
  • IAM minimal; network path understood
  • Latency/cold start addressed for critical paths
  • Observability and alarms in place
  • Cost and recursion risks acknowledged

Tips for Effective Guidance

  • Always state at-least-once and what breaks if handlers are not idempotent.
  • When user says “Lambda slow,” separate cold start vs downstream vs code.
  • Prefer Step Functions / workflows when logic is long-running branching—not nested Lambdas calling Lambdas ad hoc.

Handling Deviations

  • “We only have one function”: still document IAM, retries, and logs—future you will thank you.
  • Edge workers: emphasize CPU time limits, geography, and cache semantics.
安全使用建议
This skill is a text-only workflow for designing and debugging serverless systems and appears internally consistent. It does not ask for credentials or install code itself. Before you act on its recommendations, be cautious when: (1) granting real cloud credentials or IAM permissions—prefer least-privilege short-lived tokens and review policies before applying them; (2) running any CLI/automation commands the workflow suggests—review commands for scope and destination; and (3) sharing logs or config that may contain secrets or PII. If you later use follow-up code or tooling based on these recommendations, re-evaluate that code's install and env requirements separately.
功能分析
Type: OpenClaw Skill Name: faas Version: 1.0.0 The skill bundle provides a structured architectural workflow for designing and debugging serverless (FaaS) workloads. The instructions in SKILL.md focus on industry best practices such as least-privilege IAM, idempotency, and observability, with no evidence of malicious intent, data exfiltration, or prompt injection.
能力评估
Purpose & Capability
Name/description (serverless deep workflow) match the SKILL.md content. The guidance covers event sources, IAM, networking, observability, costs, and deployment patterns — all expected for a serverless design/debugging workflow. There are no unrelated resource requests (no cloud creds, binaries, or install steps).
Instruction Scope
SKILL.md is a focused six-stage workflow and checklist. It does not instruct the agent to read local files, environment variables, system configuration, or to transmit data to external endpoints. Mentions of IAM/KMS/roles are contextually appropriate guidance rather than requests for secrets.
Install Mechanism
No install spec and no code files are present (instruction-only). This minimizes risk from on-disk code or external downloads.
Credentials
The skill declares no required environment variables, credentials, or config paths. Discussion of permissions and KMS is advisory; nothing in the skill asks for unrelated secrets or broad access.
Persistence & Privilege
always is false and there is no install behavior that would persist or modify other skills or system-wide settings. Autonomous invocation is allowed (platform default) but not combined with other risky attributes.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install faas
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /faas 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the faas skill: deep workflow for designing and debugging serverless workloads on Lambda, Cloud Functions, Azure Functions, and edge workers. - Guides users through six stages: workload fit, event triggers, IAM/networking, runtime performance, observability, and cost/governance. - Includes explicit trade-off discussions (e.g., simplicity vs cold starts, sync vs async, least privilege IAM). - Provides practical heuristics, exit conditions, and review checklists for each workflow stage. - Offers troubleshooting triggers for common serverless challenges such as cold starts, IAM errors, cost spikes, and deployment failures.
元数据
Slug faas
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Faas 是什么?

Deep workflow for serverless workloads—event sources, IAM, cold start/latency, limits, observability, security, cost, and deployment patterns (functions, con... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 138 次。

如何安装 Faas?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install faas」即可一键安装,无需额外配置。

Faas 是免费的吗?

是的,Faas 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Faas 支持哪些平台?

Faas 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Faas?

由 clawkk(@clawkk)开发并维护,当前版本 v1.0.0。

💬 留言讨论