Skip to content
Back to skills

Architecture Patterns

ASecurity

Knowledge base for architecture patterns, trade-offs, and selection criteria. Activates when recommending or evaluating architecture patterns like microservices, monolith, serverless, event-driven, CQRS, or hybrid approaches.

  • 6 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added May 26, 2026
ai-agentsgorailskubernetestestingdebuggingapidatabasedevopsci/cd

Works with

  • api

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned May 27, 2026

npx -y skills add AhmedHabiba/architor --skill architecture-patterns --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Architecture Patterns?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Architecture Patterns
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ahmedhabiba-architecture-patterns/badge)](https://www.skillsdirectory.com/skills/ahmedhabiba-architecture-patterns)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: architecture-patterns
description: Knowledge base for architecture patterns, trade-offs, and selection criteria. Activates when recommending or evaluating architecture patterns like microservices, monolith, serverless, event-driven, CQRS, or hybrid approaches.
---

# Architecture Patterns Knowledge

## Pattern Selection Framework

When recommending a pattern, evaluate against these criteria:

### Team Fit
- Team size < 5 → Strongly favor monolith or modular monolith
- Team size 5-15 → Modular monolith or bounded microservices
- Team size 15+ → Microservices viable if org supports it
- No DevOps/Platform team → Avoid Kubernetes-heavy architectures
- Junior-heavy team → Favor simpler patterns with clear boundaries

### Operational Reality
- 1 DevOps engineer → Cannot sustain >3 independently deployed services
- No dedicated DBA → Avoid polyglot persistence
- Limited monitoring experience → Start with monolith + good observability
- Budget constrained → Serverless for spiky loads, monolith for steady

### Requirement Signals
- Independent scaling needs → Microservices or serverless
- Strong consistency requirements → Monolith or synchronous microservices
- Event-heavy domain → Event-driven architecture
- Read/write asymmetry → CQRS
- Rapid experimentation needed → Modular monolith (fastest to change)
- Regulatory isolation → Service per compliance boundary

## Pattern Comparison Quick Reference

### Monolith
- **Best for:** Small teams, rapid development, strong consistency needs
- **Risks:** Scaling bottleneck, deployment coupling, team scaling limits
- **Migrate to:** Modular monolith → microservices (progressive)

### Modular Monolith
- **Best for:** Teams 3-10, need clear boundaries without operational overhead
- **Risks:** Module coupling creep, single deployment unit
- **Migrate to:** Extract modules to services as needed

### Microservices
- **Best for:** Large teams, independent scaling, polyglot needs
- **Risks:** Distributed system complexity, data consistency, operational overhead
- **Prerequisite:** CI/CD maturity, monitoring, team autonomy

### Event-Driven
- **Best for:** Async workflows, decoupled services, audit trails
- **Risks:** Eventual consistency complexity, debugging difficulty, event schema evolution
- **Prerequisite:** Team comfort with async patterns, good monitoring

### Serverless-First
- **Best for:** Spiky workloads, cost optimization at low scale, rapid prototyping
- **Risks:** Cold starts, vendor lock-in, debugging difficulty, cost at scale
- **Prerequisite:** Cloud-native comfort, stateless design skills

### CQRS
- **Best for:** Read-heavy systems, different read/write models, event sourcing
- **Risks:** Complexity, eventual consistency, increased codebase size
- **Prerequisite:** Strong domain modeling skills

## Red Flags by Pattern

- Microservices with shared database → "You have a distributed monolith"
- Event sourcing without replay testing → "You'll lose data"
- Serverless with persistent connections → "Wrong pattern for this workload"
- CQRS for simple CRUD → "Over-engineered"
- Monolith with 50+ developers → "Deployment bottleneck incoming"

Files in this skill

  • SKILL.md3.1 KB
  • evals/instructions.json11.2 KB
  • evals/scenario-0/capability.txt29 B
  • evals/scenario-0/criteria.json2 KB
  • evals/scenario-0/task.md1.1 KB
  • evals/scenario-1/capability.txt42 B
  • evals/scenario-1/criteria.json2.1 KB
  • evals/scenario-1/task.md1.1 KB
  • evals/scenario-2/capability.txt35 B
  • evals/scenario-2/criteria.json2.5 KB
  • evals/scenario-2/task.md1.3 KB
  • evals/scenario-3/capability.txt18 B
  • evals/scenario-3/criteria.json1.4 KB
  • evals/scenario-3/task.md2 KB
  • evals/scenario-4/capability.txt46 B
  • evals/scenario-4/criteria.json2.4 KB
  • evals/scenario-4/task.md1.2 KB
  • evals/summary.json1022 B
  • evals/summary_infeasible.json58 B
  • tile.json410 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.