clean-architecture · ciembor — Claude Code skill: what it does, how to install
This Claude Code skill applies clean architecture principles to decisions about separating business policy from implementation details. It activates for work on dependency direction, use cases, and application boundaries.
MIT 645 installs ★ 3,328 updated 2026-09-10
npx skills add ciembor/agent-rules-books --skill clean-architecture -a claude-codeWhat clean-architecture does
The skill guides the separation of business rules from frameworks, databases, UI, and infrastructure. Its rules cover architectural boundaries, dependency direction, entities, use cases, and interface adapters.
The agent reads clean-architecture.mini.md before making design or code decisions. It consults clean-architecture.md for a specific tradeoff only when the shorter rules are insufficient.
What it helps with
- separate business policy from framework code
- set dependency direction across layers
- define entities and use cases
- isolate application design from technology changes
Example prompts for the agent
- Separate this project's business rules from its framework using clean architecture principles.
- Check the dependency direction between the application layers.
- Suggest boundaries for adapters in this use case.
How to install clean-architecture
1Skills CLI (Vercel)
npx skills add ciembor/agent-rules-books --skill clean-architecture -a claude-code2Manually: put the files in place
~/.claude/skills/clean-architecture/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/clean-architecture/
1Skills CLI (Vercel)
npx skills add ciembor/agent-rules-books --skill clean-architecture -a codex2Manually: put the files in place
.agents/skills/clean-architecture/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add ciembor/agent-rules-books --skill clean-architecture -a cursor2Manually: put the files in place
.cursor/skills/clean-architecture/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install ciembor/agent-rules-books clean-architecture2Manually: put the files in place
.github/skills/clean-architecture/SKILL.md1Skills CLI (Vercel)
npx skills add ciembor/agent-rules-books --skill clean-architecture -a gemini-cli2Platform CLI
gemini skills install https://github.com/ciembor/agent-rules-books --path clean-architectureManually: put the files in place
.devin/skills/clean-architecture/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add ciembor/agent-rules-books --skill clean-architecture -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about clean-architecture
How do I install clean-architecture in Claude Code?
Run npx skills add ciembor/agent-rules-books --skill clean-architecture -a claude-code. The skill file is placed at ~/.claude/skills/clean-architecture/SKILL.md.
What does clean-architecture do?
It guides architectural decisions that separate business policy from implementation details. The rules address dependencies, entities, use cases, and interface adapters.
When does clean-architecture use its detailed reference?
The agent first reads clean-architecture.mini.md. It turns to clean-architecture.md when the shorter rules do not cover the current architectural tradeoff.
Source text
SKILL.md · MIT
--- name: clean-architecture description: Apply Robert C. Martin-inspired architecture rules when separating business policy from frameworks, databases, UI, or infrastructure details. license: MIT --- # 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.
© ciembor · MIT · ciembor/agent-rules-books
Similar skills
All skills for Code review and refactoring →clean-architecture by other authors comes first.