architecture-patterns

architecture-patterns is a skill for Claude Code, Codex from miles990/claude-software-skills. It costs 10 tokens per session (3,873 once invoked), scanned A, a copy of architecture-patterns, MIT.

A guide to software architecture patterns, which are recurring ways to organise the parts of an application. It compares structures such as monoliths, where one deployable application contains everything, and microservices, where separate services are deployed independently.

In plain words
What is it for?
Use it to plan project structure, separate features and infrastructure, and compare monolithic and microservices designs.
Why use it?
It helps you choose a structure that fits the application's size, team, domain, and scaling needs.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Use it to plan project structure, separate features and infrastructure, and compare monolithic and microservices designs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/miles990/claude-software-skills/architecture-patterns
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add miles990/claude-software-skills --skill architecture-patterns
Clone the repo
git clone --depth 1 https://github.com/miles990/claude-software-skills

Made for: Claude Code, Codex.

Its marketplace also offers this one on its own, as the plugin architecture-patterns/plugin install architecture-patterns after adding the marketplace above.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for architecture-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/miles990/claude-software-skills/architecture-patterns/github.svg)](https://agentmods.dev/skills/miles990/claude-software-skills/architecture-patterns)
Your own site
<a href="https://agentmods.dev/skills/miles990/claude-software-skills/architecture-patterns"><img src="https://agentmods.dev/badge/skills/miles990/claude-software-skills/architecture-patterns/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for architecture-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/miles990/claude-software-skills/architecture-patterns"><img src="https://agentmods.dev/badge/skills/miles990/claude-software-skills/architecture-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,873 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00010 $0.03873
Opus 5 $0.00005 $0.01937
Sonnet 5 $0.00002 $0.00775
Haiku 4.5 $0.00001 $0.00387

Measured 9d ago against content hash 60286993b70a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

architecture-patterns scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to architecture-patterns — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

software-design/architecture-patterns/SKILL.md · 581 lines

How it starts

The opening of the file, as written. The whole thing — 581 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Architecture Patterns

Overview

Architecture patterns provide proven solutions for structuring software systems. Choosing the right architecture is crucial for scalability, maintainability, and team productivity.

Patterns

Monolithic Architecture

Description: Single deployable unit containing all application functionality.

Key Features:

  • Simple deployment and development
  • Shared database and memory
  • Straightforward debugging

Use Cases:

  • MVPs and startups
  • Small teams (< 10 developers)
  • Simple domain logic

Best Practices:

src/
├── modules/          # Feature-based organization
│   ├── users/
│   ├── orders/
│   └── products/
├── shared/           # Cross-cutting concerns
└── infrastructure/   # External services

Microservices Architecture

Description: Distributed system of independently deployable services.

Key Features:

  • Independent deployment and scaling
  • Technology diversity per service
  • Fault isolation

Use Cases:

  • Large teams needing autonomy
  • Complex domains with clear boundaries
  • High scalability requirements

Key Components:

Component Purpose Tools
API Gateway Entry point, routing Kong, AWS API Gateway
Service Discovery Service registration Consul, Kubernetes DNS
Config Management Centralized config Spring Cloud Config, Consul
Circuit Breaker Fault tolerance Resilience4j, Hystrix

Best Practices:

  1. Design around business capabilities
  2. Decentralize data management
  3. Design for failure
  4. Automate deployment

Event-Driven Architecture

Description: Systems communicating through events.

Key Patterns:

Pattern Description Use Case
Event Sourcing Store state as events Audit trails, temporal queries
CQRS Separate read/write models High-read workloads
Saga Distributed transactions Cross-service workflows

Event Sourcing Example:

// Events are the source of truth
interface OrderEvent {
  id: string;
  type: 'OrderCreated' | 'ItemAdded' | 'OrderShipped';
  timestamp: Date;
  payload: unknown;
}

// Rebuild state from events
function rebuildOrder(events: OrderEvent[]): Order {
  return events.reduce((order, event) => {
    switch (event.type) {
      case 'OrderCreated': return { ...event.payload };
      case 'ItemAdded': return { ...order, items: [...order.items, event.payload] };
      case 'OrderShipped': return { ...order, status: 'shipped' };
    }
  }, {} as Order);
}

Read the full file on GitHub · 581 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 581 lines · 10 tokens per session scan A 60286993b70a

Subscribe to this mod's changes

architecture-patterns is a skill published in the GitHub repository miles990/claude-software-skills (20 stars, last pushed 7mo ago), licensed MIT. It adds 10 tokens to every session and 3,873 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to architecture-patterns, differing in 0 lines, and is treated as a copy.