Agent skill

Distributed Systems Guide

by wentorai in wentorai/research-plugins

Distributed systems design patterns and analysis for CS research

MITAuto-check passedDevelopment

Install Distributed Systems Guide

skills CLI
$ npx skills add wentorai/research-plugins --skill distributed-systems-guide -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install wentorai/research-plugins distributed-systems-guide --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/wentorai/research-plugins.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/domains/cs/distributed-systems-guide .claude/skills/distributed-systems-guide && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
distributed-systems-guide
GitHub stars
298
Used in
1 other repo
Token cost
~2.3k tokens
SKILL.md length
320 words
Files
1
Skills in repo
405
Repo updated
First seen
Licence
MIT

At a glance

Distributed systems design patterns and analysis for CS research

  • Tasks that involve Design patterns
  • SKILL.md covers Consistency Models, Consensus Algorithms, Replication Strategies and Clock Synchronization and…, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Distributed Systems Guide is an agent skill from wentorai/research-plugins. Distributed systems design patterns and analysis for CS research

Its SKILL.md is about 2.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Design patterns. The repository describes itself as: 350+ academic research skills, MCP configs, and plugins for Research-Claw and AI agents. The licence is MIT.

When your agent uses it

  • Tasks that involve Design patterns

Example prompts

  • “/distributed-systems-guide”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit bf44b3c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are python).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Distributed Systems Guide loads about 2.3k tokens when it runs. Until then it costs about 23 tokens; SKILL.md has 320 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~23
When it runs · the whole SKILL.md, loaded when a task matches
~2.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from wentorai/research-plugins at commit bf44b3c, republished under its MIT licence (© wentorai). 320 words, ~2,285 tokens.

Download SKILL.mdSave it as .claude/skills/distributed-systems-guide/SKILL.md (or your agent's skills folder).
name
distributed-systems-guide
description
Distributed systems design patterns and analysis for CS research

Distributed Systems Guide

A skill for researching and designing distributed systems, covering consensus algorithms, replication strategies, consistency models, fault tolerance, and performance analysis. Provides theoretical foundations and practical implementations relevant to systems research.

Consistency Models

Consistency Hierarchy
Strongest
  |  Linearizability (atomic, real-time ordering)
  |  Sequential consistency (program order respected)
  |  Causal consistency (causally related ops ordered)
  |  PRAM / FIFO consistency (per-process order)
  |  Eventual consistency (converges if updates stop)
Weakest
CAP Theorem and PACELC

The CAP theorem states that during a network partition, a distributed system must choose between consistency and availability:

SystemPartition BehaviorNormal BehaviorClassification
ZooKeeperConsistent (sacrifice A)Low latency, consistentCP / PC/EC
CassandraAvailable (sacrifice C)Low latency, eventualAP / PA/EL
SpannerConsistent (sacrifice A)Higher latency, consistentCP / PC/EC
DynamoDBConfigurable per-readTunable consistencyAP or CP
CockroachDBConsistent (sacrifice A)SerializableCP / PC/EC

Consensus Algorithms

Raft Implementation Sketch
python
from enum import Enum
from dataclasses import dataclass, field
import random

class NodeState(Enum):
    FOLLOWER = "follower"
    CANDIDATE = "candidate"
    LEADER = "leader"

@dataclass
class LogEntry:
    term: int
    index: int
    command: str

@dataclass
class RaftNode:
    """
    Simplified Raft consensus node for educational purposes.
    Implements leader election and log replication state machine.
    """
    node_id: str
    state: NodeState = NodeState.FOLLOWER
    current_term: int = 0
    voted_for: str = None
    log: list = field(default_factory=list)
    commit_index: int = 0
    last_applied: int = 0

    # Leader state
    next_index: dict = field(default_factory=dict)
    match_index: dict = field(default_factory=dict)

    def start_election(self, peers: list[str]) -> dict:
        """Transition to candidate and request votes."""
        self.state = NodeState.CANDIDATE
        self.current_term += 1
        self.voted_for = self.node_id

        last_log_index = len(self.log) - 1 if self.log else -1
        last_log_term = self.log[-1].term if self.log else 0

        return {
            "type": "RequestVote",
            "term": self.current_term,
            "candidate_id": self.node_id,
            "last_log_index": last_log_index,
            "last_log_term": last_log_term,
        }

    def handle_vote_request(self, term: int, candidate_id: str,
                              last_log_index: int,
                              last_log_term: int) -> dict:
        """Process a RequestVote RPC."""
        if term < self.current_term:
            return {"term": self.current_term, "vote_granted": False}

        if term > self.current_term:
            self.current_term = term
            self.state = NodeState.FOLLOWER
            self.voted_for = None

        # Check if candidate's log is at least as up-to-date
        my_last_term = self.log[-1].term if self.log else 0
        my_last_index = len(self.log) - 1 if self.log else -1

        log_ok = (last_log_term > my_last_term or
                  (last_log_term == my_last_term and
                   last_log_index >= my_last_index))

        vote_granted = (
            (self.voted_for is None or self.voted_for == candidate_id)
            and log_ok
        )

        if vote_granted:
            self.voted_for = candidate_id

        return {"term": self.current_term, "vote_granted": vote_granted}

    def append_entry(self, command: str) -> LogEntry:
        """Leader appends a new entry to its log."""
        entry = LogEntry(
            term=self.current_term,
            index=len(self.log),
            command=command,
        )
        self.log.append(entry)
        return entry
Paxos vs Raft vs PBFT Comparison
AlgorithmFault ModelToleranceRoundsComplexity
PaxosCrash faultsf < n/22 (normal)Difficult to implement correctly
RaftCrash faultsf < n/22 (normal)Designed for understandability
PBFTByzantine faultsf < n/33O(n^2) message complexity
HotStuffByzantine faultsf < n/33O(n) with pipelining

Replication Strategies

State Machine Replication
python
class ReplicatedStateMachine:
    """
    State machine replication with configurable consistency.
    Demonstrates read/write quorum intersection for correctness.
    """

    def __init__(self, n_replicas: int, read_quorum: int = None,
                 write_quorum: int = None):
        self.n = n_replicas
        self.R = read_quorum or (n_replicas // 2 + 1)
        self.W = write_quorum or (n_replicas // 2 + 1)

        # Quorum intersection guarantees: R + W > N
        assert self.R + self.W > self.n, (
            f"Quorum intersection violated: R({self.R}) + W({self.W}) "
            f"must be > N({self.n})"
        )

        self.replicas = [{} for _ in range(n_replicas)]
        self.version_clock = 0

    def write(self, key: str, value: str) -> dict:
        """Write to W replicas."""
        self.version_clock += 1
        # Select W replicas (in practice, based on availability)
        targets = random.sample(range(self.n), self.W)
        for i in targets:
            self.replicas[i][key] = (value, self.version_clock)

        return {
            "key": key,
            "version": self.version_clock,
            "acked_by": len(targets),
            "quorum_met": True,
        }

    def read(self, key: str) -> dict:
        """Read from R replicas, return latest version."""
        targets = random.sample(range(self.n), self.R)
        responses = []
        for i in targets:
            if key in self.replicas[i]:
                responses.append(self.replicas[i][key])

        if not responses:
            return {"key": key, "value": None, "found": False}

        # Return the value with the highest version
        latest = max(responses, key=lambda x: x[1])
        return {
            "key": key,
            "value": latest[0],
            "version": latest[1],
            "found": True,
        }

Clock Synchronization and Ordering

Vector Clocks
python
class VectorClock:
    """Vector clock for tracking causality in distributed systems."""

    def __init__(self, process_id: str, processes: list[str]):
        self.pid = process_id
        self.clock = {p: 0 for p in processes}

    def increment(self):
        """Local event: increment own counter."""
        self.clock[self.pid] += 1

    def send(self) -> dict:
        """Prepare clock for sending with a message."""
        self.increment()
        return dict(self.clock)

    def receive(self, other_clock: dict):
        """Merge received clock: element-wise max, then increment."""
        for p in self.clock:
            self.clock[p] = max(self.clock[p], other_clock.get(p, 0))
        self.increment()

    def happened_before(self, other: dict) -> bool:
        """Check if this clock happened-before other (causal ordering)."""
        return (all(self.clock[p] <= other.get(p, 0) for p in self.clock) and
                any(self.clock[p] < other.get(p, 0) for p in self.clock))

Performance Analysis

Latency and Throughput Modeling

Key metrics for evaluating distributed systems:

  • Tail latency (p99, p999): Critical for real-world SLAs; often dominated by slow replicas
  • Throughput under contention: How performance degrades with conflict rate
  • Scalability: Linear vs sub-linear throughput increase with added nodes
  • Recovery time: Time to restore consistency after node failure

Key Research Papers

  • Lamport, L. (1998). The Part-Time Parliament (Paxos). ACM TOCS.
  • Ongaro, D. and Ousterhout, J. (2014). In Search of an Understandable Consensus Algorithm (Raft). USENIX ATC.
  • Corbett, J. et al. (2013). Spanner: Google's Globally-Distributed Database. ACM TOCS.
  • DeCandia, G. et al. (2007). Dynamo: Amazon's Highly Available Key-value Store. SOSP.

Tools and Frameworks

  • etcd / ZooKeeper: Production consensus stores for coordination
  • Jepsen: Distributed systems correctness testing framework
  • TLA+ / PlusCal: Formal specification and model checking
  • ns-3 / OMNeT++: Network simulation for distributed protocols
  • gRPC / Cap'n Proto: High-performance RPC frameworks
  • FoundationDB: Multi-model distributed database with strong consistency

© wentorai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/domains/cs/distributed-systems-guide of wentorai/research-plugins.

Open the folder on GitHubat commit bf44b3c

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in wentorai/research-plugins, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Distributed Systems Guide next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Distributed Systems Guide compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Distributed Systems Guide this skillwentorai/research-plugins2981 repos~2.3kAutomated safety check: PassMIT
Effect TSmattiacerutti/supernova187—~2.8kAutomated safety check: PassMIT
Swiftdata ArchitectureKartikLabhshetwar/better-shot2.4k2 repos~1.2kAutomated safety check: PassCustom licence
Mastering Python SkillSpillwaveSolutions/agent-brain119—~1.4kAutomated safety check: NotesMIT
312 Frameworks Spring Data Jdbcjabrena/plinth446—~867Automated safety check: PassApache-2.0
Azure Partner SolutionsMicrosoftDocs/Agent-Skills777—~1.6kAutomated safety check: PassCC-BY-4.0

Similar skills

  • Effect TS

    mattiacerutti/supernova

    Write idiomatic Effect v4 TypeScript following official best practices from effect-solutions and the Effect source.

    187 GitHub stars~2.8k tokensUpdated today
    DevelopmentAuto-check passed
  • Swiftdata Architecture

    KartikLabhshetwar/better-shot

    Deep dive into SwiftData design patterns and best practices.

    2.4k GitHub starsUsed in 2 repos~1.2k tokens
    DevelopmentAuto-check passed
  • Mastering Python Skill

    SpillwaveSolutions/agent-brain

    Modern Python coaching covering language foundations through advanced production patterns.

    119 GitHub stars~1.4k tokensUpdated 18 days ago
    DevelopmentAuto-check: notes
  • A skill your agent uses when you need to use Spring Data JDBC with Java records — including entity design with records, repository pattern, immutable updates, aggregate relationships, custom…

    446 GitHub stars~867 tokensUpdated today
    DevelopmentAuto-check passed
  • Azure Partner Solutions

    MicrosoftDocs/Agent-Skills

    Official

    Expert knowledge for Azure Partner Solutions development including troubleshooting, architecture & design patterns, security, configuration, and integrations & coding patterns.

    777 GitHub stars~1.6k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Official

    React composition patterns that scale. An agent skill from supabase/supabase.

    111k GitHub starsUsed in 59 repos~726 tokens
    DevelopmentAuto-check passed

More from wentorai/research-plugins

All 405 skills in this repo
  • Abstract Writing Guide

    wentorai/research-plugins

    Craft structured research abstracts that maximize clarity and journal acceptance

    298 GitHub starsUsed in 1 repo~1.7k tokens
    Auto-check passed
  • Academic Citation Manager

    wentorai/research-plugins

    Manage academic citations across BibTeX, APA, MLA, and Chicago formats

    298 GitHub starsUsed in 1 repo~2.7k tokens
    Auto-check passed
  • Academic Paper Summarizer

    wentorai/research-plugins

    Summarize academic papers with structured extraction of key elements

    298 GitHub starsUsed in 1 repo~1.4k tokens
    Auto-check passed
  • Academic Study Methods

    wentorai/research-plugins

    Evidence-based study techniques for academic learning and retention

    298 GitHub starsUsed in 1 repo~1.8k tokens
    Auto-check passed
  • Academic Tone Guide

    wentorai/research-plugins

    Adjust writing tone and register for academic audiences and venues

    298 GitHub starsUsed in 1 repo~1.9k tokens
    Auto-check passed
  • Academic Translation Guide

    wentorai/research-plugins

    Academic translation, post-editing, and Chinglish correction guide

    298 GitHub starsUsed in 1 repo~1.6k tokens
    Auto-check passed

Questions about Distributed Systems Guide

What does Distributed Systems Guide do?

Distributed systems design patterns and analysis for CS research. Distributed Systems Guide is an agent skill from wentorai/research-plugins.

When should I use Distributed Systems Guide?

Distributed Systems Guide fits situations like: tasks that involve Design patterns.

How do I install Distributed Systems Guide in Claude Code?

Run `npx skills add wentorai/research-plugins --skill distributed-systems-guide -a claude-code`. Or copy the skill folder (skills/domains/cs/distributed-systems-guide in wentorai/research-plugins) into .claude/skills/distributed-systems-guide in your project. Claude Code loads it when a task matches its description.

How do I install Distributed Systems Guide in Codex?

Run `npx skills add wentorai/research-plugins --skill distributed-systems-guide -a codex`. Or copy the skill folder (skills/domains/cs/distributed-systems-guide in wentorai/research-plugins) into .agents/skills/distributed-systems-guide in your project. Codex loads it when a task matches its description.

Can I use Distributed Systems Guide in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add wentorai/research-plugins --skill distributed-systems-guide -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/distributed-systems-guide, .gemini/skills/distributed-systems-guide, .github/skills/distributed-systems-guide and .opencode/skills/distributed-systems-guide in your project.

What does Distributed Systems Guide need to run?

SKILL.md names no scripts, command-line tools or credentials: Distributed Systems Guide is instructions for the agent only. Our summary lists: Python 3.

Does Distributed Systems Guide access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Distributed Systems Guide safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Distributed Systems Guide use?

Distributed Systems Guide is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Distributed Systems Guide use?

About 2.3k tokens (SKILL.md is roughly 9.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Distributed Systems Guide?

Skills that share tags, products or a category with Distributed Systems Guide: Effect TS (mattiacerutti/supernova, 187 stars), Swiftdata Architecture (KartikLabhshetwar/better-shot, 2.4k stars), Mastering Python Skill (SpillwaveSolutions/agent-brain, 119 stars) and 312 Frameworks Spring Data Jdbc (jabrena/plinth, 446 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Distributed Systems Guide?

wentorai (a GitHub user) maintains it in wentorai/research-plugins, which has 298 GitHub stars. The repository holds 405 skills in this directory. The repository was last updated on June 19, 2026.

Source: wentorai/research-plugins on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.