Clean Architecture
Uncle Bob's Dependency Rule as a self-contained architecture-review skill
Test report
- Verdict
- Tested · Works
- Score
- Tested
- Jul 20, 2026
- Environment
- Claude Code 2.x (agent harness)
- Upstream re-checked
- Aug 10, 2026 · a95fdf8
Fetched the repo tree via GitHub API: `.agents/skills/clean-architecture` is a symlink to root `clean-architecture/`; the real SKILL.md and all 6 references (dependency-rule, entities-use-cases, adapters-frameworks, component-principles, solid-principles, boundaries) exist and resolve 200. Frontmatter is valid with name+description; no scripts, no exfiltration/base64/hidden instructions — only an Amazon affiliate tag (`tag=wondelai00-20`) on the book link, which is a benign referral channel, not a skill-claim oversell. On the order-total task the baseline gave a generic "extract a service layer"; the skill result named the exact structure — a framework-agnostic `Order.calculateTotal()` entity, a controller that builds a request DTO and delegates to a use-case Interactor, and the Sequelize model confined to a gateway implementing a repository interface defined inward — and its Common Mistakes table directly named "ORM leaking into business logic" and "Business rules in controllers" with fixes. Clear measured win.
Scored on four weighted criteria — install, triggering, output vs. baseline, docs. How scoring works
- Installs cleanly 5/5
- Triggers reliably 5/5
- Output vs. baseline 8/10
- Docs & honesty 5/5
What Clean Architecture does
A pure-prompt knowledge skill encoding Robert C. Martin's Clean Architecture: the Dependency Rule, entities/use-cases, adapters, component principles, SOLID, and boundaries, with a 7-row diagnostic scorer. Triggers when deciding where business logic belongs, decoupling from a DB/framework, or debating dependency direction (hexagonal/onion/ports-and-adapters).
How to install Clean Architecture
Copy the `clean-architecture/` directory (SKILL.md + references/) into your `.claude/skills/` (project) or `~/.claude/skills/` (global). No build step, no external CLI/MCP. Note the repo also exposes it via a symlink `.agents/skills/clean-architecture -> ../../clean-architecture` — install the real root dir, not the symlink stub.
Skills live in ~/.claude/skills/ (global) or .claude/skills/
(per-project). Restart Claude Code after installing.
Commands — how to trigger Clean Architecture
-
/clean-architectureUncle Bob's Dependency Rule as a self-contained architecture-review skill
It also activates on plain-language prompts like these:
-
Where should this business logic live in our architecture -
Decouple this service from the database layer -
Set up hexagonal architecture for this module
Frequently asked questions
- Is the Clean Architecture skill free?
- Yes. The skill itself is free from wondelai/skills. SkillProof publishes the install command and an independent test verdict at no cost.
- Does Clean Architecture work with Claude Code?
- We tested it with Claude Code 2.x (agent harness) on Jul 20, 2026. Verdict: Tested · Works. Fetched the repo tree via GitHub API: `.agents/skills/clean-architecture` is a symlink to root `clean-architecture/`; the real SKILL.md and all 6 references (dependency-rule, entities-use-cases, adapters-frameworks, component-principles, solid-principles, boundaries) exist and resolve 200. Frontmatter is valid with name+description; no scripts, no exfiltration/base64/hidden instructions — only an Amazon affiliate tag (`tag=wondelai00-20`) on the book link, which is a benign referral channel, not a skill-claim oversell. On the order-total task the baseline gave a generic "extract a service layer"; the skill result named the exact structure — a framework-agnostic `Order.calculateTotal()` entity, a controller that builds a request DTO and delegates to a use-case Interactor, and the Sequelize model confined to a gateway implementing a repository interface defined inward — and its Common Mistakes table directly named "ORM leaking into business logic" and "Business rules in controllers" with fixes. Clear measured win.
- What is the Clean Architecture SkillProof Score?
- 9.2/10 — installs cleanly 5/5, triggers reliably 5/5, output vs. baseline 8/10, docs & honesty 5/5.
- How do I install Clean Architecture?
- Copy the install command from this page, run it in your terminal, and restart Claude Code. Skills live in ~/.claude/skills/ (global) or .claude/skills/ inside a project.
- Can I use Clean Architecture with Cursor, Copilot, Gemini CLI, Codex or other AI tools?
- The SKILL.md format is native to Claude (Claude Code, Desktop, claude.ai). The instructions inside adapt to other assistants: Cursor rules, GitHub Copilot instructions, Windsurf rules, Custom GPTs, AGENTS.md for OpenAI Codex, and GEMINI.md for Google Gemini CLI — our conversion guides cover each, and the free converter on the tools page does the wrapping for you.