AGENT SKILL

distributed-systems-checklist

Audit distributed services against the 8 fallacies and the CAP trade-off. Use during design review for any service that crosses a network boundary, during incident triage when root cause is unclear and a network or IPC layer is involved, or when drafting an architectural ADR for new distributed components.

License 许可
MIT
所属仓库
muratovv/ai-hats
最近更新
2026-11-05
Stars
★ 3
Forks
1

01 前言 Front Matter

name
distributed-systems-checklist
license
MIT
description
Audit distributed services against the 8 fallacies and the CAP trade-off. Use during design review for any service that crosses a network boundary, during incident triage when root cause is unclear and a network or IPC layer is involved, or when drafting an architectural ADR for new distributed components.

03 SKILL.md 正文

Distributed Systems Checklist

Surface unstated assumptions in distributed-system designs and incidents.

When to Use

Fires specifically when a network / IPC boundary is in play — the 8 fallacies, CAP trade-offs, partial failure. Single-process layering questions are clean-architecture-guide, and the operational "is it ready for production" gate (SLOs, runbooks, rollout) is reliability-checklist. This skill is about the correctness of crossing the wire, not the layering behind it or the ops in front of it.

Fallacies Checklist

For each, state the assumption made and the mitigation in place. Mark N/A only with explicit justification.

  1. The network is reliable: retries, circuit breakers, idempotency keys, deadlines.
  2. Latency is zero: budget per call, p99 target, async where viable, batch I/O.
  3. Bandwidth is infinite: payload size limits, compression, pagination, streaming for large data.
  4. The network is secure: mTLS, authn/authz at every hop, no plaintext credentials in transit.
  5. Topology doesn't change: service discovery, no hard-coded IPs/hosts, graceful re-resolution.
  6. There is one administrator: explicit ownership, runbook, on-call mapping per component.
  7. Transport cost is zero: cost-aware design (egress, cross-AZ), measured not assumed.
  8. The network is homogeneous: protocol/version negotiation, no implicit "all clients are v2".

CAP Trade-off

Document for every distributed datastore/coordinator: which two of {Consistency, Availability, Partition tolerance} the system guarantees, and what behavior occurs under partition. No "we have all three".

Completion

  • 8 fallacies — each has assumption + mitigation (or justified N/A)
  • CAP statement — written, with partition behavior
  • Findings appended to design ADR or incident retrospective

Anti-Patterns

  • Rubber-stamp "we use HTTP, so it's fine" without listing concrete mitigations
  • Skipping CAP analysis because the system "feels eventually consistent"
  • Treating the checklist as a one-time gate instead of a re-verification on every topology change

04 同仓库更多 Skills

muratovv
muratovv/ai-hats

tool-evaluation-protocol

Time-bounded protocol for evaluating new tools, libraries, or methodologies before adoption. Use when evaluating a candidate dependency for the project, researching a methodology (e.g. ML/LLM frameworks, testing approaches), or following up on a hype-driven recommendation.

★ 3
muratovv
muratovv/ai-hats

systematic-debugging

4-phase bug-fix protocol (evidence, pattern, hypothesis, verify). Use when investigating any error, failure, or unexpected behavior, handling bug reports from users or monitoring, or diagnosing test failures with non-obvious causes.

★ 3
muratovv
muratovv/ai-hats

skill-template

Canonical template and validation guide for ai-hats skills. Use when creating a new skill, reviewing an existing one for structural compliance, or deciding which pattern fits a new behavior.

★ 3
muratovv
muratovv/ai-hats

skill-optimization

Audit and refactor library components to eliminate redundancy and staleness. Use during periodic library maintenance, after adding multiple new skills or rules, when a role's token budget is too high, or after retrospectives identify component issues.

★ 3
muratovv
muratovv/ai-hats

silent-fallback-gate

PreToolUse hook — refuses an Edit or Write that adds an inert broad except. Use when a Python edit was blocked for a silent fallback.

★ 3
muratovv
muratovv/ai-hats

retro-to-framework

Convert an observation about agent behavior — from a retrospective or from a single incident — into a framework-level change (hook, rule, skill, skill update). Use after a retrospective identifies problems that are not project-specific, after an incident where an agent misapplied a component it had read, when CLAUDE.md band-aids accumulate (more than 3 per-project rules that could be generic), or when the same problem recurs across multiple projects.

★ 3