Skip to content
Back to skills

Distributed Systems

ASecurity

Distributed systems fundamentals — consistency models, CAP/PACELC trade-offs, consensus and leader election, partitioning and replication, clocks and ordering, idempotency, exactly-once illusions, distributed transactions and sagas, failure detection. Use when designing or debugging multi-node behaviour (distributed systems, consistency, saga, partitioning, replication, idempotency).

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsgonodedebugging

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add vectora-os/kit --skill distributed-systems --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Distributed Systems?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Distributed Systems
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectora-os-distributed-systems/badge)](https://www.skillsdirectory.com/skills/vectora-os-distributed-systems)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: distributed-systems
description: Distributed systems fundamentals — consistency models, CAP/PACELC trade-offs, consensus and leader election, partitioning and replication, clocks and ordering, idempotency, exactly-once illusions, distributed transactions and sagas, failure detection. Use when designing or debugging multi-node behaviour (distributed systems, consistency, saga, partitioning, replication, idempotency).
metadata:
  category: architecture
---

# Distributed systems

## Purpose

Design multi-node behaviour that stays correct under partial failure.

**Use when:** any design spanning processes, services or regions.

**Not for:** single-process logic.

## Inputs

- Design, consistency requirements, failure assumptions.

## Outputs

- Consistency and failure analysis with design changes.

## Read first

- [Project Brain](../../../project-brain/README.md) — `npm run brain -- query "distributed systems"` for prior decisions, patterns and anti-patterns.

## Steps

1. **Model.** State the consistency each operation needs and the failure model.
   Done when every operation has a consistency level.
2. **Coordinate.** Choose coordination: local transaction, saga with compensations, or consensus-backed store.
   Done when cross-service writes have a pattern.
3. **Idempotency.** Make every retried operation idempotent with keys.
   Done when retries cannot double-apply.
4. **Failures.** Walk through partitions, timeouts, duplicates, reordering.
   Done when each failure has defined behaviour.

## Best practices

- Assume the network is unreliable and clocks are skewed.
- Prefer sagas over distributed transactions.
- Make timeouts explicit everywhere.

## Common mistakes

- Believing in exactly-once delivery.
- Using wall clocks for ordering.
- Dual writes without an outbox.

## Example

Order + payment + inventory: saga with compensations, idempotency keys per step, outbox for events, timeout policy per call.

## Reusable prompt

```text
Apply the Distributed systems skill (.agents/skills/distributed-systems/SKILL.md).
Context: {{task card or question; links to PRD, ADRs, code paths}}
Constraints: {{approved thresholds, deadlines, allowed files}}
Analyse the design for consistency needs and failure modes and propose coordination, idempotency and timeout changes.
Return: Consistency and failure analysis with design changes..
Cite evidence (file:line, command output, source) for every claim; list open questions separately.
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.