explain-system-tradeoffs
This skill should be used when the user asks to "explain system tradeoffs", "analyze architecture tradeoffs", "what tradeoffs does this system make", "reverse-engineer design decisions", "audit distributed system design", or "explain the design choices in this codebase". Also triggers when the user mentions a tradeoff axis by name (e.g., "consistency vs availability", "latency vs throughput", "CAP theorem", "PACELC", "sharding tradeoffs", "resilience patterns", "data distribution strategy"). Supports analyzing all six axes at once or focusing on a single axis.
What this skill does
# Explain System Tradeoffs
Reverse-engineer distributed system tradeoffs from code, configuration, deployment
manifests, and architecture artifacts. Produce an evidence-based report that explains
what the system prioritizes, what it sacrifices, where choices appear deliberate versus
accidental, and what risks or misalignments deserve attention.
Every distributed system encodes its design tradeoffs in artifacts hiding in plain
sight — configuration files, schema definitions, deployment manifests, timeout values,
retry policies, and code patterns. This skill reads those artifacts like an
architectural blueprint.
## Evidence Tiers
When evaluating evidence, use three tiers to weigh confidence:
- **Tier A (hard commitments):** User-facing API/SLA language; explicit consistency or
transaction guarantees; quorum/replication rules; schema invariants; wire-protocol
requirements.
- **Tier B (mechanism evidence):** Concrete mechanisms that enforce the property —
consensus protocols, leases, retry state machines, outbox tables, circuit breaker
configs, compaction strategies, GC flags.
- **Tier C (operational signatures):** Dashboards, alerts, runbooks, incident
postmortems, sampling configs, SLO definitions that reveal what engineers actually
protect and what they sacrifice.
When indicators disagree, prefer artifacts closest to runtime behaviour (Tier C and B)
over architecture documentation that may be stale (Tier A language in old design docs).
## Subcommands
Request a full analysis or focus on a single tradeoff axis:
| Command Pattern | Axis | Reference |
|----------------|------|-----------|
| `explain-system-tradeoffs` | All six axes | All references |
| `explain-system-consistency-tradeoffs` | Consistency & Availability | `references/consistency.md` |
| `explain-system-latency-tradeoffs` | Latency & Throughput | `references/latency.md` |
| `explain-system-data-tradeoffs` | Data Distribution | `references/data-distribution.md` |
| `explain-system-transaction-tradeoffs` | Transaction Boundaries & Coordination | `references/transactions.md` |
| `explain-system-resilience-tradeoffs` | Resilience & Failure Isolation | `references/resilience.md` |
| `explain-system-operations-tradeoffs` | Observability, Security & Cost | `references/operations.md` |
When no subcommand is specified, default to analyzing all six axes.
When a tradeoff axis is mentioned by name or concept (even without the command prefix),
match it to the appropriate subcommand.
## Workflow
### Single-Axis Mode
When a single axis is requested (e.g., `explain-system-consistency-tradeoffs`),
execute the analysis directly in the main agent:
1. **Identify the target** code, configuration, or architecture to analyze.
2. **Read the reference file** for the requested axis.
3. **Scan the codebase** for indicators described in the reference.
4. **Build an evidence ledger** and report findings (see Report Format below).
### Full Analysis Mode (Parallel Subagents)
When all six axes are requested (`explain-system-tradeoffs`), use **parallel
subagents** to analyze each axis concurrently. This is faster and produces
better results because each subagent can focus deeply on one axis.
**CRITICAL — How parallel execution works:** The Task tool runs subagents in
parallel ONLY when multiple Task tool calls appear in the SAME response message.
If you emit them across separate messages, they run sequentially. You MUST
include all six Task tool calls in a single response to get concurrency.
#### Step 1. Identify Target System
Determine what code, configuration, or architecture to analyze:
- When files or a directory are provided, use those.
- When a service, module, or system is referenced by name, locate it.
- When ambiguous, ask which files, directories, or services to scan.
Resolve the target to a concrete set of paths before launching subagents.
This MUST be done before Step 2 — subagents get their own isolated context
window and cannot see the conversation history or resolve ambiguous targets.
#### Step 2. Launch Six Parallel Subagents
Emit **exactly six Task tool calls in a single response message**. This is
what triggers concurrent execution. Do NOT emit them one at a time.
Technical requirements for each Task call:
- `subagent_type`: `"general-purpose"`
- `description`: Short label (e.g., `"Analyze consistency tradeoffs"`)
- `prompt`: A **fully self-contained** prompt (see template below). Each
subagent gets its own 200k context window and cannot see the main
conversation, so the prompt must include everything it needs.
Each subagent prompt must include:
1. The **concrete target paths** to analyze (resolved in Step 1).
2. The **absolute path to its reference file** to read first.
3. The **evidence tier definitions** (Tier A/B/C — copy them into the prompt).
4. The **per-axis report format** (copy it into the prompt).
5. An instruction to **return structured findings only** — no summary, no
cross-axis commentary (the main agent handles synthesis).
The six subagents and their reference files:
| Subagent | Reference to read | Focus |
|----------|------------------|-------|
| Consistency & Availability | `references/consistency.md` | CAP/PACELC position, replication, quorum, cache freshness, conflict resolution |
| Latency & Throughput | `references/latency.md` | GC tuning, thread pools, batching, deadlines, hedging, storage engines, rate limiting |
| Data Distribution | `references/data-distribution.md` | Shard keys, partition strategies, replication topology, data sovereignty |
| Transaction Boundaries | `references/transactions.md` | Monolith vs microservices, sagas, outbox, schema evolution, API contracts, dependencies |
| Resilience & Failure Isolation | `references/resilience.md` | Circuit breakers, retries, bulkheads, chaos engineering, progressive delivery, service mesh |
| Observability, Security & Cost | `references/operations.md` | Tracing, SLOs, mTLS, audit trails, compliance, cost/reliability topology |
**Subagent prompt template** (adapt the axis name, reference path, and focus
for each of the six — but keep the structure identical):
```
Analyze the distributed system tradeoffs for the CONSISTENCY & AVAILABILITY axis
in the codebase at: <TARGET_PATHS>
STEP 1: Read the reference file at:
<ABSOLUTE_PATH_TO_SKILL_DIR>/references/consistency.md
STEP 2: Scan the target codebase for indicators described in the reference.
Search configuration files, code patterns, deployment manifests, and schema
definitions. Use Glob, Grep, and Read tools to find evidence.
STEP 3: For each piece of evidence found, classify it:
- What: The specific artifact (file path, config key, code pattern)
- Tier: A (hard commitment — SLA language, quorum rules, schema invariants),
B (mechanism evidence — protocols, configs, GC flags, compaction),
or C (operational signature — dashboards, alerts, SLOs, runbooks)
- Reveals: Which end of the tradeoff spectrum the system leans toward
- Deliberate vs Default: Whether intentional (asymmetric config, tuned values)
or accidental (framework defaults, copy-pasted settings)
STEP 4: Produce your findings in EXACTLY this format:
## Consistency & Availability
**Position:** [Where the system sits on the consistency/availability spectrum]
**Confidence:** HIGH | MEDIUM | LOW
### Evidence
[Numbered list of evidence items with Tier, File, and Detail for each]
### Assessment
[1-2 paragraphs on the tradeoff position and whether it appears deliberate]
### Risks & Recommendations
[Any risks found, each with: Severity (HIGH/MEDIUM/LOW), Location, Issue,
Recommendation. If no risks found, state "No significant risks identified."]
IMPORTANT: Return ONLY the per-axis report above. Do NOT produce a cross-axis
summary or tradeoff profile — the main agent handles cross-axis synthesis.
```
#### Step 3. Wait for All Subagents
**CRITICAL — Do NOT continue analysis while subagents are running.** After
launching the six subagents, your ONLY jobRelated in Design
contribute
IncludedLocal-only OSS contribution command center. Auto-refreshes the user's in-flight PR and issue state on invoke so conversations start with full context — no need to brief Claude on what's in flight. Helps the user find issues to contribute to on GitHub, builds per-repo dossiers of what each upstream expects (CLA, DCO, branch convention, AI policy, draft-first, review bots, issue templates), runs deterministic gates before any external action so AI-assisted contributions don't reach maintainers as slop. State is markdown-only: candidate files at ~/.contribute-system/candidates/, repo dossiers at ~/.contribute-system/research/, append-only event log at ~/.contribute-system/log.jsonl. No database, no cloud calls. Use when the user asks about their PRs / issues / contributions, wants to find new work to take on, claim an issue, build/refresh a repo's dossier, or draft a Design Issue or PR. Trigger with "/contribute", "what's my PR status", "find a contribution", "claim issue X", "draft a Design Issue for Y", "refresh dossier for Z".
architectural-analysis
IncludedUser-triggered deep architectural analysis of a codebase or scoped subtree across eight modes — information architecture, data flow, integration points, UI surfaces, interaction patterns, data model, control flow, and failure modes. This skill should be used when the user asks to "diagram this codebase," "map the architecture," "show the data flow," "give me an ERD," "trace control flow," "find the integration points," "verify the layout pattern," "audit the UX architecture," or any similar request whose primary deliverable is mermaid diagrams plus cited reports under docs/architecture/. Dispatches haiku/sonnet sub-agents in parallel for per-mode exploration, then verifies every citation mechanically before any node lands in a diagram. Not for one-off prose explanations of code (use code-explanation) or for high-level system design from scratch (use system-design).
mcp
IncludedModel Context Protocol (MCP) server development and tool management. Languages: Python, TypeScript. Capabilities: build MCP servers, integrate external APIs, discover/execute MCP tools, manage multi-server configs, design agent-centric tools. Actions: create, build, integrate, discover, execute, configure MCP servers/tools. Keywords: MCP, Model Context Protocol, MCP server, MCP tool, stdio transport, SSE transport, tool discovery, resource provider, prompt template, external API integration, Gemini CLI MCP, Claude MCP, agent tools, tool execution, server config. Use when: building MCP servers, integrating external APIs as MCP tools, discovering available MCP tools, executing MCP capabilities, configuring multi-server setups, designing tools for AI agents.
react-native-skia
IncludedDesign, build, debug, and optimise high-polish animated graphics in React Native or Expo using @shopify/react-native-skia, Reanimated, and Gesture Handler. Use when the user wants canvas-driven UI, shaders, paths, rich text, image filters, sprite fields, Skottie, video frames, snapshots, web CanvasKit setup, or performance tuning for custom motion-heavy elements such as loaders, hero art, cards, charts, progress indicators, particle systems, or gesture-driven surfaces. Also use when the user asks for fluid, glow, glass, blob, parallax, 60fps/120fps, or GPU-friendly animated effects in React Native, even if they do not explicitly say "Skia". Do not use for ordinary form/layout work with standard views.
plaid
IncludedProduct Led AI Development — guides founders from idea to launched product. Six capabilities: Idea (discover a product idea), Validate (pressure-test the idea against fatal flaws, problem reality, competition, and 2-week MVP feasibility), Plan (vision intake + document generation), Design (translate image references into a design.md spec), Launch (go-to-market strategy), and Build (roadmap execution). Use when someone says "PLAID", "plaid idea", "help me find an idea", "product idea", "idea from my business", "idea from my expertise", "plaid validate", "validate my idea", "pressure-test", "is this idea good", "find fatal flaws", "validate the problem", "plan a product", "define my vision", "generate a PRD", "product strategy", "plaid design", "design from image", "translate image to design", "create design.md", "extract design tokens", "plaid launch", "go-to-market", "launch plan", "GTM strategy", "launch playbook", "plaid build", "build the app", "start building", or "execute the roadmap".
nextjs-framer-motion-animations
IncludedAdds production-safe Motion for React or Framer Motion animations to Next.js apps, including reveal, hover and tap micro-interactions, whileInView, stagger, AnimatePresence, layout and layoutId transitions, reorder, scroll-linked UI, and lightweight route-content transitions. Use when the user asks to add, refactor, or debug Motion or Framer Motion in App Router or Pages Router codebases, especially around server/client boundaries, reduced motion, LazyMotion, bundle size, hydration, or route transitions. Avoid for GSAP-style timelines, WebGL or 3D scenes, heavy scroll storytelling, or CSS-only effects unless Motion is explicitly requested.