# Clean Architecture

Apply Robert C.

- Repository: https://github.com/ciembor/agent-rules-books (3164 stars)
- Category: Design
- License: MIT
- Last updated: 2026-09-10
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add ciembor/agent-rules-books --skill clean-architecture -g -a claude-code -y`
Codex: `npx skills add ciembor/agent-rules-books --skill clean-architecture -g -a codex -y`
Cursor: `npx skills add ciembor/agent-rules-books --skill clean-architecture -g -a cursor -y`
Gemini CLI: `npx skills add ciembor/agent-rules-books --skill clean-architecture -g -a gemini-cli -y`

## Description

Apply Robert C. Martin-inspired architecture rules when separating business policy from frameworks, databases, UI, or infrastructure details.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Clean Architecture Skill

Use this skill when a task involves architectural boundaries, dependency direction, use cases, entities, interface adapters, framework isolation, or technology churn.

Before making design or code decisions, read and apply [clean-architecture.mini.md](clean-architecture.mini.md). Use [clean-architecture.md](clean-architecture.md) only as a deeper reference when the mini rules are not enough for the current architectural tradeoff.

