system-architect

Design system architectures with component decomposition, interface contracts, data flows, and consistency strategies.

Updated Aug 2, 2026
One-click install
npx skills add https://github.com/leonardoacosta/skills --skill system-architect-leonardoacosta
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: system-architect
Source: https://github.com/leonardoacosta/skills/tree/main/leo-core/skills/system-architect
Command: npx skills add https://github.com/leonardoacosta/skills --skill system-architect-leonardoacosta

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Designing system architecture involves hard trade-offs around component boundaries, communication patterns, consistency models, and failure modes, and getting these wrong early leads to costly rewrites and production incidents. ## Core Features & Use Cases - Five-Phase Architecture Process: Guides context gathering, component decomposition, interface design, data flow and consistency planning, and failure mode analysis, with phase scaling matched to system size. - Decision Trees and Anti-Patterns: Provides concrete decision trees for monolith vs services, sync vs async communication, saga patterns, and consistency models, plus an anti-patterns table explaining why common mistakes fail. - Documentation Templates: Ships reusable templates for components, interface contracts, data flows, state transitions, and failure modes in references/templates.md. - Use Case: When planning a migration from a monolith to services, use this Skill to decompose components along team boundaries, define interface contracts with error handling, and map which data needs strong versus eventual consistency. ## Quick Start Ask the agent to design the architecture for your system, for example: design the architecture for a multi-tenant order processing platform with payment integration.

Frequently Asked Questions about system-architect

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I decide between a monolith and microservices architecture?

Start with a modular monolith and extract services only when a specific force demands it: independent scaling needs, different deployment cadence, or team ownership boundaries. One team should stay on a monolith, while four or more teams justify services aligned to team boundaries.

How do I choose between synchronous and asynchronous service communication?

Use synchronous calls when the caller needs a response to continue: gRPC for internal service-to-service, REST or tRPC for external-facing APIs. Use asynchronous messaging otherwise, with partitioned queues when ordering matters and pub-sub when fan-out to multiple consumers is needed.

When should I use strong consistency versus eventual consistency?

Use strong consistency when stale reads cause wrong money, inventory, or permissions, and eventual consistency for feeds and dashboards with a defined staleness SLA. The correct approach is a consistency map assigning each data type its own model rather than one model everywhere.

What is the outbox pattern and when do I need it?

The outbox pattern writes an event to an outbox table in the same database transaction as the state change, then relays it separately. Use it whenever a database write must trigger an event publish, because dual writes without it can lose events when the publish fails after the commit.

When should I skip phases of the architecture design process?

Match rigor to scope: a single service or MVP can skip phases 3-5 and use lightweight phases 1-2, while systems with six or more services need all five phases. If the system has one team and under 10k lines of code, go straight to component decomposition.

What failure modes are most commonly missed in architecture reviews?

Commonly missed failures include partial success responses, slow dependencies that never trigger timeouts, clock skew across distributed nodes, poison messages blocking queues, and cascading retry storms. Each failure mode should document impact, detection, mitigation, recovery, and prevention.