php-clean-architecture

Installation
SKILL.md

PHP Clean Architecture

Activation Guard

Before applying this skill, check the project's main instruction file such as AGENTS.md, CLAUDE.md, or equivalent.

Use this skill only when that file explicitly states the project uses Clean Architecture.

If the project does not explicitly state Clean Architecture, do not apply this skill. Say that the Clean Architecture skill is not activated for this project, explain that the main project instructions do not explicitly state Clean Architecture, and do not introduce or show UseCase, Port, or Adapter classes or interfaces even as examples.

Boundaries

Preserve clear boundaries between use cases, domain/application logic, ports, and adapters.

Keep business rules out of technical adapters. Keep framework, transport, persistence, and client details out of application use cases.

Prefer dependency direction toward the domain or application core. Outer adapters should depend on ports and application models, not the other way around.

Installs
1
First Seen
8 days ago
php-clean-architecture — pepperize/php-skills