flat-layers-design

Installation
SKILL.md

Flat Layers Design

Flat Layers Design (FLD) splits the app into layers by role (what a module is), not by feature. Every layer is a flat list of modules, and dependencies point one way only. This is the structure for small and medium apps (SPA or SSR, one team). It deliberately does not slice layers by domain — see When it grows.

Component-level conventions (folder per component, props, stories) live in the framework-agnostic ui-component skill and framework skills such as react-component; this skill only says which folder a module belongs to and what it may import.

The trees below are taken from a React + Vite app, so they show .tsx components, *.stories.tsx and hooks. With another framework keep the layout and swap the file types and idioms (.vue, .svelte, composables…).

Layout

Installs
15
First Seen
Sep 5, 2026