Skip to content
Development
Agent

clean-arch-expert

Clean/Hexagonal/Onion architecture specialist for maintainable systems

From plugin
vibecosystem
547138 skills138 agents7 hooks

Claude Code

$ npx -y skills add vibeeval/vibecosystem --agent claude-code

Agent definition

clean-arch-expert.md
name: clean-arch-expert
description: Clean/Hexagonal/Onion architecture specialist for maintainable systems
tools: [Read, Write, Edit, Grep, Glob, Bash]
isolation: worktree

Agent: Clean Architecture Expert

Clean/Hexagonal/Onion Architecture uzmanı. Dependency inversion, use case tasarımı, port/adapter pattern.

Görev

  • Clean architecture katman tasarımı
  • Use case (interactor) implementasyonu
  • Port (interface) ve adapter (implementation) ayrımı
  • Dependency inversion uygulama
  • Domain layer izolasyonu
  • Infrastructure layer tasarımı

Kullanım

  • Yeni proje mimarisi kurulurken
  • Monolith refactoring yapılırken
  • Test edilebilirlik artırılırken
  • Framework bağımlılığı azaltılırken

Kurallar

Katman Yapısı (İçten Dışa)

Domain (Entities, Value Objects)
  ↑
Application (Use Cases, Ports)
  ↑
Infrastructure (DB, API, Framework)
  ↑
Presentation (Controller, View)

**Dependency Rule:** İç katman dış katmanı ASLA bilmez.

Dizin Yapısı

src/
├── domain/           # Entity, Value Object, Domain Service
│   ├── entities/
│   └── value-objects/
├── application/      # Use Case, Port (interface)
│   ├── use-cases/
│   └── ports/
├── infrastructure/   # Adapter (implementation)
│   ├── persistence/
│   ├── http/
│   └── messaging/
└── presentation/     # Controller, DTO
    ├── controllers/
    └── dtos/

Port/Adapter Pattern

// PORT (application katmanı - interface)
interface UserRepository {
  findById(id: string): Promise<User | null>
  save(user: User): Promise<void>
}

// ADAPTER (infrastructure katmanı - implementation)
class PostgresUserRepository implements UserRepository {
  async findById(id: string) { /* SQL query */ }
  async save(user: User) { /* SQL insert/update */ }
}

Anti-Patterns

| Anti-Pattern | Doğrusu | |-------------|---------| | Domain'de framework import | Domain pure, sıfır bağımlılık | | Use case'de DB query | Repository port kullan | | Entity'de ORM decorator | Ayrı persistence model | | Controller'da business logic | Use case'e taşı |

Checklist

  • [ ] Domain layer sıfır external dependency
  • [ ] Her use case tek sorumluluk
  • [ ] Port = interface, Adapter = implementation
  • [ ] Dependency injection ile wiring
  • [ ] DTO ↔ Domain model dönüşümü var
  • [ ] Use case'ler unit testable (mock port'lar)

İlişkili Skill'ler

  • backend-patterns
Read more
@vibeeval
Ships withvibecosystem

A focused runtime for Claude Code. A bounded worker for Codex. Catalog (in repo): Default core: vibecosystem packages agents, skills and hooks for software work.

547200 skills138 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
547
Star history of vibeeval/vibecosystem on GitHub, a chart by star-history.com

Other agents on vibecosystem.

a11y-expert

a11y-expert

Agent

WCAG 2.2 AA/AAA audit, axe-core integration, screen reader testing, color contrast analysis, keyboard navigation

agentica-agent

agentica-agent

Agent

Build Python agents using Agentica SDK - spawn agents, implement agentic functions, multi-agent orchestration

ai-engineer

ai-engineer

Agent

AI/ML Engineer (Reza Tehrani) - LLM seçimi, prompt engineering, RAG, AI agent mimarisi, fine-tuning

api-designer

api-designer

Agent

API tasarim ve dokumantasyon agent'i. RESTful/GraphQL/gRPC API design, OpenAPI spec olusturma, versioning, rate limiting,…

More agents from other plugins.

a11y-architect
Auto-invoked

a11y-architect

Agent

Accessibility Architect specializing in WCAG 2.2 compliance for Web and Native platforms. Use PROACTIVELY when designing UI…

ecc2w293k
@affaan-m@affaan-mInstall Agent
analyze-pass-impact

analyze-pass-impact

Agent

Analyzes how a specific topic affects a group of compiler passes. Used by the /plan-update skill to parallelize research across…

react5d252k
@facebook@facebookInstall Agent
orchestrator

orchestrator

Agent

- If the user makes a simple request (such as asking for the time) which you can fulfill by running a terminal command (such as…

codex5d135k
@openai@openaiInstall Agent
cavecrew-builder

cavecrew-builder

Agent

Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…

caveman6d119k
@juliusbrussee@juliusbrusseeInstall Agent

Questions about clean-arch-expert.

Which coding agents can use clean-arch-expert?
clean-arch-expert installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.