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:20260323.227390f

Pins git:20260323.227390f 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-typescript/skills/clean-architecture/SKILL.md
Versions recorded
3
Latest version
git:20260323.227390f, committed Mar 23, 2026
First version recorded
Feb 12, 2026
Size
8,092 bytes
Repository stars
366
License
MIT

Provides implementation patterns for Clean Architecture, Domain-Driven Design (DDD), and Hexagonal Architecture (Ports & Adapters) in NestJS/TypeScript applications. Use when structuring complex backend systems, designing domain layers with entities/value objects/aggregates, implementing ports and adapters, creating use cases, or refactoring from anemic models to rich domain models with dependency inversion.

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, DDD & Hexagonal Architecture for NestJS

## Overview

This skill provides comprehensive guidance for implementing Clean Architecture, Domain-Driven Design (DDD), and Hexagonal Architecture patterns in NestJS/TypeScript applications. It covers the architectural layers, tactical patterns, and practical implementation examples for building maintainable, testable, and loosely-coupled backend systems.

## When to Use

- Architecting complex NestJS applications with long-term maintainability
- Refactoring from tightly-coupled MVC to layered architecture
- Implementing rich domain models with business logic encapsulation
- Designing testable systems with swappable infrastructure
- Creating microservices with clear bounded contexts
- Separating business rules from framework code
- Implementing event-driven architectures with domain events

## Instructions

### 1. Understand the Architectural Layers

Clean Architecture organizes code into concentric layers where dependencies flow inward. Inner layers have no knowledge of outer layers:

```
+-------------------------------------+
|  Infrastructure (Frameworks, DB)    |  Outer layer - volatile
…

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:dff0c40d2f92e1ef

The line at the top of this page pins the label git:20260323.227390f, 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_axq2qq6hobtxvbhk.svg)](https://markdownregistry.com/a/art_axq2qq6hobtxvbhk)

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

Versions

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

versioncommittedcommitsizeaudit
git:20260323.227390f latest2026-03-23 227390f 8,092 BA view · diff
git:20260223.c6d4db12026-02-23 c6d4db1 17,239 BA view · diff
v1.0.02026-02-12 eec8ef9 17,386 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 (8092 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_axq2qq6hobtxvbhk
GET https://markdownregistry.com/api/v1/resolve?ref=giuseppe-trisciuoglio/developer-kit/clean-architecture
GET https://markdownregistry.com/api/v1/blob/dff0c40d2f92e1ef631bab1734ec69c7d8752e998cebbbfb07d94645443924e2

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-php/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-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.