clean-architecture SKILL.md skillA

clean-architecture from giuseppe-trisciuoglio/developer-kit is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add giuseppe-trisciuoglio/developer-kit/clean-architecture@git:20260223.c6d4db1

Pins git:20260223.c6d4db1 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
giuseppe-trisciuoglio/developer-kit
Path
plugins/developer-kit-php/skills/clean-architecture/SKILL.md
Versions recorded
4
Latest version
git:20260223.c6d4db1, committed Feb 23, 2026
First version recorded
Feb 12, 2026
Size
16,912 bytes
Repository stars
366
License
MIT

Provides implementation patterns for Clean Architecture, Hexagonal Architecture (Ports & Adapters), and Domain-Driven Design in PHP 8.3+ with Symfony 7.x. Use when architecting enterprise PHP applications with entities/value objects/aggregates, refactoring legacy code to modern patterns, implementing domain-driven design with Symfony, or creating testable backends with clear separation of concerns.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Clean Architecture, Hexagonal Architecture & DDD for PHP/Symfony

## Overview

This skill provides guidance for implementing Clean Architecture, Hexagonal Architecture (Ports & Adapters), and Domain-Driven Design patterns in PHP 8.3+ applications using Symfony 7.x. It ensures clear separation of concerns, framework-independent business logic, and highly testable code through layered architecture with inward-only dependencies.

## When to Use

- Architecting new enterprise PHP applications with Symfony 7.x
- Refactoring legacy PHP code to modern, testable patterns
- Implementing Domain-Driven Design in PHP projects
- Creating maintainable applications with clear separation of concerns
- Building testable business logic independent of frameworks
- Designing modular PHP systems with swappable infrastructure

## Instructions

### 1. Understand the Architecture Layers

Clean Architecture follows the dependency rule: dependencies only point inward.

```
+-------------------------------------+
|  Infrastructure (Frameworks)        |  Symfony, Doctrine, External APIs
+-------------------------------------+
|  Adapter (Interface Adapters)       |  Controllers, Repositories, Presenters
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add giuseppe-trisciuoglio/developer-kit/clean-architecture@sha256:e858338b7aaebb04

The line at the top of this page pins the label git:20260223.c6d4db1, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_2q26acy5xthd5i5t.svg)](https://markdownregistry.com/a/art_2q26acy5xthd5i5t)

3 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 4 versions of this file, between Feb 12, 2026 and Feb 23, 2026, about one every 4 days.

versioncommittedcommitsizeaudit
git:20260223.c6d4db1 latest2026-02-23 c6d4db1 16,912 BA view · diff
v1.0.02026-02-23 14e980b 17,053 BA view · diff
v1.0.02026-02-12 eec8ef9 17,057 BA view · diff
git:20260212.41061162026-02-12 4106116 16,916 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (16912 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

giuseppe-trisciuoglio/developer-kit · 366 stars · license MIT · pushed 2026-09-10 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_2q26acy5xthd5i5t
GET https://markdownregistry.com/api/v1/resolve?ref=giuseppe-trisciuoglio/developer-kit/clean-architecture
GET https://markdownregistry.com/api/v1/blob/e858338b7aaebb04c019c8c072f6b579c9f29d8ac0c19543b4989d1ee24eec57

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from giuseppe-trisciuoglio/developer-kit

chunking-strategy SKILL.md skill
giuseppe-trisciuoglio/developer-kit · plugins/developer-kit-ai/skills/chunking-strategy/SKILL.md · Provides chunking strategies for RAG systems. Generates chunk size recommendations (256-1024 tokens), overlap…
git:20260324.a02e282 · audit A · 366 stars
prompt-engineering SKILL.md skill
giuseppe-trisciuoglio/developer-kit · plugins/developer-kit-ai/skills/prompt-engineering/SKILL.md · Provides workflows to write, debug, and optimize prompts for LLMs, including few-shot example selection…
git:20260316.68f3ca5 · audit A · 366 stars
rag SKILL.md skill
giuseppe-trisciuoglio/developer-kit · plugins/developer-kit-ai/skills/rag/SKILL.md · Implements document chunking, embedding generation, vector storage, and retrieval pipelines for Retrieval-Augmented…
git:20260324.a02e282 · audit A · 366 stars
aws-cloudformation-auto-scaling SKILL.md skill
giuseppe-trisciuoglio/developer-kit · plugins/developer-kit-aws/skills/aws-cloudformation/aws-cloudformation-auto-scaling/SKILL.md · Provides AWS CloudFormation patterns for Auto Scaling including EC2, ECS, and Lambda. Use when creating Auto Scaling…
git:20260324.a02e282 · audit A · 366 stars
aws-cloudformation-bedrock SKILL.md skill
giuseppe-trisciuoglio/developer-kit · plugins/developer-kit-aws/skills/aws-cloudformation/aws-cloudformation-bedrock/SKILL.md · Provides AWS CloudFormation patterns for Amazon Bedrock resources including agents, knowledge bases, data sources…
git:20260324.a02e282 · audit A · 366 stars
aws-cloudformation-cloudfront SKILL.md skill
giuseppe-trisciuoglio/developer-kit · plugins/developer-kit-aws/skills/aws-cloudformation/aws-cloudformation-cloudfront/SKILL.md · Provides AWS CloudFormation patterns for CloudFront distributions, origins (ALB, S3, Lambda@Edge, VPC Origins)…
git:20260324.a02e282 · audit A · 366 stars
aws-cloudformation-cloudwatch SKILL.md skill
giuseppe-trisciuoglio/developer-kit · plugins/developer-kit-aws/skills/aws-cloudformation/aws-cloudformation-cloudwatch/SKILL.md · Provides AWS CloudFormation patterns for CloudWatch monitoring, metrics, alarms, dashboards, logs, and observability…
git:20260324.a02e282 · audit A · 366 stars
aws-cloudformation-dynamodb SKILL.md skill
giuseppe-trisciuoglio/developer-kit · plugins/developer-kit-aws/skills/aws-cloudformation/aws-cloudformation-dynamodb/SKILL.md · Provides AWS CloudFormation patterns for DynamoDB tables, GSIs, LSIs, auto-scaling, and streams. Use when creating…
git:20260324.a02e282 · audit A · 366 stars
aws-cloudformation-ec2 SKILL.md skill
giuseppe-trisciuoglio/developer-kit · plugins/developer-kit-aws/skills/aws-cloudformation/aws-cloudformation-ec2/SKILL.md · Provides AWS CloudFormation patterns for EC2 instances, Security Groups, IAM roles, and load balancers. Use when…
git:20260324.a02e282 · audit A · 366 stars
aws-cloudformation-ecs SKILL.md skill
giuseppe-trisciuoglio/developer-kit · plugins/developer-kit-aws/skills/aws-cloudformation/aws-cloudformation-ecs/SKILL.md · Provides AWS CloudFormation patterns for ECS clusters, task definitions, services, container definitions, auto scaling…
git:20260324.a02e282 · audit A · 366 stars
aws-cloudformation-elasticache SKILL.md skill
giuseppe-trisciuoglio/developer-kit · plugins/developer-kit-aws/skills/aws-cloudformation/aws-cloudformation-elasticache/SKILL.md · Provides AWS CloudFormation patterns for ElastiCache Redis or Memcached infrastructure, including subnet groups…
git:20260323.2528036 · audit A · 366 stars
aws-cloudformation-iam SKILL.md skill
giuseppe-trisciuoglio/developer-kit · plugins/developer-kit-aws/skills/aws-cloudformation/aws-cloudformation-iam/SKILL.md · Provides AWS CloudFormation patterns for IAM roles, policies, managed policies, permission boundaries, and trust…
git:20260324.a02e282 · audit A · 366 stars

Every file in giuseppe-trisciuoglio/developer-kit

Other files named clean-architecture

clean-architecture SKILL.md skill
ciembor/agent-rules-books · clean-architecture/SKILL.md · Apply Robert C. Martin-inspired architecture rules when separating business policy from frameworks, databases, UI, or…
git:20260909.802595f · audit A · 3,168 stars
clean-architecture SKILL.md skill
wondelai/skills · plugins/systems-architecture/skills/clean-architecture/SKILL.md · Structure software around the Dependency Rule: source code dependencies point inward from frameworks to use cases to…
v1.4.0 · audit A · 2,546 stars
clean-architecture SKILL.md skill
wondelai/skills · clean-architecture/SKILL.md · Structure software around the Dependency Rule: source code dependencies point inward from frameworks to use cases to…
v1.4.0 · audit A · 2,546 stars
clean-architecture SKILL.md skill
wondelai/skills · plugins/wondelai-skills/skills/clean-architecture/SKILL.md · Structure software around the Dependency Rule: source code dependencies point inward from frameworks to use cases to…
v1.4.0 · audit A · 2,546 stars
clean-architecture SKILL.md skill
giuseppe-trisciuoglio/developer-kit · plugins/developer-kit-typescript/skills/clean-architecture/SKILL.md · Provides implementation patterns for Clean Architecture, Domain-Driven Design (DDD), and Hexagonal Architecture (Ports…
git:20260323.227390f · audit A · 366 stars
clean-architecture SKILL.md skill
giuseppe-trisciuoglio/developer-kit · plugins/developer-kit-python/skills/clean-architecture/SKILL.md · Provides implementation patterns for Clean Architecture, Hexagonal Architecture (Ports & Adapters), and Domain-Driven…
git:20260223.c6d4db1 · audit A · 366 stars
clean-architecture SKILL.md skill
giuseppe-trisciuoglio/developer-kit · plugins/developer-kit-java/skills/clean-architecture/SKILL.md · Provides implementation patterns for Clean Architecture, Hexagonal Architecture (Ports & Adapters), and Domain-Driven…
git:20260324.a02e282 · audit A · 366 stars
clean-architecture SKILL.md skill
mindrally/skills · clean-architecture/SKILL.md · Guidelines for implementing Clean Architecture patterns in Flutter and Go applications, with emphasis on separation of…
git:20261008.7682ca7 · audit A · 294 stars

Browse by kind, by grade A, or by owner.