archetypes
Architecture paradigm guidance that selects among 14 patterns and plans their implementation.
- CCM score
- 61 of 100
- version
- 1.10.4
- GitHub stars
- 356
Own this plugin? Claim it
What it does
- Adds the
architecture-paradigmsorchestrator 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-marketRun it inside Claude Code once, then install the plugin below.
Install
/plugin install archetypes@claude-night-marketRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceThe 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
- Define Responsibilities: Clearly delineate which logic and data reside on the client versus the server, with the goal of minimizing duplication.
- Document the Contracts: Formally document all APIs, data schemas, authentication flows, and any capability negotiation required for handling different client versions.
- Plan for Version Skew: Implement a strategy to manage different client and server versions, such as using feature flags,
Acceptheaders for content negotiation, or semantic versioning for APIs. - 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.
- 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 sharenetworking-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,
Acceptheaders, 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.
- Orchestrator: Use
Skill(architecture-paradigms)to select a paradigm. - Comparison: See Quick Reference Matrix.
- Learning: Follow Learning Paths.
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.
- Start:
architecture-paradigms(overview and selection). - Core: Study
architecture-paradigm-layered(fundamental pattern). - Progress: Learn
architecture-paradigm-functional-core(testability principles). - 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.
- Foundation: Complete Architecture Fundamentals path.
- Flexibility: Study
architecture-paradigm-hexagonal(infrastructure independence). - Evolution: Learn
architecture-paradigm-modular-monolith(strong boundaries). - 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.
- Prerequisites: Complete Modern Architecture Patterns path.
- Distributed Basics:
Study
architecture-paradigm-microservices(independent services). - Communication: Learn
architecture-paradigm-event-driven(asynchronous systems). - Advanced: Learn
architecture-paradigm-cqrs-es(complex collaboration domains). - 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
| Paradigm | Complexity | Team Size | Best For | Key Benefits | Common Use Cases |
|---|---|---|---|---|---|
| Layered | Low | Small-Medium | Simple domains | Simplicity, familiarity | Basic web apps, internal tools |
| Functional Core | Medium | Small-Large | Complex business logic | Testability, clarity | Financial systems, rule engines |
| Hexagonal | Medium | Small-Large | Infrastructure changes | Flexibility, isolation | Framework migrations, integrations |
| Modular Monolith | Medium | Medium-Large | Evolving systems | Strong boundaries, single deploy | Growing applications, team scaling |
| Microservices | High | Large | Complex domains | Team autonomy, scaling | Enterprise applications, platforms |
| Service-Based | Medium | Medium-Large | Shared database needs | Coarse-grained services | ERPs, legacy system evolution |
| Event-Driven | High | Medium-Large | Real-time processing | Scalability, decoupling | IoT, analytics, notifications |
| CQRS/ES | High | Medium-Large | Audit requirements | Immutable history | Financial systems, collaboration |
| Serverless | Medium | Small-Medium | Bursty workloads | Minimal operations | APIs, cron jobs, data processing |
| Space-Based | High | Medium-Large | High traffic stateful | Linear scalability | Trading platforms, gaming |
| Pipeline | Medium | Small-Medium | ETL workflows | Stage isolation | Data processing, CI/CD |
| Microkernel | Medium | Small-Medium | Extensible platforms | Plugin architecture | IDEs, marketplaces, frameworks |
| Client-Server | Low | Small-Medium | Traditional apps | Simple deployment | Web 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- attunev1.10.4
- cartographv1.10.4
- conjurev1.10.4
- conservev1.10.4
- egregorev1.10.4
- gauntletv1.10.4
- heraldv1.10.4
- hookifyv1.10.4
- imbuev1.10.4
- leylinev1.10.4
- memory-palacev1.10.4
- ministerv1.10.4
- oraclev1.10.4
- parseltonguev1.10.4
- pensivev1.10.4
- phantomv1.10.4
- sanctumv1.10.4
- scribev1.10.4
- scryv1.10.4
- spec-kitv1.10.4
- tomev1.10.4
- abstractv1.10.4
Similar to archetypes
More Developer Toolssystem-architecturePluginTheBushidoCollective/han201 starsAgents for system design and architectural thinking.
microservices-patternsPluginsecondsky/claude-skills254 starsDesign microservices architectures with service boundaries, event-driven communication, and resilience patterns. Use when building distributed systems, decompos
design-patternsPluginmiles990/claude-software-skills26 starsClassic and modern software design patterns
designing-architectureSkillcloudai-x/claude-workflow-v2237 installsStructured guide for choosing software architecture patterns, sizing them to project and team, and documenting the decision.
architecturePluginreddygopalkrishna/developer-agent-skills11 starsSystem design, domain-driven design, event-driven architecture, caching and concurrency.
system-designSkillanthropics/knowledge-work-plugins8K installsA structured framework for designing systems, services, and architectures, with explicit trade-off analysis.