mern-technical-architecture

Installation
SKILL.md

mern-technical-architecture

Purpose

Generate production MERN web applications using a domain-first architecture — organizing by business capability, sharing domain logic across tiers, enforcing Clean Architecture layer purity, and testing with story-driven scenarios.

This skill produces real, runnable TypeScript domain modules — each with a shared/ domain core, server/ Express backend, and client/ React frontend. The output follows the architecture defined in inputs/mern-architecture.md: domain entities with business logic, Zod validation schemas shared across tiers, collection classes with domain-oriented query methods, and story-driven tests mirroring Gherkin scenarios.

When to use this skill

Load this skill when any of the following apply:

  • You are scaffolding a new MERN project and need the domain-first folder structure.
  • You are adding a new domain module (e.g., recipients, payments, invoices) to an existing project.
  • You are reviewing architecture compliance against Clean Architecture and domain-first principles.
  • You are transforming a technically-organized codebase (controllers/, models/, views/) into domain-first structure.
  • You are generating shared domain logic (entities, schemas, value objects) that must work identically on client and server.
  • You are setting up story-driven tests across server, client, and E2E tiers.

Installs
1
First Seen
May 19, 2026