Token导航 LogoToken导航TokenDH.com
效率需要联网clawhub未标认证来源可访问clear审计通过

skill-107技能 107

Agent Skill

skill-107 用于补充效率相关能力,适合在 OpenClaw 中需要让 Agent 承接效率相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

8,764

周安装

358

GitHub Stars

公开资料未说明

下载量

2,835
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:skill-107(技能 107)
来源仓库:https://github.com/timbohnett-farther/skill-107
安装命令:
openclaw skills install skill-107
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install skill-107

简介

skill-107 提供分布式系统设计的关键模式支持,涵盖复制、分区、共识机制、故障恢复和消息排序。

  • 适用于构建高可用、可扩展的系统架构,常见于后端服务、微服务协调或容错场景。
  • 帮助 Agent 理解并实现可靠的消息传递与状态一致性逻辑。
  • 安装命令为 openclaw skills install skill-107,适用于 OpenClaw 宿主环境。
  • 建议在测试环境验证后再应用于生产系统,确保配置与业务需求匹配。

SKILL.md

Skill 107: Distributed System Patterns & Design

Quality Grade: 94-95/100 Author: OpenClaw Assistant Last Updated: March 2026 Difficulty: Advanced (requires architectural thinking, trade-off analysis)


Overview

Distributed System Patterns are proven solutions to recurring problems in systems that span multiple machines, networks, and datacenters. As systems scale beyond single machines, coordination, fault tolerance, and consistency become non-negotiable.

This skill covers:

  • Replication and consistency models
  • Partitioning strategies and data distribution
  • Consensus algorithms and leader election
  • Failure recovery and resilience patterns
  • Message passing and event ordering
  • Coordination across services

Part 1: Replication Patterns

Master-Slave Replication

How it works:

  • All writes go to master
  • Master propagates to slaves asynchronously
  • Reads can come from slaves (eventual consistency)

Trade-offs:

  • ✓ Scalable reads
  • ✗ Write bottleneck at master
  • ✗ Stale reads from slaves
  • ✗ Slave lag under high load

When to use: Read-heavy workloads, geographic distribution, backup resilience

Peer-to-Peer Replication

How it works:

  • All nodes accept reads and writes
  • Changes propagate peer-to-peer (gossip protocol)
  • Eventual consistency with conflict resolution

Trade-offs:

  • ✓ Scalable both reads and writes
  • ✓ High availability (no single master)
  • ✗ Conflict resolution complexity
  • ✗ Higher network overhead

When to use: High availability needs, offline-first systems, global distribution

Chain Replication

How it works:

  • Writes go to head, flow through chain to tail
  • Tail is readable, provides strong consistency
  • Head can be rebalanced independently

Trade-offs:

  • ✓ Strong consistency
  • ✓ Read tail scalability
  • ✗ Slower writes (latency of chain length)
  • ✗ Head failure needs rebalance

When to use: Consistent reads critical, moderate write frequency


Part 2: Partitioning Strategies

Range-Based Partitioning

Partition 0: UserIDs [0, 1000000)
Partition 1: UserIDs [1000000, 2000000)
Partition 2: UserIDs [2000000, ∞)

Pros: Simple, range queries efficient Cons: Uneven distribution (hotspots), rebalancing expensive

Hash-Based Partitioning

Partition = hash(key) % num_partitions

Pros: Even distribution, fast lookup Cons: Range queries require full scan, rebalancing complex

Consistent Hashing

Nodes arranged in ring, key maps to first node clockwise
Adding/removing node affects only adjacent partitions (~1/N data moves)

Pros: Minimal rebalancing, scalable additions Cons: Uneven distribution without virtual nodes, algorithm complexity


Part 3: Consensus & Coordination

Two-Phase Commit (2PC)

Flow:

  1. Coordinator asks all participants: "Can you commit?"
  2. Participants respond Yes/No (reserve resources)
  3. If all Yes, coordinator tells all: "Commit"
  4. If any No, coordinator tells all: "Abort"

Guarantees: Atomic across all participants Problems: Blocking, not partition-tolerant, slow

Use case: Database transactions across shards

Raft Consensus

Leader election + log replication:

  1. Nodes elect a leader via voting
  2. Leader accepts all writes
  3. Leader replicates log entries to followers
  4. Majority replication = safe to commit

Guarantees: Safety (never lose committed data), liveness (will elect leader) Performance: Lower throughput than 2PC, but more resilient

Use case: Distributed consensus (etcd, Consul), metadata stores

CRDT (Conflict-free Replicated Data Types)

Approach: Assign unique IDs, track causal history Guarantees: Automatic conflict resolution, commutative operations

Example: Vector clocks + last-write-wins for distributed counters

Use case: Collaborative editing, offline-first applications


Part 4: Failure Recovery

Idempotency

Make operations repeatable—if a request is retried, result is same:

def transfer_funds(from_id, to_id, amount, idempotency_key):
    # Check: did we already process this key?
    if idempotency_cache.get(idempotency_key):
        return idempotency_cache[idempotency_key]
    
    result = _do_transfer(from_id, to_id, amount)
    idempotency_cache[idempotency_key] = result
    return result

Key: Idempotency key must be client-chosen and immutable

Retries with Backoff

Attempt 1: immediate
Attempt 2: wait 1s
Attempt 3: wait 2s
Attempt 4: wait 4s
Attempt 5: wait 8s (give up if still failing)

Jitter: add random delay to avoid thundering herd
backoff_time = min(max_backoff, base * (2 ^ attempt)) + random(0, jitter)

Circuit Breaker

State: CLOSED (normal) → OPEN (failing) → HALF_OPEN (testing)

CLOSED → OPEN: When error rate > threshold for duration
OPEN → HALF_OPEN: After cooldown period
HALF_OPEN → CLOSED: If test request succeeds
HALF_OPEN → OPEN: If test request fails

Part 5: Message Passing & Ordering

FIFO Ordering

Messages between two nodes arrive in send order. Implementation: Sequence numbers, TCP guarantees

Causal Ordering

If event A causally precedes B, A's message arrives before B's. Implementation: Vector clocks or version vectors

Total Ordering

All nodes receive all messages in same order. Implementation: Consensus-based broadcast, sequencer node

Trade-offs: Ordering strength vs. latency cost


Conclusion

Distributed system patterns are essential vocabulary for building scalable, reliable systems. Understanding replication, partitioning, consensus, and failure recovery lets you design systems that survive failures, scale horizontally, and provide guarantees users can depend on.

Key Takeaway: Choose patterns based on your actual requirements (CAP theorem), not ideals. Consistency, availability, and partition tolerance—pick two.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

78.28%
按下载量换算2,219

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills