Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

clean-architecture

Skill by giuseppe-trisciuoglio

Provides implementation patterns for Clean Architecture, Domain-Driven Design and Hexagonal Architecture in NestJS and TypeScript projects. Aimed at developers structuring complex backend systems or refactoring anemic models into rich domain models. Includes a suggested project layout and code example references.

  • Score 67
  • 372 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install clean-architecture

Built from the published package, never by AI.

git clone --depth 1 https://github.com/giuseppe-trisciuoglio/developer-kit /tmp/developer-kit && mkdir -p ~/.claude/skills && cp -r /tmp/developer-kit/plugins/developer-kit-typescript/skills/clean-architecture ~/.claude/skills/clean-architecture

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install clean-architecture in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The clean-architecture skill gives implementation patterns for Clean Architecture, Domain-Driven Design (DDD) and Hexagonal Architecture (Ports and Adapters) in NestJS and TypeScript applications. It explains the concentric layers and the dependency rule, plus DDD tactical patterns such as entities, value objects, aggregates, domain events and repositories. It also suggests a project structure with domain, application, infrastructure and adapters folders.

The skill walks through steps for building the domain layer, application use cases, persistence and HTTP adapters, and NestJS dependency injection. Detailed code examples, best practices and constraints are kept in separate reference files. It is intended for developers building complex backend systems or moving from tightly coupled MVC code to layered architecture.

Written from the project's SKILL.md and checked against it.

What it can do

  • Architectural layersExplains how inner and outer layers relate and why dependencies flow inward.
  • DDD tactical patternsCovers entities, value objects, aggregates, domain events and repositories.
  • Project structureSuggests folders for domain, application, infrastructure and adapters layers.
  • Domain layer implementationGuides building pure value objects, entities, aggregates and repository ports.
  • Use case implementationDescribes defining DTOs and implementing workflows in an execute method.
  • Adapter implementationCovers persistence, HTTP and external service adapters for ports.
  • NestJS dependency injectionShows registering use cases and binding repository implementations with interface tokens.
  • Best practices guidanceLists principles such as rich domain models, immutability and transaction placement.

What you need

  • NestJS
  • TypeScript

Try asking

  • Show me how to structure a NestJS project with a domain layer and use cases
  • Help me create an Order aggregate root with domain events in TypeScript
  • Refactor this anemic service into a rich domain model with value objects

Good to know

  • Constraints and pitfalls are described in a separate reference file.
  • Examples cover NestJS and TypeScript only.

Security check

B
  • Allowed to use Write, Edit, Bash without limitsIn SKILL.md

Checked automatically: plugins/developer-kit-typescript/skills/clean-architecture/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: ReadWriteEditBashGlobGrep

Alternatives to clean-architecture

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

clean-architecture: common questions

What does the clean-architecture skill cover?

It covers Clean Architecture, Domain-Driven Design and Hexagonal Architecture patterns for NestJS and TypeScript applications. It includes layers, DDD tactical patterns and a suggested project structure.

When should I use this skill?

The source says to use it when structuring complex backend systems, designing domain layers, implementing ports and adapters, or refactoring anemic models into rich domain models.

Does the skill include code examples?

Yes. The source points to a references/examples.md file with examples for value objects, entities, aggregate roots, repository ports, use cases, adapters and module configuration.

How do I install clean-architecture?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is clean-architecture free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is clean-architecture safe to use?

It scores 67 of 100. Grades: maintenance B, licence A, quality B. Security check: grade B (allowed to use write, edit, bash without limits). Review the code before you install. How grades work.

What are alternatives to clean-architecture?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

clean-architecture Install

Add to stack

Loading.