Skip to content

Architecture paradigm guidance that selects among 14 patterns and plans their implementation.

CCM score
61 of 100
version
1.10.4
GitHub stars
356
View on GitHub

Own this plugin? Claim it

What it does

  • Adds the architecture-paradigms orchestrator skill plus 14 per-paradigm skills, from layered and hexagonal to microservices and space-based
  • Covers a decision matrix comparing complexity, team size, best-fit domains, and common use cases for each paradigm
  • Provides learning paths from fundamentals through distributed systems, with suggested primary, secondary, and tertiary patterns per domain
  • Maps architecture evolution triggers by team size, complexity, and technology change, so migrations follow a stated sequence

Architecture paradigm selection and implementation planning: 14 paradigms from functional-core to hexagonal to microservices

Add marketplace

/plugin marketplace add athola/claude-night-market

Run it inside Claude Code once, then install the plugin below.

Install

/plugin install archetypes@claude-night-market

Run it inside Claude Code after adding the marketplace.

Files

Discovered from source

The Client-Server and Peer-to-Peer Paradigms

When to Employ This Paradigm

  • For traditional applications that have centralized services, such as web or mobile clients communicating with backend APIs.
  • For systems exploring decentralized or "offline-first" capabilities that rely on peer-to-peer synchronization.
  • To formally document trust boundaries, client-server version negotiation, and API evolution strategies.

When NOT To Use

  • Systems with no network boundary between UI and logic (use archetypes:architecture-paradigm-modular-monolith)
  • Choosing among paradigms in the first place (use archetypes:architecture-paradigms)

Adoption Steps

  1. Define Responsibilities: Clearly delineate which logic and data reside on the client versus the server, with the goal of minimizing duplication.
  2. Document the Contracts: Formally document all APIs, data schemas, authentication flows, and any capability negotiation required for handling different client versions.
  3. Plan for Version Skew: Implement a strategy to manage different client and server versions, such as using feature flags, Accept headers for content negotiation, or semantic versioning for APIs.
  4. Address Connectivity Issues: If the application is not purely client-server, design for intermittent connectivity. This may involve implementing offline caching, data synchronization protocols, or peer discovery and membership services.
  5. Secure All Communications: Enforce the use of TLS for all data in transit. Implement authorization policies, rate limiting, and detailed telemetry for every endpoint.

Key Deliverables

  • An Architecture Decision Record (ADR) that covers the roles of clients, servers, and peers, defines the trust boundaries, and outlines deployment assumptions.
  • Formal API or protocol specifications, along with a suite of compatibility tests.
  • Runbooks detailing the coordination required for rollouts, such as client release waves, backward-compatibility support, or operational procedures for a peer-to-peer network.

Risks & Mitigations

  • "Chatty" Clients:
    • Mitigation: A client making too many small requests can lead to poor performance. Consolidate API calls using patterns like the Façade or Gateway, and implement caching strategies on the client or at the network edge.
  • "Thick" Clients with Duplicated Logic:
    • Mitigation: When clients contain too much business logic, it often becomes duplicated and out-of-sync with the server. Share validation logic by packaging it in a common library or move the rules definitively to the server.
  • Peer-to-Peer Data Conflicts:
    • Mitigation: In a peer-to-peer model, data conflicts are inevitable. Design formal conflict resolution strategies (e.g., CRDTs, last-write-wins) and consensus mechanisms from the beginning.

Concrete Components

Vocabulary for the tools and abstractions an implementation of this paradigm tends to carry. Not dependencies, and not tools: frontmatter.

  • api-contract-generator: produces machine-readable OpenAPI/RPC contracts the client and server share
  • networking-debugger: captures request/response traces for diagnosing latency, retries, and timeout issues

Exit Criteria

  • An ADR is produced naming client roles, server roles (and peer roles if applicable), trust boundaries, and the API versioning strategy chosen.
  • A formal API or protocol specification exists (OpenAPI, protobuf, or equivalent) covering all documented endpoints or capabilities.
  • The version-skew strategy (feature flags, Accept headers, or semantic versioning) is documented before any client or server code is written.
  • If offline-first or P2P capability is included, the conflict-resolution strategy (CRDT, last-write-wins, or consensus mechanism) is named in the ADR.

Readme

Architecture Paradigms Collection

Software architecture decision-making and implementation guidance across 14 architectural paradigms.

Paradigms

Core Architectural Patterns

  • Layered Architecture: Traditional N-tier separation of concerns.
  • Hexagonal (Ports & Adapters): Infrastructure independence and flexibility.
  • Functional Core, Imperative Shell: Business logic isolation for testability.

Distributed Systems

  • Microservices: Independent business capability services.
  • Service-Based Architecture: Coarse-grained services (SOA-lite).
  • Event-Driven Architecture: Asynchronous, decoupled communication.
  • CQRS + Event Sourcing: Command/query separation with audit trails.

Specialized Patterns

  • Modular Monolith: Single deployable with strong internal boundaries.
  • Serverless: Function-as-a-Service systems.
  • Space-Based: In-memory data grids for linear scalability.
  • Pipeline: Processing stages for ETL workflows.
  • Microkernel: Plugin architecture for extensible platforms.
  • Client-Server: Traditional centralized or P2P systems.

Learning Paths

1. Architecture Fundamentals (Beginner)

Duration: 2-3 weeks Goal: Learn basic architectural concepts and patterns.

  1. Start: architecture-paradigms (overview and selection).
  2. Core: Study architecture-paradigm-layered (fundamental pattern).
  3. Progress: Learn architecture-paradigm-functional-core (testability principles).
  4. Practice: Apply layered architecture to a simple project.

Skills Covered: Layered, Functional Core, basic architecture principles.

2. Modern Architecture Patterns (Intermediate)

Duration: 3-4 weeks Goal: Learn contemporary architectural approaches.

  1. Foundation: Complete Architecture Fundamentals path.
  2. Flexibility: Study architecture-paradigm-hexagonal (infrastructure independence).
  3. Evolution: Learn architecture-paradigm-modular-monolith (strong boundaries).
  4. Integration: Practice combining paradigms in a single system.

Skills Covered: Hexagonal, Modular Monolith, paradigm combination.

3. Distributed Systems Architecture (Advanced)

Duration: 4-6 weeks Goal: Design and implement distributed architectures.

  1. Prerequisites: Complete Modern Architecture Patterns path.
  2. Distributed Basics: Study architecture-paradigm-microservices (independent services).
  3. Communication: Learn architecture-paradigm-event-driven (asynchronous systems).
  4. Advanced: Learn architecture-paradigm-cqrs-es (complex collaboration domains).
  5. Specialization: Choose serverless, space-based, or service-based patterns.

Skills Covered: Microservices, Event-Driven, CQRS/ES, specialized patterns.

4. Domain-Specific Architecture (Specialized)

Duration: 2-3 weeks each Goal: Gain expertise in specific architectural domains.

Real-time & Streaming Systems
  • Primary: Event-Driven Architecture.
  • Secondary: Space-Based Architecture.
  • Tertiary: Pipeline Architecture.
  • Use Case: IoT, financial trading, logistics platforms.
High-Throughput Web Applications
  • Primary: Microservices.
  • Secondary: Serverless.
  • Tertiary: CQRS/ES.
  • Use Case: Social media, e-commerce, content platforms.
Enterprise Integration
  • Primary: Service-Based Architecture.
  • Secondary: Hexagonal Architecture.
  • Tertiary: Modular Monolith.
  • Use Case: ERP systems, banking, legacy modernization.
Extensible Platforms
  • Primary: Microkernel Architecture.
  • Secondary: Plugin-based design patterns.
  • Use Case: IDEs, marketplaces, integration platforms.

Quick Reference Matrix

ParadigmComplexityTeam SizeBest ForKey BenefitsCommon Use Cases
LayeredLowSmall-MediumSimple domainsSimplicity, familiarityBasic web apps, internal tools
Functional CoreMediumSmall-LargeComplex business logicTestability, clarityFinancial systems, rule engines
HexagonalMediumSmall-LargeInfrastructure changesFlexibility, isolationFramework migrations, integrations
Modular MonolithMediumMedium-LargeEvolving systemsStrong boundaries, single deployGrowing applications, team scaling
MicroservicesHighLargeComplex domainsTeam autonomy, scalingEnterprise applications, platforms
Service-BasedMediumMedium-LargeShared database needsCoarse-grained servicesERPs, legacy system evolution
Event-DrivenHighMedium-LargeReal-time processingScalability, decouplingIoT, analytics, notifications
CQRS/ESHighMedium-LargeAudit requirementsImmutable historyFinancial systems, collaboration
ServerlessMediumSmall-MediumBursty workloadsMinimal operationsAPIs, cron jobs, data processing
Space-BasedHighMedium-LargeHigh traffic statefulLinear scalabilityTrading platforms, gaming
PipelineMediumSmall-MediumETL workflowsStage isolationData processing, CI/CD
MicrokernelMediumSmall-MediumExtensible platformsPlugin architectureIDEs, marketplaces, frameworks
Client-ServerLowSmall-MediumTraditional appsSimple deploymentWeb apps, mobile backends

Paradigm Evolution Path

Typical Architecture Evolution Journey

Startups often begin with a Layered Architecture. As the team grows to 10-50 engineers, a Modular Monolith helps manage complexity. Scaling to 50-200 engineers typically necessitates a move to Microservices or a Service-Based architecture. At maturity (200+ engineers), systems often evolve into Event-Driven architectures combined with specialized patterns.

Common Migration Paths

Migration from a monolith to a distributed system generally moves from Layered to Modular Monolith, then to Microservices, and finally to Event-Driven. Increasing complexity drives evolution from Layered to Hexagonal, then Functional Core, and potentially CQRS/ES. Cloud-native transitions typically progress from Layered to Modular Monolith, then to Serverless or Event-Driven architectures.

Architecture Decision Triggers

Scale Triggers (When to evolve architecture):

  • Team size crosses threshold (5, 15, 50, 200 engineers).
  • Deployment frequency needs increase.
  • Independent scaling requirements emerge.
  • Geographic distribution becomes necessary.

Complexity Triggers (When to adopt patterns):

  • Business rules become complex (Functional Core).
  • Integration points increase (Hexagonal).
  • Real-time requirements emerge (Event-Driven).
  • Audit/compliance needs arise (CQRS/ES).

Technology Triggers (When to change patterns):

  • Framework migration needed (Hexagonal).
  • Cloud migration planned (Serverless/Microservices).
  • Performance bottlenecks appear (Space-Based/Pipeline).
  • Platform requirements emerge (Microkernel).

Repository Structure

archetypes/
├── plugin.json                              # Plugin configuration
├── README.md                               # This guide
└── skills/
    ├── architecture-paradigms/             # Main orchestrator skill
    │   └── SKILL.md                        # Interactive paradigm selection
    ├── architecture-paradigm-layered/      # Individual paradigm skills
    ├── architecture-paradigm-functional-core/
    ├── architecture-paradigm-hexagonal/
    ├── architecture-paradigm-modular-monolith/
    ├── architecture-paradigm-microservices/
    ├── architecture-paradigm-service-based/
    ├── architecture-paradigm-event-driven/
    ├── architecture-paradigm-cqrs-es/
    ├── architecture-paradigm-serverless/
    ├── architecture-paradigm-space-based/
    ├── architecture-paradigm-pipeline/
    ├── architecture-paradigm-microkernel/
    └── architecture-paradigm-client-server/
        └── SKILL.md                        # Detailed guidance

Usage Guidelines

For Architecture Reviews

# Start with paradigm selection
Skill(architecture-paradigms)

# Deep dive on specific paradigms
Skill(architecture-paradigm-hexagonal)
Skill(architecture-paradigm-microservices)

For New Projects

# Use orchestrator for guided selection
Skill(architecture-paradigms)

# Load chosen paradigm for implementation
Skill(architecture-paradigm-[selected-pattern])

For Legacy Modernization

# Start with modular monolith assessment
Skill(architecture-paradigm-modular-monolith)

# Plan evolution to distributed systems
Skill(architecture-paradigm-microservices)

Integration with Other Skills

This collection integrates with:

  • architecture-review: Architecture evaluation.
  • writing-plans: Detailed implementation planning.
  • systematic-debugging: Architecture refactoring approaches.
  • brainstorming: Architecture design refinement.

Community and Contributions

These patterns reflect industry standards. Each paradigm skill includes:

  • Implementation patterns.
  • Case studies and examples.
  • Technology-specific guidance.
  • Risk mitigation strategies.
  • Evolution pathways.

Stewardship

Ways to leave this plugin better than you found it:

  • Each paradigm skill is an opportunity to add a short real-world case study showing the pattern in production
  • The Quick Reference Matrix could include a "when to avoid" column to help users rule out poor fits faster
  • Learning path durations are estimates that would benefit from community feedback on actual completion
  • Migration path guidance could link to concrete commit diffs showing a monolith-to-microservice transition
  • Architecture decision triggers could include threshold numbers calibrated to open-source team sizes

See STEWARDSHIP.md for the full stewardship principles guiding this project.

Design note

Archetypes is a markdown-skill-only plugin: 14 skills, no Python src/ module, no hooks. All functionality is expressed as skill prompts consumed by the AI at runtime. No Python package is installed or imported.

License

MIT License.

Details

Marketplace
athola/claude-night-market
Source
plugins/archetypes
Category
Community
Keywords
architecture, design-patterns, hexagonal, cqrs, microservices
Listed since
Apr 7, 2026

More from athola/claude-night-market

All 23

Similar to archetypes

More Developer Tools