architecture-patterns

architecture-patterns is a skill for Claude Code, Codex from LuizEduPP/Rememb. It costs 45 tokens per session (4,119 once invoked), scanned A, a copy of architecture-patterns, MIT.

Backend design guidance for organizing application code into clear layers, responsibilities, and dependency rules. It covers Clean Architecture, Hexagonal Architecture, and Domain-Driven Design, which are ways to keep business rules separate from technical details.

In plain words
What is it for?
Use it when designing backend services, refactoring a monolith, defining service boundaries, fixing dependency cycles, or making business logic easier to test.
Why use it?
It helps untangle business logic from web, database, and framework code, and prevents modules from depending on the wrong parts of the system.

Skill for Claude CodeCodex

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

Good fit Use it when designing backend services, refactoring a monolith, defining service boundaries, fixing dependency cycles, or making business logic easier to test.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/luizedupp/rememb/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 LuizEduPP/Rememb --skill architecture-patterns
Clone the repo
git clone --depth 1 https://github.com/LuizEduPP/Rememb

Made for: Claude Code, Codex.

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/luizedupp/rememb/architecture-patterns/github.svg)](https://agentmods.dev/skills/luizedupp/rememb/architecture-patterns)
Your own site
<a href="https://agentmods.dev/skills/luizedupp/rememb/architecture-patterns"><img src="https://agentmods.dev/badge/skills/luizedupp/rememb/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/luizedupp/rememb/architecture-patterns"><img src="https://agentmods.dev/badge/skills/luizedupp/rememb/architecture-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,119 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 86% 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.00045 $0.04119
Opus 5.5 $0.00018 $0.01648
Sonnet 5.5 $0.00009 $0.00824
Haiku 4.5 $0.00005 $0.00412

Measured 1mo ago against content hash d27ea3149c16, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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

86% identical to architecture-patterns — 366 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.

src/rememb_skills/architecture-patterns/SKILL.md · 515 lines

How it starts

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

Architecture Patterns

Master proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design to build maintainable, testable, and scalable systems.

Given: a service boundary or module to architect. Produces: layered structure with clear dependency rules, interface definitions, and test boundaries.

When to Use

  • Designing new backend services or microservices from scratch
  • Refactoring monolithic applications where business logic is entangled with ORM models or HTTP concerns
  • Establishing bounded contexts before splitting a system into services
  • Debugging dependency cycles where infrastructure code bleeds into the domain layer
  • Creating testable codebases where use-case tests do not require a running database
  • Implementing domain-driven design tactical patterns (aggregates, value objects, domain events)

Core Concepts

1. Clean Architecture (Uncle Bob)

Layers (dependency flows inward):

  • Entities: Core business models, no framework imports
  • Use Cases: Application business rules, orchestrate entities
  • Interface Adapters: Controllers, presenters, gateways — translate between use cases and external formats
  • Frameworks & Drivers: UI, database, external services — all at the outermost ring

Key Principles:

  • Dependencies point inward only; inner layers know nothing about outer layers
  • Business logic is independent of frameworks, databases, and delivery mechanisms
  • Every layer boundary is crossed via an abstract interface
  • Testable without UI, database, or external services

2. Hexagonal Architecture (Ports and Adapters)

Components:

  • Domain Core: Business logic lives here, framework-free
  • Ports: Abstract interfaces that define how the core interacts with the outside world (driving and driven)
  • Adapters: Concrete implementations of ports (PostgreSQL adapter, Stripe adapter, REST adapter)

Benefits:

  • Swap implementations without touching the core (e.g., replace PostgreSQL with DynamoDB)
  • Use in-memory adapters in tests — no Docker required
  • Technology decisions deferred to the edges

Read the full file on GitHub · 515 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago First seen · 515 lines · 45 tokens per session scan A d27ea3149c16

Subscribe to this mod's changes

architecture-patterns is a skill published in the GitHub repository LuizEduPP/Rememb (5 stars, last pushed 15d ago), licensed MIT. It adds 45 tokens to every session and 4,119 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 86% identical to architecture-patterns, differing in 366 lines, and is treated as a copy.

Related

Other skills, from other repositories