Skip to content
Back to skills

Layered Architecture

ASecurity

Apply layered architecture (Clean Architecture) across backend and frontend

  • 755 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added February 9, 2026
developmentgoreactnextjsnodefrontendbackend

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill layered-architecture --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Layered Architecture?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Layered Architecture
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-layered-architecture/badge)](https://www.skillsdirectory.com/skills/majiayu000-layered-architecture)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: layered-architecture
description: Apply layered architecture (Clean Architecture) across backend and frontend
compatibility: opencode
license: MIT
metadata:
  stack: node-react-next
  style: solid-clean-code
---
## What I do\n\nJe fournis un cadre pratique pour appliquer une **architecture en couches** (Clean Architecture / Ports & Adapters) sur Node.js + Next.js.\n\n## Non‑negotiables\n- Domain pur (pas d'I/O, pas de libs).\n- Use-cases/Hooks dépendent de ports (interfaces).\n- Implémentations en infrastructure/services.\n- Un composition root instancie toutes les concrétions.\n\n## Backend layering (recipe)\n1. Controller : parse + validate (Zod) + call use-case\n2. Use-case : orchestration + appels aux ports\n3. Domain : invariants, règles, services purs\n4. Infra : DB/HTTP/cache\n\n## Frontend layering (recipe)\n1. UI : rendu + événements simples\n2. Hooks : Query + mapping + side effects UI\n3. Services : HTTP + errors + DTO mapping\n\n## Quick anti-pattern detector\n- Vous importez / dans un hook : mauvais (passer par service).\n- Vous importez Prisma dans un use-case : mauvais (passer par repository).\n- Vous mappez un DTO dans JSX : mauvais (mapper dans hook/service).\n

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.